Set LINE Webhook Endpoint
line_set_webhook_endpointSet or retrieve your LINE Official Account's webhook endpoint URL. Use 'set' to update with a public HTTPS URL, or 'get' to read the current one.
Instructions
Read or write the LINE OA's webhook URL (PUT/GET /v2/bot/channel/webhook/endpoint). mode 'set' (needs endpoint: public HTTPS, ≤500 chars) or 'get'. Complements line_test_webhook — set here, then ping with line_test_webhook.
Returns { endpoint, active } (re-read after a 'set' to confirm).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| oa | No | Optional OA id; defaults to active OA. | |
| mode | Yes | set: write a new webhook URL; get: read the currently configured one. | |
| endpoint | No | Required for mode='set'. Public HTTPS URL (must start with https://, ≤500 chars). |