Renew a specific 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 possible response codes for this endpoint are as follows. For details, see i18nkey codes and their error messages:
| Response | Description |
|---|---|
| 200 | The request was successful. |
| 400 | The server could not understand the request due to invalid syntax. |
| 401 | Authentication is required and has either not been provided or failed. |
Updated 13 days ago
