API documentation

Last updated October 14, 2026

The REST API lets you read and manage your own business from your own software: a website, a spreadsheet, Zapier, a point-of-sale or an internal tool. It speaks JSON over HTTPS. Every key belongs to exactly one business and can never see another.

Base URL: https://app.angelicbooking.com/api/v1. The whole API as an OpenAPI 3.1 file for code generators and API tools.

Getting started

Quick start

  1. Sign in, open Settings → API access and create a key. Only owners (and anyone allowed to change business settings) can.
  2. Copy the key straight away: it is shown once.
  3. Send it as a bearer token.
curl https://app.angelicbooking.com/api/v1/services \
  -H "Authorization: Bearer ab_live_your_key_here"

Authentication and keys

  • Send Authorization: Bearer <key> on every request. Keys start with ab_live_.
  • Use keys from a server you control. Never put one in a web page, a mobile app or a public repository. If one leaks, revoke it in Settings and make another.
  • Each key has scopes, the things it may do. A request outside them gets 403. Give each tool its own key with only what it needs.
  • Keys can expire and can be revoked at any time; revoking takes effect on the next request.
  • A suspended business's keys stop working.
ScopeAllows
catalog:readRead services, categories, products, packages, plans, locations and availability
catalog:writeCreate and change services, categories, products, packages and plans (not their prices)
pricing:writeChange prices, deposits and costs of services, packages, plans and products
catalog:deleteDelete categories and extra barcodes
inventory:readRead stock levels, stock history and reorder suggestions
inventory:writeReceive, count, transfer and adjust stock
supplies:writeLog (and take back) supplies used on a visit
purchasing:readRead suppliers and purchase orders
purchasing:writeManage suppliers and purchase orders
clients:readRead clients' details, appointments, packages and memberships
clients:writeCreate and update client details (not consent, notes or balances)
clients:consentChange whether a client agrees to texts and emails
clients:balancesSee clients' store credit balances
client-notes:readRead private client notes (formulas, allergies, preferences)
client-notes:writeAdd and pin client notes
client-notes:deleteDelete client notes
appointments:readRead appointments, classes, standing appointments and the waitlist
appointments:bookBook new appointments and standing appointments
appointments:changeMove, add services to, and change the status or notes of appointments; block time
appointments:cancelCancel appointments and standing appointments, or remove a service from one
appointments:deleteRemove blocked time
waitlist:writeAdd to and update the waitlist
classes:writeSchedule and cancel classes and enrol clients
forms:readRead forms and what clients submitted
forms:writeCreate and change forms
forms:voidVoid or reassign signed submissions
forms:deleteDelete forms
reviews:readRead client reviews
sales:readRead sales and payments (taking payments is not in the API)
staff:readRead staff contact details, hours and time off
staff:writeAdd and change staff, hours, time off and the services they perform
time:readRead time clock entries
time:writeAdd time clock entries (they feed payroll)
time:deleteDelete time clock entries
pay:readRead staff pay settings
pay:writeChange staff pay settings
roles:readRead roles and permissions
roles:writeCreate and change roles and permissions
roles:deleteDelete roles
marketing:readRead campaigns, promo codes and automations
marketing:writeDraft campaigns, create promo codes and build automations (nothing is sent)
campaigns:sendSend campaigns and switch automations on
marketing:deleteDelete campaigns and automations
messages:readRead texts and emails sent to clients, and replies from them
messages:writeReply to a client by text
messages:resendResend a message that failed to send
settings:readRead business profile, booking rules, store, loyalty and wording settings
settings:writeChange business profile, locations, text wording, review and refund-reason settings
policies:writeChange booking rules, fees and deposits, loyalty and the online store
settings:deleteDelete a location

Scopes are exact: a key holds only what it was given. x:write does not let a key read x (a tool that only creates clients cannot list them), so give both when a tool needs both. Anything that deletes has its own :delete scope.

Fields that need an extra scope

A request that sends one of these fields needs the scope shown in addition to the endpoint's own, and gets 403 insufficient_scope without it. A tool that leaves the field out never needs the scope.

FieldNeedsWhere
price_cents, cost_cents, deposit_cents, deposit_percent, deposit_type, discount_bps, product_discount_bps, price_override_centspricing:writeservices, packages, plans, products, product options, a stylist's own price, class sessions
sms_opt_in, email_opt_inclients:consentclients (create and update)
notesclient-notes:writeclients (create and update). Reading notes needs client-notes:read, and the notes field is left out of client responses without it
store_credit_centsclients:balancesclient responses leave it out without the scope
enabled: truecampaigns:sendautomations (switching one off needs only marketing:write)
any promo codepricing:writecreating a promo code (it changes what clients pay)

Older keys

Keys made before these finer scopes keep working exactly as before: each old scope stands for everything it used to allow (for example the old clients:write still reads clients and changes consent and notes). The key list shows what each one really holds; use Replace to move to narrower scopes.

Limiting a key further

  • Allowed addresses: when set, only those IP addresses (or IPv4 ranges such as 203.0.113.0/24) can use the key. From anywhere else the key answers like a wrong one (401). We check the address our servers see, not one the caller claims.
  • Requests per minute: 30, 60, 120 (default), 300 or 600 per key.

Conventions

  • Field names are snake_case. Money is an integer number of cents. Times are ISO 8601 in UTC (2026-11-02T19:00:00.000Z). Dates are YYYY-MM-DD.
  • Lists return { "data": [...], "page": 1, "limit": 50, "has_more": false } and accept page and limit (1 to 100, default 50). Some include total.
  • One item returns { "data": { ... } }.
  • Partial updates (PATCH) change only the fields you send. Unknown fields are rejected.
  • Request bodies are JSON with Content-Type: application/json, up to 100 KB.
  • Rate limit: 120 requests per minute per key by default (a key can be set lower or higher in Settings), shared across our servers. Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (Unix time when the window resets). Over the limit, you get 429 and a Retry-After header (seconds).

Errors

Errors use the same shape and an HTTP status that matches:

{ "error": { "code": "validation_failed", "message": "Some fields are invalid.",
             "issues": [{ "path": "first_name", "message": "Too small" }] } }
StatuscodeMeaning
400bad_requestThe body is not valid JSON, or is too large.
401invalid_api_keyMissing, wrong, revoked or expired key. All look the same on purpose.
402subscription_requiredThe business's free trial has ended with no subscription. The key works again once a card is added under Settings → Billing.
403insufficient_scopeThe key lacks the scope this call needs.
403forbiddenThe key has the scope, but the person who created it may not do this: role changes act as the key's creator, with their current role, and stop once they leave the business.
404not_foundNo such item in your business (including ids that belong to someone else).
409conflict / booking_conflictDuplicate client, wrong state, or the time is taken.
413payload_too_largeThe request body is over 100 KB.
422validation_failedA field is missing or invalid; see issues.
429rate_limitedSlow down; wait Retry-After seconds.
500server_errorOur side. Safe to retry reads.

The endpoints below let a key do what an admin can do in the app. Each section names the scope it needs. Scopes marked powerful in the key form can change prices or fees, consent, who may do what, pay settings, or reach many clients at once: give them only to software you trust, and prefer a separate key for each.

Catalog and inventory

Business

GET/businesscatalog:read

Your business's name, timezone, contact details and slot length.

Reading the catalog

GET/servicescatalog:read

