Get an event
Returns one event from the last 30 days. data.object is a snapshot of the object when the event happened;
fetch the object itself for its current state.
Scope: events:read · Plan: Growth, Pro and Enterprise in live mode; every plan in test mode.
AuthorizationBearer <token>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.
Scope: events:read
evt_id*stringThe event's ID.
^evt_[0-7][0-9a-hjkmnp-tv-z]{25}$"evt_01m4ww0ezgf2bryg9gxb2gbewx"The event.
application/json- response
Something that happened in your organisation. data.object is a snapshot of the object at that moment.
id*EventIdThe event's ID. Webhook deliveries send it as webhook-id.
^evt_[0-7][0-9a-hjkmnp-tv-z]{25}$"evt_01m4ww0ezgf2bryg9gxb2gbewx"created_at*stringWhen the event happened.
date-timeorganisation_id*OrganisationIdAn organisation ID (TypeID with the org prefix).
^org_[0-7][0-9a-hjkmnp-tv-z]{25}$"org_01kjpsrza0etzb0a4vf72x8ang"livemode*booleanfalse for events in test mode.
type*EventTypeThe type of an event. New types may be added; ignore types you don't handle.
"visit.created""visit.updated""visit.approval_requested""visit.approved""visit.denied""visit.checked_in""visit.checked_out""visit.cancelled""visit.no_show""visit.needs_someone""visit.host_changed""pass.sent""delivery.received""delivery.collected""delivery.updated""delivery.returned""booking.created""booking.confirmed""booking.declined""booking.expired""booking.rescheduled""booking.cancelled""attendance.clocked_in""attendance.clocked_out""attendance.late""attendance.voided""attendance.absent""attendance.break_started""attendance.break_ended""leave.requested""leave.approved""leave.declined""leave.cancelled""timesheet.submitted""timesheet.approved""timesheet.reopened""payroll_export.created""roster.published""shift_swap.requested""shift_swap.approved""shift_swap.declined""shift_claim.requested""shift_claim.approved""shift_claim.declined""review.published""review.updated""review.removed""review.replied""watchlist.matched""roll_call.started""roll_call.updated""roll_call.closed""department.created""department.updated""position.created""position.updated""person.created""person.updated""person.deactivated""person.reactivated""person.job_changed""hr_document.expiring""visitor.erased"data*curl -X GET 'https://api.agoohq.com/v1/events/evt_01m4ww0ezgf2bryg9gxb2gbewx'{ "id": "evt_01m4ww0ezgf2bryg9gxb2gbewx", "type": "visit.checked_in", "created_at": "2026-10-14T09:31:02Z", "organisation_id": "org_01kjpsrza0etzb0a4vf72x8ang", "livemode": true, "data": { "object": { "id": "visit_01m4k5z4j0fxbte6sn6e8tpgza", "status": "checked_in", "type": "meeting", "source": "invitation", "site_id": "site_01kjpt3yw0fz0v414608h9x65s", "gate_id": "gate_01kjpt7m20fpf9vcsaexsxgqr3", "host_id": "person_01kjsesxm0e4zbyvkr7bcfxbfg", "audience": "person", "hosts": [ { "id": "person_01kjsesxm0e4zbyvkr7bcfxbfg", "name": "Kwame Mensah", "role": "lead", "state": "addressed" } ], "team": null, "asked_for": null, "needs_someone": false, "visitor": { "id": "visitor_01krdtb870fxj8t6ntdtcxwdk5", "name": "Ama Owusu", "phone": "+233241234567", "email": "ama@coastline.example", "company": "Coastline Consult" }, "purpose": "Quarterly treasury review", "expected_at": "2026-10-14T09:30:00Z", "expected_until": "2026-10-14T11:30:00Z", "checked_in_at": "2026-10-14T09:31:02Z", "checked_out_at": null, "cancelled_at": null, "decision": { "outcome": "approved", "decided_at": "2026-10-14T09:31:02Z", "decided_by": "person_01kjsesxm0e4zbyvkr7bcfxbfg", "reason": null }, "booking_id": null, "rescheduled_to": null, "pass": { "channels": [ "whatsapp" ], "last_sent_at": "2026-10-10T15:12:44Z" }, "custom_fields": { "vehicle_plate": "GR 4521-24", "bringing_laptop": true }, "created_at": "2026-10-10T15:12:40Z", "updated_at": "2026-10-14T09:31:02Z" } }}List events GET
Returns events from the last 30 days, newest first. Each event is exactly what was (or would have been) delivered to your webhook endpoints, so you can use this to catch up after downtime. **Scope:** `events:read` · **Plan:** Growth, Pro and Enterprise in live mode; every plan in test mode.
Redeliver an event POST
Queues the event for delivery again, to one endpoint or to every enabled endpoint subscribed to its type. Redeliveries carry the same `webhook-id` as the original, so handlers that de-duplicate on it stay safe, and are retried on the usual schedule. Use it after fixing an endpoint that missed events. - An `endpoint_id` must be enabled and subscribed to the event's type (`validation_failed` otherwise). - An OAuth app acts with its person's role as well as its scopes: when that role can't manage webhooks (an Auditor reads events but can't), the answer is `forbidden` and nothing is queued. - With no `endpoint_id` and no enabled endpoint subscribed to the type, `endpoint_ids` is empty: nothing was queued, and the audit trail records no redelivery. **Scope:** `webhooks:manage` · **Plan:** Growth, Pro and Enterprise in live mode; every plan in test mode.