Delete an SP signing key

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/sso-connectors/{id}/signing-keys/{keyId}

Delete the given Service Provider signing key. The active key cannot be deleted — activate another key or deactivate this key first.

Path parameters

  • id string Required

    The unique identifier of the sso connector.

  • keyId string Required

    The unique identifier of the key.

Responses

  • 204

    The SP signing key was deleted.

  • 400

    The key is the active signing key and cannot be deleted.

  • 401

    Unauthorized

  • 403

    Forbidden

  • 404

    The SSO connector is not found, is not a SAML connector, or the signing key is not found.

DELETE /api/sso-connectors/{id}/signing-keys/{keyId}
curl \
 --request DELETE 'https://[tenant_id].logto.app/api/sso-connectors/{id}/signing-keys/{keyId}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"