The partner API, documented.

Every endpoint of the partner API: a request and a response for each, the errors, the limits, the promises.

The first call

GET /api/v1/business
Authorization: Bearer $PAMPRR_API_KEY

200 OK

{
  "business": {
    "id": "00000000-0000-4000-8000-0000000b0001",
    "name": "Example Studio Ltd",
    "slug": "example-studio",
    "displayName": "Example Studio",
    "email": "hello@example.test",
    "timezone": "Europe/London",
    "currency": "GBP"
  }
}

Getting started

From a key to the first successful call in three steps.

  1. Mint a key

    In Settings, Operations, API keys, create a key with the Read only access setting, copy it from the one time reveal, and store it in your server's environment as PAMPRR_API_KEY.

  2. Make the first call

    Ask who the key belongs to. The answer is your business record: its id, names, slug, email, time zone and currency.

  3. Then the diary

    List services, staff and locations to learn the ids a booking needs, search availability for a free slot, and, with a key that carries bookings:write, create the booking.

The first call
curl "https://pro.pamprr.me/api/v1/business" \
  -H "Authorization: Bearer $PAMPRR_API_KEY"

Authentication

Every call carries the key as a bearer token; the key is the business.

Send the key as Authorization: Bearer with every request. The API is server to server: keep the key in your backend's environment, never in a browser page or a mobile app.

  • A key is minted by an owner or admin in Settings, Operations, API keys, revealed once, and never stored in plain text by pamprr.
  • The first eight characters after the prefix are what the Settings list shows, so they are safe to quote; the rest is the secret.
  • A missing key, a malformed key and a key that does not verify all receive the same 401 with the code UNAUTHORIZED and no reason.
  • A key that verified but is revoked or expired receives the same code with a reason, because only the holder of the full secret can learn it.
  • Every 401 carries a WWW-Authenticate challenge.

Provide your pamprr_live_<secret> API key as Bearer <token>. Keys are minted in the operator Settings UI and revealed exactly once. Every key carries an access setting (a list of scopes such as bookings:read); each operation names the one scope it requires in x-pamprr-required-scope, and a key without it receives 403 FORBIDDEN. The security requirement on each operation names that scope as a role, the OpenAPI 3.1 form; x-pamprr-required-scope carries the same name for tools that ignore roles on http schemes.

HeaderWhat it says
WWW-AuthenticateRFC 6750 bearer challenge. On a 401: Bearer error="invalid_token" when a credential was presented, or the bare challenge Bearer when none was. On a 403: Bearer error="insufficient_scope", scope="<the required scope>".

Access and scopes

A key carries an access setting; each endpoint requires exactly one scope.

The Settings picker offers Read only (the default, every read scope), Full access (every scope) and Custom (read or write per resource).

  • Your business record is always readable.
  • A write scope stores its read scope beside it.
  • A call outside the key's access receives 403 FORBIDDEN with requiredScope naming the scope it lacks; the request was authenticated and counted against the allowance.

Conventions

One set of shapes everywhere.

ConventionThe rule
Requests and responsesJSON. Send Content-Type: application/json on a write. Every response body is a JSON object.
TimesISO 8601 in UTC with a Z suffix. Every business runs on Europe/London today; the business and location records name the zone, and availability answers carry a localTime beside each UTC start.
MoneyIntegers in pence. The business record names the currency; GBP for every business today.
IdsUUIDs. A path id that is not a UUID, or that names another business's record, answers 404.
NamescamelCase fields. Absent values are null, never omitted.
EnvelopesA list answers { <resource>: [...], nextCursor }; a single record answers { business }, { booking } or { client }; a cancel adds alreadyCancelled and a client create may add existing; the availability search and the eligible staff answer their own object.
HostOne host, https://pro.pamprr.me, and one version prefix, /api/v1, carried by every path.

Errors

One envelope on every 4xx and 5xx; branch on the code, never on the sentence.

Every error body is { error, code, requestId }: a sentence for a human, the word your software branches on, and the id to quote to support. Some codes add a field beside those three, shown in the catalogue below.

StatusMeaning on this API
200The call worked: a read, a change, or a client that already existed.
201A booking or a client was created.
400The request is malformed, a value is out of bounds, a cursor is bad, an idempotency key is malformed, or a branch is not usable.
401No key, a key that does not verify, or a key that is revoked or expired.
402The booking must be made through the consumer booking flow: a deposit or a saved card is required.
403The key verified but lacks the scope the endpoint requires.
404Not yours, gone, archived, or not a UUID; the API never says which.
409The state refuses the change: a taken or held slot, a terminal booking, or a retry still in flight.
422The idempotency key was already used for a different request.
429Too many requests: the allowance, or abuse protection.
500Something went wrong at pamprr; quote the request id.
CodeStatusWhenExample body
INVALID_JSON400The body is not JSON{"error":"Request body must be valid JSON.","code":"INVALID_JSON","requestId":"req_000000000000000000000001"}
VALIDATION_FAILED400A value fails its rule; field names it where one is named{"error":"locationId must be a UUID.","code":"VALIDATION_FAILED","field":"locationId","requestId":"req_000000000000000000000002"}
INVALID_START_TIME400startTime does not parse{"error":"Booking start time is not a valid ISO date.","code":"INVALID_START_TIME","requestId":"req_000000000000000000000003"}
PAST_START_TIME400startTime is in the past{"error":"Booking start time is in the past.","code":"PAST_START_TIME","requestId":"req_000000000000000000000004"}
INVALID_LOCATION400The branch does not offer the service{"error":"This service is not offered at the requested location.","code":"INVALID_LOCATION","requestId":"req_000000000000000000000005"}
INVALID_DATE_RANGE400A date bound does not parse{"error":"startDate and endDate must be valid ISO dates.","code":"INVALID_DATE_RANGE","requestId":"req_000000000000000000000006"}
INVALID_CURSOR400The cursor does not decode or belongs to other filters{"error":"The cursor is not valid for this list and these filters. Start again from the first page.","code":"INVALID_CURSOR","requestId":"req_000000000000000000000007"}
IDEMPOTENCY_KEY_INVALID400The Idempotency-Key is malformed{"error":"Idempotency-Key must be 1 to 255 printable ASCII characters; a UUID is recommended.","code":"IDEMPOTENCY_KEY_INVALID","requestId":"req_000000000000000000000008"}
UNAUTHORIZED401No key, or a key that does not verify: the one collapsed refusal{"error":"Invalid API key.","code":"UNAUTHORIZED","requestId":"req_00000000000000000000000a"}
DEPOSIT_REQUIRED402The service's effective booking protection includes a deposit and Stripe is live{"error":"A deposit is required for this service. Bookings for this service must be made through the consumer booking flow.","code":"DEPOSIT_REQUIRED","requestId":"req_000000000000000000000017"}
CARD_CAPTURE_REQUIRED402The service's effective booking protection is card capture and Stripe is live{"error":"This service requires a saved payment method and consent before booking. Bookings for this service must be made through the consumer booking flow.","code":"CARD_CAPTURE_REQUIRED","requestId":"req_000000000000000000000018"}
FORBIDDEN403A read only key attempting a write{"error":"This API key does not have the bookings:write scope.","code":"FORBIDDEN","requiredScope":"bookings:write","requestId":"req_00000000000000000000000d"}
NOT_FOUND404Not yours, gone, archived, or not a UUID; the API never says which{"error":"Booking not found.","code":"NOT_FOUND","requestId":"req_000000000000000000000010"}
BOOKING_OVERLAP409Another booking has the slot{"error":"This time slot is already booked.","code":"BOOKING_OVERLAP","requestId":"req_000000000000000000000011"}
BOOKING_COMPLETED409A completed booking cannot be cancelled or rescheduled through the API{"error":"This booking is completed and cannot be cancelled through the API.","code":"BOOKING_COMPLETED","requestId":"req_000000000000000000000013"}
BOOKING_NO_SHOW409A no show booking cannot be cancelled or rescheduled through the API{"error":"This booking was marked as a no show and cannot be cancelled through the API.","code":"BOOKING_NO_SHOW","requestId":"req_000000000000000000000014"}
BOOKING_CANCELLED409A cancelled booking cannot be rescheduled{"error":"This booking is cancelled and cannot be rescheduled.","code":"BOOKING_CANCELLED","requestId":"req_000000000000000000000015"}
SLOT_HELD409A customer is mid checkout for the slot{"error":"Someone else is booking this time right now. It frees up in a few minutes if they do not complete their booking. Please choose another time or try again shortly.","code":"SLOT_HELD","requestId":"req_000000000000000000000016"}
IDEMPOTENCY_REQUEST_IN_PROGRESS409A retry while the first request is still running{"error":"A request with this idempotency key is still being processed. Retry shortly.","code":"IDEMPOTENCY_REQUEST_IN_PROGRESS","requestId":"req_000000000000000000000012"}
IDEMPOTENCY_KEY_REUSED422The same key with a different request{"error":"This idempotency key was used for a different request. Use a new key for a new request.","code":"IDEMPOTENCY_KEY_REUSED","requestId":"req_00000000000000000000000f"}
RATE_LIMIT_EXCEEDED429The key's sliding sixty second allowance is spent; X-RateLimit-Limit is present{"error":"Rate limit exceeded.","code":"RATE_LIMIT_EXCEEDED","requestId":"req_000000000000000000000019"}
INTERNAL_ERROR500An unexpected failure; the body carries no internal detail{"error":"Could not list bookings. Please try again.","code":"INTERNAL_ERROR","requestId":"req_00000000000000000000001b"}

