Returns metadata for MCP tokens owned by the authenticated user in the specified organization. It never returns the secret token value or its hash.
https://api.doboard.com/{account_id}/mcp_token_get
account_id identifies the organization associated with the user session. The same endpoint path is used on https://api-next.doboard.com.
GET or POST. For GET, use query parameters. For POST, use application/x-www-form-urlencoded. A raw JSON request body is not parsed by this endpoint.
session_id.REGULAR, PROJECT_MANAGER, and ADMIN. Guests are not allowed.user_id does not change the owner filter.| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
session_id |
string | Yes | — | Valid user session for this organization. |
token_id |
unsigned integer | No | No token filter | Select one of the user's tokens. Range: 1–4,294,967,295. |
start |
integer | No | 0 |
Offset of the first record. Range: 0–10,000. |
length |
integer | No | 25 |
Maximum number of records returned. Range: 1–100. |
Defaults apply when a parameter is omitted. An empty string is not an omitted value: empty token_id, start or length is rejected. token_id=0 and length=0 are invalid; start=0 is valid.
This endpoint returns active, expired and revoked token metadata. records_filtered includes all matching records; it is not the number of active tokens.
For the creation allowance, a token is active when revoked_at is null and expires_at is later than the current UTC time. Each user may have up to 10 active tokens per organization. Consequently, the listing can contain more than 10 records.
Creation accepts a lifetime of up to 90 days. Listing an existing token does not extend or otherwise change its expiration time.
Pagination accepts start from 0 to 10,000 and length from 1 to 100. These limits are validated even when token_id is supplied; token_id does not bypass pagination.
Ordinary session-authenticated token-list calls are not counted by the shared API write-request limiter that applies to token creation and revocation.
List a page of tokens (fictional organization ID):
GET /42/mcp_token_get?session_id=YOUR_SESSION_ID&start=0&length=25 HTTP/1.1
Host: api.doboard.com
Read one token using POST (fictional token ID):
POST /42/mcp_token_get HTTP/1.1
Host: api.doboard.com
Content-Type: application/x-www-form-urlencoded
session_id=YOUR_SESSION_ID&token_id=9001
Equivalent cURL request:
curl --request POST 'https://api.doboard.com/42/mcp_token_get' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'session_id=YOUR_SESSION_ID' \
--data-urlencode 'token_id=9001'
HTTP 200 on success:
{
"data": {
"tokens": [
{
"token_id": 9001,
"account_id": 42,
"user_id": 7001,
"name": "ChatGPT read-only",
"project_ids": [101, 202],
"access_type": "READ",
"created_at": "2026-10-13 08:00:00",
"updated_at": "2026-10-13 08:00:00",
"expires_at": "2027-01-01 00:00:00",
"revoked_at": null,
"last_used_at": null
}
],
"records_filtered": 1,
"operation_status": "SUCCESS"
}
}
| Field | Type | Description |
|---|---|---|
data.tokens |
array | The requested page of token metadata. An empty result is []. |
data.records_filtered |
integer | Total matching tokens before pagination, restricted to this user/account and optional token_id. |
data.operation_status |
string | SUCCESS. |
tokens[].token_id |
integer | Token identifier. |
tokens[].account_id |
integer | Organization identifier. |
tokens[].user_id |
integer | Owner identifier. |
tokens[].name |
string | Token name. |
tokens[].project_ids |
array of integers | Stored project grants, decoded from JSON. These grants remain subject to current user permissions. |
tokens[].access_type |
string | READ. |
tokens[].created_at |
datetime string | Creation timestamp generated by the database. |
tokens[].updated_at |
datetime string | Last token-metadata update timestamp. |
tokens[].expires_at |
datetime string | UTC expiration time. |
tokens[].revoked_at |
datetime string or null | Revocation timestamp; null when not revoked. |
tokens[].last_used_at |
datetime string or null | Last successful token-authenticated API read in UTC; null before any successful use. |
| HTTP Code | error_no |
Condition |
|---|---|---|
400 |
Not included in method validation responses | Invalid token_id or pagination parameters. |
401 |
401 |
Missing or invalid session. |
403 |
403 |
User role is not permitted, or an MCP credential is used to call the management endpoint. |
500 |
May vary by failure path | Database or other internal failure. |
Example validation response:
{
"data": {
"operation_status": "FAILED"
},
"error_message": "Invalid pagination."
}
Invalid token_id. is returned for an invalid token identifier.
token_id descending, with the newest records first.token_id that does not belong to this user/account returns HTTP 200, tokens: [] and records_filtered: 0, not 404.records_filtered still reports the total.mcp_token or token_hash. Keep the secret returned by the creation call if it is needed for a client connection.status field: expiration and revocation are determined from expires_at and revoked_at.