Skip to content
ajar.Get started

Message send

airbnb.message.send

View connector

Send a text message once to an enabled guest thread

POST /v1/operations/airbnb.message.send

Headers

Authorization: Bearer YOUR_AJAR_API_KEY
x-skyscanner-token: YOUR_SKYSCANNER_TOKEN
x-idempotency-key: YOUR_UNIQUE_ATTEMPT_KEY
Content-Type: application/json

x-idempotency-key identifies one intended action. Generate a unique value, such as crypto.randomUUID(), before sending it. Use 1–128 letters, numbers, hyphens, underscores or periods. A duplicate attempt is rejected; it does not return a cached success. If a request times out, check the provider’s state before starting a new attempt with a new key. See the idempotency guide.

Inputs

ParameterExample typeExample value
thread_idstring"synthetic-thread"
textstring"Hello, what time is check-in?"

Example input

{
  "thread_id": "synthetic-thread",
  "text": "Hello, what time is check-in?"
}
Open JSON schema

Input schema

{
  "$id": "https://useajar.com/schemas/airbnb/message-send.input.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "text": {
      "maxLength": 4000,
      "minLength": 1,
      "type": "string"
    },
    "thread_id": {
      "maxLength": 1024,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "thread_id",
    "text"
  ],
  "type": "object"
}