Skip to content
myela

The signing secret is returned once, at creation, and never again. An omitted or empty enabledEvents subscribes the endpoint to ALL events.

Create webhook endpoint

POST/v1/webhook_endpointsLink

The signing secret is returned once, at creation, and never again. An omitted or empty enabledEvents subscribes the endpoint to ALL events.

SandboxSecret keywebhookEndpoints.create

Request fields

Edit a field and the generated request updates immediately.

Request body
stringrequired

The HTTPS URL that receives webhook events.

HTTPS URL

Optional fields1
arrayoptional

Event types delivered to this endpoint. An empty array subscribes to every event.

Response contract

The successful wire shape and errors an integration should branch on.

201

Webhook endpoint

application/json
idstringrequired
Unique endpoint identifier.
object"webhook_endpoint"required
Stable resource discriminator.
urlstringrequired
Delivery destination.
descriptionstring | nullrequired
Optional endpoint description.
enabledEventsstring[]required
Subscribed event types.
statusstringrequired
Endpoint state.
secretLast4stringrequired
Last four characters of the signing secret.
createdAtstringrequired
ISO 8601 creation timestamp.
Example response
{
  "id": "whe_01JEXAMPLE",
  "object": "webhook_endpoint",
  "url": "https://example.com/webhooks/myela",
  "description": null,
  "enabledEvents": [
    "invoice.paid",
    "payment.settled"
  ],
  "status": "enabled",
  "secretLast4": "m9Qx",
  "createdAt": "2026-08-10T20:49:51.653Z",
  "secret": "whsec_shown_once_after_creation"
}
Error responses
401authentication_failed

The key is missing, malformed, revoked, or invalid for this environment.

403permission_denied

The key does not have webhookEndpoints.create.

422invalid_request

One or more request fields are invalid.