Delete a 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/my-account/personal-access-tokens/delete

Delete a personal access token of the signed-in user by name. A logto-verification-id in header and the personal-access-tokens scope are required.

application/json

Body Required

  • name string Required

    The name of the token to delete.

    Minimum length is 1, maximum length is 256.

Responses

  • 204

    The personal access token was deleted successfully.

  • 400

    The request body is invalid, or the personal access token field is not editable in the account center.

  • 401

    Permission denied, the verification record is invalid or the access token does not include the personal-access-tokens scope.

  • 403

    The request was made by a third-party application.

  • 404

    The personal access token was not found.

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