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 returns429 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-Usernames. 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 forcommittedbetween files to keep your client simple. Note that a service restart drops files stillqueuedorconverting(marking themfailedto upload again), whereas files already inprocessingresume 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 infiles 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
- Branch on
code(rate_limit_exceeded,agent_quota_exceeded,document_too_large,document_too_many_turns). - On
429, waitRetry-Afterseconds before retrying. - Watch
X-RateLimit-Remainingand pause untilX-RateLimit-Resetwhen it hits zero.