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

keyId
required
string

Provider key ID (e.g., auth0-abc123), not the did:key:… value

Key deleted successfully

Media type application/json
object
message
string
Example
{
"message": "Operation completed successfully"
}

Bad request - Key ID required

Media type application/json
object
error
string
error_description
string
Example
{
"error": "Unauthorized",
"error_description": "Invalid token"
}

Unauthorized

Media type application/json
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
object
error
string
error_description
string
Example
{
"error": "Unauthorized",
"error_description": "Invalid token"
}

Internal server error

Media type application/json
object
error
string
error_description
string
Example
{
"error": "Unauthorized",
"error_description": "Invalid token"
}