Delete OIDC 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/configs/oidc/{keyType}/{keyId}

Delete an OIDC signing key by key type and key ID.

Path parameters

  • keyType string Required

    Private keys are used to sign OIDC JWTs. Cookie keys are used to sign OIDC cookies. For clients, they do not need to know private keys to verify OIDC JWTs; they can use public keys from the JWKS endpoint instead.

    Values are private-keys or cookie-keys.

  • keyId string Required

    The unique identifier of the key.

Responses

  • 204

    The key was deleted successfully.

  • 400

    Bad Request

  • 401

    Unauthorized

  • 403

    Forbidden

  • 404

    The key was not found.

  • 422

    At least one key must be kept.

DELETE /api/configs/oidc/{keyType}/{keyId}
curl \
 --request DELETE 'https://[tenant_id].logto.app/api/configs/oidc/{keyType}/{keyId}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"