Delete a DID key
DELETE
/api/v1/auth/did-key/{keyId}
const url = 'https://localhost:8080/api/v1/auth/did-key/example';const options = {method: 'DELETE', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” keyId
required
string
Provider key ID (e.g., auth0-abc123), not the did:key:… value
Responses
Section titled “ Responses ”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"}