# Bookings platform availability

`POST /bookings/availability/batch` · Rivier · bookings

Availability of up to 50 services across the platform's businesses in one call, with the platform's key and no business header: each item names a connection (business) and a service, and answers its slots or its own error. Needs no customer; cache the answer for seconds, not longer.

- Scope: bookings:write
- Graphql: Mutation.bookingsPlatformAvailability
- Sdk: bookings.platform.availability
- Cli: bookings platform availability

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "business": {
            "type": "string",
            "format": "uuid"
          },
          "serviceId": {
            "type": "string",
            "format": "uuid"
          },
          "durationMinutes": {
            "type": "integer",
            "minimum": 5,
            "maximum": 1440
          }
        },
        "required": [
          "business",
          "serviceId"
        ],
        "additionalProperties": false
      },
      "minItems": 1,
      "maxItems": 50
    },
    "from": {
      "type": "string",
      "format": "date-time"
    },
    "to": {
      "type": "string",
      "format": "date-time"
    },
    "partySize": {
      "type": "integer",
      "minimum": 1,
      "maximum": 10000,
      "default": 1
    }
  },
  "required": [
    "items",
    "from",
    "to"
  ],
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/bookings/availability/batch' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "items": [
    {
      "business": "string",
      "serviceId": "string"
    }
  ],
  "from": "2026-01-01T00:00:00Z",
  "to": "2026-01-01T00:00:00Z"
}'
```
