The Deck API is a REST API that accepts JSON request bodies and returns JSON responses. All endpoints require authentication via a Bearer token.Documentation Index
Fetch the complete documentation index at: https://docs.deck.co/llms.txt
Use this file to discover all available pages before exploring further.
Base URL
All requests are made against the Deck API at:Authentication
Every request requires an API key passed as a Bearer token in theAuthorization header. Keys are available in your Console.
Verify your key
Call the test endpoint to confirm your key is valid.Request format
All requests useContent-Type: application/json. Pass request bodies as JSON.
Response format
Every resource response includes a standard set of fields:| Field | Description |
|---|---|
id | Unique identifier, prefixed by resource type (agt_, src_, cred_, sess_, task_, trun_, etc.) |
object | Resource type as a string. Useful for parsing polymorphic responses. |
created_at | ISO 8601 timestamp |
updated_at | ISO 8601 timestamp |
request_id | Unique identifier for the API request. Include this when contacting support. |
Request IDs
Every response includes arequest_id. When something goes wrong, include this value in support requests so Deck can trace exactly what happened.
Next steps
Pagination
Cursor-based pagination for list endpoints.
Idempotency
Safely retry requests without creating duplicates.
Error handling
Error structure, types, and codes.
Rate limits
Request limits and retry strategies.