The Shootbin API uses token-based authentication. Every request must carry a valid Bearer token in theDocumentation Index
Fetch the complete documentation index at: https://docs.shootbin.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorization header. Tokens are tied to your user account and carry fine-grained scopes that control which operations they can perform.
Creating an API token
- Log in to your Shootbin account.
- Open Account Settings and navigate to the API Tokens section.
- Give the token a descriptive name (e.g.
ci-uploaderorintegration-prod). - Select the scopes the token needs (see Token scopes below).
- Click Create and copy the token immediately — it is only shown once.
Attaching the token to requests
Include the token in every request using theAuthorization header alongside Accept: application/json:
Accept: application/json header is required. Without it, the API may return an HTML redirect to the login page on authentication failures instead of a JSON error.
Token scopes
When you create a token, you assign it one or more scopes. The API enforces these scopes on every request:| Scope | Alias | What it allows |
|---|---|---|
create | post:create | Create projects, albums, and upload photos |
update | post:update | Approve/unapprove photos, add or delete annotations, upload revisions |
create scope will receive a 403 when it attempts to create a project or upload a photo. A token without update will receive a 403 when it tries to approve a photo or manage annotations.
You can issue multiple tokens with different scopes — for example a read-only reporting token and a separate upload token used in your editing pipeline.
Authentication errors
| Status | Cause | Resolution |
|---|---|---|
401 Unauthorized | Token is missing, malformed, or has been revoked | Check that the Authorization: Bearer header is present and the token is valid |
403 Forbidden | Token is valid but lacks the required scope, or the account is not on the Agency plan | Verify the token’s scopes in account settings, or upgrade your plan |
401 response:
403 response when scope is missing:
Revoking a token
You can revoke any token from the API Tokens section of your account settings. Revoked tokens return401 immediately on subsequent requests. Rotate tokens regularly and revoke any that are no longer needed.