Test webhook subscription

Resource

POST api/v1/webhook/subscribe/test

Authorization

OAuth 2.0 bearer token with Business scope.

Request

curl -X POST \
  https://api.gett.com/v1/webhook/subscribe/test \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer [TOKEN]' \
  -H 'Cache-Control: no-cache' \
  -H 'Content-Type: application/json' \

Responce

{
    "message": "ok",
 }

On top of the response each subscribed endpoint will get the following message

{
   "id": "a9329a64-8a59-428a-9254-2313edc7417c",
   "event_type": "test.event.updated",
   "hook_address": "example.com/webhook",
   "message": "Test me",
   "timestamp": "2018-03-18T12:00:25.543804071+02:00",
 }
NameTypeDescription
created_atdateRFC 3339 date. states when subscription has been created.
updates_atdateRFC 3339 date. states when subscription has been updated.
hook_addressstringvalid url of endpoint to receive updates.
idstringuuid subscription id.
secret_idstringuuid verification token used to validate that request was sent from Gett.