Skip to content
English
  • There are no suggestions because the search field is empty.

Delete a DID key

DELETE /api/v1/auth/did-key/{keyId} Select code sample Fetch cURL
const url = 'https://localhost:8080/api/v1/auth/did-key/example';const options = {method: 'DELETE', headers: {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: 
  
   '
  

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 ”

200

Section titled “200 ”

Key deleted successfully

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

400

Section titled “400 ”

Bad request - Key ID required

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

401

Section titled “401 ”

Unauthorized

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

403

Section titled “403 ”

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"}

500

Section titled “500 ”

Internal server error

Media type application/json object error string error_description string
Example
{  "error": "Unauthorized",  "error_description": "Invalid token"}
Previous
Get DID key information
Next
List user's DID keys