Skip to content

Sloted API

A simple REST API and signed webhooks for bookings, clients and payments, plus Zapier and Make. Available on the Pro plan.

Authentication

Create an API key in Settings → API & integrations and send it as a bearer token. Keys belong to one business.

curl https://sloted.app/api/v1/services \
  -H "Authorization: Bearer sk_live_…"

120 requests per minute per key. All times are UTC ISO 8601; money is in minor units (cents) with a currency code.

Endpoints

GET/api/v1/meThe business this key belongs to (connection test).
GET/api/v1/servicesBookable services with duration and price.
GET/api/v1/availability?service_id=…&from=2026-10-01&to=2026-10-07Free start times for a service between two dates.
GET/api/v1/bookings?from=…&to=…&status=confirmed&cursor=…Bookings starting in a range, paginated with cursor.
POST/api/v1/bookingsBook a free time. Confirmed immediately; payment is taken in person.
GET/api/v1/bookings/{id}One booking.
POST/api/v1/bookings/{id}/rescheduleMove a booking: { "start": "…" }.
POST/api/v1/bookings/{id}/cancelCancel a booking (the client is notified).
GET/api/v1/clients?email=…Find clients, e.g. by email.
POST/api/v1/clientsCreate a client, or return the existing one with that email/phone.
POST/api/v1/hooksSubscribe a URL to an event (Zapier/Make REST hooks).
DELETE/api/v1/hooks/{id}Remove a subscription.

Create a booking

curl -X POST https://sloted.app/api/v1/bookings \
  -H "Authorization: Bearer sk_live_…" -H "Content-Type: application/json" \
  -d '{
    "service_id": "…",
    "start": "2026-10-06T09:00:00Z",
    "staff_id": null,
    "client": { "first_name": "Anna", "email": "anna@example.com" },
    "idempotency_key": "order-1234"
  }'

Pass idempotency_key to make retries safe. A time that's no longer free returns 409, so nothing is ever double-booked.

Errors

{ "error": { "code": "slot_unavailable", "message": "That time is not available." } }
401 unauthorized · 403 plan_limit · 404 not_found · 409 slot_unavailable
422 validation_error · 429 rate_limited

Webhooks

Add endpoints in the dashboard or via /api/v1/hooks. Each delivery is a JSON POST signed with your endpoint's secret.

  • booking.created
  • booking.updated
  • booking.cancelled
  • booking.completed
  • booking.no_show
  • payment.succeeded
  • payment.refunded
  • client.created
  • form.submitted
POST https://your-app.example.com/sloted
Sloted-Event: booking.created
Sloted-Signature: t=1791234567,v1=5f2b…

{ "id": "evt_…", "type": "booking.created", "created": "2026-10-01T08:00:00Z",
  "data": { "booking": { "id": "…", "status": "confirmed", "start": "…", "client": { … } } } }

Verifying the signature

import { createHmac, timingSafeEqual } from "node:crypto";

function verify(secret, rawBody, header) {
  const { t, v1 } = Object.fromEntries(header.split(",").map((p) => p.split("=")));
  if (Math.abs(Date.now() / 1000 - Number(t)) > 300) return false; // replay window
  const expected = createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex");
  return timingSafeEqual(Buffer.from(expected), Buffer.from(v1));
}

Respond with any 2xx within 10 seconds. Failed deliveries are retried with backoff (8 attempts over about 4 hours). Payloads never include form answers.

Zapier & Make

Both use your API key. Triggers subscribe with REST hooks; actions call the booking and client endpoints.

POST /api/v1/hooks     { "target_url": "https://hooks.zapier.com/…", "event": "booking.created" }
→ 201 { "id": "…", "secret": "whsec_…" }
DELETE /api/v1/hooks/{id}  → 204