curl https://okl.ink/api/v1/tokens \
-H "Authorization: Bearer YOUR_API_TOKEN"
[
{
"id": "cmsh98127391823",
"name": "Cursor Agent",
"scopes": ["pages:read", "pages:write", "links:write"],
"plan": "free",
"expiresAt": "2027-08-31T00:00:00.000Z",
"createdAt": "2026-08-31T00:00:00.000Z",
"revoked": false
}
]
API Tokens
List API Tokens
Retrieve all active, non-revoked API tokens belonging to the authenticated user.
GET
/
api
/
v1
/
tokens
curl https://okl.ink/api/v1/tokens \
-H "Authorization: Bearer YOUR_API_TOKEN"
[
{
"id": "cmsh98127391823",
"name": "Cursor Agent",
"scopes": ["pages:read", "pages:write", "links:write"],
"plan": "free",
"expiresAt": "2027-08-31T00:00:00.000Z",
"createdAt": "2026-08-31T00:00:00.000Z",
"revoked": false
}
]
List API Tokens
Returns all active API tokens for the authenticated user.Headers
string
required
Bearer token:
Bearer <token>Response
Returns an array of API token metadata objects:string
Token unique ID.
string | null
Token description or label.
array
Assigned permission scopes.
string
Current plan tier (
free, pro, enterprise).string
ISO 8601 expiration timestamp.
string
ISO 8601 creation timestamp.
curl https://okl.ink/api/v1/tokens \
-H "Authorization: Bearer YOUR_API_TOKEN"
[
{
"id": "cmsh98127391823",
"name": "Cursor Agent",
"scopes": ["pages:read", "pages:write", "links:write"],
"plan": "free",
"expiresAt": "2027-08-31T00:00:00.000Z",
"createdAt": "2026-08-31T00:00:00.000Z",
"revoked": false
}
]