# Schedule one message for one stay at a date and time

`POST /lodging/scheduled-messages` · Rivier · bookings

Schedule one message for one stay at a date and time; it can be changed or cancelled until it is sent.

- Scope: bookings:write
- Sdk: bookings.scheduledMessage.create
- Cli: bookings scheduled message create

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "bookingId": {
      "type": "string",
      "format": "uuid"
    },
    "subject": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "body": {
      "type": "string",
      "minLength": 1,
      "maxLength": 6000
    },
    "sendAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "bookingId",
    "subject",
    "body",
    "sendAt"
  ],
  "additionalProperties": false
}
```

## Responses

- `201`: 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/lodging/scheduled-messages' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "bookingId": "string",
  "subject": "string",
  "body": "string",
  "sendAt": "2026-01-01T00:00:00Z"
}'
```
