06 Line
API

Create a webhook endpoint

Registers a URL that receives the events you choose. The signing `secret` is returned only here.

POST
/v1/webhook-endpoints

Registers a URL that receives the events you choose. The signing secret is returned only here.

Authorization

apiKey
headerAuthorizationBearer <token>

Your API key, 06l_…. For servers only.

Request Body

application/json
  1. body
url*string

HTTPS to a public address. Private and loopback addresses are refused, also when a public name resolves to one.

Formaturi
events*array<>
Items1 <= items

Response Body

Created.

application/json
  1. response
id*string
Match^whe_[0-9a-z]{26}$
url*string
Formaturi
events*array<>
created_at*Timestamp

RFC 3339, UTC.

Formatdate-time
secret*string

whsec_…, to verify signatures. Shown once.

Example Request
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"  ]}'
Example Response
{  "id": "whe_01jbqa2k6x8m4t0v2r6c8d1yb3",  "url": "https://example.com/webhooks/06line",  "events": [    "sms.received",    "sms.status"  ],  "created_at": "2026-10-21T16:00:00Z",  "secret": "whsec_Hq4v8Lm2Xn6Rt0Wy3Bc7Fk1Ps5Zd9Ga2E"}