Rate limits

One allowance per key over a sliding sixty second window, stated on every authenticated response.

HeaderWhat it says
X-RateLimit-LimitThe allowance in effect for this key and endpoint, per sliding sixty second window (100 today). Authoritative: read it rather than hard coding the number. It may rise without notice and never falls without a deprecation notice. Present on every authenticated response; absent from a 429 raised by abuse protection rather than the allowance.
X-RateLimit-RemainingRequests left in the current window after this one; 0 on a 429. Every authenticated request counts, errors and idempotent replays included.
X-RateLimit-ResetISO 8601 UTC timestamp by which the window will have fully cleared. An upper bound, not the exact moment one slot frees.
Retry-AfterWhole seconds to wait before retrying, rounded up. Present on every 429.

Pagination

The lists page by an opaque cursor; the eligible staff answer is the whole set.

limit: Rows per page, 1 to 100 (a value above 100 is treated as 100).

cursor: Opaque keyset cursor from the previous page's nextCursor. Store and pass it back unchanged with the same filters; absent on the first page. A cursor never expires; one from another list, or from different filters, is refused with 400 INVALID_CURSOR.

nextCursor: Pass back as cursor to fetch the next page; null when this page was the last.

Idempotency

A write retried with the same key replays the first outcome.

Idempotency-Key: Optional but recommended: any string of 1 to 255 printable ASCII characters, a UUID v4 by preference, unique per request. For 24 hours the same key with the same request replays the first response (2xx, 4xx or 5xx alike) with Idempotent-Replayed: true; the same key with a different request is refused with 422 IDEMPOTENCY_KEY_REUSED; a retry while the first request is still running is refused with 409 IDEMPOTENCY_REQUEST_IN_PROGRESS; a malformed key is refused with 400 IDEMPOTENCY_KEY_INVALID. Keys are scoped to your business, so a rotated API key still replays. Requests are processed once, with one qualification: a retry more than sixty seconds after a request that never completed may execute afresh, so in the rare event of a timeout retry with the same key promptly.

HeaderWhat it says
Idempotent-ReplayedPresent, with the value true, only when this response is the stored outcome of an earlier request that carried the same Idempotency-Key. The body is byte identical to the original.
X-Original-Request-IdOn a replay: the id of the request that did the work. X-Request-Id names this request.

Request ids

Every response names its request.

HeaderWhat it says
X-Request-IdServer generated id for this request, present on every response. Quote it to support; it is meaningless otherwise.

requestId: The same id as the X-Request-Id header. Quote it to support.

Business

The record the key belongs to.

The Business object

FieldTypeAlwaysMeaning
iduuidyes
namestringyes
slugstringyes
displayNamestringyes
emailstring or nullyes
timezonestringyesThe IANA zone the business runs on; Europe/London for every business today. Render local times with it; every time in this API is UTC.
currencystringyesThe ISO 4217 code every price is in; GBP for every business today. Prices are in pence.
GET

/api/v1/business

business:read

The business the key belongs to.

No parameters: the key selects the business.

Its names, slug and email, the time zone every time in this API is read against (Europe/London for every business today) and the currency every price is in (GBP, in pence).

Request
curl "https://pro.pamprr.me/api/v1/business" \
  -H "Authorization: Bearer $PAMPRR_API_KEY"
Response 200

The business the key belongs to

  • X-Request-Id
  • X-RateLimit-Limit
  • X-RateLimit-Remaining
  • X-RateLimit-Reset
{
  "business": {
    "id": "00000000-0000-4000-8000-0000000b0001",
    "name": "Example Studio Ltd",
    "slug": "example-studio",
    "displayName": "Example Studio",
    "email": "hello@example.test",
    "timezone": "Europe/London",
    "currency": "GBP"
  }
}

Locations

The business's branches.

The Location object

A branch of the business. Never the whole row: no coordinates, catchment, travel or hours columns.

FieldTypeAlwaysMeaning
iduuidyes
namestringyes
addressstring or nullyes
citystring or nullyes
postcodestring or nullyes
phonestring or nullyesThe branch's public contact, as shown to customers.
emailstring or nullyes
websitestring or nullyes
locationModelfixed | mobile | both or nullyesWhether the branch takes customers at its address, travels to them, or both. Null on a legacy row.
isPrimarybooleanyes
isVisiblebooleanyesFalse when the business has hidden the branch from customers: it is live for the business but cannot take a booking through the API or the online calendar.
timezonestringyesThe IANA zone the branch's hours and its bookings' local times are in. Europe/London for every business today; the field is where a per business zone would appear.
createdAtdate-timeyes
GET

/api/v1/locations

locations:read

The business's branches, live ones only, the primary first.

NameWhereTypeRequiredMeaning
limitqueryinteger (1 to 100, default 50)noRows per page, 1 to 100 (a value above 100 is treated as 100). Example: 50
cursorquerystringnoOpaque keyset cursor from the previous page's nextCursor. Store and pass it back unchanged with the same filters; absent on the first page. A cursor never expires; one from another list, or from different filters, is refused with 400 INVALID_CURSOR. Example: eyJ2IjoyLCJsIjoibG9jYXRpb25zIiwiayI6WyIyMDI2LTAzLTAyVDA5OjAwOjAwLjAwMFoiLCIwMDAwMDAwMC0wMDAwLTQwMDAtODAwMC0wMDAwMDAwMDBjMDIiXSwiZiI6ImUzYjBjNDQyIn0

