Skip to main content
Default rate windows, concurrency caps, file and image size limits, and agent/key ceilings enforced by the Priors API. Every rate window is counted twice: once per subject and once per organization.

How rate limits work

Each operation has a sliding time window per subject and a larger window per organization. When a window is full, the next request returns 429 rate_limit_exceeded and performs no work. Capacity returns smoothly as earlier requests age out.
  • With a service-account key, the subject is whoever X-SP-End-User names. Send the header so each customer gets their own window. Omit it and your entire backend shares the service account’s one window.
  • With a personal key, the subject is you (shared with your own use of the Priors app).
details on a 429 response names which limit refused: user for the per-subject window, organization for your organization ceiling. Every response includes rate-limit headers so your client can pace requests before hitting 429:

Request rates (arrival limits)

Concurrency limits

Separate from arrival rates, Priors bounds how many expensive operations can run at the same time:

Documents (multipart observe)

Uploading many files

  • Into one agent: send files one after another, at most 1 every 10 seconds per subject. You can send the next file while the first is still running (it queues with polled status queued), or wait for committed between files to keep your client simple. Note that a service restart drops files still queued or converting (marking them failed to upload again), whereas files already in processing resume automatically.
  • Across multiple agents: run up to 3 concurrent uploads across your organization, respecting the 6-per-10-second organization arrival rate.

Observations and ingestion ordering

What happens when another request arrives while an agent is already learning:

Images on answering calls

When attaching images in files on observe-and-respond or respond:

Text and metadata fields

Agents and keys

Deleted agents do not count toward your quota. If your product uses one agent per customer, request a quota increase once you pass roughly 80 active customers so headroom is ready before new sign-ups hit 409 agent_quota_exceeded.

Handling a limit cleanly

  1. Branch on code (rate_limit_exceeded, agent_quota_exceeded, document_too_large, document_too_many_turns).
  2. On 429, wait Retry-After seconds before retrying.
  3. Watch X-RateLimit-Remaining and pause until X-RateLimit-Reset when it hits zero.