Вебхуки
Создать вебхук
Создаёт новый вебхук.
post/v1/public/webhooks
Request
- Base URL: https://api.rusender.ru/api
- URL: https://api.rusender.ru/api/v1/public/webhooks
- Auth: HTTP bearer
Headers
Idempotency-Keystring
Опциональный ключ идемпотентности. Если передан, повторные запросы с тем же ключом обрабатываются только один раз.
Request body
Example request
{
"data": {
"name": "Delivery notifications",
"url": "https://example.com/webhooks/rusender",
"triggers": [
"mail_distribution.completed",
"data_mail_distribution.delivered"
],
"status": "enabled"
}
}Response
Созданный вебхук.
Example response
{
"ok": true,
"data": {
"id": 42,
"name": "Delivery notifications",
"url": "https://example.com/webhooks/rusender",
"triggers": [
"mail_distribution.finished",
"data_mail_distribution.delivered"
],
"status": "enabled",
"createdAt": "2026-01-15T10:30:00.000Z",
"updatedAt": "2026-03-01T14:00:00.000Z"
},
"meta": {
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"timestamp": "2026-03-05T12:00:00.000Z",
"pagination": {
"page": 1,
"limit": 20,
"totalItems": 150,
"totalPages": 8
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.