OpheliaDocs
Search docs⌘K
DashboardCreate an account
v3 · Guide

Know what an answer means

Every answer says what was found and how sure it is. This page explains the fields that tell you whether the site took your ask, how the answer was read, and when to check before you book.

What this page covers

Branch on status first (Statuses and error codes). A succeeded search or availability read can still carry an error_code: no_offers_found when no offers could be read, or, on a search sent at begin, the code of the walk to the form that failed. Then read the fields below. Most appear only when they have something to say, so a missing field is normal. The entity and offer fields themselves are on Find something and See what's open.

An answer

A hotel's availability 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
}'
json
{
"status": "succeeded",
"path": "live",
"entities": [
{ "entity_id": "ent_9ff46c05c67e6d7c91cf9849", "name": "Practice Inn", "host": "opheliapractice.com" }
],
"offers": [
{
"offer_id": "off_6733bff0b9e58771b696c695",
"entity_id": "ent_9ff46c05c67e6d7c91cf9849",
"label": "$258.00",
"kind": "replay",
"expires_at": "2026-11-04T01:21:08Z",
"start": "2026-11-14T19:00:00-05:00"
}
],
"served_by": "form",
"slot_source": "availability_live",
"drive_id": "drv_c85706dc2ae429d389013d97"
}

This one has no slot_mismatch, no assumed and a slot_source that carries no warning, so the site took the ask as sent. The offer's start is the time you asked, because the page stated none of its own. Read what the offer is from label.

What you asked, what you got

FieldWhat it tells you
assumed
Values Ophelia supplied because your request named none, by slot: for example an hour on a dining search, or a check-out on a stay. If one matters, send it next time.
slot_mismatch
What you asked that the site's own control did not take. For each slot: what you asked, what the control held, and why. Only slots seen to be wrong appear. The results beside it are real; they answer a slightly different question. Show the difference to the person.
location_mismatch
The same for the place, with the address of the results page. Results for the wrong place answer the wrong question.
location_checked
true: the place was checked (a mismatch, if any, is in location_mismatch). false: it could not be checked. Absent: you asked for no place.
requested
The ask the offers were read under: date, end date, time and party size as Ophelia set them on the site. It is absent when the read did not state it, so do not rely on it.
diagnosis
Why the site would not let a form through, in the site's own words: cause (a named kind, such as missing_required_input), detail (the sentence the page showed) and up to four alerts. error says what Ophelia did; diagnosis says what the site refused, which tells you what to fix.

How it was read

FieldWhat it tells you
slot_source
Which read produced the offers. modal_dom or dom means the offers were read off the page as it stood, because the site's dated availability did not answer. The day is not confirmed, and reason says so. Other values (availability_live, detail_live, session) name the read and carry no warning. These are the API's own strings: session here does not mean a connected account or a pause.
served_by
How the answer was read. form: Ophelia worked the site's pages as a person would. link: one reviewed address on the site. recipe: steps for this site that a person at Ophelia reviewed. wire: the site's own data call, with no page worked. learned: a data call learned from earlier drives on the site that agreed with each other, not reviewed by a person.
recipe
The name of the reviewed steps that answered, when they did.
recipe_error
The reviewed steps failed and Ophelia worked the site live instead. The answer beside it is still good. You need not act on it.
path
live (worked live), recipe (reviewed steps), recipe-search (a search answered by reviewed steps) or unsupported (nothing could be worked, such as a request with no site).
candidate_count
How many results the search reached.
drive_id
The drive that made this answer (drv_). Quote it when you ask us about an answer.
duration_ms
How long the drive took.

The offer and booking reports

A booking (and a search sent with max_commitment: "begin") carries offer and booking: Ophelia's report of what it saw and pressed. Here, a booking at begin that reached the details form and filled it:

json
{
"status": "succeeded",
"booking_id": "bk_d9a8ab05d47ca72b5c68615e",
"offer": {
"action": "Find a table",
"bookable": true,
"commitment": "begin",
"examples": ["5:00 PM", "5:30 PM", "6:00 PM", "7:00 PM"],
"options": 7,
"why": "offer_with_variants"
},
"booking": {
"action": "Find a table",
"form": {
"fields": [
{ "key": "name", "tier": "pii" },
{ "key": "email", "tier": "pii" },
{ "key": "phone", "tier": "pii" }
],
"result": { "complete": true, "filled": ["name", "email", "phone"], "missing": [], "needs": [] }
},
"form_reached": true,
"pressed": true,
"screen": "identity",
"url": "https://opheliapractice.com/restaurant/practice-bistro",
"why": "the page asks for name, email, phone"
},
"slot_source": "detail_live",
"drive_id": "drv_baa47f2933cb2171ecea56d4"
}
Show these reports or log them. Do not branch on their inner keys: they change from site to site. An order's quote, booking.purchase.quote, is read as described on Order from a store.
Branch on one key of booking: ALERT_BOOKING_CREATED. It appears when a begin drive landed on a confirmation anyway. A booking may have been made that you did not authorize. Tell the person and check with the site.

Times

Ophelia converts the datetime you send to the place's own local clock only when the request carries a location (or, with none, the city of the customer's address; assumed then says so). A request named by entity_id or url with no location is driven with the clock time you wrote, as written. So always write the place's own local time with its own offset: 2026-11-14T19:00:00-05:00 is 7 PM in New York. Times on offers are the place's own local labels, as the page shows them ("7:00 PM"). How to send a time is on Find something.

When to stop and check

You seeDo this
slot_source modal_dom or dom
The offers may be for another day. Confirm the day with the person, or read again, before you book.
slot_mismatch
Show the person what changed (a check-out, a party size) before they choose.
location_mismatch
Do not use the results for that place. Fix the location and search again.
location_checked: false
Ophelia could not check the place. Check the address on each entity.
assumed
Check each value is one the person would accept. If not, send it.
diagnosis
Read detail. It usually names the field the site wanted.
Check before commit. v3 cannot cancel a booking. A booking made on a day nobody confirmed stays booked.

Next: Handle errors.