Delete primary email

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
DELETE /api/my-account/primary-email

Delete primary email for the user, a logto-verification-id header is required for checking sensitive permissions. The request is rejected if it would remove the user's last identifier.

Responses

  • 204

    The primary email was deleted successfully.

  • 400

    The request would remove the user's last identifier.

  • 401

    Permission denied, the verification record is invalid.

  • 403

    Forbidden

DELETE /api/my-account/primary-email
curl \
 --request DELETE 'https://[tenant_id].logto.app/api/my-account/primary-email' \
 --header "Authorization: Bearer $ACCESS_TOKEN"