Skip to main content
Parcel Events Sandbox Docs

Search documentation

Type to search this documentation.

Register a webhook endpoint

POST/v1/webhook-endpointsRegister a webhook endpoint

Request body

required
application/json
objectCreateWebhookEndpointRequest
descriptionnull | string

maxLength 120

eventsarray of stringrequired

minItems 1 · uniqueItems true

Show child attributes

minItems 1 · uniqueItems true

urlstring · urirequired
Example request
{
  "description": "string",
  "events": [
    "pickup.completed"
  ],
  "url": "https://hooks.parcel-events.example/events"
}

Responses

201Webhook endpoint registeredapplication/json
objectWebhookEndpoint
created_atstring · date-timerequired
enabledbooleanrequired
eventsarray of stringrequired
Show child attributes
idstringrequired
objectvaluerequired

const "webhook_endpoint"

signing_secret_hintstring
urlstring · urirequired
Example response
{
  "created_at": "2026-06-09T00:00:00Z",
  "enabled": true,
  "events": [
    "pickup.completed"
  ],
  "id": "whe_00000000000000000001",
  "object": "webhook_endpoint",
  "signing_secret_hint": "synthetic-key-ending-0000",
  "url": "https://hooks.parcel-events.example/events"
}
422One or more fields failed semantic validationapplication/problem+json
objectProblem
detailstring
errorsarray of object
Show child attributes
Show array items
messagestringrequired
pathstringrequired
request_idstringrequired
statusintegerrequired

maximum 599 · minimum 400

titlestringrequired
typestring · urirequired
Example response
{
  "errors": [
    {
      "message": "must be a synthetic postal code",
      "path": "recipient.postal_code"
    }
  ],
  "request_id": "req_00000000000000000006",
  "status": 422,
  "title": "Synthetic request validation failed",
  "type": "https://parcel-events.example/problems/validation"
}

Documentation menu