Create a custom booking source

POST https://api.zenoti.com/v1/integrations/booking_sources

Registers a custom booking source for tracking appointments created through external systems.

Before you begin

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

Endpoint

POST /v1/integrations/booking_sources

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

Request

Headers

Header Required Description
Authorization Yes bearer {{access_token}}

Request body

Field Type Required Description
name string Yes Booking source name
source_type string Yes External-Webstore, External-CMA, Bot, or Client App

Response

Success (200 OK)

{
  "id": "00000000-0000-0000-0000-670ec8f0848f",
  "name": "My Booking Widget",
  "source_type": "External-Webstore",
  "error": null
}

Response fields

Field Type Description
id string (GUID) Booking source identifier
name string Booking source name
source_type string Source type

Example

curl --request POST \
  --url 'https://api.zenoti.com/v1/integrations/booking_sources' \
  --header 'Authorization: bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{ "name": "My Booking Widget", "source_type": "External-Webstore" }'
const response = await fetch('https://api.zenoti.com/v1/integrations/booking_sources', {
  method: 'POST',
  headers: {
    'Authorization': 'bearer {{access_token}}',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({ name: 'My Booking Widget', source_type: 'External-Webstore' })
});
const data = await response.json();
import requests

response = requests.post(
    'https://api.zenoti.com/v1/integrations/booking_sources',
    headers={
        'Authorization': 'bearer {{access_token}}',
    },
    json={'name': 'My Booking Widget', 'source_type': 'External-Webstore'}
)
data = response.json()
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "bearer {{access_token}}");
var content = new StringContent(
    JsonSerializer.Serialize(new { name = "My Booking Widget", sourceType = "External-Webstore" }),
    Encoding.UTF8, "application/json");
var response = await client.PostAsync(
    "https://api.zenoti.com/v1/integrations/booking_sources", content);
var data = await response.Content.ReadAsStringAsync();
require 'net/http'
require 'json'

uri = URI('https://api.zenoti.com/v1/integrations/booking_sources')
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 = { name: 'My Booking Widget', source_type: 'External-Webstore' }.to_json
response = http.request(request)
data = JSON.parse(response.body)
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.zenoti.com/v1/integrations/booking_sources');
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(['name' => 'My Booking Widget', 'source_type' => 'External-Webstore']));
$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)