Documentation Index
Fetch the complete documentation index at: https://docs.costhawk.ai/llms.txt
Use this file to discover all available pages before exploring further.
Access Tokens
All API requests must include an access token in theAuthorization header using the Bearer scheme.
Getting a Token
- Log into your CostHawk dashboard
- Go to Settings → Developer
- Click Create Token
- Copy the token (displayed only once)
Token Format
CostHawk tokens are prefixed withch_sk_ followed by a unique identifier:
Error Responses
401 Unauthorized
No token provided or token is invalid:403 Forbidden
Token doesn’t have permission for this resource:Security Best Practices
- Store tokens in environment variables
- Use different tokens for dev/staging/production
- Rotate tokens periodically
- Revoke unused tokens immediately
