Get all webhooks

GET /advertising/v1.0/webhooks/

Endpoint for retrieving webhooks that belong to current user.

Query parameters

  • page number(float)

    Minimum value is 1. Default value is 1.

Responses

  • 200 application/json

    webhook successfully retrieved

    Hide response attributes Show response attributes object
    • success boolean Required
    • data array[object] Required
      Hide data attributes Show data attributes object
      • id string Required
      • event string Required

        Value is inquiry_created.

      • configuration object Required

        Additional properties are NOT allowed.

        Hide configuration attributes Show configuration attributes object
        • targetUrl string Required

          Url of the webhook.

        • headers object | null

          Optional object with header sent as key-value. These headers will be sent with every request. Could be used for example for authorization.

          Additional properties are NOT allowed.

    • paginationInfo object Required

      Additional properties are NOT allowed.

      Hide paginationInfo attributes Show paginationInfo attributes object
      • page number(float) Required
      • pages number(float) Required
  • 400

    Validation failed.

GET /advertising/v1.0/webhooks/
curl \
 --request GET 'http://apis.reas.cz/advertising/v1.0/webhooks/' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "success": true,
  "data": [
    {
      "id": "string",
      "event": "inquiry_created",
      "configuration": {
        "targetUrl": "https://example.com/hooks",
        "headers": {
          "Authorization": "Token 95abe511ff"
        }
      }
    }
  ],
  "paginationInfo": {
    "page": 42.0,
    "pages": 42.0
  }
}