Webhook
The Webhook
entity allows you to configure endpoints to be notified about events
that happen in your Karla organization.
See Webhooks for more information.
Operations
Search Webhooks
Search all webhooks or based on some values to filter.
Authorizations:
path Parameters
slug required | string (Slug) The slug identifying the shop |
query Parameters
page | integer (Page) > 0 Default: 1 |
per_page | integer (Per Page) ( 0 .. 100 ] Default: 30 |
uuid | string <uuid> (Uuid) |
status | any (WebhookStatus) Enum: "active" "inactive" Webhook Status Type. |
url | string <uri> (Url) [ 1 .. 65536 ] characters |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 422
- 500
[- {
- "enabled_events": [
- "shipments/in_delivery/DELIVERY_ATTEMPTED",
- "shipments/delivered",
- "claims/created"
], - "secret": "41013bd9-9072-42cd-9902-66da38361be9",
- "description": "string",
- "status": "active",
- "created_at": "2021-01-01T00:00:00Z",
- "updated_at": "2021-01-01T00:00:00Z",
- "uuid": "7022541c-62cd-4de3-9fb2-bfdc74bf7834",
- "shop_slug": "string"
}
]
Create Webhook
Create a webhook if it does not exist.
Authorizations:
path Parameters
slug required | string (Slug) The slug identifying the shop |
Request Body schema: application/jsonrequired
enabled_events | Array of strings (Enabled Events) Default: ["*"] The list of events to enable for this endpoint. |
secret | string (Secret) [ 16 .. 64 ] characters The secret used to generate webhook signatures. If undefined, we will generate one for you.See webhooks for more details on how to validate the webhook request. |
description | string (Description) An optional description for the endpoint |
status | any (WebhookStatus) Default: "active" Enum: "active" "inactive" The status of the webhook. |
url required | string <uri> (Url) [ 1 .. 65536 ] characters The URL of the webhook endpoint |
Responses
Request samples
- Payload
{- "enabled_events": [
- "shipments/in_delivery/DELIVERY_ATTEMPTED",
- "shipments/delivered",
- "claims/created"
], - "secret": "41013bd9-9072-42cd-9902-66da38361be9",
- "description": "string",
- "status": "active",
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 409
- 422
- 500
{- "enabled_events": [
- "shipments/in_delivery/DELIVERY_ATTEMPTED",
- "shipments/delivered",
- "claims/created"
], - "secret": "41013bd9-9072-42cd-9902-66da38361be9",
- "description": "string",
- "status": "active",
- "created_at": "2021-01-01T00:00:00Z",
- "updated_at": "2021-01-01T00:00:00Z",
- "uuid": "7022541c-62cd-4de3-9fb2-bfdc74bf7834",
- "shop_slug": "string"
}
Delete Webhook
Delete a webhook that already exists.
Authorizations:
path Parameters
slug required | string (Slug) The slug identifying the shop |
uuid required | string <uuid> (Uuid) The webhook's unique identifier |
Responses
Response samples
- 200
- 400
- 401
- 403
- 422
- 500
null
Update Webhook
Update a webhook partially or completely.
Authorizations:
path Parameters
slug required | string (Slug) The slug identifying the shop |
uuid required | string <uuid> (Uuid) The webhook's unique identifier |
Request Body schema: application/jsonrequired
description | string (Description) An optional description for the endpoint |
status | any (WebhookStatus) Enum: "active" "inactive" The status of the webhook. |
url | string <uri> (Url) [ 1 .. 65536 ] characters The URL of the webhook endpoint |
Responses
Request samples
- Payload
{- "description": "string",
- "status": "active",
}
Response samples
- 200
- 400
- 401
- 403
- 422
- 500
null