Search hotels from one sentence, with follow-ups
Send the traveller's request in one sentence. The answer comes within about 20 seconds with 200: the hotels, or a question to answer in the same conversation. When the search takes longer, the answer is 202 with the early reply and a Location to read until the task ends. Continue the conversation with its context_id.
Request
- Base URLhttps://api.gojinko.com
- URLhttps://api.gojinko.com/v1/hotel_ai_search
- Auth
- API key in header X-API-Key
- or HTTP bearer
Headers
Makes a retried message safe: a retry with the same key answers the first message again instead of sending a second one. Keys are scoped to the caller, not to the conversation, and the retried body is not compared: a different message needs a new key. 1–200 characters.
wait=N (RFC 7240): answer after at most N seconds, never more than 20, with 202 and the early reply if the task has not ended by then. wait=0 answers at once. Without it the wait is 20 seconds. The wait applied is returned in Preference-Applied.
Request body
Example request
{
"text": "A hotel in Paris next weekend for 2 adults with breakfast included",
"context_id": "ctx_example",
"task_id": "atk_example",
"currency": "EUR",
"guest_nationality": "FR",
"timezone": "Europe/Paris"
}Response
The task ended this turn; or, with Accept: text/event-stream, the turn as it happens.
Changes
No recorded changes to this operation across all 1 revision of this API.