Renew a subscription
Webhooks have an expiry date to prevent old forgotten subscriptions from being sent. Once the expiration date has been reached, Tango will no longer send the event data. To keep the event data flowing, you must renew your subscription before the expiration date. Use the below endpoint to renew your webhook subscription for continuous notification on events:
Endpoint | Purpose |
---|---|
POST {URI}/webhooks/{WebhookID}/renew | To renew subscription |
The following path parameter is used with POST {URI}/webhooks/{WebhookID}/renew:
Parameter | Data type | Description |
---|---|---|
webhookId | string | (Required) The webhook identifier |
The following request and response shows renewing webhook subscription using POST {URI}/webhooks/{WebhookID}/renew
and the response returned:
{
"webhookId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"expiresAt": "2024-06-13T20:06:24.565Z"
}
The following response message is available for this endpoint:
- 200 OK
- 400 Bad Request
- 401 Unauthorized
Updated about 2 months ago