Active services. Add ?include_inactive=1 for all of them. Prices and durations are the base values; a stylist may have their own.

GET/services/{id}catalog:read
GET/staffcatalog:read

Active team members: name, position, bio and photo. Pay, contact details and logins are never included.

GET/staff/{id}catalog:read
GET/staff/{id}/schedulestaff:read

Weekly hours (24-hour local time, weekday 0 = Sunday), upcoming days off or changed hours, and the services the person performs with any price or length of their own.

GET/productscatalog:read

Active products with price and (when tracked) stock. Cost and supplier are not included.

GET/products/{id}catalog:read
GET/locationscatalog:read

Your sites: address, phone and opening hours. Also /locations/{id}.

GET/categoriescatalog:read

?kind=service (default, nested through parent_id) or ?kind=product.

GET/packagescatalog:read

The prepaid packages you sell.

GET/membership-planscatalog:read

The membership plans you sell.

GET/availabilitycatalog:read

Open start times for a service on a date, as online booking would offer them (it follows your booking rules for notice and how far ahead).

Query: service_id, date=YYYY-MM-DD, optional staff_id (default any).

curl "https://app.angelicbooking.com/api/v1/availability?service_id=SERVICE_ID&date=2026-11-02" -H "Authorization: Bearer $KEY"

{ "data": [ { "start_at": "2026-11-02T14:00:00.000Z", "staff_id": "…", "staff_name": "Ana" } ] }

Changing the catalog

POST/servicescatalog:write

Body: name, duration_min and price_cents are required. Optional: description, prep_notes, category_id, gap_min, finish_min, buffer_after_min, deposit_type (flat, percent, full), deposit_cents, deposit_percent, capacity, bookable_online, members_only (only clients with an active membership that includes the service book it online), taxable (charge sales tax on it at checkout; false), active, location_ids (empty or all = every site).

PATCH/services/{id}catalog:write

Send only what changes. Services are never deleted, because past visits point at them: send {"active": false} to retire one.

POST/productscatalog:write

Required: name, price_cents. Optional: description, kind (retail or backbar), category_id, sku, barcode, cost_cents, taxable, sell_online, track_stock, low_stock_threshold, active. A barcode or SKU can belong to one product only (409).

PATCH/products/{id}catalog:write

Send only what changes. Stock counts change through stock adjustments, never here.

Categories

Service categories nest through parent_id (Hair, then Color, then Balayage). Product categories are flat. Every endpoint below takes ?kind=service (the default) or ?kind=product where the id alone cannot say which.

GET/categoriescatalog:read

The whole list, ordered as in the app. Fields: id, name, parent_id, description, prep_notes, sort_order.

GET/categories/{id}catalog:read

One category. Query: kind. 404 for an id that is not yours.

POST/categoriescatalog:write

Body: kind (service or product) and name (1 to 60 characters) are required. Service categories also take parent_id, description (300) and prep_notes (400, the "before your visit" text added to confirmations). Product categories only have a name (422 otherwise).

404 when parent_id is not one of your categories; 409 when a category with that name already exists in the same place.

PATCH/categories/{id}catalog:write

Query: kind. Send only what changes: name, and for service categories parent_id (null moves it to the top level), description, prep_notes. A category cannot be moved inside itself or one of its own sub-categories (409). Moving it to a new parent puts it last there.

DELETE/categories/{id}catalog:delete

Query: kind. Its services or products become uncategorized and its sub-categories move up one level. Returns { "data": { "id": "…", "deleted": true } }.

POST/categories/{id}/movecatalog:write

Query: kind. Body: { "direction": "up" } or "down": one step among its siblings. Returns the renumbered list.

Service order and who performs a service

POST/services/{id}/movecatalog:write

Body: { "direction": "up" | "down" }. Moves the service one step within its category (or among uncategorized services) and renumbers its siblings.

GET/services/{id}/staffcatalog:read

The people who perform the service. Each: staff_id, display_name, active, price_cents and duration_min (what that person charges and takes: their own, or the service's), and price_override_cents / duration_override_min (their own values, null when they use the service's). A service nobody is listed for can be done by anyone.

PUT/services/{id}/staffcatalog:write

Replaces the set of people who perform the service. Body: { "staff": [ { "staff_id", "price_cents"?, "duration_min"? } ] } (up to 200, each person once). People left out stop performing it. For each person, leave a field out to keep what is stored, send null to use the service's own, or send a value; a value equal to the service's own is stored as "use the service's", so later changes to the service still flow through. duration_min is 5 to 600. 404 when a staff_id is not yours. Returns the new list.

curl -X PUT $BASE/services/SERVICE_ID/staff -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{ "staff": [ { "staff_id": "ANA_ID", "price_cents": 9000, "duration_min": 60 }, { "staff_id": "BEN_ID" } ] }'

Packages

These configure what you sell. Selling a package to a client happens at checkout and is not part of the API.

GET/packagescatalog:read

Add ?include_inactive=1 to include hidden packages. Fields: id, name, service_id, sessions, price_cents, valid_days, description, valid_location_ids (empty = every location), active, created_at.

GET/packages/{id}catalog:read
POST/packagescatalog:write

Required: name (80), sessions (1 to 100), price_cents. Optional: service_id (the service the sessions are for; empty = any), valid_days (days until it expires; null = never), description (300), valid_location_ids, active (default true). Listing every location, or none, means "everywhere". 404 when a service or location is not yours.

PATCH/packages/{id}catalog:write

Same fields, all optional. {"active": false} hides a package from sale and true shows it again.

Membership plans

Also configuration only: enrolling a client (which bills them) happens at checkout. Stripe ids are never returned.

GET/membership-planscatalog:read

Add ?include_inactive=1 for hidden plans. Fields: id, name, price_cents, interval (week, month, year), interval_count, services (below), rollover_cap, cycle_count, discount_bps, product_discount_bps, loyalty_points, description, valid_location_ids, active, created_at, and the deprecated included_service_id / included_sessions.

services lists what the plan covers, in the order the business set: each { "service_id", "charge", "value", "visits" }. charge is free (value 0), percent (value in basis points off, 1 to 10000) or amount (value in cents off, at least 1). visits is how many a member gets each billing period (1 to 99), or null for unlimited. Services not listed get discount_bps off.

Deprecated: included_service_id and included_sessions are kept for older integrations. They describe the plan's main service (its first free service, else its first) and that service's visits (0 when unlimited); null and 0 when the plan covers nothing. Read services instead.

GET/membership-plans/{id}catalog:read
POST/membership-planscatalog:write

Required: name (80), price_cents. Optional (defaults): interval (month), interval_count (1 to 52; 1), services (up to 100, each service once; none), rollover_cap (0 to 99: visits that may carry into the next period; 0), cycle_count (0 to 120 billed periods for a fixed-length plan; null or 0 = until cancelled), discount_bps (0 to 10000, basis points off other services; 0), product_discount_bps (0 to 10000, off retail products not marked as excluded; 0), loyalty_points (0 to 100000, given at joining and every renewal while loyalty is on; 0), description (300), valid_location_ids, active.

Deprecated input: without services, an included_service_id becomes one free service with included_sessions visits a period (1 when left out or 0). services wins when both are sent.

422 when a covered service breaks the rules above, or the cadence is not billable (at most 52 weeks or 12 months apart, a year is billed once a year). 404 when a service or location is not yours.

