Every request to a CS2Cap market-data endpoint must include an API key in theDocumentation Index
Fetch the complete documentation index at: https://docs.cs2cap.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorization header. There are no cookies, sessions, or OAuth flows for API access — your key is the only credential the API requires. Keep it secret and never commit it to source control.
Get your API key
Create an account
Sign up at cs2cap.com using OAuth. No password is required.
Verify your email address
Add and verify an email address on your account. Email verification is required before any API key can be issued or reissued.
Generate your key
Go to cs2cap.com/account/api-keys and generate your initial API key. Copy it immediately — it is only shown once.
Send the Authorization header
Pass your API key as a Bearer token in theAuthorization header on every request.
Code examples
API key rules
- One active key per account. You cannot have multiple active keys on a single account unless you use sub-keys (available on Quant).
- Email verification is required. You must have a verified email address on your account before the API will issue or reissue a key.
- Keys are sensitive. Treat your API key like a password. Do not share it publicly or include it in client-side code.
Reissuing your key
If your key is compromised or you want to rotate it, callPOST /account/key/reissue. This endpoint:
- Immediately revokes your current key
- Revokes all child keys issued from your account
- Returns a new key
Authentication error codes
When a request fails due to an authentication problem, the API returns a401 or 403 response with a machine-readable code field.
| Code | Status | Meaning |
|---|---|---|
AUTH_INVALID_API_KEY | 401 | The key is missing, malformed, or does not exist. |
AUTH_API_KEY_REVOKED | 401 | The key was revoked — either manually or by a reissue. |
AUTH_ACCOUNT_DISABLED | 403 | The account associated with this key has been disabled. |