Events

Retrieve a webhook event

Retrieve a single webhook event, including its full payload and delivery history.

get/api/v1/events/{event_id}

Request

  • Base URL: https://api.frejun.ai
  • URL: https://api.frejun.ai/api/v1/events/{event_id}
  • Auth: API key in header x-api-key

Path parameters

event_idstring required

Response

Successful Response

idstring required

Unique identifier for the event (evt_ prefix).

account_idstring required

The account the event belongs to (acc_ prefix).

call_idstring nullable

Related call (cs_ prefix), if the event is call-scoped.

sip_trunk_idstring nullable

Related SIP trunk (st_ prefix), if applicable.

leg_idstring nullable

Related call leg (cl_ prefix), if applicable.

typestring required

Event type, e.g. call.completed. See the webhook events reference.

api_versionstring nullable

Dated payload version this event was rendered with, e.g. 2026-06-01.

occurred_atstring date-time required

When the underlying event occurred.

payloadobject required

The full event payload delivered to your webhook.

delivery_status'pending' | 'delivered' | 'failed_permanent' | 'backfill_skipped' required
attempt_countinteger required

Number of delivery attempts made so far.

last_attempt_atstring date-time nullable

When the most recent attempt was made.

last_status_codeinteger nullable

HTTP status returned by your endpoint on the last attempt.

last_errorstring nullable

Error from the last failed attempt, if any.

delivered_atstring date-time nullable

When the event was successfully delivered, if it was.

created_atstring date-time required

When the event record was created.

Example response

{
  "account_id": "acc_01JQ8Z9K7M3N2P4R5S6T7V8WIJ",
  "api_version": "2026-06-01",
  "attempt_count": 1,
  "call_id": "cs_01JQ8Z9K7M3N2P4R5S6T7V8W9X",
  "created_at": "2026-06-01T09:17:48Z",
  "delivered_at": "2026-06-01T09:17:49Z",
  "delivery_status": "delivered",
  "id": "evt_01JQ8Z9K7M3N2P4R5S6T7V8WGH",
  "last_attempt_at": "2026-06-01T09:17:49Z",
  "last_status_code": 200,
  "occurred_at": "2026-06-01T09:17:48Z",
  "payload": {
    "call_id": "cs_01JQ8Z9K7M3N2P4R5S6T7V8W9X",
    "type": "call.completed"
  },
  "type": "call.completed"
}

Changes

No recorded changes to this operation across all 1 revision of this API.