A branch the business has hidden from customers is listed with isVisible false: it cannot take a booking through the API or the online calendar, but the business still sees it.

Every location carries timezone; every business runs on Europe/London today.

Request
curl "https://pro.pamprr.me/api/v1/locations?limit=50" \
  -H "Authorization: Bearer $PAMPRR_API_KEY"
Response 200

Three branches, the primary first, one hidden from customers

  • X-Request-Id
  • X-RateLimit-Limit
  • X-RateLimit-Remaining
  • X-RateLimit-Reset
{
  "locations": [
    {
      "id": "00000000-0000-4000-8000-000000000c01",
      "name": "Example Studio, Soho",
      "address": "12 Example Street",
      "city": "London",
      "postcode": "EX1 1EX",
      "phone": "+44 20 7946 0100",
      "email": "soho@example.test",
      "website": "https://example.test",
      "locationModel": "both",
      "isPrimary": true,
      "isVisible": true,
      "timezone": "Europe/London",
      "createdAt": "2026-03-02T09:00:00.000Z"
    },
    {
      "id": "00000000-0000-4000-8000-000000000c02",
      "name": "Example Studio, Islington",
      "address": "4 Sample Road",
      "city": "London",
      "postcode": "EX2 2EX",
      "phone": "+44 20 7946 0101",
      "email": null,
      "website": null,
      "locationModel": "fixed",
      "isPrimary": false,
      "isVisible": true,
      "timezone": "Europe/London",
      "createdAt": "2026-05-14T11:20:00.000Z"
    },
    {
      "id": "00000000-0000-4000-8000-000000000c03",
      "name": "Example Studio, Pop up",
      "address": null,
      "city": null,
      "postcode": null,
      "phone": null,
      "email": null,
      "website": null,
      "locationModel": null,
      "isPrimary": false,
      "isVisible": false,
      "timezone": "Europe/London",
      "createdAt": "2026-08-01T08:00:00.000Z"
    }
  ],
  "nextCursor": null
}

Staff

The roster's partner projection.

The Staff object

A staff member's partner projection. Never email, phone, gender, pronouns, bio, specialisms, the not bookable reason or commission.

FieldTypeAlwaysMeaning
iduuidyesThe staffProfileId a booking names.
namestringyesThe display name, else the first and last names; the identity a booking's staffName snapshot carries.
initialsstringyes
colourstring or nullyesThe calendar colour.
jobTitlestring or nullyes
profileImageUrlstring or nullyes
isBookablebooleanyes
acceptsOnlineBookingsbooleanyes
deliveryModefixed | mobile | bothyes
homeLocationIduuid or nullyes
locationIdsarray of uuidyesEvery branch the member works at, the home branch included.
serviceIdsarray of uuidyesThe services the member is assigned to perform.
createdAtdate-timeyes
GET

/api/v1/staff

staff:read

The roster's partner projection.

NameWhereTypeRequiredMeaning
limitqueryinteger (1 to 100, default 50)noRows per page, 1 to 100 (a value above 100 is treated as 100). Example: 50
cursorquerystringnoOpaque keyset cursor from the previous page's nextCursor. Store and pass it back unchanged with the same filters; absent on the first page. A cursor never expires; one from another list, or from different filters, is refused with 400 INVALID_CURSOR. Example: eyJ2IjoyLCJsIjoic3RhZmYiLCJrIjpbIlRoZW8iLCJCcmFuZHQiLCIwMDAwMDAwMC0wMDAwLTQwMDAtODAwMC0wMDAwMDAwMDAwYTIiXSwiZiI6ImUzYjBjNDQyIn0
locationIdqueryuuidnoOnly the members of this branch (a member works at every branch listed in locationIds). A branch that is not one of your business's live branches is refused with 400 INVALID_LOCATION; a value that is not a UUID with 400 VALIDATION_FAILED. Example: 00000000-0000-4000-8000-000000000c01

The staff id a booking needs, the name, initials, colour, job title, photo, the bookable flags, the delivery mode, the home branch, the branches each member works at and the services each performs.

Never contact or demographic fields.

Filter by locationId for the members of one branch.

Request
curl "https://pro.pamprr.me/api/v1/staff?locationId=00000000-0000-4000-8000-000000000c01" \
  -H "Authorization: Bearer $PAMPRR_API_KEY"
Response 200

The members of one branch

  • X-Request-Id
  • X-RateLimit-Limit
  • X-RateLimit-Remaining
  • X-RateLimit-Reset
{
  "staff": [
    {
      "id": "00000000-0000-4000-8000-0000000000a1",
      "name": "Maya Okafor",
      "initials": "MO",
      "colour": "#6B8E4E",
      "jobTitle": "Senior therapist",
      "profileImageUrl": "https://example.test/images/maya.jpg",
      "isBookable": true,
      "acceptsOnlineBookings": true,
      "deliveryMode": "both",
      "homeLocationId": "00000000-0000-4000-8000-000000000c01",
      "locationIds": [
        "00000000-0000-4000-8000-000000000c01",
        "00000000-0000-4000-8000-000000000c02"
      ],
      "serviceIds": [
        "00000000-0000-4000-8000-0000000000e1",
        "00000000-0000-4000-8000-0000000000e2"
      ],
      "createdAt": "2026-03-02T09:05:00.000Z"
    },
    {
      "id": "00000000-0000-4000-8000-0000000000a2",
      "name": "Theo Brandt",
      "initials": "TB",
      "colour": "#C58B3F",
      "jobTitle": "Facialist",
      "profileImageUrl": null,
      "isBookable": true,
      "acceptsOnlineBookings": false,
      "deliveryMode": "fixed",
      "homeLocationId": "00000000-0000-4000-8000-000000000c01",
      "locationIds": [
        "00000000-0000-4000-8000-000000000c01"
      ],
      "serviceIds": [
        "00000000-0000-4000-8000-0000000000e2"
      ],
      "createdAt": "2026-06-10T10:00:00.000Z"
    }
  ],
  "nextCursor": null
}

Services

The menu, and who performs each service.

The Service object

FieldTypeAlwaysMeaning
iduuidyes
namestringyes
descriptionstring or nullyes
durationMinutesintegeryes
priceInPenceintegeryes
isActivebooleanyes
isOnlineBookablebooleanyes
isAddOnbooleanyes
locationIdsarray of uuidyesBranch ids the service is offered at, from the service_locations junction (Catalogue Stage 1). Always present; empty when the service has no offering rows.

The EligibleStaff object

The members who can perform one service, and where.

FieldTypeAlwaysMeaning
serviceIduuidyes
serviceNamestringyes
locationIduuid or nullyesThe branch asked for; null when the answer covers every offering branch.
staffarray of objects (id, name, initials, colour, jobTitle, profileImageUrl, isBookable, acceptsOnlineBookings, deliveryMode, locationIds)yes
GET

/api/v1/services

services:read

The business's menu in its own order.

NameWhereTypeRequiredMeaning
limitqueryinteger (1 to 100, default 50)noRows per page, 1 to 100 (a value above 100 is treated as 100). Example: 50
cursorquerystringnoOpaque keyset cursor from the previous page's nextCursor. Store and pass it back unchanged with the same filters; absent on the first page. A cursor never expires; one from another list, or from different filters, is refused with 400 INVALID_CURSOR. Example: eyJ2IjoyLCJsIjoic2VydmljZXMiLCJrIjpbMiwiU2lnbmF0dXJlIEZhY2lhbCIsIjAwMDAwMDAwLTAwMDAtNDAwMC04MDAwLTAwMDAwMDAwMDBlMiJdLCJmIjoiZTNiMGM0NDIifQ

