🚀 SecureCheap is live — Start free →
API Reference
Authentication

Authentication

SecureCheap uses API key authentication. Every request must include your API key in the Authorization header as a Bearer token.

Getting your API key

  1. Log in to your SecureCheap dashboard
  2. Go to Settings → API Keys
  3. Click Create API Key
  4. Give it a name and optional expiry date
  5. Copy the key — it's only shown once
⚠️

Store your API key securely. It provides full access to your account. Never commit it to version control or expose it in client-side code.

Making an authenticated request

curl -X GET https://api.securecheap.com/v1/monitors \
  -H "Authorization: Bearer sc_live_xxxxxxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json"

Verifying your key

GET /v1/auth/me

Returns details about the authenticated account:

{
  "data": {
    "id": "usr_01HXZ3M...",
    "email": "[email protected]",
    "plan": "pro",
    "workspace": {
      "id": "ws_01HXZ3M...",
      "name": "Acme Corp"
    },
    "api_key": {
      "id": "key_01HXZ3M...",
      "name": "Production",
      "last_used_at": "2025-01-15T10:28:00Z",
      "expires_at": null
    }
  }
}

Scopes (Enterprise)

Enterprise accounts can create scoped API keys with limited permissions:

ScopeAccess
monitors:readList and retrieve monitors
monitors:writeCreate, update, delete monitors
alerts:readList alert rules and incidents
servers:readList servers and metrics
reports:readGenerate and download reports
*Full access (default)