API reference
Events
How these fit together: the Webhooks & events guide.
List events
get
Lists the organization’s stored events (the last 30 days), newest first.
The events recorded for this organization’s webhook endpoints — an event is stored when one of its endpoints, enabled or disabled, subscribed to its type at the time — kept 30 days. Each item is the envelope its deliveries carry (same id). Filter by type and a createdAfter/createdBefore window. An event commits with the change it describes, so one can appear a moment after its createdAt: overlap the window you poll by a minute and deduplicate on id.
Access: an organization key with the webhooks:manage scope.
Query parameters
limitintegerHow many items to return.
cursorstringThe
nextCursorof the previous page. Omit for the first page.typestringOnly events of this type.
One of
message.sentmessage.deliveredmessage.readmessage.failedmessage.receivedmessage.complainedcontact.consent.updatedtemplate.updatedwhatsapp.account.updatedcall.queuedcall.ringingcall.answeredcall.completedcall.failedcall.no_answercall.busycall.recording.readyconversation.openedconversation.resolvedmessage.media.readymessage.media.failedcall.inboundcall.heldcall.resumedcall.transferredcall.gather.completedcall.flow.failedcall.machine_detectedconference.participant.joinedconference.participant.leftconference.endedcall.transcript.readycall.summary.readyemail.openedemail.clickedbalance.lownumber.port_request.updatedcall.transcript.segmentverify.approvedverify.expireddlt.entity.updateddlt.header.updatedsms.sender.updateddlt.contest.updatedsms.sender_contest.updatedcall.ratedcall.missedcall.voicemail.readycall.ai.transfercall.ai.opt_outcall.dtmfsms.registration.updatednumber.updatednumber.port_out.updatedcreatedAfterstring (date-time)Only events created at or after this instant.
createdBeforestring (date-time)Only events created before this instant.
Response 200PublicEventPage
dataPublicEvent[]RequiredIts fields are listed under Get event
nextCursorstring | nullRequiredPass back as
cursorfor the next page; null on the last.
Errors
400VALIDATION_FAILED — the request is malformed.401API_KEY_INVALID — missing, unknown, revoked or expired key.403API_KEY_SCOPE_MISSING or API_KEY_KIND_MISMATCH — the key may not call this endpoint.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault; retry with backoff (with the same Idempotency-Key on a write).
curl 'https://api.trovacast.com/v1/events?type=message.failed&limit=50' \
-H "Authorization: Bearer $TROVACAST_API_KEY"{
"data": [
{
"apiVersion": "v1",
"createdAt": "2026-11-05T10:00:00.000Z",
"data": {},
"externalReference": "biz_8c1f",
"id": "ID",
"livemode": true,
"object": "event",
"organizationId": "ORGANIZATION_ID",
"type": "message.sent"
}
],
"nextCursor": "NEXT_CURSOR"
}Get event
get
Retrieves a stored event by its id.
The stored envelope — the bytes its deliveries POST, with the same id — so data is the resource as it stood when the event happened (null if it can no longer be opened). A key reads events of its own mode only, and an event type it lacks the scope to subscribe to is withheld as if it did not exist. Events are kept 30 days, and erasing a contact or an organization deletes its events.
Access: an organization key with the webhooks:manage scope.
Path parameters
eventIdstringRequired
Response 200PublicEvent
Show the 9 fieldsHide the fields
apiVersionstringRequiredOne of
v1createdAtstring (date-time)Requireddataobject | nullRequiredWhat the webhook delivered for this type (the event catalog: https://trovacast.com/developers/webhooks), as it stood when the event was recorded. Null only when the stored payload can no longer be decrypted (a platform key problem).
externalReferencestring | nullPresent when an integration provisioned the organization: that integration’s own reference for it (
externalReferenceofPOST /v1/organizations), as every delivery of the event carries it.idstring (uuid)RequiredThe event id — the same
id(andTrovacast-Event-Id) every delivery of it carries.livemodebooleanRequiredLive (
true) or test traffic (false) — the event’s mode, as every delivery of it carries it at the top level.objectstringRequiredOne of
eventorganizationIdstring (uuid)RequiredtypestringRequiredOne of
message.sentmessage.deliveredmessage.readmessage.failedmessage.receivedmessage.complainedcontact.consent.updatedtemplate.updatedwhatsapp.account.updatedcall.queuedcall.ringingcall.answeredcall.completedcall.failedcall.no_answercall.busycall.recording.readyconversation.openedconversation.resolvedmessage.media.readymessage.media.failedcall.inboundcall.heldcall.resumedcall.transferredcall.gather.completedcall.flow.failedcall.machine_detectedconference.participant.joinedconference.participant.leftconference.endedcall.transcript.readycall.summary.readyemail.openedemail.clickedbalance.lownumber.port_request.updatedcall.transcript.segmentverify.approvedverify.expireddlt.entity.updateddlt.header.updatedsms.sender.updateddlt.contest.updatedsms.sender_contest.updatedcall.ratedcall.missedcall.voicemail.readycall.ai.transfercall.ai.opt_outcall.dtmfsms.registration.updatednumber.updatednumber.port_out.updated
Errors
400VALIDATION_FAILED — the request is malformed.401API_KEY_INVALID — missing, unknown, revoked or expired key.403API_KEY_SCOPE_MISSING or API_KEY_KIND_MISMATCH — the key may not call this endpoint.404NOT_FOUND — no such event in this organization (or past its 30 days, or erased).429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault; retry with backoff (with the same Idempotency-Key on a write).
curl 'https://api.trovacast.com/v1/events/EVENT_ID' \
-H "Authorization: Bearer $TROVACAST_API_KEY"{
"apiVersion": "v1",
"createdAt": "2026-11-05T10:00:00.000Z",
"data": {},
"externalReference": "biz_8c1f",
"id": "ID",
"livemode": true,
"object": "event",
"organizationId": "ORGANIZATION_ID",
"type": "message.sent"
}