Every service with its duration, price in pence, flags and the branches offering it; inactive services are returned with isActive false.

Each row is the Service projection.

Request
curl "https://pro.pamprr.me/api/v1/services?limit=50" \
  -H "Authorization: Bearer $PAMPRR_API_KEY"
Response 200

The first page of the menu, a second page to follow

  • X-Request-Id
  • X-RateLimit-Limit
  • X-RateLimit-Remaining
  • X-RateLimit-Reset
{
  "services": [
    {
      "id": "00000000-0000-4000-8000-0000000000e1",
      "name": "Consultation",
      "description": "A thirty minute skin consultation.",
      "durationMinutes": 30,
      "priceInPence": 0,
      "isActive": true,
      "isOnlineBookable": true,
      "isAddOn": false,
      "locationIds": [
        "00000000-0000-4000-8000-000000000c01",
        "00000000-0000-4000-8000-000000000c02"
      ]
    },
    {
      "id": "00000000-0000-4000-8000-0000000000e2",
      "name": "Signature Facial",
      "description": null,
      "durationMinutes": 60,
      "priceInPence": 6500,
      "isActive": true,
      "isOnlineBookable": true,
      "isAddOn": false,
      "locationIds": [
        "00000000-0000-4000-8000-000000000c01",
        "00000000-0000-4000-8000-000000000c02"
      ]
    }
  ],
  "nextCursor": "eyJ2IjoyLCJsIjoic2VydmljZXMiLCJrIjpbMiwiU2lnbmF0dXJlIEZhY2lhbCIsIjAwMDAwMDAwLTAwMDAtNDAwMC04MDAwLTAwMDAwMDAwMDBlMiJdLCJmIjoiZTNiMGM0NDIifQ"
}
GET

/api/v1/services/{id}/eligible-staff

services:read

Who can perform a service, and at which branches.

NameWhereTypeRequiredMeaning
idpathuuidyesThe service id from the services list. A service that is not yours, is deleted, is inactive or is offered at no branch customers can see is 404 NOT_FOUND. Example: 00000000-0000-4000-8000-0000000000e2
locationIdqueryuuidnoOnly the members who can perform the service at this branch. A branch that is not one of your visible branches offering this service is refused with 400 INVALID_LOCATION; a value that is not a UUID with 400 VALIDATION_FAILED. Example: 00000000-0000-4000-8000-000000000c01

The members assigned to the service who are bookable, each with locationIds narrowed to the visible branches where they can perform it (their branch memberships intersected with the branches offering the service), from the same rules the availability search applies.

Every member listed can take a booking for this service at each listed branch, subject to hours and existing bookings; the availability search is the next call.

A listed member need not have any free slot.

The whole set, not paginated.

Request
curl "https://pro.pamprr.me/api/v1/services/00000000-0000-4000-8000-0000000000e2/eligible-staff" \
  -H "Authorization: Bearer $PAMPRR_API_KEY"
Response 200

Every bookable member assigned to the service, with the branches each can perform it at

  • X-Request-Id
  • X-RateLimit-Limit
  • X-RateLimit-Remaining
  • X-RateLimit-Reset
{
  "serviceId": "00000000-0000-4000-8000-0000000000e2",
  "serviceName": "Signature Facial",
  "locationId": null,
  "staff": [
    {
      "id": "00000000-0000-4000-8000-0000000000a1",
      "name": "Maya Okafor",
      "initials": "MO",
      "colour": "#6B8E4E",
      "jobTitle": "Senior therapist",
      "profileImageUrl": "https://example.test/images/maya.jpg",
      "isBookable": true,
      "acceptsOnlineBookings": true,
      "deliveryMode": "both",
      "locationIds": [
        "00000000-0000-4000-8000-000000000c01",
        "00000000-0000-4000-8000-000000000c02"
      ]
    },
    {
      "id": "00000000-0000-4000-8000-0000000000a2",
      "name": "Theo Brandt",
      "initials": "TB",
      "colour": "#C58B3F",
      "jobTitle": "Facialist",
      "profileImageUrl": null,
      "isBookable": true,
      "acceptsOnlineBookings": false,
      "deliveryMode": "fixed",
      "locationIds": [
        "00000000-0000-4000-8000-000000000c01"
      ]
    }
  ]
}

Availability

The bookable slots, computed live from the business's own calendar rules.

The AvailabilityDay object

The date mode: one day of slots.

FieldTypeAlwaysMeaning
datedateyes
timezonestringyes
serviceIduuidyes
slotMinutesintegeryesThe step between candidate starts (15).
durationMinutesintegeryesThe service's duration.
slotsarray of AvailabilitySlotyes
messagestring or nullyesWhy there are no slots when there are none: the business is closed that day, or no staff member can take the service in the requested mode.

The AvailabilitySlot object

FieldTypeAlwaysMeaning
startTimedate-timeyesThe slot's start, UTC.
endTimedate-timeyesThe start plus the service's duration: the span a booking at this slot will occupy. Buffers between appointments are applied by the search and never appear here.
localTimestringyesThe start as the business sees it, HH:MM in the response's timezone.
staffarray of objects (id, name, locationId)yesWho can take this slot, and the branch each would take it at.

The AvailabilitySummary object

The summary mode: a status per day over the window.

FieldTypeAlwaysMeaning
fromdateyes
timezonestringyes
serviceIduuidyes
daysarray of objects (date, status)yes
messagestring or nullyes

The AvailabilityWindow object

The slot window mode (detail=slots): the slots per day over up to seven days.

FieldTypeAlwaysMeaning
fromdateyes
timezonestringyes
serviceIduuidyes
slotMinutesintegeryes
durationMinutesintegeryes
daysarray of objects (date, status, slots)yes
GET

/api/v1/availability

availability:read

The bookable slots for a service, computed live from the same rules the business's own online booking calendar uses.

NameWhereTypeRequiredMeaning
serviceIdqueryuuidyesThe service. Must be active and offered at a branch customers can see; otherwise 404 NOT_FOUND. Example: 00000000-0000-4000-8000-0000000000e2
datequerydatenoOne day of slots (YYYY-MM-DD). Send date or from, never both. Example: 2026-10-06
fromquerydatenoThe first day of a window (YYYY-MM-DD). Example: 2026-10-05
daysqueryinteger (1 to 31)noWith from: the window's length. 1 to 31 for the summary (default 14); 1 to 7 with detail=slots (default 7). Example: 7
detailquerysummary | slotsnoWith from: summary (a status per day, the default) or slots (the slots per day, days capped at 7). Example: slots
staffProfileIdqueryuuidnoOnly this staff member's slots. Must be one of your staff; otherwise 404 NOT_FOUND. Example: 00000000-0000-4000-8000-0000000000a2
locationIdqueryuuidnoOnly this branch's slots. Must be a branch customers can see that offers the service; otherwise 400 INVALID_LOCATION. Example: 00000000-0000-4000-8000-000000000c01
deliveryModequeryfixed | mobilenoRestrict to staff who work at the branch (fixed) or travel to the customer (mobile); absent means either. Mobile applies the business's travel buffer between visits. Example: fixed

Those rules, applied at the moment of the request: opening hours and closures, each staff member's schedule, existing bookings, customers mid checkout (their held slot reads as taken and frees itself within ten minutes if they abandon checkout), time blocks and travel time.

