Skip to main content

Webhook

An example of a server request for a webhook address passed in the hook parameter of requests to send messages.

URI: /api/json.php

All requests to API are sent in JSON format using the POST method.

Header parameters

Requests must contain header Content-Type: application/json and X-Signature, otherwise, the request will be considered invalid even if it has valid JSON.

X-Signature

The X-Signature header is passed by concatenating a JSON string and an API-key.
Example: X-Signature: sha256(json_body + api_key)

Request example

{
"id": 100500,
"msg_id": 123456789,
"type": "viber",
"status": "READ",
"datetime": "2024-01-31T12:34:00+02:00"
}

Response parameters

You will receive code 200 in response.

Response example

HTTP Status Code: 200
Content Type: JSON application/json