Skip to main content
Deck enforces two types of limits: rate limits on API requests and concurrency limits on sessions running in agent sandboxes.

Limits

The rate limit is 200 requests per 10 seconds per organization. Limits are applied across all API keys in your organization. If you have multiple services making requests with different keys, they share the same quota.

Rate limited responses

When a request is rate limited, Deck returns:

Handling rate limits

Implement retries with exponential backoff when you receive a 429 response.

Session concurrency

Each task that Deck runs executes in an agent sandbox tied to a session. The number of sessions your organization can run concurrently depends on your plan. The default limit on the Enterprise plan is 25 concurrent sessions. This limit applies across all sessions in your organization regardless of connector or credential. When you submit a task that would exceed your concurrency limit, Deck returns a 429 status code:
Retry with backoff until a running session reaches a terminal state and a slot becomes available.

Best practices

  • Use events instead of polling. Register an event destination and let Deck push status updates to you rather than polling GET endpoints in a loop.
  • Paginate list requests. Use limit and cursor to fetch results in pages rather than requesting large datasets in a single call.
  • Stagger task submissions. If you have many tasks to run, queue them and submit the next one after the previous completes. Use events to know when a session finishes rather than polling.