Three modes: date for one day of slots; from with days (1 to 31) for a per day status; from with days (1 to 7) and detail=slots for the slots per day.

Slots start on fifteen minute boundaries from the branch's opening time; today's slots start at least thirty minutes ahead.

The answer is advisory: a booking or a checkout after it can take a slot, and the create booking call is the truth (409 BOOKING_OVERLAP when the slot is gone, 409 SLOT_HELD while a customer holds it).

Every time is UTC; every business runs on Europe/London today and the response names the zone.

Never cached.

Request: One day of slots
curl "https://pro.pamprr.me/api/v1/availability?serviceId=00000000-0000-4000-8000-0000000000e2&date=2026-10-06" \
  -H "Authorization: Bearer $PAMPRR_API_KEY"
Request: A status per day
curl "https://pro.pamprr.me/api/v1/availability?serviceId=00000000-0000-4000-8000-0000000000e2&from=2026-10-05&days=7" \
  -H "Authorization: Bearer $PAMPRR_API_KEY"
Request: The slots per day for one therapist
curl "https://pro.pamprr.me/api/v1/availability?serviceId=00000000-0000-4000-8000-0000000000e2&from=2026-10-05&days=7&detail=slots&staffProfileId=00000000-0000-4000-8000-0000000000a2" \
  -H "Authorization: Bearer $PAMPRR_API_KEY"
Response 200

date: one day of slots

  • X-Request-Id
  • X-RateLimit-Limit
  • X-RateLimit-Remaining
  • X-RateLimit-Reset
{
  "date": "2026-10-06",
  "timezone": "Europe/London",
  "serviceId": "00000000-0000-4000-8000-0000000000e2",
  "slotMinutes": 15,
  "durationMinutes": 60,
  "slots": [
    {
      "startTime": "2026-10-06T09:15:00.000Z",
      "endTime": "2026-10-06T10:15:00.000Z",
      "localTime": "10:15",
      "staff": [
        {
          "id": "00000000-0000-4000-8000-0000000000a1",
          "name": "Maya Okafor",
          "locationId": "00000000-0000-4000-8000-000000000c01"
        }
      ]
    },
    {
      "startTime": "2026-10-06T13:30:00.000Z",
      "endTime": "2026-10-06T14:30:00.000Z",
      "localTime": "14:30",
      "staff": [
        {
          "id": "00000000-0000-4000-8000-0000000000a1",
          "name": "Maya Okafor",
          "locationId": "00000000-0000-4000-8000-000000000c02"
        },
        {
          "id": "00000000-0000-4000-8000-0000000000a2",
          "name": "Theo Brandt",
          "locationId": "00000000-0000-4000-8000-000000000c01"
        }
      ]
    }
  ],
  "message": null
}

Bookings

The diary: list, create, read, cancel and reschedule.

The Booking object

FieldTypeAlwaysMeaning
iduuidyes
customerNamestringyes
customerEmailstring or nullyes
customerPhonestring or nullyes
serviceNamestringyes
serviceDurationintegeryes
staffNamestringyes
statuspending | confirmed | in_progress | completed | cancelled | no_showyes
sourceonline | assisted | walk_in | phone | apiyesHow the booking was made; api for a booking created through this API (the dashboard shows it as Partner).
paymentStatusunpaid | deposit | paidyes
startTimedate-timeyes
endTimedate-timeyes
priceInPenceinteger or nullyes
notesstring or nullyes
createdAtdate-timeyes
serviceIduuid or nullyesThe service booked; null once that service is deleted (the serviceName snapshot remains).
staffProfileIduuid or nullyesThe staff member; null once unassigned (the staffName snapshot remains).
locationIduuid or nullyesThe branch; null on bookings made before branches were recorded.
updatedAtdate-time or nullyesWhen the booking last changed; null until it first changes after creation. The updatedSince filter reads this, else createdAt.
cancelledAtdate-time or nullyesWhen the booking was cancelled; null unless cancelled.
GET

/api/v1/bookings

bookings:read

The bookings in a start time window, oldest first.

NameWhereTypeRequiredMeaning
startDatequerydatenoInclusive lower bound on start_time. Defaults to 30 days ago. Example: 2026-10-05
endDatequerydatenoInclusive upper bound on start_time. Defaults to 90 days from now. Example: 2026-10-11
statusquerypending | confirmed | in_progress | completed | cancelled | no_show | allnoOnly this status; all for every status. Absent: every status but cancelled. Any other word is refused with 400 VALIDATION_FAILED. Example: all
updatedSincequerydate-timenoOnly bookings whose last change (updatedAt, else createdAt) is at or after this instant, inside the window. The order stays start time. A value that is not an ISO 8601 instant is refused with 400 VALIDATION_FAILED. Example: 2026-10-06T08:00:00Z
staffProfileIdqueryuuidnoOnly this staff member's bookings. A value that is not a UUID is refused with 400 VALIDATION_FAILED. Example: 00000000-0000-4000-8000-0000000000a1
locationIdqueryuuidnoOnly this branch's bookings. A value that is not a UUID is refused with 400 VALIDATION_FAILED. Example: 00000000-0000-4000-8000-000000000c01
limitqueryinteger (1 to 100, default 50)noRows per page, 1 to 100 (a value above 100 is treated as 100). Example: 50
cursorquerystringnoOpaque keyset cursor from the previous page's nextCursor. Store and pass it back unchanged with the same filters; absent on the first page. A cursor never expires; one from another list, or from different filters, is refused with 400 INVALID_CURSOR. Example: eyJ2IjoyLCJsIjoiYm9va2luZ3MiLCJrIjpbIjIwMjYtMTAtMDZUMDk6MTU6MDAuMDAwWiIsIjAwMDAwMDAwLTAwMDAtNDAwMC04MDAwLTAwMDAwMDAwMDBiMiJdLCJmIjoiNWQ0MTQwMmEifQ

With no status filter every status but cancelled is returned; ask for status=cancelled or status=all to see cancellations.

To keep a copy in step, poll with updatedSince set to your last poll time, status=all and a wide window: every booking created, changed or cancelled since then comes back.

Each row is the Booking projection; the operator's private notes are never included.

Request: A date window
curl "https://pro.pamprr.me/api/v1/bookings?startDate=2026-10-05&endDate=2026-10-11&limit=50" \
  -H "Authorization: Bearer $PAMPRR_API_KEY"
Request: A sync poll: everything changed since the last poll
curl "https://pro.pamprr.me/api/v1/bookings?startDate=2026-10-05&endDate=2026-10-11&status=all&updatedSince=2026-10-06T08%3A00%3A00Z" \
  -H "Authorization: Bearer $PAMPRR_API_KEY"
Request: The next page, the same filters and the cursor

The cursor shown is the document's example; pass back the nextCursor you were given, with the same filters.

curl "https://pro.pamprr.me/api/v1/bookings?startDate=2026-10-05&endDate=2026-10-11&limit=50&cursor=eyJ2IjoyLCJsIjoiYm9va2luZ3MiLCJrIjpbIjIwMjYtMTAtMDZUMDk6MTU6MDAuMDAwWiIsIjAwMDAwMDAwLTAwMDAtNDAwMC04MDAwLTAwMDAwMDAwMDBiMiJdLCJmIjoiNWQ0MTQwMmEifQ" \
  -H "Authorization: Bearer $PAMPRR_API_KEY"
Response 200

