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? }.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "line_check_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| oa | No | Optional OA id; defaults to active OA. |