Skip to content

Delete a DID key

DELETE
/api/v1/auth/did-key/{keyId}
curl --request DELETE \
--url https://localhost:8080/api/v1/auth/did-key/example \
--header 'Authorization: <Authorization>'

Delete one of the authenticated user’s DID keys from the configured key provider. The development OpenBao profile rejects deletion; operators disable signing through policy.

keyId
required
string

Provider key ID (e.g., auth0-abc123) or the key’s did:key

Key deleted successfully

Media type application/json

Confirmation body for endpoints that return no resource

object
message
string
Example
{
"message": "Operation completed successfully"
}

Bad request - Key ID required

Media type application/json

Error body returned across the auth endpoints; the message is human-readable and not a stable identifier

object
error
string
error_description
string
Example
{
"error": "Unauthorized",
"error_description": "Invalid token"
}

Unauthorized

Media type application/json

Error body returned across the auth endpoints; the message is human-readable and not a stable identifier

object
error
string
error_description
string
Example
{
"error": "Unauthorized",
"error_description": "Invalid token"
}

Forbidden - May only access your own DID keys

Media type application/json

Error body returned across the auth endpoints; the message is human-readable and not a stable identifier

object
error
string
error_description
string
Example
{
"error": "Unauthorized",
"error_description": "Invalid token"
}

DID key not found

Media type application/json

Error body returned across the auth endpoints; the message is human-readable and not a stable identifier

object
error
string
error_description
string
Example
{
"error": "Unauthorized",
"error_description": "Invalid token"
}

Internal server error

Media type application/json

Error body returned across the auth endpoints; the message is human-readable and not a stable identifier

object
error
string
error_description
string
Example
{
"error": "Unauthorized",
"error_description": "Invalid token"
}

Provider does not support key deletion

Media type application/json

Error body returned across the auth endpoints; the message is human-readable and not a stable identifier

object
error
string
error_description
string
Example
{
"error": "Unauthorized",
"error_description": "Invalid token"
}