Two bookings in the window, a second page to follow

  • X-Request-Id
  • X-RateLimit-Limit
  • X-RateLimit-Remaining
  • X-RateLimit-Reset
{
  "bookings": [
    {
      "id": "00000000-0000-4000-8000-0000000000b1",
      "customerName": "Alex Example",
      "customerEmail": "alex@example.test",
      "customerPhone": "+44 7700 900123",
      "serviceName": "Signature Facial",
      "serviceDuration": 60,
      "staffName": "Maya Okafor",
      "status": "confirmed",
      "source": "online",
      "paymentStatus": "deposit",
      "startTime": "2026-10-06T09:15:00.000Z",
      "endTime": "2026-10-06T10:15:00.000Z",
      "priceInPence": 6500,
      "notes": null,
      "createdAt": "2026-09-20T14:02:11.000Z",
      "serviceId": "00000000-0000-4000-8000-0000000000e2",
      "staffProfileId": "00000000-0000-4000-8000-0000000000a1",
      "locationId": "00000000-0000-4000-8000-000000000c01",
      "updatedAt": null,
      "cancelledAt": null
    },
    {
      "id": "00000000-0000-4000-8000-0000000000b2",
      "customerName": "Sam Example",
      "customerEmail": "sam@example.test",
      "customerPhone": null,
      "serviceName": "Consultation",
      "serviceDuration": 30,
      "staffName": "Theo Brandt",
      "status": "pending",
      "source": "phone",
      "paymentStatus": "unpaid",
      "startTime": "2026-10-06T13:00:00.000Z",
      "endTime": "2026-10-06T13:30:00.000Z",
      "priceInPence": 0,
      "notes": "First visit",
      "createdAt": "2026-09-28T09:41:00.000Z",
      "serviceId": "00000000-0000-4000-8000-0000000000e1",
      "staffProfileId": "00000000-0000-4000-8000-0000000000a2",
      "locationId": "00000000-0000-4000-8000-000000000c01",
      "updatedAt": "2026-09-29T16:10:00.000Z",
      "cancelledAt": null
    }
  ],
  "nextCursor": "eyJ2IjoyLCJsIjoiYm9va2luZ3MiLCJrIjpbIjIwMjYtMTAtMDZUMDk6MTU6MDAuMDAwWiIsIjAwMDAwMDAwLTAwMDAtNDAwMC04MDAwLTAwMDAwMDAwMDBiMiJdLCJmIjoiNWQ0MTQwMmEifQ"
}
POST

/api/v1/bookings

bookings:writeIdempotency-Key accepted

Creates a booking on behalf of the calling business, confirmed and unpaid, recorded with the source api (the dashboard shows it as Partner).

NameWhereTypeRequiredMeaning
Idempotency-Keyheaderstring (1 to 255 characters)noOptional but recommended: any string of 1 to 255 printable ASCII characters, a UUID v4 by preference, unique per request. For 24 hours the same key with the same request replays the first response (2xx, 4xx or 5xx alike) with Idempotent-Replayed: true; the same key with a different request is refused with 422 IDEMPOTENCY_KEY_REUSED; a retry while the first request is still running is refused with 409 IDEMPOTENCY_REQUEST_IN_PROGRESS; a malformed key is refused with 400 IDEMPOTENCY_KEY_INVALID. Keys are scoped to your business, so a rotated API key still replays. Requests are processed once, with one qualification: a retry more than sixty seconds after a request that never completed may execute afresh, so in the rare event of a timeout retry with the same key promptly. Example: 0b3f6c2e-8f0a-4d5b-9c1e-7a2b3c4d5e6f
customerNamebodystringyes
customerEmailbodystring or nullno
customerPhonebodystring or nullno
serviceIdbodyuuidyes
staffProfileIdbodyuuidyes
startTimebodydate-timeyes
notesbodystring or nullno
locationIdbodyuuidnoOptional branch id. Validated when supplied (the branch must offer the service, be live and visible, and the staff member must belong to it; failures return 400 INVALID_LOCATION). When omitted the booking resolves to the single offering branch, else the staff member's home branch, else the primary location.

When the service's effective booking protection includes a deposit (deposit-only or both) and the business has Stripe live, the request is refused with 402 DEPOSIT_REQUIRED; when it is card capture, with 402 CARD_CAPTURE_REQUIRED; those bookings must be made through the consumer booking flow, which takes the deposit or the card.

The slot must be free for the staff member: 409 BOOKING_OVERLAP when another booking has it, 409 SLOT_HELD while a customer is mid checkout for it (the hold frees itself within ten minutes if they abandon checkout).

When the API key notifies customers, the customer receives the confirmation email with a calendar attachment if the booking carries an email, and the confirmation SMS if it carries a phone, subject to the business's own SMS settings.

Send an Idempotency-Key so a retried request replays the first outcome instead of creating a second booking.

Request

curl shows the document's example Idempotency-Key; send a fresh UUID with every new request, as the other two samples do.

curl -X POST "https://pro.pamprr.me/api/v1/bookings" \
  -H "Authorization: Bearer $PAMPRR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 0b3f6c2e-8f0a-4d5b-9c1e-7a2b3c4d5e6f" \
  -d '{"customerName":"Alex Example","customerEmail":"alex@example.test","customerPhone":"+44 7700 900123","serviceId":"00000000-0000-4000-8000-0000000000e2","staffProfileId":"00000000-0000-4000-8000-0000000000a1","startTime":"2026-10-06T13:30:00.000Z","locationId":"00000000-0000-4000-8000-000000000c02","notes":"Booked by the hotel concierge"}'
Response 201

The booking as created: confirmed, unpaid, source api

  • X-Request-Id
  • Idempotent-Replayed
  • X-Original-Request-Id
  • X-RateLimit-Limit
  • X-RateLimit-Remaining
  • X-RateLimit-Reset
{
  "booking": {
    "id": "00000000-0000-4000-8000-0000000000b3",
    "customerName": "Alex Example",
    "customerEmail": "alex@example.test",
    "customerPhone": "+44 7700 900123",
    "serviceName": "Signature Facial",
    "serviceDuration": 60,
    "staffName": "Maya Okafor",
    "status": "confirmed",
    "source": "api",
    "paymentStatus": "unpaid",
    "startTime": "2026-10-06T13:30:00.000Z",
    "endTime": "2026-10-06T14:30:00.000Z",
    "priceInPence": 6500,
    "notes": "Booked by the hotel concierge",
    "createdAt": "2026-10-06T08:31:12.000Z",
    "serviceId": "00000000-0000-4000-8000-0000000000e2",
    "staffProfileId": "00000000-0000-4000-8000-0000000000a1",
    "locationId": "00000000-0000-4000-8000-000000000c02",
    "updatedAt": null,
    "cancelledAt": null
  }
}
GET

/api/v1/bookings/{id}

bookings:read

One booking by id, the Booking projection: the same fields as a list row.

NameWhereTypeRequiredMeaning
idpathuuidyesThe booking id. Example: 00000000-0000-4000-8000-0000000000b3

A cancelled booking is returned (you asked for it by id).

A booking that is not yours, or an id that is not a UUID, is 404 NOT_FOUND.

Request
curl "https://pro.pamprr.me/api/v1/bookings/00000000-0000-4000-8000-0000000000b3" \
  -H "Authorization: Bearer $PAMPRR_API_KEY"
Response 200

