Skip to content

Webhook event types and delivery rules

GET
/v1/webhooks/catalog
curl --request GET \
--url https://api.emite.cr/v1/webhooks/catalog \
--header 'Authorization: Bearer <token>'

What a client needs to register an endpoint and explain its status without copying the catalog: the event types an endpoint may subscribe to, how long a delivery is retried, and when a failing endpoint is paused and disabled.

The catalog.

Media typeapplication/json
object
eventTypes
required

The event types an endpoint may subscribe to, in the order to show them. webhook.test is not among them: nobody subscribes to it.

Array<string>
Allowed values: invoice.submitted invoice.accepted invoice.rejected invoice.error credentials.rejected credentials.restored
retryWindowHours
required

How long, in hours, a production delivery keeps being tried from its first attempt, each retry waiting longer than the last (1 minute, 5, 30, 2 hours, 6, then every 12).

number
sandboxRetryWindowHours
required

The same window for a sandbox delivery, in hours.

number
maxRetryAfterHours
required

The longest a receiver can delay the next attempt with Retry-After (on a 429 or a 503), in hours; 6 in sandbox.

number
pauseAfterFailures
required

How many delivery attempts in a row must fail before an endpoint is paused.

number
probeMaxIntervalMinutes
required

The longest gap, in minutes, between two probes of a paused endpoint.

number
outageNoticeAfterMinutes
required

How long, in minutes, a pause lasts before the owner and administrators are emailed (a company endpoint) and it is recorded in the audit trail.

number
disableAfterDays
required

How many days a paused endpoint may go without a success before it is disabled.

number
secretOverlapHours
required

How long, in hours, the previous secret still signs after a rotation.

number
deliveryRetentionDays
required

How many days the record of each delivery is kept.

number
Example
{
"eventTypes": [
"invoice.submitted",
"invoice.accepted",
"invoice.rejected",
"invoice.error",
"credentials.rejected",
"credentials.restored"
],
"retryWindowHours": 72,
"sandboxRetryWindowHours": 24,
"maxRetryAfterHours": 12,
"pauseAfterFailures": 10,
"probeMaxIntervalMinutes": 60,
"outageNoticeAfterMinutes": 30,
"disableAfterDays": 7,
"secretOverlapHours": 24,
"deliveryRetentionDays": 30
}