Getting an API Key
API access is currently by invitation. To request credentials, email api-support@thesurfkit.com. Once your request is approved, you will receive a single-use API key. Store it securely — it is only shown once and cannot be retrieved later. If you lose your key, a new one can be generated, which will immediately invalidate the old one.API keys are stored as BCrypt hashes. Only you ever see the plain-text key. If it is compromised, contact support to rotate it.
Using Your API Key
Include your API key in every request using theAuthorization header:
Header authentication (recommended)
Query parameter (alternative)
For environments where setting custom headers is difficult, you can pass the key as a query parameter:Public Endpoints
Two endpoints do not require authentication and are available to anyone:| Endpoint | Description |
|---|---|
GET /api/v2/buoys/search | Search buoys by name or identifier |
GET /api/v2/buoys/nearest | Find the nearest buoy to coordinates |
Authentication Errors
401 Unauthorized — missing key
401 Unauthorized — invalid key
Rate Limit Headers
Every authenticated response includes these headers so you can track your usage:| Header | Description |
|---|---|
X-RateLimit-Limit | Your hourly request quota |
X-RateLimit-Remaining | Requests remaining this hour |
X-RateLimit-Reset | Unix timestamp when the quota resets |
429 Too Many Requests: