All API requests require authentication using a Bearer token in theDocumentation Index
Fetch the complete documentation index at: https://docs.snapopa.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorization header.
Getting Your API Key
- Sign in to your Snapopa Dashboard
- Navigate to API Keys
- Click Create New Key
- Copy and securely store your API key
Using Your API Key
Include the API key in theAuthorization header of every request:
API Key Format
API keys follow this format:| Prefix | Environment | Example |
|---|---|---|
sk_live_ | Production | sk_live_abc123def456... |
sk_test_ | Testing | sk_test_xyz789... |
Security Best Practices
- Never expose keys in client-side code - API calls should be made from your backend
- Use environment variables - Store keys in
.envfiles, not in code - Rotate keys regularly - Generate new keys periodically
- Set key expiration - Use expiring keys when possible
- Monitor usage - Check your dashboard for unusual activity
Environment Variables
Error Responses
| Status | Error | Description |
|---|---|---|
| 401 | Unauthorized | Missing or invalid API key |
| 401 | API key expired | The API key has expired |
| 403 | Forbidden | Key doesn’t have required permissions |