OpheliaDocs
Search docs⌘K
DashboardCreate an account
v3 · Reference

Rate limits

How many calls your organization may make to each v3 route in 5 minutes, how they are counted, and what to do when you hit a limit.

The limits

Limits are per organization, not per key, over a fixed 5-minute window. Most budgets are shared: every route in one row draws on the same count. Calls to the practice site count the same as any other.

Routes that share one budgetCalls / 5 min
POST /v3/search (its own budget)
25
POST /v3/availability (its own budget)
60
POST /v3/bookings and POST /v3/sessions
10
POST /v3/bookings/{attempt_id}/continue and POST /v3/sessions/{session_id}/continue
20
GET /v3/bookings/{booking_id}, POST /v3/bookings/{attempt_id}/abandon, POST /v3/bookings/{booking_id}/cancel, POST /v3/bookings/{booking_id}/modify, GET /v3/sessions, GET /v3/sessions/{session_id} and DELETE /v3/sessions/{session_id}
300
GET /v3/, GET /v3/verticals and GET /v3/corrections
300

Every route with its scope: Endpoints.

How calls are counted

A call is counted once its key is checked. A 401 and a 403 wrong_key_environment are not counted. A call refused after that for its scope or its body (403 insufficient_scope, a 400 on a field) still counts.

A search, availability read or booking that v3 answered without starting a drive is given back: its answer has no drive_id. That includes a 400 invalid_input on the ask (party_size, datetime, …) and a request with no site (409 no_site). Calls to the practice site start a drive (they carry a drive_id), so they count.

Responses carry RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset (seconds until the window resets).

Over the limit

The call is refused with 429 and a Retry-After header in seconds. Nothing was done. Wait that long, then call again. The code is in error; there is no error_code.

json
HTTP/1.1 429 Too Many Requests
Retry-After: 231
 
{
"error": "rate_limited",
"limit": 10,
"message": "rate limit exceeded",
"retry_after_seconds": 231
}

Other waits

Three other answers also ask you to wait. They come from the site or from Ophelia, not from your limit.

error_codeHTTPMeans
site_paced
429
The site is being driven by another request, or was read moments ago. Ophelia keeps a gap between drives on one site. The body is the v3 envelope, with error_code. Come back later.
drive_capacity
503
Ophelia is running as many drives as it can. Retry-After: 60.
a block
503
A site's bot wall or block stopped the drive (failure_class: "retryable_elsewhere"). Nothing was committed. Retry-After: 30.

All error codes: Statuses and error codes.