Skip to main content

Get Event

Retrieve a single event definition by ID.

Endpoint

GET /events/{id}

Path Parameters

ParameterTypeDescription
idstringThe event ID

Response

{
"id": "01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a",
"name": "order.completed",
"description": "Fired when a customer completes checkout.",
"schema": {
"fields": [
{ "name": "order_id", "type": "string", "required": true }
]
},
"created_at": "2026-06-01T12:00:00.000Z",
"updated_at": "2026-06-01T12:00:00.000Z"
}

See Create Event for the field reference.


Examples

curl "https://api.arsel.sa/v1/events/01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a" \
-H "Authorization: Bearer be_your_api_key"

Error Responses

{
"status_code": 404,
"name": "not_found",
"message": "Event 01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a not found"
}