Skip to content

Get current user's DID document

GET
/api/v1/protected/did-doc
curl --request GET \
--url https://localhost:8080/api/v1/protected/did-doc \
--header 'Authorization: <Authorization>'

Return the DID document for the authenticated user, resolved from their IDP user ID

DID Document

Media type application/json
object
key
additional properties
any
Example generated
{}

Unauthorized - Invalid or missing credential

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

Not found - User has no DID key

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