Docs

Get an event

Preview· P9
GET
/events/{evt_id}

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.

Authorization

headerAuthorizationBearer <token>

Send Authorization: Bearer <token> on every request. The token is one of:

PrefixWhat it isWhere it may be used
agoo_sk_live_Secret key, live modeYour servers only
agoo_sk_test_Secret key, test modeYour servers only
agoo_pk_live_Publishable key, live modeBrowsers 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 modeAs 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

Path Parameters

evt_id*string

The event's ID.

Match^evt_[0-7][0-9a-hjkmnp-tv-z]{25}$
Example"evt_01m4ww0ezgf2bryg9gxb2gbewx"

Response Body

The event.

application/json
  1. response

Something that happened in your organisation. data.object is a snapshot of the object at that moment.

id*EventId

The event's ID. Webhook deliveries send it as webhook-id.

Match^evt_[0-7][0-9a-hjkmnp-tv-z]{25}$
Example"evt_01m4ww0ezgf2bryg9gxb2gbewx"
created_at*string

When the event happened.

Formatdate-time
organisation_id*OrganisationId

An organisation ID (TypeID with the org prefix).

Match^org_[0-7][0-9a-hjkmnp-tv-z]{25}$
Example"org_01kjpsrza0etzb0a4vf72x8ang"
livemode*boolean

false for events in test mode.

type*EventType

The type of an event. New types may be added; ignore types you don't handle.

Value in"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"    }  }}