Decline a booking
/bookings/{booking_id}/declineDeclines a pending booking, frees its slot and fires booking.declined. Agoo tells the attendee their
request wasn't accepted. The reason is kept on the booking for your organisation; the attendee sees it
only if you set share_reason_with_attendee.
Returns invalid_state if the booking isn't pending. To call off a booking that is already confirmed,
cancel it with POST /bookings/{booking_id}/cancel.
Scope: bookings:write · Plan: Pro and Enterprise in live mode; every plan in test mode.
Send Authorization: Bearer <token> on every request. The token is one of:
| Prefix | What it is | Where it may be used |
|---|---|---|
agoo_sk_live_ | Secret key, live mode | Your servers only |
agoo_sk_test_ | Secret key, test mode | Your servers only |
agoo_pk_live_ | Publishable key, live mode | Browsers and apps: create pre-registrations and bookings, read public booking types (with their intake questions) and their free slots, read the visit types open for pre-registration with their public forms. Never lists people. |
agoo_pk_test_ | Publishable key, test mode | As above, in test mode |
Admins create keys in Console → Developers → API keys and choose each key's scopes. A key is shown once. Never put a secret key in a URL, a browser or a mobile app.
In: header
Scope: bookings:write
Path Parameters
The booking's ID.
^booking_[0-7][0-9a-hjkmnp-tv-z]{25}$"booking_01m4dtqd00eq4rtc1jdsr1gr6z"Header Parameters
A UUID you generate for this operation. If you retry with the same key within 24 hours, Agoo returns the
original response instead of acting twice. While the first request is still running, a retry returns
conflict. Reusing a key with a different request returns idempotency_key_reused. Responses with
rate_limited, internal_error or unavailable aren't stored, so retry those with the same key.
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/bookings/booking_01m4dtqd00eq4rtc1jdsr1gr6z/decline" \ -H "Idempotency-Key: 3f6b2a1e-8c4d-4f7a-9b2e-5d1c0a7e9f64" \ -H "Content-Type: application/json" \ -d '{ "reason": "Kwame is at the Kumasi Office that week.", "share_reason_with_attendee": true }'{ "id": "booking_01m4t8d7j0f47vwvc95qzqkdf6", "status": "declined", "booking_type_id": "btype_01kqs3efm0emma1643wwgmw0jc", "host_id": "person_01kjsesxm0e4zbyvkr7bcfxbfg", "start_at": "2026-10-21T14:00:00Z", "end_at": "2026-10-21T14:45:00Z", "time_zone": "Africa/Accra", "meeting_kind": "in_person", "site_id": "site_01kjpt3yw0fz0v414608h9x65s", "meeting_url": null, "address": null, "attendee": { "name": "Ama Owusu", "phone": "+233241234567", "email": "ama@coastline.example", "company": "Coastline Consult" }, "visit_id": null, "custom_fields": {}, "confirm_by": "2026-10-14T09:10:00Z", "confirmed_at": null, "declined_at": "2026-10-13T12:15:00Z", "decline_reason": "Kwame is at the Kumasi Office that week.", "cancelled_at": null, "cancellation_reason": null, "created_at": "2026-10-13T09:10:00Z", "updated_at": "2026-10-13T12:15:00Z"}Confirm a booking POST
Confirms a `pending` booking, for booking types that require host confirmation. Agoo tells the attendee it's confirmed, schedules their reminders and fires `booking.confirmed`. For an `in_person` booking it also creates the expected visit with a QR pass, so `visit.created` and `pass.sent` fire too. Returns `invalid_state` if the booking isn't `pending`, for example because it expired or the attendee cancelled it. **Scope:** `bookings:write` · **Plan:** Pro and Enterprise in live mode; every plan in test mode.
List attendance events GET
Returns clock-ins and clock-outs, most recent first by `occurred_at`. Events recorded offline (during a network or power cut) appear once the kiosk or phone syncs, with their original time and `offline: true`. **Scope:** `attendance:read` · **Plan:** Pro and Enterprise in live mode; every plan in test mode.