POST /api/v3/private/webhooks HTTP/1.1
Host: your-exchange
Accept: application/json
Authorization: Bearer <token>
X-Api-Signature-Version: v2
X-Api-Timestamp: <unix_timestamp>
X-Api-Nonce: <nonce>
X-Api-Signature: sha256=<hex_digest>
Idempotency-Key: <idempotency_key>
Content-Type: application/json
{
"name": "Order updates",
"url": "https://receiver.example/hooks/exchanger",
"events": [
"order.status_changed"
]
}
{
"state": 0,
"message": "<string>",
"result": {
"endpoint": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"url": "<string>",
"events": [
"<string>"
],
"status": "active",
"signing_algorithm": "hmac-sha256-v2",
"payload_version": "v2",
"secret_fingerprint": "<string>",
"failure_count": 123,
"last_delivery_at": "2023-11-07T05:31:56Z",
"last_success_at": "2023-11-07T05:31:56Z",
"last_failure_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"secret": "<string>"
}
},
"meta": {
"request_id": "<string>",
"correlation_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"mode": "page",
"current_page": 2,
"per_page": 2,
"total": 1,
"last_page": 2,
"from": 123,
"to": 123,
"has_more": true
},
"filters": {},
"sort": [
"<string>"
],
"summary": {
"total": 123,
"bonus_sum": "<string>",
"currency": "<string>",
"confirmed_accruals": 123,
"by_currency": [
{
"currency": "<string>",
"bonus_sum": "<string>",
"confirmed_accruals": 123
}
]
}
}
}
Webhooks
Create webhook endpoint
Subscriptions deliver compact payload v2. If payload_version is provided, use v2. Receivers verify delivery signatures with HMAC v2. With Idempotency-Key, the subscription and its encrypted 201 response commit together. Repeating the request with the same key and body within the TTL returns the original subscription and secret. If the response is lost and the key is missing or the TTL has expired, check the existing subscriptions first.
POST
/
private
/
webhooks
POST /api/v3/private/webhooks HTTP/1.1
Host: your-exchange
Accept: application/json
Authorization: Bearer <token>
X-Api-Signature-Version: v2
X-Api-Timestamp: <unix_timestamp>
X-Api-Nonce: <nonce>
X-Api-Signature: sha256=<hex_digest>
Idempotency-Key: <idempotency_key>
Content-Type: application/json
{
"name": "Order updates",
"url": "https://receiver.example/hooks/exchanger",
"events": [
"order.status_changed"
]
}
{
"state": 0,
"message": "<string>",
"result": {
"endpoint": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"url": "<string>",
"events": [
"<string>"
],
"status": "active",
"signing_algorithm": "hmac-sha256-v2",
"payload_version": "v2",
"secret_fingerprint": "<string>",
"failure_count": 123,
"last_delivery_at": "2023-11-07T05:31:56Z",
"last_success_at": "2023-11-07T05:31:56Z",
"last_failure_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"secret": "<string>"
}
},
"meta": {
"request_id": "<string>",
"correlation_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"mode": "page",
"current_page": 2,
"per_page": 2,
"total": 1,
"last_page": 2,
"from": 123,
"to": 123,
"has_more": true
},
"filters": {},
"sort": [
"<string>"
],
"summary": {
"total": 123,
"bonus_sum": "<string>",
"currency": "<string>",
"confirmed_accruals": 123,
"by_currency": [
{
"currency": "<string>",
"bonus_sum": "<string>",
"confirmed_accruals": 123
}
]
}
}
}
Русская версия
Sign the request with HMAC v2. Requires the
public-api:webhooks:write scope. Accepts Idempotency-Key.
Substitute the public HTTPS URL of your receiver. Store the secret from the creation response and set up signature verification before accepting events.
The HTTP example uses test values. Substitute identifiers from your test installation and sign the data you actually send.
Related methods
POST /api/v3/private/webhooks HTTP/1.1
Host: your-exchange
Accept: application/json
Authorization: Bearer <token>
X-Api-Signature-Version: v2
X-Api-Timestamp: <unix_timestamp>
X-Api-Nonce: <nonce>
X-Api-Signature: sha256=<hex_digest>
Idempotency-Key: <idempotency_key>
Content-Type: application/json
{
"name": "Order updates",
"url": "https://receiver.example/hooks/exchanger",
"events": [
"order.status_changed"
]
}
Authorizations
Headers
Body
application/json