Shots API Authentication
Authentication, API key scopes, signed-in sessions, and rate limits for Shots editor utilities and /api/v1 workspace endpoints.
Shots has two API surfaces. Editor utility endpoints such as /api/screenshot require a signed-in session or a workspace API key with the artifact:read scope, and per-IP limits apply on top. Versioned /api/v1 tenant endpoints require a workspace API key with the declared scope or a signed-in user session with the matching permission.
Create and manage workspace API keys in Settings → Developer API (/settings/developers).
Editor Utility Endpoints
Utility endpoints accept either a signed-in session cookie (used by the browser editor) or a workspace API key with the artifact:read scope in the X-API-Key header.
- A request with neither credential returns
401with codeunauthorized. - There is no free plan: a workspace without an active paid subscription receives
403with codeworkspace_feature_not_entitled.
curl -X POST https://shots.playbookmedia.io/api/screenshot \
-H "X-API-Key: $SHOTS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com"}'Tenant API Credentials (/api/v1)
Calls to /api/v1/* operate strictly within one workspace. Machine callers send an organization key in X-API-Key; browser callers may use their signed-in session. The server verifies workspace membership, role permission, subtractive permission groups, API-key scope, plan feature entitlement, and metered quotas on every request.
curl https://shots.playbookmedia.io/api/v1/releases \
-H "X-API-Key: $SHOTS_API_KEY"Workspace API Key Scopes
Every API key carries an explicit set of scopes. Keys can never approve posts—human approval always requires a signed-in member session.
| Scope | Permitted actions |
|---|---|
| artifact:read | Read releases, campaigns, the review queue, the publishing schedule, and link previews; sign asset downloads; use the editor utilities. |
| asset:write | Complete and delete asset uploads. |
| draft:comment | Add, reply, edit your own comments, and resolve discussions on workspace drafts. Never approves or publishes. |
| draft:write | Create, update, and delete content drafts. Posting to your accounts takes its own scope. |
| onboarding:run | Read a product site into its profile and follow the run. |
| post:delete | Delete posts that Shots published from their platforms, with their thread parts, replies and reposts. Each delete is audited. |
| post:publish | Write and publish new posts to the accounts of your shared social sets, right away or at a time, with no review by a person unless the workspace requires approval. Cancelling them takes the scheduling scope too. |
| post:schedule | Schedule campaign posts and visuals a person approved, and cancel scheduled posts. It never approves anything. |
| queue:write | Change future posting-slot suggestions and time zones. Does not approve, schedule, or move existing posts. |
| release:create | Create releases and draft campaigns, and submit drafts for review. |
| source:write | Register and update release-intake sources. |
| upload:sign | Sign asset uploads. |
Rate Limits
| Endpoint | Limit | Notes |
|---|---|---|
POST /api/screenshot | 20 requests per minute per IP | Returns 429 with Retry-After and X-RateLimit-* headers |
POST /api/export | Unmetered per-IP | Bounded by request body size and server processing time |
GET /api/tweet/{id} | Unmetered per-IP | Bounded by the upstream syndication API |
GET /api/image-proxy | Unmetered per-IP | Restricted to an allowlist of Twitter media hosts |
/api/v1/* writes | Plan-based api:write:minute quota | Enforced per workspace in Redis |
| MCP server calls | 60 calls per minute per key | Same scope, plan, and quota checks as /api/v1 |
Handling 429 Responses
When a rate limit is exceeded, the response carries Retry-After (in seconds) alongside X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset. Wait for Retry-After before retrying:
{
"error": "Rate limit exceeded. Please try again later.",
"code": "rate_limited",
"message": "Rate limit exceeded. Please try again later.",
"hint": "Wait 42 seconds, then retry. This endpoint allows 20 requests per minute per IP address.",
"status": 429,
"documentation": "https://shots.playbookmedia.io/docs#errors",
"retryAfter": 42
}Credentialed Maintenance Endpoints
Internal cache-maintenance endpoints require a maintainer secret and are deliberately excluded from the public OpenAPI specification.