Skip to main content

Authentication

Crypton uses API keys to authenticate requests. Include your key in the X-API-Key header.
curl https://api.crypton.dev/v1/funding-rates?symbol=BTC \
  -H "X-API-Key: crptn_live_your_key_here"

Get an API Key

  1. Sign up at crypton.dev
  2. Go to your Dashboard
  3. Click Create New API Key
  4. Copy the key — it’s shown only once

Rate Limits

PlanRequests/minAPI KeysEndpoints
Free605All
Pro600UnlimitedAll + priority
Rate limit headers are included in every response:
  • x-ratelimit-after — seconds until quota resets
  • retry-after — same value

Key Management API

These endpoints require a Supabase JWT in the Authorization: Bearer header (used by the dashboard internally).

GET /v1/auth/me

Returns the authenticated user’s profile.
curl https://api.crypton.dev/v1/auth/me \
  -H "Authorization: Bearer YOUR_JWT"

GET /v1/auth/keys

List all API keys for the authenticated user. Full keys are never returned — only the prefix.

POST /v1/auth/keys

Create a new API key. The full key is returned only once in this response. Request body:
{ "name": "My App" }
Store your API key securely. It cannot be retrieved after creation — only revoked.

DELETE /v1/auth/keys/{id}

Revoke an API key. Revoked keys stop working within 30 seconds.
curl -X DELETE https://api.crypton.dev/v1/auth/keys/KEY_UUID \
  -H "Authorization: Bearer YOUR_JWT"