Skip to creators
Docs menu

Webhook endpoints

Besday webhook endpoints API: register, list, test and delete the https URLs that receive signed order events.

Updated · API version 2026-12-03

Webhook endpoints receive signed events when your orders change.

The webhook endpoint object#

A URL on your server that Besday POSTs signed events to when your orders change.

FieldDescription
object
string
Always webhook_endpoint.
webhook_endpoint
id
string
Unique id.
url
string
https URL that receives events.
description
string · nullable
Your label.
events
string[]
Event types sent there, or ["*"] for all.
secret
string
Create only: the whsec_… signing secret. Shown once.
created_at
string
ISO 8601 timestamp (UTC)
Example webhook endpoint
{
  "object": "webhook_endpoint",
  "id": "we_3f9d0c8e",
  "url": "https://yourapp.com/webhooks/besday",
  "description": "Production",
  "events": [
    "order.delivered",
    "order.completed",
    "order.cancelled"
  ],
  "created_at": "2026-12-03T17:20:00.000Z"
}

Create a webhook endpoint#

POST/api/v1/webhook_endpointsscope: read_writeIdempotency-Key

Registers an https URL for order events. The answer includes the signing secret, once.

Body parameters (JSON)

ParameterDescription
url
string · required
https URL on port 443 that resolves to public addresses.
events
string[]
Event types to send, or ["*"] (default) for all: order.paid, order.awaiting_acceptance, order.awaiting_product, order.in_production, order.delivered, order.revision_requested, order.disputed, order.completed, order.cancelled.
description
string
Your label, up to 200 characters.

Request

curl -X POST "https://besday.com/api/v1/webhook_endpoints" \
  -H "Authorization: Bearer $BESDAY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://yourapp.com/webhooks/besday",
  "events": [
    "order.delivered",
    "order.completed",
    "order.cancelled"
  ],
  "description": "Production"
}'

Response 201

{
  "object": "webhook_endpoint",
  "id": "we_3f9d0c8e",
  "url": "https://yourapp.com/webhooks/besday",
  "description": "Production",
  "events": [
    "order.delivered",
    "order.completed",
    "order.cancelled"
  ],
  "created_at": "2026-12-03T17:20:00.000Z",
  "secret": "whsec_Wq3m…(shown once)"
}

Errors

  • 422 parameter_invalid: A parameter is missing or invalid; param names it.
  • 422 url_not_allowed: A webhook URL must be https on port 443 and resolve only to public internet addresses.
  • 409 limit_reached: The brand already has the most objects of this kind allowed (for example 5 webhook endpoints).

List webhook endpoints#

GET/api/v1/webhook_endpointsscope: read

Your brand’s webhook endpoints (secrets are never shown again).

Request

curl "https://besday.com/api/v1/webhook_endpoints" \
  -H "Authorization: Bearer $BESDAY_API_KEY"

Response 200

{
  "object": "list",
  "data": [
    {
      "object": "webhook_endpoint",
      "id": "we_3f9d0c8e",
      "url": "https://yourapp.com/webhooks/besday",
      "description": "Production",
      "events": [
        "order.delivered",
        "order.completed",
        "order.cancelled"
      ],
      "created_at": "2026-12-03T17:20:00.000Z"
    }
  ],
  "has_more": false,
  "next_cursor": null
}

Delete a webhook endpoint#

DELETE/api/v1/webhook_endpoints/{id}scope: read_write

Stops sending events to the endpoint. Pending deliveries to it are dropped.

Path parameters

ParameterDescription
id
string · required
The endpoint id.

Request

curl -X DELETE "https://besday.com/api/v1/webhook_endpoints/we_3f9d0c8e" \
  -H "Authorization: Bearer $BESDAY_API_KEY"

Response 200

{
  "object": "webhook_endpoint",
  "id": "we_3f9d0c8e",
  "deleted": true
}

Errors

  • 404 not_found: No such object for your brand.

Send a test event#

POST/api/v1/webhook_endpoints/{id}/testscope: read_write

Sends a signed ping event now and reports what your endpoint answered.

Path parameters

ParameterDescription
id
string · required
The endpoint id.

Request

curl -X POST "https://besday.com/api/v1/webhook_endpoints/we_3f9d0c8e/test" \
  -H "Authorization: Bearer $BESDAY_API_KEY"

Response 200

{
  "object": "webhook_test",
  "endpoint_id": "we_3f9d0c8e",
  "event_id": "evt_77aa01",
  "delivered": true,
  "status_code": 200,
  "error": null
}

Errors

  • 404 not_found: No such object for your brand.

This page as Markdown: /docs/api/webhook-endpoints.md · All docs for LLMs: llms-full.txt · OpenAPI 3.1