Check LINE Token Validity
line_check_tokenVerify your LINE OA channel access token before a campaign to ensure it won't expire mid-send. Reports remaining lifetime, client ID, and scope, and warns if less than 7 days remain.
Instructions
Verify the active OA's channel access token (GET /oauth2/v2.1/verify) — reports bound client_id, remaining lifetime, and granted scope; warns (Thai) when <7 days remain. Run before a campaign: a token expiring mid-send fails silently. An invalid/expired token surfaces a 401 error (no { valid:false } shape).
Returns { valid, client_id, expires_in_seconds, expires_in_days, scope?, warning? }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| oa | No | Optional OA id; defaults to active OA. |