Response format
All errors return a JSON object with anerror field:
HTTP status codes
| Code | Description |
|---|---|
200 | Success |
204 | Success (no content, used for OPTIONS preflight) |
400 | Bad request - invalid or missing parameters |
401 | Unauthorized - authentication failed |
404 | Not found - resource doesn’t exist |
500 | Server error |
Authentication errors (401)
| Error | Cause |
|---|---|
Missing API key | No Authorization header or missing Bearer prefix |
Invalid API key format | Key doesn’t match expected format (ak_ + 48 hex characters) |
Invalid API key | Key not found or doesn’t match |
Store is deactivated | The store associated with this key is inactive |
API key validation failed | Internal error during validation |

