Add guests to the queue

POST https://api.zenoti.com/v1/queue/bookings

Adds a guest or group of guests to the walk-in queue at a center.

Before you begin

Permission: Manage API Keys (under Administrator) — Required to access Zenoti APIs.

Endpoint

POST /v1/queue/bookings

Base URL: https://api.zenoti.com

Request

Headers

Header Required Description
Authorization Yes bearer {{access_token}}

Request body

Field Type Required Description
guest_id string (GUID) Yes Guest identifier
center_id string (GUID) Yes Center identifier
service_id string (GUID) No Requested service
stylist_id string (GUID) No Preferred stylist

Response

Success (200 OK)

{
  "is_confirmed": true,
  "invoice_id": "a2b3c4d5-e6f7-8901-bcde-f23456789012",
  "bookings": [{
    "id": "00000000-0000-0000-0000-add6928e3ba1",
    "first_name": "Jane",
    "last_name": "Smith",
    "wait_time_in_min": 15
  }],
  "error": null
}

Response fields

Field Type Description
is_confirmed boolean Whether the queue entry was created
invoice_id string (GUID) Associated invoice
bookings[].wait_time_in_min integer Estimated wait time in minutes

Example

curl --request POST \
  --url 'https://api.zenoti.com/v1/queue/bookings' \
  --header 'Authorization: bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
    "guest_id": "e5f6a7b8-c9d0-1e2f-3a4b-5c6d7e8f9a0b",
    "center_id": "a3614939-16c0-4a7b-bc33-a69b106d855c",
    "service_id": "b7c8d9e0-f1a2-3b4c-5d6e-7f8a9b0c1d2e"
  }'
const response = await fetch('https://api.zenoti.com/v1/queue/bookings', {
  method: 'POST',
  headers: {
    'Authorization': 'bearer {{access_token}}',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({ guest_id: 'e5f6a7b8-c9d0-1e2f-3a4b-5c6d7e8f9a0b', center_id: 'a3614939-16c0-4a7b-bc33-a69b106d855c', service_id: 'b7c8d9e0-f1a2-3b4c-5d6e-7f8a9b0c1d2e' })
});
const data = await response.json();
import requests

response = requests.post(
    'https://api.zenoti.com/v1/queue/bookings',
    headers={
        'Authorization': 'bearer {{access_token}}',
    },
    json={'guest_id': 'e5f6a7b8-c9d0-1e2f-3a4b-5c6d7e8f9a0b', 'center_id': 'a3614939-16c0-4a7b-bc33-a69b106d855c', 'service_id': 'b7c8d9e0-f1a2-3b4c-5d6e-7f8a9b0c1d2e'}
)
data = response.json()
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "bearer {{access_token}}");
var content = new StringContent(
    JsonSerializer.Serialize(new { guestId = "e5f6a7b8-c9d0-1e2f-3a4b-5c6d7e8f9a0b", centerId = "a3614939-16c0-4a7b-bc33-a69b106d855c", serviceId = "b7c8d9e0-f1a2-3b4c-5d6e-7f8a9b0c1d2e" }),
    Encoding.UTF8, "application/json");
var response = await client.PostAsync(
    "https://api.zenoti.com/v1/queue/bookings", content);
var data = await response.Content.ReadAsStringAsync();
require 'net/http'
require 'json'

uri = URI('https://api.zenoti.com/v1/queue/bookings')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri)
request['Authorization'] = 'bearer {{access_token}}'
request['Content-Type'] = 'application/json'
request.body = { guest_id: 'e5f6a7b8-c9d0-1e2f-3a4b-5c6d7e8f9a0b', center_id: 'a3614939-16c0-4a7b-bc33-a69b106d855c', service_id: 'b7c8d9e0-f1a2-3b4c-5d6e-7f8a9b0c1d2e' }.to_json
response = http.request(request)
data = JSON.parse(response.body)
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.zenoti.com/v1/queue/bookings');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: bearer {{access_token}}',
    'Content-Type: application/json'
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(['guest_id' => 'e5f6a7b8-c9d0-1e2f-3a4b-5c6d7e8f9a0b', 'center_id' => 'a3614939-16c0-4a7b-bc33-a69b106d855c', 'service_id' => 'b7c8d9e0-f1a2-3b4c-5d6e-7f8a9b0c1d2e']));
$response = curl_exec($ch);
curl_close($ch);
$data = json_decode($response, true);

Error codes

Status Description
400 Bad request — invalid or missing required fields
401 Unauthorized — invalid or expired access token
429 Too many requests — rate limit exceeded (60/min)
AA018 Guest does not exist
QA010 Slot not available for reservation