Delete personal access token

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
POST /api/users/{userId}/personal-access-tokens/delete

Delete a token for the user by name.

Path parameters

  • userId string Required

    The unique identifier of the user.

application/json

Body Required

  • name string Required

    The name of the token to delete.

Responses

  • 204

    The token was deleted successfully.

  • 400

    Bad Request

  • 401

    Unauthorized

  • 403

    Forbidden

  • 404

    Not Found

POST /api/users/{userId}/personal-access-tokens/delete
curl \
 --request POST 'https://[tenant_id].logto.app/api/users/{userId}/personal-access-tokens/delete' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"name":"string"}'
Request examples
{
  "name": "string"
}