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_WEBHOOKorREAD_WRITE_WEBHOOK
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | String | Required. 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
| Field | Type | Description |
|---|---|---|
id | String | Unique identifier of the webhook. |
name | String | Name of the webhook. |
url | String | URL that receives the webhook requests. |
description | String | Description of the webhook. |
events | Array | Events that trigger the webhook. See Events. |
active | Boolean | Whether the webhook is active. Default is true. |
credentialId | String | ID of the authentication settings configured in the admin panel, if any. |
createdAt | String | Date and time the webhook was created (ISO 8601). |
updatedAt | String | Date and time the webhook was last updated (ISO 8601). |
Notes
- If no webhook matches the ID,
datais an empty object.