Skip to main content
POST
/
webhook
/
add_handler
Add Handler
curl --request POST \
  --url https://api.skulabs.com/webhook/add_handler \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "<string>",
  "name": "<string>",
  "handler": {
    "url": "<string>",
    "method": "<string>",
    "headers": {}
  }
}
'
{
  "success": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
type
string
required

Webhook event type. Common patterns: order.status., order.shipped, order.tracking, order.tags, item.inventory, item.updated, shipment.created, shipment.voided, purchase_order., transfer_order.*

name
string
required

User-friendly name for the webhook handler

handler
object
required

Webhook handler configuration

Response

Webhook handler created

success
boolean
required

Whether the operation succeeded