Check LINE Token Validity
line_check_tokenVerify the active Line Official Account's channel access token, reporting bound client ID, remaining lifetime, and granted scope to avoid silent failures during campaigns.
Instructions
Verify the active OA's configured channel access token (GET /oauth2/v2.1/verify). Reports the bound client_id, remaining lifetime, and granted scope. Run before a campaign — a token expiring mid-send fails silently.
Args:
oa (string, optional): OA id whose configured token to verify. Default = active OA.
Returns: { valid: true, client_id: string, expires_in_seconds: number, expires_in_days: number, scope?: string, warning?: string // set (Thai) when < 7 days remain }
Examples:
"token ยังใช้ได้ไหม" → call with no args
"เช็ค token ของ client_a" → { oa: "client_a" }
Errors:
Invalid / expired token → LineApiError (401) surfaced (no { valid: false } shape — an error is returned instead).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| oa | No | Optional OA id; defaults to active OA. |