Skip to content
ajar.Get started

Complete phone sign-in

airbnb.auth.sign_in_complete

View connector

Complete phone sign-in. Existing UK accounts only; SMS and caller-completed CAPTCHA continuations are supported by the configured account runtime; fresh live validation remains unverified. Native credentials remain caller-held.

POST /v1/connections/airbnb/sign-in/complete

Headers

Authorization: Bearer YOUR_AJAR_API_KEY
Content-Type: application/json

Inputs

ParameterExample typeExample value
actionstring"sms"
codestring"938271"
interaction_refstring"01234567-89ab-4def-8123-456789abcdef"

Example input

{
  "action": "sms",
  "code": "938271",
  "interaction_ref": "01234567-89ab-4def-8123-456789abcdef"
}

Illustrative response. Store your returned tokens on your device and send the access token in x-airbnb-token on provider requests.

Example response

{
  "expires_in": 599,
  "interaction_ref": "01234567-89ab-4def-8123-456789abcdef",
  "kind": "sms_otp",
  "phone_hint": "••••0123",
  "status": "interaction_required"
}
Open JSON schema

Input schema

{
  "$id": "https://useajar.com/schemas/airbnb/airbnb.auth.sign_in_complete.input.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "oneOf": [
    {
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "sms"
        },
        "code": {
          "maxLength": 6,
          "minLength": 1,
          "pattern": "^[0-9]{6}$",
          "type": "string",
          "writeOnly": true,
          "x-sensitive": true
        },
        "interaction_ref": {
          "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
          "type": "string"
        }
      },
      "required": [
        "action",
        "interaction_ref",
        "code"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "captcha"
        },
        "captcha_token": {
          "maxLength": 8192,
          "minLength": 1,
          "pattern": "^[!-~]+$",
          "type": "string",
          "writeOnly": true,
          "x-sensitive": true
        },
        "interaction_ref": {
          "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
          "type": "string"
        }
      },
      "required": [
        "action",
        "interaction_ref",
        "captcha_token"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "resume"
        },
        "interaction_ref": {
          "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
          "type": "string"
        }
      },
      "required": [
        "action",
        "interaction_ref"
      ],
      "type": "object"
    }
  ]
}