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
- Log in to your SecureCheap dashboard
- Go to Settings → API Keys
- Click Create API Key
- Give it a name and optional expiry date
- 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/meReturns 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:
| Scope | Access |
|---|---|
monitors:read | List and retrieve monitors |
monitors:write | Create, update, delete monitors |
alerts:read | List alert rules and incidents |
servers:read | List servers and metrics |
reports:read | Generate and download reports |
* | Full access (default) |