Webhook event types and delivery rules
const url = 'https://api.emite.cr/v1/webhooks/catalog';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The catalog.
object
The event types an endpoint may subscribe to, in the order to show them. webhook.test is not among them: nobody subscribes to it.
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).
The same window for a sandbox delivery, in hours.
The longest a receiver can delay the next attempt with Retry-After (on a 429 or a 503), in hours; 6 in sandbox.
How many delivery attempts in a row must fail before an endpoint is paused.
The longest gap, in minutes, between two probes of a paused endpoint.
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.
How many days a paused endpoint may go without a success before it is disabled.
How long, in hours, the previous secret still signs after a rotation.
How many days the record of each delivery is kept.
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}