One booking by id, the same projection as a list row

  • X-Request-Id
  • X-RateLimit-Limit
  • X-RateLimit-Remaining
  • X-RateLimit-Reset
{
  "booking": {
    "id": "00000000-0000-4000-8000-0000000000b3",
    "customerName": "Alex Example",
    "customerEmail": "alex@example.test",
    "customerPhone": "+44 7700 900123",
    "serviceName": "Signature Facial",
    "serviceDuration": 60,
    "staffName": "Maya Okafor",
    "status": "confirmed",
    "source": "api",
    "paymentStatus": "unpaid",
    "startTime": "2026-10-06T13:30:00.000Z",
    "endTime": "2026-10-06T14:30:00.000Z",
    "priceInPence": 6500,
    "notes": "Booked by the hotel concierge",
    "createdAt": "2026-10-06T08:31:12.000Z",
    "serviceId": "00000000-0000-4000-8000-0000000000e2",
    "staffProfileId": "00000000-0000-4000-8000-0000000000a1",
    "locationId": "00000000-0000-4000-8000-000000000c02",
    "updatedAt": null,
    "cancelledAt": null
  }
}
POST

/api/v1/bookings/{id}/cancel

bookings:writeIdempotency-Key accepted

Cancels a booking the way the business cancels one in its dashboard.

NameWhereTypeRequiredMeaning
idpathuuidyesThe booking id. Example: 00000000-0000-4000-8000-0000000000b3
Idempotency-Keyheaderstring (1 to 255 characters)noOptional but recommended: the same rules as on create booking. For 24 hours the same key with the same request replays the first response; the same key against another booking is refused with 422 IDEMPOTENCY_KEY_REUSED. Example: 4e7d1c2b-8a9f-4b3e-a1c5-6d7e8f9a0b1c
reasonbodystring or nullnoFree text recorded on the booking and its event, up to 500 characters.

The booking is marked cancelled with an optional reason, any unpaid checkout link for it is closed, anyone on the waiting list for the slot is notified, and the customer is told through the pamprr app if they booked with it and the API key notifies customers.

Cancelling through the API does not refund a deposit or charge a late cancellation fee; refunds are made by the business in its dashboard.

A booking that is already cancelled is returned as it stands with alreadyCancelled set, and nothing fires again.

Send an Idempotency-Key so a retried request replays the first outcome.

Request

curl shows the document's example Idempotency-Key; send a fresh UUID with every new request, as the other two samples do.

curl -X POST "https://pro.pamprr.me/api/v1/bookings/00000000-0000-4000-8000-0000000000b3/cancel" \
  -H "Authorization: Bearer $PAMPRR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 4e7d1c2b-8a9f-4b3e-a1c5-6d7e8f9a0b1c" \
  -d '{"reason":"Guest checked out early"}'
Response 200

The booking cancelled by this call

  • X-Request-Id
  • Idempotent-Replayed
  • X-Original-Request-Id
  • X-RateLimit-Limit
  • X-RateLimit-Remaining
  • X-RateLimit-Reset
{
  "booking": {
    "id": "00000000-0000-4000-8000-0000000000b3",
    "customerName": "Alex Example",
    "customerEmail": "alex@example.test",
    "customerPhone": "+44 7700 900123",
    "serviceName": "Signature Facial",
    "serviceDuration": 60,
    "staffName": "Maya Okafor",
    "status": "cancelled",
    "source": "api",
    "paymentStatus": "unpaid",
    "startTime": "2026-10-07T09:15:00.000Z",
    "endTime": "2026-10-07T10:15:00.000Z",
    "priceInPence": 6500,
    "notes": "Booked by the hotel concierge",
    "createdAt": "2026-10-06T08:31:12.000Z",
    "serviceId": "00000000-0000-4000-8000-0000000000e2",
    "staffProfileId": "00000000-0000-4000-8000-0000000000a1",
    "locationId": "00000000-0000-4000-8000-000000000c02",
    "updatedAt": "2026-10-06T08:45:30.000Z",
    "cancelledAt": "2026-10-06T08:45:30.000Z"
  },
  "alreadyCancelled": false
}
POST

/api/v1/bookings/{id}/reschedule

bookings:writeIdempotency-Key accepted

Moves a booking to a new start time, and optionally to another staff member, the way the business does in its dashboard.

NameWhereTypeRequiredMeaning
idpathuuidyesThe booking id. Example: 00000000-0000-4000-8000-0000000000b3
Idempotency-Keyheaderstring (1 to 255 characters)noOptional but recommended: the same rules as on create booking. For 24 hours the same key with the same request replays the first response; the same key against another booking or another time is refused with 422 IDEMPOTENCY_KEY_REUSED. Example: 9c2a5e71-4d0b-4f8e-9a6c-2b1d3e4f5a6b
startTimebodydate-timeyesThe new start, in the future. The end follows from the booking's duration.
staffProfileIdbodyuuidnoOptional: move the booking to this staff member. One of your staff who works at the booking's branch; the staff name on the booking follows from the profile.

The end time follows from the booking's own duration; the customer's reminders are reset for the new time; the customer is told through the pamprr app if they booked with it and the API key notifies customers.

The new time must be free for the staff member: 409 BOOKING_OVERLAP when another booking has it, 409 SLOT_HELD while a customer is mid checkout for it.

The API does not check the business's opening hours or the staff member's schedule for a reschedule, so check availability first.

A new staff member must be one of your staff (404 otherwise) and must work at the booking's branch (400 INVALID_LOCATION otherwise).

Send an Idempotency-Key so a retried request replays the first outcome.

Request

curl shows the document's example Idempotency-Key; send a fresh UUID with every new request, as the other two samples do.

curl -X POST "https://pro.pamprr.me/api/v1/bookings/00000000-0000-4000-8000-0000000000b3/reschedule" \
  -H "Authorization: Bearer $PAMPRR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 9c2a5e71-4d0b-4f8e-9a6c-2b1d3e4f5a6b" \
  -d '{"startTime":"2026-10-07T09:15:00.000Z","staffProfileId":"00000000-0000-4000-8000-0000000000a1"}'
Response 200

The booking at its new time; updatedAt set

  • X-Request-Id
  • Idempotent-Replayed
  • X-Original-Request-Id
  • X-RateLimit-Limit
  • X-RateLimit-Remaining
  • X-RateLimit-Reset
{
  "booking": {
    "id": "00000000-0000-4000-8000-0000000000b3",
    "customerName": "Alex Example",
    "customerEmail": "alex@example.test",
    "customerPhone": "+44 7700 900123",
    "serviceName": "Signature Facial",
    "serviceDuration": 60,
    "staffName": "Maya Okafor",
    "status": "confirmed",
    "source": "api",
    "paymentStatus": "unpaid",
    "startTime": "2026-10-07T09:15:00.000Z",
    "endTime": "2026-10-07T10:15:00.000Z",
    "priceInPence": 6500,
    "notes": "Booked by the hotel concierge",
    "createdAt": "2026-10-06T08:31:12.000Z",
    "serviceId": "00000000-0000-4000-8000-0000000000e2",
    "staffProfileId": "00000000-0000-4000-8000-0000000000a1",
    "locationId": "00000000-0000-4000-8000-000000000c02",
    "updatedAt": "2026-10-06T08:40:02.000Z",
    "cancelledAt": null
  }
}

Clients

The client book: list, create and read.

The Client object

FieldTypeAlwaysMeaning
iduuidyes
namestringyes
emailstring or nullyes
phonestring or nullyes
createdAtdate-timeyes
updatedAtdate-time or nullyesWhen the client record last changed; null until it first changes after creation.
GET

/api/v1/clients

clients:read

The business's active clients by name.

