Skip to main content

Get Webhook

Retrieves the details of a single webhook.

HTTP Request​

  • URL: /webhook/{id}
  • Method: GET
  • Headers:
    • accessToken: Required. Your API access token.
  • Required scope: READ_WEBHOOK or READ_WRITE_WEBHOOK

Path Parameters​

ParameterTypeDescription
idStringRequired. The ID of the webhook.

cURL Example​

curl --location '<BASE_URL>/webhook/66e2b7c1a4f3d2e1c0b9a876' \
--header 'accessToken: <ACCESS_TOKEN>'

Response​

  • 200 OK: The webhook was returned successfully.
  • 400 Bad Request: The access token is missing or invalid, the token does not have the required scope, or the ID is not valid.

Sample JSON Response​

{
"success": true,
"data": {
"id": "66e2b7c1a4f3d2e1c0b9a876",
"name": "ERP order sync",
"url": "https://erp.example.com/hooks/axim",
"description": "Sends new and updated orders to the ERP.",
"events": ["order.create", "order.update"],
"active": true,
"credentialId": "66e2b7c1a4f3d2e1c0b9a880",
"createdAt": "2024-09-12T09:14:41.220Z",
"updatedAt": "2024-09-12T09:14:41.220Z"
}
}

Response Details​

Webhook Data​

FieldTypeDescription
idStringUnique identifier of the webhook.
nameStringName of the webhook.
urlStringURL that receives the webhook requests.
descriptionStringDescription of the webhook.
eventsArrayEvents that trigger the webhook. See Events.
activeBooleanWhether the webhook is active. Default is true.
credentialIdStringID of the authentication settings configured in the admin panel, if any.
createdAtStringDate and time the webhook was created (ISO 8601).
updatedAtStringDate and time the webhook was last updated (ISO 8601).

Notes​

  • If no webhook matches the ID, data is an empty object.