- Body parameter (POST/PATCH/DELETE):
"api_key": "as_live_..." - Query parameter (GET):
?api_key=as_live_... - Authorization header:
Authorization: Bearer as_live_... - X-API-Key header:
X-API-Key: as_live_...
API key format
Keys begin with one of two prefixes that make the key type obvious at a glance:
Both key types work against the same production database.
Creating and managing keys
Go to Dashboard -> API Keys at ai.autosnap.com:- Create key — generates a new key and shows it once. Copy immediately.
- Deactivate — disables a key. It can no longer be used for API requests.
Securing keys
- Store keys in environment variables or a secrets manager, not in code.
- Use server-side calls only. Never expose a live key in a browser, mobile app, or public client-side code.
Response on invalid or missing keys
A missing API key and an invalid API key return different status codes:
See Errors for the full error response format.
Next steps
Errors
Error response format and common error codes.