POST
/
v1
/
accounts
/
{accountId}
/
webhooks
cURL
curl -X POST \
  https://api.sakari.io/v1/accounts/{{ACCOUNT_ID}}/webhooks \
  -H 'Authorization: Bearer {{TOKEN}}' \
  -H 'Content-Type: application/json' \
  -d '{
  "url": "https://requestbin.io",
  "eventTypes": ["message-received"]
}'
{
  "success": true,
  "data": {
    "id": "<string>",
    "type": "<string>",
    "eventTypes": [
      "message-received"
    ],
    "destination": "<string>"
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

accountId
string
required

Account to apply operations to

Body

application/json

Response

200 - application/json

successful operation

The response is of type object.