Create a webhook endpoint
Registers a URL that receives the events you choose. The signing `secret` is returned only here, and `events` comes back sorted, without duplicates. Webhook endpoints are for your servers: an ephemeral key gets `403` on every `/v1/webhook-endpoints` route.
Registers a URL that receives the events you choose. The signing secret is returned only here, and events
comes back sorted, without duplicates. Webhook endpoints are for your servers: an ephemeral key gets 403
on every /v1/webhook-endpoints route.
apiKeyAuthorizationBearer <token>Your API key, 06l_…. For servers only.
application/json- body
url*stringHTTPS to a public address. Private, loopback and carrier-grade NAT (100.64.0.0/10) addresses are
refused; a name must resolve, to public addresses only, and is checked again at each delivery.
urievents*array<>1 <= itemsCreated.
application/json- response
id*string^whe_[0-9a-z]{26}$url*stringurievents*array<>created_at*TimestampRFC 3339, UTC.
date-timesecret*stringwhsec_…, to verify signatures. Shown once.
curl -X POST 'https://api.06line.com/v1/webhook-endpoints' \ -H 'Content-Type: application/json' \ -d '{ "url": "https://example.com/webhooks/06line", "events": [ "sms.received", "sms.status" ]}'{ "id": "whe_01jbqa2k6x8m4t0v2r6c8d1yb3", "url": "https://example.com/webhooks/06line", "events": [ "sms.received", "sms.status" ], "created_at": "2026-10-21T16:00:00Z", "secret": "whsec_Hq4v8Lm2Xn6Rt0Wy3Bc7Fk1Ps5Zd9Ga2E"}