NameWhereTypeRequiredMeaning
searchquerystring (2 to 100 characters)noOnly clients whose name, email or phone contains this text, case insensitive; the text is taken literally. Two to one hundred characters, otherwise 400 VALIDATION_FAILED. Example: example
limitqueryinteger (1 to 100, default 50)noRows per page, 1 to 100 (a value above 100 is treated as 100). Example: 50
cursorquerystringnoOpaque keyset cursor from the previous page's nextCursor. Store and pass it back unchanged with the same filters; absent on the first page. A cursor never expires; one from another list, or from different filters, is refused with 400 INVALID_CURSOR. Example: eyJ2IjoyLCJsIjoiY2xpZW50cyIsImsiOlsiU2FtIEV4YW1wbGUiLCIwMDAwMDAwMC0wMDAwLTQwMDAtODAwMC0wMDAwMDAwMDAwYzIiXSwiZiI6ImUzYjBjNDQyIn0

With search, only those whose name, email or phone contains the text (case insensitive, the text taken literally).

Each row is the Client projection; the operator's private notes are never included.

Request
curl "https://pro.pamprr.me/api/v1/clients?search=example&limit=50" \
  -H "Authorization: Bearer $PAMPRR_API_KEY"
Response 200

The active clients matching the search, in name order

  • X-Request-Id
  • X-RateLimit-Limit
  • X-RateLimit-Remaining
  • X-RateLimit-Reset
{
  "clients": [
    {
      "id": "00000000-0000-4000-8000-0000000000c1",
      "name": "Alex Example",
      "email": "alex@example.test",
      "phone": "+44 7700 900123",
      "createdAt": "2026-04-11T10:00:00.000Z",
      "updatedAt": null
    },
    {
      "id": "00000000-0000-4000-8000-0000000000c2",
      "name": "Sam Example",
      "email": "sam@example.test",
      "phone": null,
      "createdAt": "2026-09-28T09:40:00.000Z",
      "updatedAt": "2026-09-29T16:10:00.000Z"
    }
  ],
  "nextCursor": null
}
POST

/api/v1/clients

clients:writeIdempotency-Key accepted

Creates a client record for the business, or returns the existing one.

NameWhereTypeRequiredMeaning
Idempotency-Keyheaderstring (1 to 255 characters)noOptional but recommended: the same rules as on create booking. For 24 hours the same key with the same request replays the first response (the 201 or the 200); the same key with a different request is refused with 422 IDEMPOTENCY_KEY_REUSED. Example: 7b8c9d0e-1f2a-4b3c-8d4e-5f6a7b8c9d0e
namebodystring (1 to 200 characters)yes
emailbodystring or nullnoStored lower cased; the duplicate check compares it case insensitively.
phonebodystring or nullno

When an active client already has the given email (compared case insensitively) it is returned with existing set instead of a duplicate being created, and when only an archived client has it that record is restored and returned the same way, so the client id stays stable.

The email is stored lower cased.

Private notes cannot be set through the API.

Send an Idempotency-Key so a retried request replays the first outcome.

Request

curl shows the document's example Idempotency-Key; send a fresh UUID with every new request, as the other two samples do.

curl -X POST "https://pro.pamprr.me/api/v1/clients" \
  -H "Authorization: Bearer $PAMPRR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 7b8c9d0e-1f2a-4b3c-8d4e-5f6a7b8c9d0e" \
  -d '{"name":"Robin Example","email":"Robin@Example.test","phone":"+44 7700 900456"}'
Response 200

An active client already had that email (or an archived one was restored)

  • X-Request-Id
  • Idempotent-Replayed
  • X-Original-Request-Id
  • X-RateLimit-Limit
  • X-RateLimit-Remaining
  • X-RateLimit-Reset
{
  "client": {
    "id": "00000000-0000-4000-8000-0000000000c1",
    "name": "Alex Example",
    "email": "alex@example.test",
    "phone": "+44 7700 900123",
    "createdAt": "2026-04-11T10:00:00.000Z",
    "updatedAt": null
  },
  "existing": true
}
Response 201

A new client record

  • X-Request-Id
  • Idempotent-Replayed
  • X-Original-Request-Id
  • X-RateLimit-Limit
  • X-RateLimit-Remaining
  • X-RateLimit-Reset
{
  "client": {
    "id": "00000000-0000-4000-8000-0000000000c3",
    "name": "Robin Example",
    "email": "robin@example.test",
    "phone": "+44 7700 900456",
    "createdAt": "2026-10-06T08:50:00.000Z",
    "updatedAt": null
  }
}
GET

/api/v1/clients/{id}

clients:read

One client by id, the Client projection: the same fields as a list row.

NameWhereTypeRequiredMeaning
idpathuuidyesThe client id. Example: 00000000-0000-4000-8000-0000000000c1

An archived client, a client that is not yours, or an id that is not a UUID is 404 NOT_FOUND.

Request
curl "https://pro.pamprr.me/api/v1/clients/00000000-0000-4000-8000-0000000000c1" \
  -H "Authorization: Bearer $PAMPRR_API_KEY"
Response 200

One client by id

  • X-Request-Id
  • X-RateLimit-Limit
  • X-RateLimit-Remaining
  • X-RateLimit-Reset
{
  "client": {
    "id": "00000000-0000-4000-8000-0000000000c1",
    "name": "Alex Example",
    "email": "alex@example.test",
    "phone": "+44 7700 900123",
    "createdAt": "2026-04-11T10:00:00.000Z",
    "updatedAt": null
  }
}

Notifications and partner bookings

What a partner action tells the customer, and how the business sees it.

  • A booking created through the API is recorded with the source api and shows as Partner in the business's diary.
  • A key created with notifications on sends the customer the confirmation email and SMS on create, and the app notification on cancel and reschedule, subject to the business's own notification settings and to the customer having an email, a phone or the pamprr app. A key with notifications off sends nothing.
  • Cancelling through the API never refunds a deposit or charges a late cancellation fee; refunds are made by the business in its dashboard. Anyone on the waiting list for a freed slot is notified either way.

Versioning and deprecation

The version is the path prefix; changes are additive; a breaking change carries at least six months' notice.

Fields, headers, parameters, enum values and endpoints are added, never removed or renamed, without notice.

  • A change that would break an integration (a removed field, a renamed header, a changed meaning) is announced in the changelog at least six months before it happens.
  • The notice period is only ever extended, never shortened.
  • The document's version tracks additive releases.

Host https://pro.pamprr.me; every path begins /api/v1. The document's version today: 1.1.0.

Changelog

Dated entries, newest first.

  1. 1.1.0The first published reference
    • This page, its markdown twin at /developers.md, and the OpenAPI 3.1.1 document with an example on every parameter, request body and response.
    • The surface at launch: the business record, locations, staff, services and the eligible staff for one, the availability search, bookings (list, create, read, cancel, reschedule) and clients (list, create, read), on the foundations of request ids, the rate limit headers, scoped keys, cursor pagination and idempotency keys.

The OpenAPI document

The machine readable description of everything on this page, with the same examples.

Support

Quote the request id.

Every response carries X-Request-Id; quote it.

Write through the contact page, or through the business that minted your key, whose owner can reach pamprr from the dashboard's help centre.

Keys are minted, edited, rotated and revoked in the business's Settings.

  1. Create the account1 min

    An email address and a password. Setup is free until you go live.

  2. Add services and hours5 min

    Your menu, your prices, the week you actually work.

  3. Connect payments3 min

    Stripe onboarding, then deposits and card payments from the first booking.