One appointment, by id or reference
https://api.app2email.com/v1/{number}/bookings/{id} Scope: bookings:manage (or messages:read).
Ścieżka
-
Your app2email WhatsApp number - the number the message is sent FROM. Full number with country code, digits only.
np.4976659348270 -
The booking's id, or its reference (BK-XXXXXX).
np.BK-7Q3M2A
Odpowiedzi
Pola
- success boolean
- request_id string
- booking object
An appointment. The same object is the data of the booking.created, booking.cancelled, booking.rescheduled and booking.rated webhook events.
pola: 30
- id integernp.
42 - reference string
The short code the customer sees. GET /bookings/{id} takes it too.
np.BK-7Q3M2A - status string
confirmedcancelledcompletedno_show - contact string
The customer's number (digits, country code first) or their business-scoped user id.
np.61412345678 - contact_name stringnp.
John Smith - contact_email stringnp.
john@example.com - service object
pola: 3
- id stringnp.
haircut - name stringnp.
Haircut - duration_min integernp.
30
- start string (date-time)
UTC.
- end string (date-time)
UTC.
- timezone string
The business time zone the slot was chosen in.
np.Australia/Sydney - source string
Booked by the customer in WhatsApp, on the dashboard (or in the calendar app), through this API, or by the customer on the online booking page (web).
whatsapp_flowdashboardapiweb - calendar object
-
Every other field the customer filled in the Flow.
- notes string
- provider object
The staff member, when the business has them. Left out otherwise.
- rating integer
The customer's rating from the follow-up message (5 loved it, 3 OK, 1 not great). Left out until given.
135 - payment_status string
The business's own note on the payment. Left out when none.
link_sentpaidwaived - credits_used integer
Always 0 (memberships were removed on 2026-11-10); kept so existing integrations keep parsing.
- attendance_confirmed string (date-time)
When the customer tapped Confirm on a reminder.
- cancelled object
Only when cancelled.
- rescheduled_from_id integer
The appointment this one replaced.
- link_id integer | null
The online booking link (/book/...) it was made through, for correlation. null: none.
- notes_count integer
How many internal notes are written on this appointment (GET /bookings/{id}/notes). Given by the calendar routes and the list; left out of webhook events.
- created string (date-time)
- location object | null
Where it takes place, as chosen (null: the service has no locations; then config.messages.location). value: the address, the number, the link; a video link made by the connected Google or Microsoft calendar appears here once made. text: how the messages show it.
- addons object[]
The add-ons booked (copied at booking time).
pola elementu: 4
- id string
- name string
- price_amount number
- duration_min integer
- guests object[]
The people who come along.
- answer_items object[]
The answers to the service's questions as label / value (the raw ones are in answers.q).
- series object | null
This appointment is one of a series (null: not).
- seats integer
The places this booking takes on a group time (1 + guests); 1 otherwise.
- note string
- series object
A series that was booked (POST /bookings with series).
pola: 3
- id stringnp.
SR-7Q3M2A - booked object[]
pola elementu: 30
- id integernp.
42 - reference string
The short code the customer sees. GET /bookings/{id} takes it too.
np.BK-7Q3M2A - status string
confirmedcancelledcompletedno_show - contact string
The customer's number (digits, country code first) or their business-scoped user id.
np.61412345678 - contact_name stringnp.
John Smith - contact_email stringnp.
john@example.com - service objectPola: jako booking.service
- start string (date-time)
UTC.
- end string (date-time)
UTC.
- timezone string
The business time zone the slot was chosen in.
np.Australia/Sydney - source string
Booked by the customer in WhatsApp, on the dashboard (or in the calendar app), through this API, or by the customer on the online booking page (web).
whatsapp_flowdashboardapiweb - calendar object
-
Every other field the customer filled in the Flow.
- notes string
- provider object
The staff member, when the business has them. Left out otherwise.
- rating integer
The customer's rating from the follow-up message (5 loved it, 3 OK, 1 not great). Left out until given.
135 - payment_status string
The business's own note on the payment. Left out when none.
link_sentpaidwaived - credits_used integer
Always 0 (memberships were removed on 2026-11-10); kept so existing integrations keep parsing.
- attendance_confirmed string (date-time)
When the customer tapped Confirm on a reminder.
- cancelled object
Only when cancelled.
- rescheduled_from_id integer
The appointment this one replaced.
- link_id integer | null
The online booking link (/book/...) it was made through, for correlation. null: none.
- notes_count integer
How many internal notes are written on this appointment (GET /bookings/{id}/notes). Given by the calendar routes and the list; left out of webhook events.
- created string (date-time)
- location object | null
Where it takes place, as chosen (null: the service has no locations; then config.messages.location). value: the address, the number, the link; a video link made by the connected Google or Microsoft calendar appears here once made. text: how the messages show it.
- addons object[]
The add-ons booked (copied at booking time).
- guests object[]
The people who come along.
- answer_items object[]
The answers to the service's questions as label / value (the raw ones are in answers.q).
- series object | null
This appointment is one of a series (null: not).
- seats integer
The places this booking takes on a group time (1 + guests); 1 otherwise.
- skipped object[]
pola elementu: 4
- index integer
- start_local string
- date_label string
- reason stringnp.
Thu 3 Dec 10:00 is taken - not booked
Błędy
- 400 The request is malformed (missing or invalid fields, query parameters or times).
- 401 Missing, invalid, revoked or expired API key.
- 403 The key is valid but this call is not allowed: the key lacks the scope the call needs (insufficient_scope), the address is not allowed for the key (ip_not_allowed), the number or plan does not allow it, a recipient opted out or is not opted in, or a problem with the WhatsApp account.
- 404 The number, template, message, broadcast, webhook, delivery, opt-in, logged request, booking or Flow was not found.
- 429 A monthly plan limit, the number's own monthly cap, the key's daily cap, a WhatsApp rate limit, the API rate limit (rate_limited), or the webhook test limit (too_many_tests) was reached. Retry-After and error.retry_after_seconds say how long to wait.
- 500 Unexpected error on app2email's side.