LINE Token Dashboard POST
Lists your account's active LINE Notify tokens so you can use their tokenId with Send LINE Notify Message. LINE access tokens and send statistics are not returned.
WARNING
LINE discontinued the LINE Notify service on 31 March 2025 — this endpoint is kept for backward compatibility only.
Authorization
API Key (Authentication) — send the header Authorization: Bearer <API_KEY> (API keys start with smsk_)
HTTP Request
http
POST https://public-api.smsup-plus.com/line/dashboardContent Type
No body required
Parameter Description
No parameters — the account is taken from your credentials.
Response Description
| Property | Type | Description |
|---|---|---|
status | number | 200 on success |
data | array | Active tokens (empty [] if none) |
data[].tokenId | string | Token ID to use with Send LINE Notify Message |
data[].name | string | Token name |
data[].isActive | boolean | Token status (this list only returns true) |
total | number | Number of tokens in data |
Request Example
bash
curl -X POST 'https://public-api.smsup-plus.com/line/dashboard' \
-H 'Authorization: Bearer <API_KEY>'js
const res = await fetch('https://public-api.smsup-plus.com/line/dashboard', {
method: 'POST',
headers: { Authorization: 'Bearer <API_KEY>' },
})
console.log(await res.json())Response Example
json
{
"status": 200,
"data": [
{
"tokenId": "3f2b8c1e-7a4d-4e9b-9c11-5d6e7f8a9b0c",
"name": "Sales team",
"isActive": true
}
],
"total": 1
}Possible Errors
This endpoint always answers HTTP 200 (except authentication errors) — check the status field in the body.
| HTTP | Response | Cause |
|---|---|---|
| 200 | {"status":500,"description":"Failed to query tokens."} | Query failed; retry |
| 200 | {"status":401,"description":"Unauthorized."} | The account could not be resolved from the credentials |
| 401 | {"error":"invalid api key"} | Invalid API key — see Errors |
