API reference
Integration webhooks
How these fit together: the Integration keys guide.
List integration events
get
Lists the stored events of every organization your integration provisioned (the last 30 days), newest first.
An event is stored when any endpoint subscribed to its type at the time — yours or one of the organization’s own — and kept 30 days. Each item is the envelope its deliveries carry (same id), naming the organization (organizationId) and your reference for it (externalReference). Filter by organizationId, type and a createdAfter/createdBefore window. A key lists its own mode’s events, and only the types whose reading scopes the platform delegated to your integration (filtering on another is a 403 naming the scope). An event commits with the change it describes, so overlap the window you poll by a minute and deduplicate on id.
Access: an integration key with the organizations:events 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.
organizationIdstring (uuid)Only the events of this organization (one your integration provisioned).
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 —typeis an event your integration was not delegated the scope to read (requiredScope).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/integration/events' \
-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 integration event
get
Retrieves a stored event of one of your integration’s organizations 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). Of the key’s mode, and a type your integration was not delegated the scope to read is withheld as if it did not exist. Events are kept 30 days; erasing a contact or an organization deletes its events.
Access: an integration key with the organizations:events scope.
Path parameters
eventIdstringRequired
Response 200PublicEvent
Its fields are listed under Get event.
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 of your integration’s organizations (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/integration/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"
}List integration webhook endpoints
get
Lists your integration’s own webhook endpoints.
Every endpoint of your integration of the key’s mode, newest first, in one page (at most 10 per mode). Each receives the events of every organization your integration provisioned. Shows its events, status, delivery health and the last four characters of its signing secret — never the secret.
Access: an integration key with the organizations:events scope.
Response 200WebhookEndpointPage
dataWebhookEndpoint[]RequiredIts fields are listed under Get integration webhook endpoint
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/integration/webhook-endpoints' \
-H "Authorization: Bearer $TROVACAST_API_KEY"{
"data": [
{
"createdAt": "2026-11-05T10:00:00.000Z",
"description": "DESCRIPTION",
"events": [
"message.sent"
],
"failingSince": "2026-11-05T10:00:00.000Z",
"id": "ID",
"lastFailureAt": "2026-11-05T10:00:00.000Z",
"lastSuccessAt": "2026-11-05T10:00:00.000Z",
"mode": "live",
"object": "webhook_endpoint",
"previousSecretExpiresAt": "2026-11-05T10:00:00.000Z",
"secretLast4": "a1B2",
"status": "enabled",
"updatedAt": "2026-11-05T10:00:00.000Z",
"url": "URL"
}
],
"nextCursor": "NEXT_CURSOR"
}Create integration webhook endpoint
post
Registers an endpoint for every organization’s events; the response carries its secret once.
Subscribes an HTTPS URL on a public host to the event types listed, for every organization your integration provisioned — now and later. Each delivery is the event envelope an organization’s own endpoint gets, naming the organization (organizationId) and your reference for it (externalReference). The endpoint takes the key’s mode: a live key’s receives live traffic, a test key’s test traffic (your test organizations’, and your live organizations’ test-mode traffic). Every subscribed type needs the scopes that read it delegated to your integration by the platform (a 403 names the one missing as requiredScope). The signing secret (secret) is in this response only. Refused with 400 WEBHOOK_URL_INVALID (reason), 409 WEBHOOK_ENDPOINT_LIMIT at 10 endpoints of the mode, and 429 RATE_LIMITED past 20 URL creates and changes per hour; audited.
Access: an integration key with the organizations:events scope.
Headers
Idempotency-KeystringMakes the request safe to retry: a repeat with the same key and the same body returns the stored success (with
Idempotent-Replayed: true) instead of running again; a 4xx stores nothing. A 5xx is stored and replayed to every retry with the same key (Idempotent-Replayed: true): the first attempt may have taken effect, so check before retrying with a new key — except the errors that provably changed nothing (503 MESSAGING_TRANSPORT,503 WHATSAPP_CONNECT_UNAVAILABLE; see https://trovacast.com/developers/idempotency), which store nothing, so a retry with the same key runs again. 1–255 visible ASCII characters; kept for 24 hours.
Request body
descriptionstringat most 240 characters
eventsstring[]RequiredThe event types to deliver. At least one.
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.updatedmodestringThe traffic it receives. Defaults to the mode of the key creating it (a test key creates
testendpoints, a live keyliveones), and a key may only name its own mode. In the console,liveunless chosen.One of
livetesturlstringRequiredAn https:// URL on a public host, with no user name or password. Every address it resolves to is checked again on each delivery.
at most 2048 characters
Response 201WebhookEndpointWithSecret
Show the 15 fieldsHide the fields
createdAtstring (date-time)Requireddescriptionstring | nullRequiredeventsstring[]RequiredOne 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.updatedfailingSincestring (date-time) | nullRequiredStart of the current run of failed deliveries; null once one succeeds.
idstring (uuid)RequiredlastFailureAtstring (date-time) | nullRequiredlastSuccessAtstring (date-time) | nullRequiredmodestringRequiredThe traffic it receives:
liveendpoints get live events only,testendpoints only the events of test-mode traffic (livemode: false). An endpoint takes the mode of the key that created it; a key sees and manages the endpoints of its own mode.One of
livetestobjectstringRequiredOne of
webhook_endpointpreviousSecretExpiresAtstring (date-time) | nullRequiredWhile a rotation overlaps: when the previous secret stops signing.
secretstringRequiredThe signing secret. Shown only in this response — store it now.
secretLast4stringRequiredThe last four characters of the signing secret.
statusstringRequiredfailing_disabled: the platform turned it off after three days of failed deliveries.One of
enableddisabledfailing_disabledupdatedAtstring (date-time)RequiredurlstringRequired
Errors
400WEBHOOK_URL_INVALID — the URL cannot receive deliveries;reasonsays why (URL_INVALID,URL_NOT_ALLOWED,DNS_FAILED,ADDRESS_NOT_ALLOWED,PORT_NOT_ALLOWED). Or VALIDATION_FAILED — an unknown event type, no event, or a malformed field.401API_KEY_INVALID — missing, unknown, revoked or expired key.403API_KEY_SCOPE_MISSING — the key lacksorganizations:events, or the platform has not delegated to your integration a scope that reads one of the events the endpoint would carry (requiredScope; see the event catalog). A new URL redirects every subscribed event, so it needs them all.409WEBHOOK_ENDPOINT_LIMIT — your integration has the most endpoints of this mode it may; delete one first. IDEMPOTENCY_KEY_IN_FLIGHT — the first request with this Idempotency-Key is still running (retry afterRetry-After); or CONFLICT.422IDEMPOTENCY_KEY_REUSED — this Idempotency-Key was used for a different request.429RATE_LIMITED — your integration has set its most webhook URLs for this hour (creates and URL changes); retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault. With an Idempotency-Key, every retry with that key replays this answer (Idempotent-Replayed: true).
curl -X POST 'https://api.trovacast.com/v1/integration/webhook-endpoints' \
-H "Authorization: Bearer $TROVACAST_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H 'Content-Type: application/json' \
-d '{
"events": [
"message.sent"
],
"url": "https://apps.example.com/trovacast/webhook"
}'{
"createdAt": "2026-11-05T10:00:00.000Z",
"description": "DESCRIPTION",
"events": [
"message.sent"
],
"failingSince": "2026-11-05T10:00:00.000Z",
"id": "ID",
"lastFailureAt": "2026-11-05T10:00:00.000Z",
"lastSuccessAt": "2026-11-05T10:00:00.000Z",
"mode": "live",
"object": "webhook_endpoint",
"previousSecretExpiresAt": "2026-11-05T10:00:00.000Z",
"secret": "whsec_AbCdEfGhIjKlMnOpQrStUvWxYz012345",
"secretLast4": "a1B2",
"status": "enabled",
"updatedAt": "2026-11-05T10:00:00.000Z",
"url": "URL"
}Get integration webhook endpoint
get
Retrieves one of your integration’s webhook endpoints.
Its URL, events, status and mode, its delivery health, the last four characters of its signing secret and, while a rotation overlaps, when the previous secret stops signing. A key reads the endpoints of its own mode only.
Access: an integration key with the organizations:events scope.
Path parameters
endpointIdstringRequired
Response 200WebhookEndpoint
Show the 14 fieldsHide the fields
createdAtstring (date-time)Requireddescriptionstring | nullRequiredeventsstring[]RequiredOne 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.updatedfailingSincestring (date-time) | nullRequiredStart of the current run of failed deliveries; null once one succeeds.
idstring (uuid)RequiredlastFailureAtstring (date-time) | nullRequiredlastSuccessAtstring (date-time) | nullRequiredmodestringRequiredThe traffic it receives:
liveendpoints get live events only,testendpoints only the events of test-mode traffic (livemode: false). An endpoint takes the mode of the key that created it; a key sees and manages the endpoints of its own mode.One of
livetestobjectstringRequiredOne of
webhook_endpointpreviousSecretExpiresAtstring (date-time) | nullRequiredWhile a rotation overlaps: when the previous secret stops signing.
secretLast4stringRequiredThe last four characters of the signing secret.
statusstringRequiredfailing_disabled: the platform turned it off after three days of failed deliveries.One of
enableddisabledfailing_disabledupdatedAtstring (date-time)RequiredurlstringRequired
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 endpoint of your integration’s.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/integration/webhook-endpoints/ENDPOINT_ID' \
-H "Authorization: Bearer $TROVACAST_API_KEY"{
"createdAt": "2026-11-05T10:00:00.000Z",
"description": "DESCRIPTION",
"events": [
"message.sent"
],
"failingSince": "2026-11-05T10:00:00.000Z",
"id": "ID",
"lastFailureAt": "2026-11-05T10:00:00.000Z",
"lastSuccessAt": "2026-11-05T10:00:00.000Z",
"mode": "live",
"object": "webhook_endpoint",
"previousSecretExpiresAt": "2026-11-05T10:00:00.000Z",
"secretLast4": "a1B2",
"status": "enabled",
"updatedAt": "2026-11-05T10:00:00.000Z",
"url": "URL"
}Update integration webhook endpoint
patch
Changes one of your integration’s endpoints: URL, events, description or status.
Only the fields sent change, under a compare-and-set (409 CONFLICT when another change landed meanwhile). status: enabled re-enables an endpoint you paused or the platform disabled, restarting its three-day failure clock; its pending deliveries resume. A new URL or new events are held to the create rules — every event’s reading scopes delegated to your integration — and audited.
Access: an integration key with the organizations:events scope.
Path parameters
endpointIdstringRequired
Headers
Idempotency-KeystringMakes the request safe to retry: a repeat with the same key and the same body returns the stored success (with
Idempotent-Replayed: true) instead of running again; a 4xx stores nothing. A 5xx is stored and replayed to every retry with the same key (Idempotent-Replayed: true): the first attempt may have taken effect, so check before retrying with a new key — except the errors that provably changed nothing (503 MESSAGING_TRANSPORT,503 WHATSAPP_CONNECT_UNAVAILABLE; see https://trovacast.com/developers/idempotency), which store nothing, so a retry with the same key runs again. 1–255 visible ASCII characters; kept for 24 hours.
Request body
descriptionstring | nullNull clears it.
at most 240 characters
eventsstring[]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.updatedstatusstringTurn deliveries off or back on. Re-enabling an endpoint the platform disabled (
failing_disabled) restarts its failure clock; deliveries still inside their retry window resume.One of
enableddisabledurlstringat most 2048 characters
Response 200WebhookEndpoint
Its fields are listed under Get integration webhook endpoint.
Errors
400WEBHOOK_URL_INVALID — the URL cannot receive deliveries;reasonsays why (URL_INVALID,URL_NOT_ALLOWED,DNS_FAILED,ADDRESS_NOT_ALLOWED,PORT_NOT_ALLOWED). Or VALIDATION_FAILED — an unknown event type, no event, or a malformed field.401API_KEY_INVALID — missing, unknown, revoked or expired key.403API_KEY_SCOPE_MISSING — the key lacksorganizations:events, or the platform has not delegated to your integration a scope that reads one of the events the endpoint would carry (requiredScope; see the event catalog). A new URL redirects every subscribed event, so it needs them all.404NOT_FOUND — no such endpoint of your integration’s.409CONFLICT — the endpoint changed while this request ran; reload and retry. IDEMPOTENCY_KEY_IN_FLIGHT — the first request with this Idempotency-Key is still running (retry afterRetry-After); or CONFLICT.422IDEMPOTENCY_KEY_REUSED — this Idempotency-Key was used for a different request.429RATE_LIMITED — your integration has set its most webhook URLs for this hour (creates and URL changes); retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault. With an Idempotency-Key, every retry with that key replays this answer (Idempotent-Replayed: true).
curl -X PATCH 'https://api.trovacast.com/v1/integration/webhook-endpoints/ENDPOINT_ID' \
-H "Authorization: Bearer $TROVACAST_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H 'Content-Type: application/json' \
-d '{}'{
"createdAt": "2026-11-05T10:00:00.000Z",
"description": "DESCRIPTION",
"events": [
"message.sent"
],
"failingSince": "2026-11-05T10:00:00.000Z",
"id": "ID",
"lastFailureAt": "2026-11-05T10:00:00.000Z",
"lastSuccessAt": "2026-11-05T10:00:00.000Z",
"mode": "live",
"object": "webhook_endpoint",
"previousSecretExpiresAt": "2026-11-05T10:00:00.000Z",
"secretLast4": "a1B2",
"status": "enabled",
"updatedAt": "2026-11-05T10:00:00.000Z",
"url": "URL"
}Delete integration webhook endpoint
delete
Deletes one of your integration’s endpoints and its pending deliveries.
Nothing pending is sent; the events stay (GET /v1/integration/events). Audited.
Access: an integration key with the organizations:events scope.
Path parameters
endpointIdstringRequired
Headers
Idempotency-KeystringMakes the request safe to retry: a repeat with the same key and the same body returns the stored success (with
Idempotent-Replayed: true) instead of running again; a 4xx stores nothing. A 5xx is stored and replayed to every retry with the same key (Idempotent-Replayed: true): the first attempt may have taken effect, so check before retrying with a new key — except the errors that provably changed nothing (503 MESSAGING_TRANSPORT,503 WHATSAPP_CONNECT_UNAVAILABLE; see https://trovacast.com/developers/idempotency), which store nothing, so a retry with the same key runs again. 1–255 visible ASCII characters; kept for 24 hours.
Response 200DeletedWebhookEndpoint
deletedbooleanRequiredOne of
trueidstring (uuid)RequiredobjectstringRequiredOne of
webhook_endpoint
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 endpoint of your integration’s.409IDEMPOTENCY_KEY_IN_FLIGHT — the first request with this Idempotency-Key is still running (retry afterRetry-After); or CONFLICT.422IDEMPOTENCY_KEY_REUSED — this Idempotency-Key was used for a different request.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault. With an Idempotency-Key, every retry with that key replays this answer (Idempotent-Replayed: true).
curl -X DELETE 'https://api.trovacast.com/v1/integration/webhook-endpoints/ENDPOINT_ID' \
-H "Authorization: Bearer $TROVACAST_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"{
"deleted": true,
"id": "ID",
"object": "webhook_endpoint"
}List integration webhook deliveries
get
Lists recent deliveries to one of your integration’s endpoints, newest first.
Each names its event (id, type; read the event with GET /v1/integration/events/{eventId} for its organization) and reads pending, succeeded or failed, with the attempts made, when the next is due and the last response status or failure reason — never the response body. Deliveries go with their events after 30 days.
Access: an integration key with the organizations:events scope.
Path parameters
endpointIdstringRequired
Query parameters
limitintegerHow many items to return.
cursorstringThe
nextCursorof the previous page. Omit for the first page.statusstringOnly deliveries in this state —
failedlists what to resend after an outage.One of
pendingsucceededfailed
Response 200WebhookDeliveryPage
dataWebhookDelivery[]Required12 fields of
dataattemptCountintegerRequiredAttempts made so far.
createdAtstring (date-time)RequireddeliveredAtstring (date-time) | nullRequiredendpointIdstring (uuid)RequiredeventWebhookDeliveryEventRequired3 fields of
eventcreatedAtstring (date-time)Requiredidstring (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
idstring (uuid)RequiredlastErrorstring | nullRequiredlastResponseStatusinteger | nullRequirednextAttemptAtstring (date-time) | nullRequiredWhen the next attempt is due (pending only).
objectstringRequiredOne of
webhook_deliverystatusstringRequiredOne of
pendingsucceededfailedupdatedAtstring (date-time)Required
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.404NOT_FOUND — no such endpoint of your integration’s.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/integration/webhook-endpoints/ENDPOINT_ID/deliveries' \
-H "Authorization: Bearer $TROVACAST_API_KEY"{
"data": [
{
"attemptCount": 1,
"createdAt": "2026-11-05T10:00:00.000Z",
"deliveredAt": "2026-11-05T10:00:00.000Z",
"endpointId": "ENDPOINT_ID",
"event": {
"createdAt": "2026-11-05T10:00:00.000Z",
"id": "ID",
"type": "message.sent"
},
"id": "ID",
"lastError": "LAST_ERROR",
"lastResponseStatus": 1,
"nextAttemptAt": "2026-11-05T10:00:00.000Z",
"object": "webhook_delivery",
"status": "pending",
"updatedAt": "2026-11-05T10:00:00.000Z"
}
],
"nextCursor": "NEXT_CURSOR"
}Resend integration webhook deliveries
post
Sends one of your integration’s endpoints its failed (or retry-waiting) deliveries again now, in bulk.
Re-queues up to 1000 deliveries created in [since, until), oldest first, whatever organization each is about, with a fresh retry schedule: failed ones (default) or pending ones waiting out a retry. hasMore: call again with the same body. 409 WEBHOOK_ENDPOINT_DISABLED when the endpoint is not enabled.
Access: an integration key with the organizations:events scope.
Path parameters
endpointIdstringRequired
Headers
Idempotency-KeystringMakes the request safe to retry: a repeat with the same key and the same body returns the stored success (with
Idempotent-Replayed: true) instead of running again; a 4xx stores nothing. A 5xx is stored and replayed to every retry with the same key (Idempotent-Replayed: true): the first attempt may have taken effect, so check before retrying with a new key — except the errors that provably changed nothing (503 MESSAGING_TRANSPORT,503 WHATSAPP_CONNECT_UNAVAILABLE; see https://trovacast.com/developers/idempotency), which store nothing, so a retry with the same key runs again. 1–255 visible ASCII characters; kept for 24 hours.
Request body
sincestring (date-time)RequiredResend the deliveries created at or after this instant (events are kept 30 days).
statusstringfailed(default): deliveries that ran out of attempts.pending: deliveries waiting out a retry (sent now instead, with a fresh schedule) — after you fixed your server.One of
failedpendingdefault "failed"
untilstring (date-time)And before this instant. Default: now.
Response 200WebhookDeliveryResendResult
hasMorebooleanRequiredMore deliveries matched than one request resends: call again with the same body (the ones already queued no longer match).
objectstringRequiredOne of
webhook_delivery_resendresentintegerRequiredHow many deliveries were queued again (at most 1000).
Errors
400VALIDATION_FAILED —untilis not aftersince, or a field 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 endpoint of your integration’s.409WEBHOOK_ENDPOINT_DISABLED — the endpoint is not enabled; enable it first. IDEMPOTENCY_KEY_IN_FLIGHT — the first request with this Idempotency-Key is still running (retry afterRetry-After); or CONFLICT.422IDEMPOTENCY_KEY_REUSED — this Idempotency-Key was used for a different request.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault. With an Idempotency-Key, every retry with that key replays this answer (Idempotent-Replayed: true).
curl -X POST 'https://api.trovacast.com/v1/integration/webhook-endpoints/ENDPOINT_ID/deliveries/resend' \
-H "Authorization: Bearer $TROVACAST_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H 'Content-Type: application/json' \
-d '{
"since": "2026-11-05T10:00:00.000Z"
}'{
"hasMore": true,
"object": "webhook_delivery_resend",
"resent": 1
}Resend integration webhook delivery
post
Sends one delivery to your integration’s endpoint again now, with a fresh retry schedule.
Re-queues one delivery — a failed one, or a succeeded one your receiver lost — with the same stored event (same id), while the event is inside its 30 days. 409 WEBHOOK_ENDPOINT_DISABLED when the endpoint is not enabled, 409 WEBHOOK_DELIVERY_IN_FLIGHT while that delivery is being attempted. Audited.
Access: an integration key with the organizations:events scope.
Path parameters
endpointIdstringRequireddeliveryIdstringRequired
Headers
Idempotency-KeystringMakes the request safe to retry: a repeat with the same key and the same body returns the stored success (with
Idempotent-Replayed: true) instead of running again; a 4xx stores nothing. A 5xx is stored and replayed to every retry with the same key (Idempotent-Replayed: true): the first attempt may have taken effect, so check before retrying with a new key — except the errors that provably changed nothing (503 MESSAGING_TRANSPORT,503 WHATSAPP_CONNECT_UNAVAILABLE; see https://trovacast.com/developers/idempotency), which store nothing, so a retry with the same key runs again. 1–255 visible ASCII characters; kept for 24 hours.
Response 200WebhookDelivery
Show the 12 fieldsHide the fields
attemptCountintegerRequiredAttempts made so far.
createdAtstring (date-time)RequireddeliveredAtstring (date-time) | nullRequiredendpointIdstring (uuid)RequiredeventWebhookDeliveryEventRequired3 fields of
eventcreatedAtstring (date-time)Requiredidstring (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
idstring (uuid)RequiredlastErrorstring | nullRequiredlastResponseStatusinteger | nullRequirednextAttemptAtstring (date-time) | nullRequiredWhen the next attempt is due (pending only).
objectstringRequiredOne of
webhook_deliverystatusstringRequiredOne of
pendingsucceededfailedupdatedAtstring (date-time)Required
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 endpoint of your integration’s, or no such delivery on it.409WEBHOOK_ENDPOINT_DISABLED — the endpoint is not enabled; enable it first. Or WEBHOOK_DELIVERY_IN_FLIGHT — that delivery is being attempted right now; retry shortly. IDEMPOTENCY_KEY_IN_FLIGHT — the first request with this Idempotency-Key is still running (retry afterRetry-After); or CONFLICT.422IDEMPOTENCY_KEY_REUSED — this Idempotency-Key was used for a different request.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault. With an Idempotency-Key, every retry with that key replays this answer (Idempotent-Replayed: true).
curl -X POST 'https://api.trovacast.com/v1/integration/webhook-endpoints/ENDPOINT_ID/deliveries/DELIVERY_ID/resend' \
-H "Authorization: Bearer $TROVACAST_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"{
"attemptCount": 1,
"createdAt": "2026-11-05T10:00:00.000Z",
"deliveredAt": "2026-11-05T10:00:00.000Z",
"endpointId": "ENDPOINT_ID",
"event": {
"createdAt": "2026-11-05T10:00:00.000Z",
"id": "ID",
"type": "message.sent"
},
"id": "ID",
"lastError": "LAST_ERROR",
"lastResponseStatus": 1,
"nextAttemptAt": "2026-11-05T10:00:00.000Z",
"object": "webhook_delivery",
"status": "pending",
"updatedAt": "2026-11-05T10:00:00.000Z"
}Rotate integration webhook endpoint secret
post
Issues a new signing secret for one of your integration’s endpoints; the previous one keeps signing for 24 hours.
The new secret is returned once, in secret. Until previousSecretExpiresAt every delivery carries a second v1= signature made with the previous secret. Audited by the secrets’ last four characters.
Access: an integration key with the organizations:events scope.
Path parameters
endpointIdstringRequired
Headers
Idempotency-KeystringMakes the request safe to retry: a repeat with the same key and the same body returns the stored success (with
Idempotent-Replayed: true) instead of running again; a 4xx stores nothing. A 5xx is stored and replayed to every retry with the same key (Idempotent-Replayed: true): the first attempt may have taken effect, so check before retrying with a new key — except the errors that provably changed nothing (503 MESSAGING_TRANSPORT,503 WHATSAPP_CONNECT_UNAVAILABLE; see https://trovacast.com/developers/idempotency), which store nothing, so a retry with the same key runs again. 1–255 visible ASCII characters; kept for 24 hours.
Response 200WebhookEndpointWithSecret
Show the 15 fieldsHide the fields
createdAtstring (date-time)Requireddescriptionstring | nullRequiredeventsstring[]RequiredOne 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.updatedfailingSincestring (date-time) | nullRequiredStart of the current run of failed deliveries; null once one succeeds.
idstring (uuid)RequiredlastFailureAtstring (date-time) | nullRequiredlastSuccessAtstring (date-time) | nullRequiredmodestringRequiredThe traffic it receives:
liveendpoints get live events only,testendpoints only the events of test-mode traffic (livemode: false). An endpoint takes the mode of the key that created it; a key sees and manages the endpoints of its own mode.One of
livetestobjectstringRequiredOne of
webhook_endpointpreviousSecretExpiresAtstring (date-time) | nullRequiredWhile a rotation overlaps: when the previous secret stops signing.
secretstringRequiredThe signing secret. Shown only in this response — store it now.
secretLast4stringRequiredThe last four characters of the signing secret.
statusstringRequiredfailing_disabled: the platform turned it off after three days of failed deliveries.One of
enableddisabledfailing_disabledupdatedAtstring (date-time)RequiredurlstringRequired
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 endpoint of your integration’s.409CONFLICT — the endpoint changed while this request ran; reload and retry. IDEMPOTENCY_KEY_IN_FLIGHT — the first request with this Idempotency-Key is still running (retry afterRetry-After); or CONFLICT.422IDEMPOTENCY_KEY_REUSED — this Idempotency-Key was used for a different request.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault. With an Idempotency-Key, every retry with that key replays this answer (Idempotent-Replayed: true).
curl -X POST 'https://api.trovacast.com/v1/integration/webhook-endpoints/ENDPOINT_ID/rotate-secret' \
-H "Authorization: Bearer $TROVACAST_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"{
"createdAt": "2026-11-05T10:00:00.000Z",
"description": "DESCRIPTION",
"events": [
"message.sent"
],
"failingSince": "2026-11-05T10:00:00.000Z",
"id": "ID",
"lastFailureAt": "2026-11-05T10:00:00.000Z",
"lastSuccessAt": "2026-11-05T10:00:00.000Z",
"mode": "live",
"object": "webhook_endpoint",
"previousSecretExpiresAt": "2026-11-05T10:00:00.000Z",
"secret": "whsec_AbCdEfGhIjKlMnOpQrStUvWxYz012345",
"secretLast4": "a1B2",
"status": "enabled",
"updatedAt": "2026-11-05T10:00:00.000Z",
"url": "URL"
}Test integration webhook endpoint
post
Sends a signed webhook.test event to one of your integration’s endpoints and reports its answer.
At most 5 per endpoint per minute. The test is about no organization: its organizationId is the nil UUID and it names your integration (integrationId). A failure is reported by its class, never socket-level detail.
Access: an integration key with the organizations:events scope.
Path parameters
endpointIdstringRequired
Headers
Idempotency-KeystringMakes the request safe to retry: a repeat with the same key and the same body returns the stored success (with
Idempotent-Replayed: true) instead of running again; a 4xx stores nothing. A 5xx is stored and replayed to every retry with the same key (Idempotent-Replayed: true): the first attempt may have taken effect, so check before retrying with a new key — except the errors that provably changed nothing (503 MESSAGING_TRANSPORT,503 WHATSAPP_CONNECT_UNAVAILABLE; see https://trovacast.com/developers/idempotency), which store nothing, so a retry with the same key runs again. 1–255 visible ASCII characters; kept for 24 hours.
Response 200WebhookTestResult
durationMsintegerRequirederrorstring | nullRequiredWhy it failed (never the response body).
eventIdstring (uuid)RequiredThe synthetic event id sent (type
webhook.test).objectstringRequiredOne of
webhook_teststatusCodeinteger | nullRequiredsuccessbooleanRequiredWhether the endpoint answered 2xx.
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 endpoint of your integration’s.409IDEMPOTENCY_KEY_IN_FLIGHT — the first request with this Idempotency-Key is still running (retry afterRetry-After); or CONFLICT.422IDEMPOTENCY_KEY_REUSED — this Idempotency-Key was used for a different request.429RATE_LIMITED — this endpoint’s test budget is spent; retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault. With an Idempotency-Key, every retry with that key replays this answer (Idempotent-Replayed: true).
curl -X POST 'https://api.trovacast.com/v1/integration/webhook-endpoints/ENDPOINT_ID/test' \
-H "Authorization: Bearer $TROVACAST_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"{
"durationMs": 1,
"error": "ERROR",
"eventId": "EVENT_ID",
"object": "webhook_test",
"statusCode": 1,
"success": true
}