curl -X POST $BASE/membership-plans -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{ "name": "Blowout club", "price_cents": 9900, "services": [
        { "service_id": "BLOWOUT_ID", "charge": "free", "visits": 2 },
        { "service_id": "TREATMENT_ID", "charge": "percent", "value": 2000, "visits": null } ] }'
PATCH/membership-plans/{id}catalog:write

Send only what changes; the rules above are checked against the result. services replaces the whole list ([] covers nothing). Current members follow as in the app: a service that newly has a visit limit starts them with this period's visits, one already limited keeps what they have left (a new count applies from their next renewal), and a service no longer limited or listed drops out. The deprecated included_service_id works as on create (null clears the list); included_sessions alone changes the main service's visits. A new price or cadence clears the plan's stored Stripe price, so it is set up again the next time it is needed; subscriptions already running keep billing at the old price until then. {"active": false} hides the plan.

Products: supplier, reorder level and options

POST /products and PATCH /products/{id} also take supplier_id and reorder_up_to (the count a reorder suggestion brings the product back up to; at least low_stock_threshold, 422 otherwise). A back-bar product (kind: "backbar") is never sold online and always counted. These responses do not include cost or supplier; the inventory:read endpoints do.

A product that comes in sizes or shades is a group with one product per option. The group holds what the options share (name, description, category, kind, tax, online store, usual supplier); each option has its own label, price, cost, SKU, barcode, stock and levels. Because the group owns the shared fields, PATCH /products/{id} on an option refuses name, description, category_id, kind, taxable, sell_online and supplier_id with 409: change them on the group. An option's own fields, including variant_label (unique within the group), can be changed on the option.

GET/product-groupscatalog:read

Add ?include_inactive=1 for hidden ones. Each group has options: id, variant_label, sku, barcode, price_cents, track_stock, stock_qty, low_stock_threshold, reorder_up_to, active. Cost and supplier are not included.

GET/product-groups/{id}catalog:read
POST/product-groupscatalog:write

Required: name (80) and options (1 to 100 labels, up to 40 characters; repeats ignoring case are dropped). A retail group also needs price_cents above 0. Optional: description, category_id, kind (retail default or backbar), taxable (true), sell_online (false), supplier_id, and what each new option starts with: price_cents, cost_cents, low_stock_threshold (3), reorder_up_to, track_stock (false; always on for back-bar). Barcodes and SKUs belong to each option: set them with PATCH /products/{id} afterwards. Returns the group with its options (201).

PATCH/product-groups/{id}catalog:write

Send only what changes: name, description, category_id, kind, taxable, sell_online, supplier_id, active. Every option follows. Making a group back-bar sets its options to counted, unpriced and not sold online. {"active": false} hides the product with all its options.

POST/product-groups/{id}/optionscatalog:write

Body: options (labels) and optionally price_cents, cost_cents; new options take those, else the group's first option's. Labels the group already has are skipped and listed in skipped; 409 when none is new. Returns { "added": 2, "skipped": [], "group": { … } }.

POST/products/{id}/convert-to-groupcatalog:write

Body: { "label": "30 ml" }. A standalone product becomes the first option of a new group, so more options can be added with the endpoint above. 409 when it already has options.

Extra barcodes

The product's main barcode is its barcode field. Extra barcodes cover a case or another pack size: one scan adds units_per_scan units. A code (barcode, extra barcode or SKU) can belong to one product only.

GET/products/{id}/barcodescatalog:read

Fields: id, product_id, code, units_per_scan, created_at.

POST/products/{id}/barcodescatalog:write

Body: code (1 to 60 characters), optional units_per_scan (1 to 1000, default 1). 409 when another product already uses the code.

DELETE/products/{id}/barcodes/{barcodeId}catalog:delete

Inventory

GET/inventoryinventory:read

Products with tracked stock: on_hand, low_stock_threshold and is_low.

GET/products/{id}/stock-movementsinventory:read

Every change to the product's stock, newest first.

POST/products/{id}/stock-adjustmentsinventory:write

Body: reason (received, adjust, damage, theft, expired, lost, supplier_return, used), quantity, optional location_id and note. received adds and the loss reasons take away (send a positive number for both); adjust is signed. Stock never goes below zero (409). Returns the new on_hand.

Stock by location

Every change to stock is a recorded movement. By hand, stock can never go below zero (409); a use logged by staff may, rather than stop the work, and then shows as "count is off". Where a location_id is optional, the default location is used.

GET/inventoryinventory:read

Products with tracked stock: on_hand, low_stock_threshold, is_low, and for inventory keys also reorder_up_to, supplier_id, cost_cents, variant_label and group_id (the product group an option belongs to).

GET/products/{id}/stockinventory:read

On hand in total and at each location: { "product_id", "track_stock", "on_hand", "low_stock_threshold", "locations": [ { "location_id", "name", "qty" } ] }.

GET/products/{id}/stock-movementsinventory:read

Every change to the product's stock, newest first.

POST/products/{id}/stock-adjustmentsinventory:write

One product, one change. Body: reason (received, adjust, damage, theft, expired, lost, supplier_return, used), quantity, optional location_id and note. Several products at once: use POST /stock/receipts (deliveries) or POST /stock/counts.

POST/stock/receiptsinventory:write

A delivery with no purchase order, one product or many. Body: { "location_id"?, "note"?, "items": [ { "product_id", "quantity" } ] } (1 to 200 items, quantity a whole number above 0). Nothing is applied if any id is not yours (404). Returns units, products and the new on_hand for each product.

POST/stock/receipts/{id}/undoinventory:write

{id} is the stock movement's id (from /products/{id}/stock-movements). Takes back a delivery entered wrong; if it was on a purchase order, the order's received count and status go back too. 409 when some of it has already gone (correct the count instead) or it was already undone.

POST/stock/countsinventory:write

Set the count from what was physically counted at one location. Body: { "location_id", "note"?, "counts": [ { "product_id", "counted" } ] } (1 to 1000, each product once, counted 0 or more). Only products whose count differs get a movement; products you leave out are not touched. Returns { "counted", "changed", "units_off" }.

POST/stock/transfersinventory:write

Body: product_id, from_location_id, to_location_id, quantity, optional note. The total does not change. 409 when the two locations are the same or the source has fewer than quantity. Returns the product's stock by location.

POST/stock/usageinventory:write

Log supplies used up that are not tied to a visit. Body: { "location_id"?, "note"?, "items": [ { "product_id", "quantity" } ] } (up to 50 products, quantity 1 to 1000). May take a count below zero.

POST/stock/usage/{id}/undoinventory:write

{id} is the movement's id. Takes back a use logged by mistake, once (409 after). A use logged on a visit is taken back on that visit, below.

GET/inventory/reorder-suggestionsinventory:read

