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
required

Required but only logged

string
Example
user@example.com
userId
required
string
Example
auth0|user-123

DID key created successfully

Media type application/json

Confirmation that a DID key was created, with the key ID it was filed under

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

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 - Invalid API secret

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