Get Availability
GET
/v1/availability
agent-data call e79d7149-781a-482c-b101-0d1e15d29c9c check-availability --platform <platform> [--platform_id <platform_id>] [--query <query>] [--location <location>] --date <date> --party_size <party_size> [--time_start <time_start>] [--time_end <time_end>] [--include_raw <include_raw>]curl "https://e2lceefo2d.execute-api.us-east-2.amazonaws.com/prod/v1/availability" -H "Authorization: Bearer <YOUR_API_KEY>"Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” platform
required
Platform
Required. Set this to resy or opentable. Do not omit it.
string
Required. Set this to resy or opentable. Do not omit it.
platform_id
query
location
date
required
Date
Required. Provide the target dining date in YYYY-MM-DD format.
string format: date
Required. Provide the target dining date in YYYY-MM-DD format.
party_size
required
Party Size
Required. Provide the total number of diners as an integer from 1 to 20.
integer
Required. Provide the total number of diners as an integer from 1 to 20.
time_start
time_end
include_raw
Include Raw
Optional. Set this to true only when you need provider raw payload fragments for debugging. Leave it false for normal agent use.
boolean
Optional. Set this to true only when you need provider raw payload fragments for debugging. Leave it false for normal agent use.
Responses
Section titled “ Responses ”Successful Response
Media type application/json
AvailabilityResponse
object
date
required
Date
string format: date
slots
required
Slots
Array<object>
AvailabilitySlotobject
date
required
Date
string format: date
time
required
Time
string format: time
platform
required
Platform
string
slot_type
required
SlotType
string
party_size
required
Party Size
integer
booking_url
required
Booking Url
string
restaurant_id
required
Restaurant Id
string
deposit_required
required
Deposit Required
boolean
platform_restaurant_id
required
Platform Restaurant Id
string
errors
Any of:
Array<object>
PlatformError null
platform
required
Platform
string
party_size
required
Party Size
integer
queried_at
required
Queried At
string format: date-time
restaurant_name
required
Restaurant Name
string
Example
{ "slots": [ { "platform": "opentable", "slot_type": "standard" } ], "errors": [ { "platform": "opentable", "error_type": "rate_limited" } ], "platform": "opentable"}Validation Error
Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
ctx
Context
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
Example generated
{ "detail": [ { "ctx": {}, "loc": [ "example" ], "msg": "example", "type": "example", "input": "example" } ]}