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/example/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
string

Organization ID or UUID (bare or urn:uuid)

userId
required
string

Member user UUID (bare or urn:uuid) or did:key

DID Document

Media type application/json

The W3C DID document for a key, in did:key form

object
@context
string
assertionMethod
Array<string>
authentication

DID URLs into verificationMethod

Array<string>
id
string
verificationMethod
Array<object>

A public key in a DID document, published as a JWK

object
controller
string
id
string
publicKeyJwk
object
type
string
Example
{
"@context": "https://www.w3.org/ns/did/v1",
"id": "did:key:zQ3shokFTS3brHcDQrn82RUDfCZESWL1ZdCEJwekUDPQiYBme",
"verificationMethod": [
{
"controller": "did:key:zQ3shokFTS3brHcDQrn82RUDfCZESWL1ZdCEJwekUDPQiYBme",
"id": "did:key:zQ3shokFTS3brHcDQrn82RUDfCZESWL1ZdCEJwekUDPQiYBme#zQ3shokFTS3brHcDQrn82RUDfCZESWL1ZdCEJwekUDPQiYBme",
"type": "JsonWebSignature2020"
}
]
}

Invalid organization or user ID

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

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

Caller is not an active organization member

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

Organization, member, or DID document not found

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