Events
The event endpoints return events in the same format that is sent to webhook endpoints. For fields, see Webhook Events and Fields.
| Method and path | Returns |
|---|---|
GET /events | List of events |
GET /events/{id} | An event |
Permissions
| Events | Required permission |
|---|---|
appointment.created, appointment.confirmed, appointment.cancelled, appointment.completed, appointment.no_show, appointment.rescheduled, appointment.updated | appointments:read |
customer.created, customer.updated, customer.deleted | customers:read |
service.created, service.updated, service.deleted, staff.created, staff.updated, staff.deleted | catalog:read |
payment.created, refund.created | payments:read |
- The list contains only the event types the key has permission to read.
- If the key lacks permission for an event's type, retrieving that event returns 404
resource_missing. pingtest events are not in the list, and retrieving one returns 404resource_missing.
Recording conditions and availability
- An event is recorded only when one of these is true: an endpoint is subscribed to that event type (a disabled endpoint counts too); or an unexpired API key has the permission that event type requires.
- Events from the last 30 days can be read.
List parameters
| Parameter | Description |
|---|---|
type | A single event type, such as appointment.created |
created_at[gte] | The time the event was recorded, inclusive. For the format, see Pagination and Filtering |
limit, cursor | See Pagination and Filtering |
- If
typeis a type the key has no permission to read, the list is empty. If it is not an event type, the request returns 400parameter_invalidwithparamset totype. - Any other parameter, including
sort, returns 400parameter_invalid.GET /events/{id}accepts no query parameters.
Sorting
- The list is sorted by
created_atin ascending order, then byidin ascending order. - A new event is placed after the merchant's existing events: its
created_atis not earlier than theirs, and when it is the same, itsidis greater.
Example
bash
curl -G https://api.dolyu.com/v1/events \
-H "Authorization: Bearer dolyu_sk_..." \
--data-urlencode "created_at[gte]=2026-11-20T00:00:00Z" \
-d type=appointment.confirmed \
-d limit=50json
{
"object": "list",
"data": [
{
"id": "0198d2a0-0000-7000-8000-000000000001",
"object": "event",
"api_version": "v1",
"type": "appointment.confirmed",
"created_at": "2026-11-20T06:30:02Z",
"data": {
"appointment": { "…": "see Webhook Events and Fields" },
"previous_status": "pending",
"actor_type": "merchant_user"
}
}
],
"has_more": false,
"next_cursor": null
}