Jump to

  • Quickstarts
  • API reference
  • Webhook events
  • Error codes
  • SDKs

API reference

Events

How these fit together: the Webhooks & events guide.

List events

get/v1/events

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

  • limitinteger

    How many items to return.

  • cursorstring

    The nextCursor of the previous page. Omit for the first page.

  • typestring

    Only events of this type.

    One ofmessage.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

  • createdAfterstring (date-time)

    Only events created at or after this instant.

  • createdBeforestring (date-time)

    Only events created before this instant.

Response 200PublicEventPage

  • dataPublicEvent[]Required

    Its fields are listed under Get event

  • nextCursorstring | nullRequired

    Pass back as cursor for the next page; null on the last.

Errors

Request
curl 'https://api.trovacast.com/v1/events?type=message.failed&limit=50' \
  -H "Authorization: Bearer $TROVACAST_API_KEY"
Response 200 (json)
{
  "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/v1/events/{eventId}

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 fields
  • apiVersionstringRequired

    One ofv1

  • createdAtstring (date-time)Required

  • dataobject | nullRequired

    What 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 | null

    Present when an integration provisioned the organization: that integration’s own reference for it (externalReference of POST /v1/organizations), as every delivery of the event carries it.

  • idstring (uuid)Required

    The event id — the same id (and Trovacast-Event-Id) every delivery of it carries.

  • livemodebooleanRequired

    Live (true) or test traffic (false) — the event’s mode, as every delivery of it carries it at the top level.

  • objectstringRequired

    One ofevent

  • organizationIdstring (uuid)Required

  • typestringRequired

    One ofmessage.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

Request
curl 'https://api.trovacast.com/v1/events/EVENT_ID' \
  -H "Authorization: Bearer $TROVACAST_API_KEY"
Response 200 (json)
{
  "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"
}