Find the next bookable slot
GET /v1/availability/next
Searches in thirty day windows up to a ninety day horizon, stopping at the first window that contains a slot.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Identifier of a service, prefixed with svc_.
Example
svc_0198f0c2a1b47e2e9a1c0f4d5e6a7b8cISO 8601 instant with an explicit offset. Any offset is accepted on input; every instant is returned in UTC.
Example
2026-09-08T07:00:00ZIANA time zone name.
Example
Europe/RomeHeader Parameters
Section titled “Header Parameters ”The dated API version to speak. Defaults to 2026-09-01; an unsupported value is a 400.
Example
2026-09-01Which Bookrail tool the caller is, recorded as actor.via on every event the request writes. A closed list: an unknown value is a 400. Absent means the request declared no tool.
Responses
Section titled “ Responses ”Success.
object
Identifier of a service, prefixed with svc_.
Example
svc_0198f0c2a1b47e2e9a1c0f4d5e6a7b8cISO 8601 instant in UTC.
Example
2026-09-08T07:00:00Zobject
ISO 8601 instant in UTC.
Example
2026-09-08T07:00:00ZISO 8601 instant in UTC.
Example
2026-09-08T07:00:00Znull for a ranges entry.
Amount in the minor unit of the currency (cents for EUR).
object
Which service.pricing_rules entry produced price. null when the flat service price applied. For a ranges entry it is the rule of the shortest booking starting at start.
object
Position in service.pricing_rules.
The rule label, when it has one.
object
object
Identifier of a resource, prefixed with res_.
Example
res_0198f0c2a1b47e2e9a1c0f4d5e6a7b8cranges only: shortest bookable length inside the interval.
ranges only: longest bookable length; may exceed end - start.
ISO 8601 instant in UTC.
Example
2026-09-08T07:00:00ZHeaders
Section titled “Headers ”Identifier of this request. Quote it to support.
The API version this response was produced with.
Error codes: invalid_range, parameter_invalid, parameter_missing, range_too_large, service_without_duration, timezone_missing, unsupported_api_version.
object
object
Machine readable code. The set is per operation; each response below lists the ones it can produce.
The field or header the error is about, when there is one.
Headers
Section titled “Headers ”Identifier of this request. Quote it to support.
The API version this response was produced with.
Error codes: invalid_api_key, invalid_authorization_header, missing_api_key, revoked_api_key.
object
object
Machine readable code. The set is per operation; each response below lists the ones it can produce.
The field or header the error is about, when there is one.
Headers
Section titled “Headers ”Identifier of this request. Quote it to support.
The API version this response was produced with.
Error codes: resource_missing.
object
object
Machine readable code. The set is per operation; each response below lists the ones it can produce.
The field or header the error is about, when there is one.
Headers
Section titled “Headers ”Identifier of this request. Quote it to support.
The API version this response was produced with.
Error codes: internal_error.
object
object
Machine readable code. The set is per operation; each response below lists the ones it can produce.
The field or header the error is about, when there is one.
Headers
Section titled “Headers ”Identifier of this request. Quote it to support.
The API version this response was produced with.