Webhook endpoints
Where Tiempo sends events. One endpoint hears from every business on your platform. Each endpoint reports its health: when it last worked, and since when it has been failing. One that fails every delivery for 3 days is turned off (disabled_reason "failing") until you turn it back on; then resend what it missed. Platform-level: no Tiempo-Account header.
Create a webhook endpoint
/v1/webhook_endpointsLive endpoints need https and a public host. The response includes the endpoint’s signing secret, once.
Body parameters
urlstringrequiredWhere to POST events. https in live mode; a public host.
enabled_eventsarray of stringsrequiredEvent types to send, or ["*"] for all.
api_versionstringThe API version events are rendered in for this endpoint. Defaults to your platform’s.
descriptionstringYour note.
metadatamapUp to 50 keys of your own (strings, keys up to 40 characters, values up to 500). Returned on every read and webhook. On update, an empty string removes a key.
List webhook endpoints
/v1/webhook_endpointsQuery parameters
limitinteger1 to 100. Defaults to 20.
starting_afterstringAn object id from the previous page; returns the page after it.
ending_beforestringAn object id; returns the page before it.
metadata[key]stringOnly objects whose metadata has this key and value. Repeat for several.
Retrieve a webhook endpoint
/v1/webhook_endpoints/{id}Path parameters
idstringrequiredThe object’s id.
Update a webhook endpoint
/v1/webhook_endpoints/{id}Path parameters
idstringrequiredThe object’s id.
Body parameters
urlstringWhere to POST events. https in live mode; a public host.
enabled_eventsarray of stringsEvent types to send, or ["*"] for all.
api_versionstringThe API version events are rendered in for this endpoint. Defaults to your platform’s.
disabledbooleantrue pauses deliveries; false turns the endpoint back on, including after Tiempo turned it off for failing.
descriptionstringYour note.
metadatamapUp to 50 keys of your own (strings, keys up to 40 characters, values up to 500). Returned on every read and webhook. On update, an empty string removes a key.
Resend to an endpoint
/v1/webhook_endpoints/{id}/resendQueues again every delivery to this endpoint that gave up, and every event it never got (while it was off, or before it listened for that type), for events created between since and until. Without since: from when it started failing, else the last 3 days. Up to 1,000 per call; has_more means call again. Safe to repeat. If the endpoint is off, the deliveries wait until you turn it on.
Path parameters
idstringrequiredThe object’s id.
Body parameters
sincetimestampEvents created from this instant.
untiltimestampEvents created before this instant. Defaults to now.
Delete a webhook endpoint
/v1/webhook_endpoints/{id}Stops deliveries, including retries already queued.
Path parameters
idstringrequiredThe object’s id.