Get an organization member's DID document
GET
/api/v1/organizations/{organizationId}/members/{userId}/did-doc
const url = 'https://localhost:8080/api/v1/organizations/1/members/example/did-doc';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” organizationId
required
integer
Organization ID
userId
required
string
Member user ID (UUID)
Responses
Section titled “ Responses ”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"}