OpheliaDocs
Search docs⌘K
DashboardCreate an account
v3 · Endpoints

POST /v3/availability

Read what is open for one entity: its times, rooms or tickets. Each comes back as an offer with an offer_id.

POST/v3/availability
Scope: v3:search or v3:bookLimit: 60 per 5 minutes, its own budget

What an offer means and how to use it: See what's open.

Request

FieldTypeDefaultRule
entity_id
string
none
The ent_ id from POST /v3/search. Send it or url. It wins when both are sent.
url
string
none
The booking_url search returned beside the entity. Neither field → 400 invalid_input.
vertical
string
none
Which kind of ask: a drive_profile value from GET /v3/verticals (dining, hotels, shopping, …). A broad category that covers several (travel) answers 400 ambiguous_vertical naming the choices.
term
string
none
What to look for.
location
string
none
Where.
datetime
string
none
RFC 3339 with a zone. Write the place's own local time with its own offset (2026-11-14T19:00:00-05:00 is 7 PM in New York). With a location (or, with none, the customer's own city from customer.location or customer.address; assumed then says so), Ophelia converts it to the place's clock; a request by entity_id or url with no location is driven at the clock time you wrote. A time with no zone (2026-11-14T19:00:00 or 2026-11-14T19:00) is read as the place's own clock. Anything else → 400 invalid_input.
party_size
integer
none
0 to 64. Negative or over 64 → 400 invalid_input.
end_date
string
none
The other end of a span (a stay's check-out). end_datetime is accepted too; end_date wins when both are sent.
destination
string
none
The other end of a route. Also accepted: end_destination {city, state, country} and end_destination_address {street, line2, city, state, zip_code, country}.
slots
object
none
What the fields above cannot say, as {"role": {"type", "value"}}. Never put card values here.
actor
object
none
Same shape as slots.
authorize.max_commitment
string
read
read or begin. commit is refused on a read. Leave authorize out.

Response

FieldWhat it is
status
succeeded, needs_input or failed.
entities[]
The one entity that was read.
offers[]
What is open. Each is an offer.
requested
The ask the offers were read under (date, end date, time, party size). It may be absent: do not rely on it.
slot_source
Where the offers were read from. dom or modal_dom means the day was not verified.
served_by
How the answer was read.
drive_id
The id of this drive (drv_).
missing[]
With needs_input: what the request must add ({"role": "date", "prompt": "…"}).
assumed, slot_mismatch
What Ophelia supplied, and what the site did not take. See Know what an answer means.
error_code
With failed, plus error and failure_class. Also on succeeded with no offers: no_offers_found.

Statuses and error codes

HTTPStatus / error codeWhen
200
succeeded
The offers were read.
200
succeeded + no_offers_found
The page was reached and no offers could be read off it. This does not say the place is full.
422
needs_input
The page shows nothing until a value is set (a date). missing[] names it.
400
invalid_input
No entity_id or url, or a field fails its rule.
400
wrong_id_namespace
The id is not an ent_ id (a v1 ven_ id, for example).
404
unknown_entity
No entity with that id in your organization.
409
unaddressable_entity
The entity cannot be opened on its own.
409
search_error
The read could not be completed: a fully booked place, for example. A product page has no offers and answers this too: book a product directly.
409
no_availability, ask_not_applied
The site has nothing open for the ask, or its controls would not take the values you sent.
409
commitment_refused
The read carried max_commitment: "commit" on a key with v3:act. Without v3:act it is 403 insufficient_scope.
403
merchant_not_enabled_for_key
The key is not enabled for this site. Nothing was driven.
429
site_paced
The site is busy with another drive or was read moments ago. Come back later.
503
a block, drive_capacity
A site's bot wall or block stopped the drive, or Ophelia is running as many drives as it can. Honour Retry-After.

Every code: Statuses and error codes.

Example

curl
curl -X POST https://api.opheliaos.com/v3/availability \
-H "Authorization: Bearer YOUR_TEST_KEY" \
-H "Content-Type: application/json" \
-d '{
"entity_id": "ent_bc78e91578f61f35555280df",
"datetime": "2026-11-14T19:00:00-05:00",
"party_size": 2
}'

Response 200, with the entity shortened and two of the seven offers shown:

json
{
"status": "succeeded",
"path": "live",
"entities": [
{
"entity_id": "ent_bc78e91578f61f35555280df",
"name": "Practice Bistro",
"host": "opheliapractice.com",
"vertical": "dining",
"addressable": true,
"booking_url": "https://opheliapractice.com/restaurant/practice-bistro"
}
],
"offers": [
{
"offer_id": "off_ea27bf414d62895bf8c9bec4",
"entity_id": "ent_bc78e91578f61f35555280df",
"label": "7:00 PM",
"kind": "replay",
"expires_at": "2026-11-04T01:20:13Z",
"start": "2026-11-14T19:00:00-05:00"
},
{
"offer_id": "off_b51de0f5d7da0e7031deb448",
"entity_id": "ent_bc78e91578f61f35555280df",
"label": "7:30 PM",
"kind": "replay",
"expires_at": "2026-11-04T01:20:13Z",
"start": "2026-11-14T19:00:00-05:00"
}
],
"served_by": "form",
"slot_source": "availability_live",
"drive_id": "drv_88cf1630c33a4d67cdcab42c"
}