What to order, grouped by supplier and location (each location's shortfall is its own order; what is already on its way counts as stock). Each group: supplier_id, supplier_name, location_id, location_name and items with product_id, name, on_hand, on_order, low_stock_threshold, suggested_qty, unit_cost_cents. To act on a group, create a draft with POST /purchase-orders.

Supplies used on a visit

GET/appointments/{id}/suppliesinventory:read

What has been logged as used on the visit, net of anything taken back: product_id, label, quantity.

POST/appointments/{id}/suppliessupplies:write

Body: { "items": [ { "product_id", "quantity" } ], "note"? }. Comes off the stock at the visit's location; may take a count below zero. Blocked time is not a visit (404).

DELETE/appointments/{id}/supplies/{productId}supplies:write

Take back supplies logged by mistake. Query: quantity (default: everything logged for that product; never more than was logged, 409).

Suppliers

Suppliers are never deleted, because orders point at them: hide one with {"active": false}.

GET/supplierspurchasing:read

Add ?include_inactive=1 for hidden ones. Fields: id, name, contact_name, email, phone, account_number, notes, active, created_at.

GET/suppliers/{id}purchasing:read
POST/supplierspurchasing:write

Required: name (80). Optional: contact_name (80), email, phone (40), account_number (60), notes (500), active.

PATCH/suppliers/{id}purchasing:write

Same fields, all optional; send only what changes (null clears one).

Purchase orders

An order is draft, then ordered, then partial or received, or cancelled. Marking an order as ordered records that you ordered; it does not contact the supplier. Receiving puts the stock on hand at the order's location and sets each product's cost to what was paid.

GET/purchase-orderspurchasing:read

Query: status = open (default: draft, ordered, partial), received (received and cancelled) or all. Each order adds supplier_name, location_name, units, received_units, cost_cents. Includes total.

GET/purchase-orders/{id}purchasing:read

The order with its lines (id, product_id, label, ordered_qty, received_qty, unit_cost_cents) and receipts (each delivery, with whether it was undone).

POST/purchase-orderspurchasing:write

A draft order. Body, all optional: supplier_id, location_id (where it will be delivered; default location otherwise), expected_on (YYYY-MM-DD), notes (500), lines ([{ "product_id", "quantity", "unit_cost_cents"? }]; the cost defaults to the product's). The number is assigned for you. 404 when any id is not yours.

PATCH/purchase-orders/{id}purchasing:write

Change supplier_id, location_id, expected_on, reference (the supplier's invoice or confirmation number) or notes; send only what changes. 409 once the order is received or cancelled.

POST/purchase-orders/{id}/linespurchasing:write

Body: { "product_id", "quantity", "unit_cost_cents"? }. Adds the product, or replaces its quantity if it is already on the order.

PATCH/purchase-orders/{id}/lines/{productId}purchasing:write

Body: quantity and/or unit_cost_cents on a line already on the order (404 otherwise); what you leave out stays.

DELETE/purchase-orders/{id}/lines/{productId}purchasing:write

409 when some of the line has already arrived.

POST/purchase-orders/{id}/orderpurchasing:write

Mark a draft as ordered. It needs at least one line (409).

POST/purchase-orders/{id}/receivepurchasing:write

Take delivery of all or part of an order. Body: { "reference"?, "lines": [ { "line_id", "quantity", "unit_cost_cents"? } ] } (each line once; line_id is a line's id on this order). Returns { "units", "done", "order": { … } }; the order is received when everything has arrived, otherwise partial. A delivery entered wrong can be taken back with POST /stock/receipts/{id}/undo.

POST/purchase-orders/{id}/cancelpurchasing:write

Cancel an order that is still open (409 otherwise).

curl -X POST $BASE/purchase-orders/ORDER_ID/receive -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{ "reference": "INV-1042", "lines": [ { "line_id": "LINE_ID", "quantity": 6, "unit_cost_cents": 450 } ] }'

Appointments and clients

Appointments

GET/appointmentsappointments:read

Client visits (not blocked time), earliest first. Query: from, to (ISO times, matched on the start), status, client_id, staff_id. Includes total.

GET/appointments/{id}appointments:read
POST/appointmentsappointments:book

Books one service with one staff member. Body: client_id, service_id, staff_id, start_at (ISO 8601 with an offset or Z), optional notes, optional notify (default true: texts or emails the client a confirmation if they have opted in), optional reminders (default true: the salon's reminder automations run even when notify is false; set both false for a visit that must get no messages).

Use /availability first to pick a time. If someone else holds the time you get 409 booking_conflict.

PATCH/appointments/{id}appointments:change

Change status (booked, confirmed, checked_in, in_progress, completed, no_show) and/or notes.

POST/appointments/{id}/rescheduleappointments:change

Body: start_at, optional staff_id, notify (default true). Moves the visit's service. 409 when the time is taken or outside the provider's hours.

POST/appointments/{id}/cancelappointments:cancel

Body: a reason is required, either reason (text, up to 500) or reason_id (one of the business's cancellation reasons); 422 without one. Also notify (default true). No fee is charged and nothing is refunded; do those in the app.

curl -X POST https://app.angelicbooking.com/api/v1/appointments \
  -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{ "client_id": "…", "service_id": "…", "staff_id": "…", "start_at": "2026-11-02T14:00:00-05:00" }'

Changing the services on a visit

A visit can hold several services (each is an item in the items list of the appointment). Fees, deposits and refunds are money and stay in the staff app. To change a visit's notes or status use PATCH /appointments/{id}; GET /appointments/{id} is unchanged.

POST/appointments/{id}/servicesappointments:change

Add another service to an existing visit. Body: service_id, staff_id, start_at (ISO 8601 with an offset or Z), all required. Returns 201 with the appointment. 409 when the time is taken, the provider does not perform that service, the service is not offered at the visit's site, or the visit is cancelled, completed or a no-show. No message is sent to the client.

POST/appointments/{id}/items/{item_id}/moveappointments:change

Move one service of a visit (with its finishing part, if it has one), optionally to another provider. Body: start_at (required), staff_id, notify (default true: tells the client if they opted in). 409 when the time is taken or outside the provider's hours; a seat in a class cannot be moved. 404 when the item is not part of that visit.

DELETE/appointments/{id}/items/{item_id}appointments:cancel

Take one service off the visit. Taking off the last one cancels the visit, and then the client is told unless you add ?notify=false. 409 when the service was already removed or the visit is cancelled, completed or a no-show.

Standing appointments

A standing appointment books the same service every N weeks. Each visit is an ordinary appointment (GET /appointments lists them).

POST/seriesappointments:book

Body: service_id, staff_id, start_at (the first visit), interval_weeks (one of 1, 2, 3, 4, 5, 6, 8, 12) and occurrences (2 to 52, counting the first) are required. Optional: client_id (omit for no client), notes, location_id, notify (default true: one confirmation for the first visit, reminders for the rest, for clients who opted in).

Dates the provider cannot take (time off, outside hours, already booked) are skipped and listed in skipped as {"start_at", "reason"}. 409 when none of the dates work. Returns 201 with the series, its occurrences and skipped.

{ "data": { "id": "…", "client_id": "…", "service_id": "…", "staff_id": "…", "interval_weeks": 2, "first_start_at": "…",
    "planned_occurrences": 6, "notes": null, "ended_at": null,
    "occurrences": [ { "appointment_id": "…", "status": "booked", "start_at": "…" } ],
    "skipped": [ { "start_at": "…", "reason": "not available" } ] } }
GET/series/{id}appointments:read

The series and every visit booked from it, in date order, with each visit's status.

POST/appointments/{id}/cancel-seriesappointments:cancel

Cancel this visit and every later open (booked or confirmed) visit in its series, and end the series. Body: optional reason (up to 500), notify (default true: the client hears about the first cancelled visit; reminders for all of them stop). No fee is charged. 409 when the visit is not part of a series. Returns cancelled_appointment_ids and a count; calling it again returns a count of 0.

Classes

A service with a group size above 1 is run as scheduled sessions. Each client who joins gets an ordinary appointment (one item pointing at the session), so it shows in GET /appointments too.

GET/classesappointments:read

Sessions with seats booked and left: id, service_id, service_name, staff_id, staff_name, location_id, start_at, end_at, capacity, booked, seats_left, price_cents, notes, status (scheduled or cancelled). Query: from, to (ISO times; default now to 60 days ahead; at most a year apart), service_id, include_cancelled=true, limit, page.

GET/classes/{id}appointments:read

One session plus its roster: appointment_id, status, client_id, first_name, last_name, source, booked_at. No contact details.

POST/classesclasses:write

Schedule a session. Body: service_id, staff_id, start_at (required), optional capacity (1 to 500; default is the service's group size) and notes (up to 300). 409 when the service has a group size of 1, is inactive, or the instructor is not free then (use /availability for open times). The seat price is the service price. Returns 201.

POST/classes/{id}/enrollmentsclasses:write

Give a client a seat. Body: client_id (required; null for a walk-in), optional notes (up to 300), notify (default true: a confirmation, if the client opted in). 409 when the class is full, already started, cancelled, or the client already has a seat. No deposit or payment is taken. Returns 201 with the new appointment_id and the updated class.

POST/classes/{id}/cancelclasses:write

Cancel the session and every open seat in it. Body: optional reason (up to 200), notify (default true: each client is told). Nothing is refunded. 409 when it is already cancelled. Returns the class and cancelled_appointment_ids. To cancel one client's seat, cancel their appointment.

Blocked time

POST/blocksappointments:change

Take time off a provider's calendar. Body: staff_id, start_at, end_at (up to 24 hours), optional reason, location_id. 409 if it collides with a booking.

DELETE/blocks/{id}appointments:delete

Remove blocked time. Only blocks: a client's appointment is cancelled, never deleted.

Waitlist

GET/waitlistappointments:read

Optional status (open, booked, closed).

POST/waitlistwaitlist:write

Body: client_id, service_id, date, optional staff_id, location_id, notes.

PATCH/waitlist/{id}waitlist:write

Body: status.

Clients

GET/clientsclients:read

Query: q (name, email or phone search), email, phone, updated_since (ISO time, for syncing). Includes total.

GET/clients/{id}clients:read
POST/clientsclients:write

Body: first_name (required), last_name, email, phone, notes, tags, birthday, sms_opt_in (appointment texts, default false; refused with 409 for a number that replied STOP), email_opt_in (default true). Responses also show sms_marketing_opt_in and email_marketing_opt_in, which are read-only here: marketing texts need the client's own written consent, given on the booking form, in their account or recorded by staff.

Only set sms_opt_in when the person has agreed to receive texts. If the email or phone is already on file you get 409 with existing_id.

PATCH/clients/{id}clients:write

Same fields, all optional; send only what changes. Unknown fields are rejected.

GET/clients/{id}/notesclient-notes:read

Private notes on the client, pinned first.

POST/clients/{id}/notesclient-notes:write

Body: body, optional pinned.

GET/clients/{id}/packagesclients:read

Packages the client holds, with sessions remaining.

GET/clients/{id}/membershipsclients:read

Their memberships: status, period end and credits remaining.

curl -X POST https://app.angelicbooking.com/api/v1/clients \
  -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{ "first_name": "Maya", "last_name": "Lopez", "email": "maya@example.com", "phone": "(212) 555-0142" }'

Client notes, history and referral codes

These extend the client endpoints above. Store credit and loyalty points are money-like and can only be changed in the staff app, and memberships are managed there too because they involve the card processor.

PATCH/clients/{id}/notes/{note_id}client-notes:write

Pin or unpin a note. Body: pinned (true or false, required). No other field can be sent. 404 when the note does not belong to that client.

DELETE/clients/{id}/notes/{note_id}client-notes:delete

Deletes the note for good, as the staff app does. Returns {"data": {"id": "…", "deleted": true}}.

GET/clients/{id}/appointmentsclients:read

This client's visits (not blocked time), earliest first, in the same shape as GET /appointments. Query: from, to (ISO times, matched on the start), status, limit, page. Includes total. 422 for an unknown status.

GET/clients/{id}/submissionsclients:read

The forms this client has filled in, newest first: id, form_id, form_name, form_kind, appointment_id, signed, signed_at, voided, voided_at, created_at. This is a summary only. The answers (which can include health details) are read with GET /form-submissions/{id}, which needs forms:read.

GET/clients/{id}/referral-codeclients:read

Returns {"data": {"client_id": "…", "referral_code": "MAYA-7K2P"}}, or referral_code: null when the client has none yet.

POST/clients/{id}/referral-codeclients:write

Makes the client's referral code. 201 when a new one was made; 200 with the existing code if they already had one. Nothing is sent to the client.

Forms

Intake and consent forms, as built under Settings → Forms. Filling a form in for a client (which stores signatures and uploaded files) and emailing a signed copy are done in the staff app, not through the API.

A form has: name (1 to 120), kind (intake or consent), description (up to 4000, or null; the text to sign), fields (the questions, below), require_signature, apply_to_all (required before every visit), service_ids (or only visits with these services), renew_days (a whole number of days before it must be signed again; null = once ever), location_ids (only visits at these sites; empty, or naming every site, means everywhere) and active. A form needs at least one question or some description text. Every service and location id must be yours (404 otherwise).

Each question in fields (up to 100): type (one of text, textarea, yesno, select, multiselect, number, date, phone, email, file, checkbox (an agreement box that must be ticked), initials, statement, heading), label (1 to 1000), optional id (letters, digits, - and _, up to 40, unique in the form; made for you when omitted; keep it stable when editing so old answers still line up), required (ignored for statement and heading, which take no answer), options (1 to 30 choices, only for select and multiselect), show_if ({"field_id": "…", "equals": "Yes"}: show only when an earlier checkbox, yes/no, select or multiselect question has that answer) and map_to (copy the answer onto the client: email or notes for email; phone or notes for phone; birthday or notes for date; tag or notes for yes/no and checkbox; notes for text, paragraph, select, multiselect and number), with tag (up to 40) as the tag name when map_to is tag. Anything the form builder would refuse is a 422 that names the question.

GET/formsforms:read

Live forms first, then by name, each with a field_count instead of the questions. limit, page.

GET/forms/{id}forms:read

One form with its questions.

POST/formsforms:write

Body: name and kind are required; everything else is optional. Defaults: require_signature: true, apply_to_all: false, active: true, no questions, no services, every location. Returns 201 with the form.

{ "name": "Color consent", "kind": "consent", "description": "I understand the risks of color services.",
  "apply_to_all": false, "service_ids": ["…"], "renew_days": 365,
  "fields": [
    { "id": "allergy", "type": "yesno", "label": "Any allergies?", "required": true, "map_to": "tag", "tag": "allergy" },
    { "id": "which", "type": "text", "label": "Which ones?", "show_if": { "field_id": "allergy", "equals": "Yes" } }
  ] }
PATCH/forms/{id}forms:write

Send only what changes; unknown fields are rejected. Sending fields replaces the whole list of questions. Removing every question and the description is a 422.

DELETE/forms/{id}forms:delete

Like the staff app: a form that clients have already submitted is archived (active: false) so the signed copies stay; a form nobody has submitted is deleted. The response says which: {"id": "…", "deleted": true, "archived": false}.

POST/forms/{id}/duplicateforms:write

A copy named “Copy of …”, inactive until you turn it on. Returns 201 with the new form.

Form submissions

GET/form-submissionsforms:read

Newest first: id, form_id, form_name, form_kind, client_id, client_name, appointment_id, signed, signature_name, signed_at, assisted_by_staff (completed at the front desk), voided, created_at. No answers in the list. Query: form_id, client_id (404 if not yours), q (client name), include_voided (default true; send false to hide void ones), limit, page. Includes total.

GET/form-submissions/{id}forms:read

The summary plus void_reason, voided_at and answers: one entry per question (as the form was when signed) with field_id, label, type and value (a string, true/false for a checkbox, a list for multiselect). Uploaded files are not returned (value: null, has_file: true), and neither are the drawn signature image or the signer's IP address.

POST/form-submissions/{id}/voidforms:void

Body: optional reason (up to 200). The submission stays on file, struck through, and no longer counts as signed. 409 when it is already void.

POST/form-submissions/{id}/reassignforms:void

Body: client_id. Moves a submission filed under the wrong person to the right client, and detaches it from any visit. 404 when the client is not yours.

Reviews

GET/reviewsreviews:read

Submitted reviews, newest first. Optional rating (1 to 5) and staff_id.

Team and settings

Team

Staff profiles, weekly hours, days off, the services each person performs, pay settings, time clock entries and roles. Logins, invitations, who holds which role, clock-in PINs and calendar-feed links are not in the API: those stay in the staff app. Contact details need staff:read; pay needs its own scopes (pay:read, pay:write), so a key that manages hours cannot see what anyone earns.

Every PATCH and PUT takes only the fields you send and leaves the rest as they are. Unknown fields are rejected with 422. An id from another business answers 404.

Team members

GET/teamstaff:read

Every team member, inactive ones included, with contact details. Query: active (true or false), limit, page. Each member: id, display_name (what clients see), full_name (private), email, phone, position, bio, photo_url, color (#rrggbb), location_id (primary location), bookable_online, takes_appointments, active, sort_order, rotation_weeks, created_at. Pay, PINs, calendar tokens and logins are never included.

GET/team/{id}staff:read
POST/staffstaff:write

Add a team member. Required: display_name (1 to 80 characters). Optional: full_name, email, phone (up to 30), color (#rrggbb), bio (up to 300), position (up to 60), location_id, takes_appointments (default true), bookable_online (default true), active (default true), sort_order.

Like the app, a new person starts with hours Tuesday to Saturday, 9:00 to 17:00; replace them with PUT /staff/{id}/schedule. Returns 201.

PATCH/staff/{id}staff:write

Same fields as above, all optional. Send {"active": false} to deactivate someone (people are never deleted, their history points at them). Someone who does not take appointments is never bookable online, so bookable_online is switched off whenever takes_appointments is false. Blank text clears a field. 404 when location_id is not one of your locations.

Hours, time off and services

Read a person's schedule with GET /staff/{id}/schedule (needs staff:read); it returns the weekly hours, upcoming time off and the services they perform.

PUT/staff/{id}/schedulestaff:write

Replaces the weekly hours. Body: weekly (required): a list of blocks {"weekday": 1, "start": "09:00", "end": "17:00"}, weekday 0 (Sunday) to 6, 24-hour local time, optional week_index (0 to 3, default 0) and location_id. A day with a lunch break or split shift is several blocks. A day with no block is a day off. An empty list clears all hours.

Optional: rotation_weeks (1 to 4: hours repeat every N weeks) and this_week_is (0-based: which week of the cycle the current week is; default 0). Leave both out to keep the current rotation. Rules, as in the app: start before end, blocks on one day may not overlap, at most 12 blocks per day, week_index below rotation_weeks (422 otherwise). In a single-location business the location is stored as "the only one". Returns the new schedule.

GET/staff/{id}/overridesstaff:read

Days off and changed hours with their ids, from today on (or ?from=YYYY-MM-DD, optional ?to=). Each: id, date, is_off, start, end, note.

POST/staff/{id}/overridesstaff:write

A day off or changed hours. Body: date (required), kind (off or hours, required), optional to (last day of a range, up to a year; every day gets the same entry), start and end (required for hours, not allowed for off), note (up to 200). A date that already has an entry is replaced. Returns 201 with the entries.

DELETE/staff/{id}/overrides/{override_id}staff:write

Removes one entry. 404 when it is not that person's.

GET/staff/{id}/servicesstaff:read

The services they perform: service_id, price_cents and duration_min (their own; null means the service's price or length).

PUT/staff/{id}/servicesstaff:write

Replaces which services they perform. Body: services, a list of {"service_id": "…", "price_cents": 6500, "duration_min": 45}. price_cents (0 or more) and duration_min (5 to 600) are optional: leave one out to keep what is stored, send null to use the service's own, and a value equal to the service's own is stored as "use the service's". A service may appear once. 404 if a service_id is not yours. Returns the resulting list.

Pay

Pay settings are kept as a history: each change takes effect on a date, and payroll for a past period uses the settings in force then. Percentages are in basis points (4000 = 40%). Payroll runs themselves are not in the API.

GET/staff/{id}/paypay:read

Returns position, current (the settings in force today) and history (each change, oldest first, with effective_from and note). Settings: pay_type (commission, hourly, salary), main_commission_bps, product_commission_bps, cc_tip_fee_bps, hourly_rate_cents, salary_per_period_cents, overtime_override (true, false or null = follow the payroll run), tax_deduction_cents, tax_deduction_bps (both normally null).

PUT/staff/{id}/paypay:write

Records a pay change. Any of the settings above, plus position (up to 60; it changes at once, it is not pay), effective_from (default today; a future date leaves the current settings in force until then) and note (up to 200). A setting you leave out keeps the value in force on effective_from. A second change on the same date replaces the first. 422 when pay_type is hourly without an hourly rate or salary without a salary. Each change is written to the activity log. Returns the same as GET.

Time clock

Hours worked, whether clocked in at the kiosk or added by hand. Clocking in and out, and the clock-in PINs and QR codes, are not in the API.

GET/time-entriestime:read

Newest first. Query: staff_id, from and to (YYYY-MM-DD, on the entry's date), limit, page. Includes total. Each: id, staff_id, date, minutes, hours, clock_in_at, clock_out_at, location_id, note, created_at. An entry still clocked in has minutes 0 and no clock_out_at.

POST/time-entriestime:write

Add hours by hand. Body: staff_id, date and hours (0.25 to 24) are required; note (up to 120) is optional. Returns 201.

DELETE/time-entries/{id}time:delete

Removes the entry for good, as the app does.

Roles and permissions

The roles a business can give to people who log in. Giving a role to a person is done in the staff app, not here. A role made or changed through the API is saved on your account at once; it is registered with the sign-in system the next time someone saves it in the app, so assign it to people from the app.

GET/rolesroles:read

All roles: id, key, name, description, permissions, is_system (built-in), is_locked (the Owner role), member_count (how many people hold it), sort_order.

GET/roles/{id}roles:read
GET/roles/permissionsroles:read

Every permission a role can hold, grouped like the role editor: groups (each with title and permissions with action, label, description) and the flat list actions.

POST/rolesroles:write

Body: name (2 to 40 characters) and permissions (at least one action from /roles/permissions, each once) are required; description (up to 160) is optional. The key is made from the name. Returns 201.

PATCH/roles/{id}roles:write

Any of name, description, permissions. The Owner role cannot be changed (409). Built-in roles can be edited.

DELETE/roles/{id}roles:delete

Deletes a custom role. 409 for a built-in role, and when people still hold it (move them to another role in the app first).

Settings

Each section below can be read with settings:read and changed with settings:write. A PATCH takes only the fields you send; the rest stay as they are, and unknown fields are rejected with 422. Money is in cents. Payments (Stripe), sales tax, the custom domain, the texting number, billing and image uploads are not in the API: set those up in the staff app.

Business profile

GET/settings/profilesettings:read

What the public booking page shows: tagline, about, brand_color (#rrggbb; null = the default violet), website, instagram (handle), hours_text (free text), plus logo_url and cover_url (read only: upload them in the app).

PATCH/settings/profilesettings:write

Any of tagline (up to 120), about (1500), brand_color, website (a full http(s) address), instagram (a handle or an instagram.com link; stored as the handle), hours_text (600). Blank or null clears a field.

Booking rules

GET/settings/bookingsettings:read
PATCH/settings/bookingpolicies:write

Fields: online_booking_enabled, require_card_online, client_accounts_enabled, min_notice_min (0 to 10080), max_advance_days (1 to 365), booking_order (provider asks for a stylist first; time asks for a day and time first), any_provider_mode (choose shows the client who is free; first, lowest_price and fewest_bookings pick for them), cancel_window_hours (0 to 168), no_show_fee_cents, late_cancel_fee_type (none, flat, percent), late_cancel_fee_value (cents for flat; basis points for percent, so 2500 = 25%, at most 10000), late_cancel_deposit (toward or extra), deposit_refund_as (original or store_credit), booking_policy (up to 1000), address_line (up to 200).

These are settings only; nothing is charged by changing them. A fee type other than none needs a value above zero (422); setting the type to none clears the value.

Loyalty

GET/settings/loyaltysettings:read
PATCH/settings/loyaltypolicies:write

Fields: enabled, points_per_dollar (0 to 100), points_per_visit (0 to 10000), point_value_cents (1 to 1000: what one point is worth when redeemed), min_redeem_points (1 to 100000), referral_bonus_points and referral_friend_bonus_points (0 to 100000). Client balances cannot be changed through the API.

Online store

GET/settings/storesettings:read
PATCH/settings/storepolicies:write

Fields: store_enabled, gift_cards_online, shipping_flat_cents (0 = pickup only).

Reviews

GET/settings/reviewssettings:read
PATCH/settings/reviewssettings:write

Field: google_review_url, a full http(s) address, or null to remove it. Each location can have its own link (set in Settings → Reviews); this one is offered only after visits at a location without its own.

Text message wording

GET/settings/notificationssettings:read

The wording of each text: templates keyed by confirmation, reminder, rescheduled, cancellation, forms_nudge, review_request, each {"text": "…", "is_default": true}, and the placeholders you can use (such as {first_name}).

PATCH/settings/notificationssettings:write

Body: {"templates": {"reminder": "…"}}. Send only the templates you want to change (up to 500 characters each); null or an empty string puts one back to the default. Other templates keep their wording. This changes the wording of future texts only; it sends nothing.

Locations

Reading locations (GET /locations, GET /locations/{id}) needs catalog:read. Changing them needs settings:write. Each location: id, name, address_line1, address_line2, city, state, postal_code, country, timezone, phone, hours, is_default. Payment accounts and sales-tax rates are managed in the app and cannot be read or changed here.

POST/locationssettings:write

Required: name (1 to 80). Optional: address_line1 (120), city (60), state (40), postal_code (20), phone (30), timezone (an IANA name from the list the app offers, such as America/Chicago; null = the business's), hours: an object keyed by weekday "0" (Sunday) to "6", each {"open": "09:00", "close": "17:00"} or null for closed (a missing day is closed; open must be before close). Returns 201.

GET/locations/{id}catalog:read

One location, in the same shape as the list.

PATCH/locations/{id}settings:write

Same fields, all optional.

POST/locations/{id}/defaultsettings:write

Makes this the default location (the one used when nothing else says where).

DELETE/locations/{id}settings:delete

Removes a location. 409 for the default location, for the only location, and for a location that has its own payment account (remove that in the app first). Hours, staff and past visits that pointed at it are kept without a location.

Refund reasons

The short list of causes a refund can be filed under. Recording a refund is not in the API; this only manages the list.

GET/refund-reasonssettings:read

In display order, retired ones included (active: false); add ?active_only=1 to hide them. Each: id, name, sort_order, active, created_at. A business starts with six default reasons.

POST/refund-reasonssettings:write

Body: name (1 to 60). Added at the end. Returns 201.

PATCH/refund-reasons/{id}settings:write

Any of name and active (false retires a reason, true restores it). At least one reason must stay active (409). Reasons are never deleted, because past refunds point at them.

POST/refund-reasons/{id}/movesettings:write

Body: direction (up or down): swaps places with the neighbour. Returns the whole list.

Marketing and messages

Campaigns

A campaign is a one-off email or text to the clients who match an audience. Creating or editing one never sends anything: sending is its own call, and it works once.

The audience object (all fields optional, all null or false when unset): visited_within_days and lapsed_days (whole days, 1 to 3650), service_id, staff_id, location_id, tag (up to 40 characters), never_visited (true or false). Only clients who opted in to that channel and have an email address or phone number are included. Ids must belong to your business, otherwise 404.

GET/campaignsmarketing:read

Newest first. Optional status (draft or sent), limit, page.

GET/campaigns/{id}marketing:read

One campaign: name, channel, subject, body, audience, status, recipient_count, sent_at. A sent campaign also has delivery: { sent, failed, pending } counts of its messages.

POST/campaignsmarketing:write

Body: name (1 to 100), channel (email or sms), body (1 to 2000; texts at most 320), optional subject (up to 150; required for email), optional audience. Answers 201 with the draft.

409 with the app's message when an email has no subject, a text is over 320 characters, or the business has no verified text number for a text campaign.

PATCH/campaigns/{id}marketing:write

Any of the create fields; the rest stay as they were. audience, when sent, replaces the whole audience. A sent campaign cannot be edited: 409.

DELETE/campaigns/{id}marketing:delete

Deletes the campaign. Messages it already queued stay in the delivery log.

GET/campaigns/{id}/audiencemarketing:read

How many clients the campaign would reach right now: count and up to eight example names (sample).

POST/campaigns/audience-previewmarketing:read

The same count for an audience you have not saved. Body: channel, optional audience. Sends nothing.

POST/campaigns/{id}/sendcampaigns:send

Queues one message per matching client (texts carry the STOP notice, emails an unsubscribe link) and marks the campaign sent. No body. Returns queued (the number of messages) and the campaign. Delivery then follows the normal pipeline: see /notifications.

This cannot be undone and cannot be repeated: a second call, or one made while the first is still running, answers 409, as does an audience nobody matches.

Promo codes

GET/promo-codesmarketing:read

Active codes first. Optional active (true or false). Fields: code, type (percent or amount), value (a percent, or cents), starts_at, expires_at, max_uses, uses_count, service_ids (empty means any service), min_subtotal_cents, active.

GET/promo-codes/{id}marketing:read

One code.

POST/promo-codesmarketing:write

Body: code (2 to 30 characters; it is upper-cased and anything but letters, digits and dashes is dropped), type, value (a percent from 1 to 100, or an amount in cents of at least 1), optional starts_on and expires_on (calendar days like 2026-12-31 in your business's time zone; the code is valid from the start of the first day to the end of the last), max_uses, min_subtotal_cents, service_ids (your services; 404 otherwise).

A code that already exists answers 409. Answers 201.

PATCH/promo-codes/{id}marketing:write

Body: active (true or false). Turning a code off is the only change the app allows; create a new code for anything else.

Automations

Automations (workflows) send messages when something happens: a visit is booked, completed or cancelled, a client is created, a form or review comes in, a birthday, or a client has not visited for a while. Your business also has the built-in ones; they can be edited and switched off but not deleted.

trigger is one of appointment_booked, appointment_completed, appointment_cancelled, appointment_no_show, client_created, form_submitted, review_submitted, membership_payment_failed, birthday, no_visit, appointment_rescheduled, product_bought, package_low, package_expiring, membership_renewing.

filters (all optional): service_ids, category_ids, location_ids, staff_ids (your own ids; 404 otherwise), tags, min_rating and max_rating (1 to 5), first_visit_only, online_only, days(required for no_visit: days since the last visit; for package_expiring and membership_renewing: days before the date), product_ids (product_bought), remaining (package_low: sessions left at most).

steps (1 to 20, run in order), each with a type: wait (mode: delay, before_appointment, after_appointment, until or time; hours 0 to 8760; for time, time as "HH:MM" and optional weekdays, 1 Monday to 7 Sunday), sms (body), email (subject, body, optional cta_label), review_request, reminder, tag (tag), notify_staff (to: owner or provider; body), promo (a one-time code for the client: discount percent or amount, value in percent or cents, days it is good for, optional service_ids, min_cents and prefix; later messages say it with {promo_code}, {promo_offer} and {promo_expires_on}; one per workflow), and if / otherwise: split, then the steps for a match, an optional split_else and the steps otherwise, and split_end. Ifs nest like brackets, three deep. A condition is field, values (ids, tags, or stars "1"–"5"), number for the “at least” ones (dollars for money) and not to turn it around; a split is its first condition, plus up to four more in more, joined by match (all, the default, or any). Fields: the visit’s location, staff, service, category, first_visit, online, deposit_paid, forms_pending, price_at_least; the client’s tag, membership (plan ids, or none for any), points_at_least, visits_at_least, spent_at_least, upcoming, home_location, birthday_month, age_at_least; contact and consent: has_email, has_phone, can_text, can_email, text_marketing, email_marketing, last_message_sent; rating (rating triggers); and since the run started: booked_since, replied, rated_since, email_opened, email_clicked. A wait with mode until waits for its until condition (one of the “since” fields), looked at every 10 minutes, at most hours. Each step may carry an id (made for you when missing). Messages can use placeholders such as {client_first_name}, {business_name}, {booking_page_link}, {location_name} and {appointment_date_and_time} (the editor lists them all per trigger; the older short names such as {first_name} still work). Steps that give loyalty points are not available through the API. The app's rules apply and answer 422 with its wording: for example a rating request needs the visit-completed trigger, and waiting before an appointment needs the appointment-booked trigger.

GET/automationsmarketing:read

Every automation, built-in ones included, with sent_last_30_days and active_runs.

GET/automations/{id}marketing:read

One automation.

GET/automations/{id}/runsmarketing:read

Who went through it, newest first, each with its status (active, done, cancelled) and step log.

POST/automationsmarketing:write

Body: name (1 to 80), trigger, steps, optional description (up to 300), filters, exit_on_booking (stop as soon as the client books again; default false), enabled (default false: nothing sends until you turn it on). Answers 201.

PATCH/automations/{id}marketing:write

Any of the create fields plus enabled; the rest stay as they were. filters and steps, when sent, replace the whole value. Sending only enabled is the on/off switch; turning off also cancels runs in flight.

POST/automations/{id}/duplicatemarketing:write

A copy named "... (copy)", switched off. Answers 201.

DELETE/automations/{id}marketing:delete

Deletes a custom automation. A built-in one answers 409: switch it off instead.

Messages

Every text and email the system sends to clients is a row in the delivery log: confirmations, reminders, campaigns, automations and staff replies. Provider references and keys are never shown.

GET/notificationsmessages:read

The delivery log, newest first. Query: channel (email or sms), status (queued, sending, sent, failed, skipped, cancelled), client_id, campaign_id, template (for example campaign, staff_reply), from and to (ISO times, on when the message was created), limit, page.

Fields: id, channel, template, status, recipient, subject, body (an email's body is its HTML), client_id, appointment_id, campaign_id, attempts, error, scheduled_at, sent_at, created_at.

GET/notifications/{id}messages:read

One message.

POST/notifications/{id}/resendmessages:resend

Try a failed or skipped message again now (the app's Resend button). No body. Returns sent, failed, skipped (0 or 1 each) and the message with its new status. Any other status answers 409.

GET/messagesmessages:read

Texts clients sent to your business's number, newest first. Query: client_id, unread=true, limit, page. Fields: id, client_id (null when the number is not a known client), client_name, from_number, to_number, body, received_at, read_at. A client who replies STOP is opted out of texts automatically.

GET/clients/{id}/messagesmessages:read

The text conversation with one client, oldest first: direction (inbound or outbound), body, at, status. Optional limit (up to 100).

POST/clients/{id}/messagesmessages:write

Text a client, as the reply box on the client page does. Body: body (1 to 1000 characters). The text is queued and delivered right away; check /notifications (template staff_reply) for the outcome. Answers 201.

409 with the app's message, and nothing queued, when the client has no mobile number or has opted out of texts.

Sales

Sales

GET/salessales:read

Sales, newest first. Query: from, to, status (open, paid, refunded, void), client_id. Includes total.

GET/sales/{id}sales:read

One sale with its lines and payments. Card details beyond the amount are not included. Tips: each tip line has tip_method (cash, card or null when the desk did not say); the sale has tip_cash_cents and tip_card_cents; each payment's tip_cents is the tip that rode on it (a cash tip on the non-card payments, a card tip on the card payments, an unmarked tip across all by amount).

Security and limits

Security

  • Your business only. The business is taken from the key and nothing else. An id from another business answers 404, exactly as if it did not exist, and the database itself refuses to return other businesses' rows.
  • We keep a fingerprint, not your key. It cannot be shown or recovered; lost keys are replaced, not restored.
  • Allow-listed fields. Pay rates, PINs, private links, payment tokens and Stripe identifiers are never part of any response.
  • Audited. Every change made with a key shows in Settings → Activity log, attributed to the key.
  • Limits. Per-key rate limit, a body size limit and throttled failed sign-ins.

Found a security problem? Please tell us before you tell anyone else: tunityventure@gmail.com

Not in the API yet

Anything that moves money (payments, refunds, deposits and fees, gift cards, store credit and loyalty points, selling packages or memberships, payroll runs, Stripe and billing), logins and invitations, clock PINs, file and photo uploads, spreadsheet imports, and webhooks. If you need one, tell us.