List personal access tokens

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://openapi.logto.io/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "Logto API references MCP server": {
    "url": "https://openapi.logto.io/mcp"
  }
}

Close
GET /api/my-account/personal-access-tokens

List all personal access tokens of the signed-in user, including expired ones, sorted by creation time in descending order. The token secret values are never returned. The personal-access-tokens scope is required.

Responses

  • 200 application/json

    A list of the signed-in user's personal access tokens, without their secret values.

    Hide response attributes Show response attributes object
    • name string Required

      Minimum length is 1, maximum length is 256.

    • createdAt number Required
    • expiresAt number | null Required
  • 400

    The personal access token field is not enabled in the account center.

  • 401

    The access token does not include the personal-access-tokens scope.

  • 403

    Forbidden

GET /api/my-account/personal-access-tokens
curl \
 --request GET 'https://[tenant_id].logto.app/api/my-account/personal-access-tokens' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
[
  {
    "name": "string",
    "createdAt": 42.0,
    "expiresAt": 42.0
  }
]