Get a webhook

GET /advertising/v1.0/webhooks/{webhookId}

Endpoint for retrieving webhooks.

Path parameters

  • webhookId string Required

Responses

  • 200 application/json

    Webhook successfully retrieved

    Hide response attributes Show response attributes object
    • success boolean Required
    • data object Required

      Additional properties are NOT allowed.

      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.

  • 404

    Webhook was not found.

GET /advertising/v1.0/webhooks/{webhookId}
curl \
 --request GET 'http://apis.public-staging.reas.cz/advertising/v1.0/webhooks/{webhookId}' \
 --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"
      }
    }
  }
}