Get WebHook Subscription

Resource

GET api/v1/webhook/subscribe

Authorization

OAuth 2.0 bearer token with Business scope.

Gett all Subscriptions API

Request

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

Response

{
  "data": [
    {
      "created_at": "2018-03-18T12:00:25.543804071+02:00",
        "updated_at": "2018-02-17T12:00:25.543804071+02:00",
        "hook_address": "http://example.com/webhook",
        "secret_id": "8750d38f-62f0-418b-9322-106fa4a3fe28",
        "id": "2e2ad86e-13d8-4348-b4ef-9b67051802fe",
    },
    {
      "created_at": "2017-03-18T12:00:25.543804071+02:00",
        "updated_at": "2017-03-17T12:00:20.543804071+02:00",
        "hook_address": "http://example.com/second-webhook",
        "secret_id": "d3f45496-1a2d-494d-9b2d-87fd05eeaad4",
        "id": "90f2101f-6e56-43b4-a69f-49badfc236ab",
    },
    .....
  ]
}

Name

Type

Description

created_at

date

RFC 3339 date. states when subscription has been created.

updated_at

date

RFC 3339 date. states when subscription has been updated.

hook_address

string

valid url of endpoint to receive updates.

secret_id

string

uuid verification token used to validate that request was sent from Gett.


Did this page help you?