API Key
All requests require a 9Pic API key. Include it in theX-API-Key header.
Creating an API Key
You can create API keys directly from the 9Pic dashboard.Create a new token
Click Create Token. A confirmation dialog will appear — click Create Token again to confirm.
Each organisation can have up to 10 API tokens. You can deactivate or delete tokens at any time from the Developer Zone page.
Host Validation
Requests are validated against approved hostnames. If your host is not approved, you will receive a403 response.
Ownership Validation
Some endpoints require that theorg_id in the URL matches the organisation the token belongs to, and that the event_id belongs to that organisation. Requests that do not match ownership will return 403.
Managing Tokens
From the Developer Zone page you can:- Activate / Deactivate a token using the toggle switch. Deactivated tokens are immediately rejected by the API.
- Delete a token permanently. Any service using that token will immediately lose access.
Error Responses
| Status | Meaning |
|---|---|
401 | API key is missing from the request |
403 | API key is invalid, inactive, token does not belong to the organisation, event does not belong to the organisation, or host is not approved |