OpheliaDocs
Search docs⌘K
DashboardCreate an account
v3 · Guide

See what's open

Read what one entity has open for your date and party: its times, room rates or tickets. Each one is an offer, with an id you can book.

What it does

POST /v3/availability opens one entity's page on its site, sets your date and party, and reads the bookable options it shows. Each option is an offer (off_…). It presses nothing final and books nothing.

A product has no offers. Availability on a product page answers search_error. To buy one, book it straight from search: see Order from a store.

The request

FieldWhat to send
entity_id
The entity, from search.
url
Or the entity's booking_url from search, as an absolute http or https URL. When you send both, entity_id wins.
datetime
The day and time you want, in RFC 3339, written as the place's own local time with its own offset (2026-11-14T19:00:00-05:00 is 7 PM in New York). With no location, a read named by entity_id or url uses the clock time you wrote, as written. See Find something.
party_size
How many people.
end_date
The other end of a span, such as a hotel check-out.

Every other search field (destination, slots and the rest) is accepted with the same meaning. Find something describes them.

A table for two
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
}'
A room for two nights
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_9ff46c05c67e6d7c91cf9849",
"datetime": "2026-11-14T19:00:00-05:00",
"end_date": "2026-11-16",
"party_size": 2
}'

The response

A finished read is 200 with status: "succeeded", the entity in entities[], and offers[]. The table read returned seven offers; two are shown.

json
{
"status": "succeeded",
"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"
}

A room offer's label is the price printed on its button. The two-night read returned three:

json
"offers": [
{ "offer_id": "off_6733bff0b9e58771b696c695", "label": "$258.00", "kind": "replay" },
{ "offer_id": "off_1a9f198cb96b9483c242bde1", "label": "$318.00", "kind": "replay" },
{ "offer_id": "off_c86f7516103fdb6024a6bc52", "label": "$378.00", "kind": "replay" }
]
Every offer has
FieldMeans
offer_id
The id to send to POST /v3/bookings, with the offer's own time as datetime.
entity_id
The entity it belongs to.
label
The text of the page's control: a time ("7:00 PM", in the place's own local time), or the printed price of a room or ticket tier ("$258.00").
kind
replay: what the page showed. Nothing is held for you.
expires_at
When the offer_id stops working, at most 15 minutes after the read. After it, read availability again.
Only when the page said
FieldMeans
start
When the offer starts. When the page did not say, this is the time the offers were read for, so in the example every offer carries 7:00 PM. Take the offer's time from label.
end
When a stay or a rental ends.
price
The price the page stated for the offer.
unit
What the offer is: a table, a room, an item.
terms
Its terms as printed, such as a cancellation rule.
party
How many people the page said the offer is for.
card_required
true: the page asks for a card. false: it said no card. Absent: the page did not say.
What the offers were read for

requested is the ask the offers were read under: the date, end date, time and party size as the drive set them on the page. It is absent when the read did not state it, so do not rely on it. An offer's own party is often absent too.

slot_source says where the offers were read. Some values mean the day itself could not be checked. Know what an answer means lists them.

What can go wrong

The page needs a date

Some pages show nothing until a date is set. The read then answers 422 with status: "needs_input", and missing[] names what to add. Send the read again with a datetime.

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_9ff46c05c67e6d7c91cf9849" }'
json
{
"status": "needs_input",
"missing": [
{
"role": "date",
"prompt": "the caller asked for no date"
}
],
"error": "this page shows nothing until date is set"
}
Nothing bookable could be read

A read that reached the page and could read no offers answers 200 with status: "succeeded", no offers and error_code: "no_offers_found". It means Ophelia could not see the offers. It does not mean the place is full. Try another date, or book the entity directly.

Error codes
error_codeHTTPWhat it means and what to do
search_error
409
The drive could not read any offers on the page. A fully booked place and a product page both answer this. Try another date, or book a product directly.
invalid_input
400
The request named no entity_id or url, or a field breaks a rule. error says which.
unknown_entity
404
No entity has that id in your organization. Ids come from your own searches.
wrong_id_namespace
400
The id is not a v3 entity id (for example a v1 ven_ id). Search on v3 for one.
unaddressable_entity
409
The entity has no page of its own (addressable: false). Pick another result.
commitment_refused
409
The read carried max_commitment: "commit" on a key with the v3:act scope. A key without v3:act, such as every key the dashboard makes, gets 403 insufficient_scope. Drop authorize.

The entity is looked up before the rest of the ask is checked, so an unknown id answers 404 even when another field is wrong. Two of the codes look like this:

json
{
"error": "name the thing to read: either `entity_id` (minted by POST /v3/search) or `url` (the `booking_url` that search returned beside it)",
"error_code": "invalid_input"
}
json
{
"status": "failed",
"failure_class": "terminal",
"error_code": "unknown_entity",
"error": "no entity with that id — ids are minted by POST /v3/search and are scoped to the organization that minted them"
}
Blocks by the site, site_paced and your own limit of 60 reads every 5 minutes are covered in Handle errors and Rate limits.

Next: Book or buy.