List user's DID keys for service
GET
/api/v1/service/users/{userId}/did-keys
Select code sample
const url = 'https://localhost:8080/api/v1/service/users/example/did-keys';
const options = {method: 'GET', headers: {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/service/users/example/did-keys \
--header 'Authorization:
' • List all DID keys for a specific user (service endpoint, requires did:read scope) Authorizations Section titled “Authorizations ” • ApiKeyAuth Parameters Section titled “ Parameters ” Path Parameters Section titled “Path Parameters ” userId required string User ID Responses Section titled “ Responses ” 200 Section titled “200 ” List of DID keys Media type application/json object keys Array