Skip to content

Create a DID key for a user

POST
/api/v1/auth/did-key
curl --request POST \
--url https://localhost:8080/api/v1/auth/did-key \
--header 'Content-Type: application/json' \
--data '{ "email": "user@example.com", "userId": "auth0|user-123" }'

Create a DID key for the given IDP user in the configured key provider

User information

Media type application/json
object
email
string
Example
user@example.com
userId
string
Example
auth0|user-123

DID key created successfully

Media type application/json
object
keyId
string
message
string
success
boolean
Example
{
"keyId": "auth0-user-123",
"message": "DID key created successfully",
"success": true
}

Bad request - Invalid request body

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

Unauthorized - Invalid API secret

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