Skip to content

Get an organization member's DID document

GET
/api/v1/organizations/{organizationId}/members/{userId}/did-doc
curl --request GET \
--url https://localhost:8080/api/v1/organizations/1/members/example/did-doc \
--header 'Authorization: <Authorization>'

Return the public DID document for a user when both the caller and target user are active members of the organization

organizationId
required
integer

Organization ID

userId
required
string

Member user ID (UUID)

DID Document

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

Invalid organization or user ID

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

Caller is not an active organization member

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

Member or DID document not found

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