List user's DID keys
const url = 'https://localhost:8080/api/v1/auth/users/example/did-keys';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/auth/users/example/did-keys \ --header 'Authorization: <Authorization>'List all DID keys associated with a user; callers may only list their own keys
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”User UUID (bare or urn:uuid) or did:key
Responses
Section titled “ Responses ”List of DID keys
The DID keys held for the authenticated caller
object
A DID key held for a user, described independently of the KMS backing it
object
The W3C DID document for a key, in did:key form
object
DID URLs into verificationMethod
A public key in a DID document, published as a JWK
object
object
Deprecated: use keyReference
Example
{ "keys": [ { "didDocument": { "@context": "https://www.w3.org/ns/did/v1", "id": "did:key:zQ3shokFTS3brHcDQrn82RUDfCZESWL1ZdCEJwekUDPQiYBme", "verificationMethod": [ { "controller": "did:key:zQ3shokFTS3brHcDQrn82RUDfCZESWL1ZdCEJwekUDPQiYBme", "id": "did:key:zQ3shokFTS3brHcDQrn82RUDfCZESWL1ZdCEJwekUDPQiYBme#zQ3shokFTS3brHcDQrn82RUDfCZESWL1ZdCEJwekUDPQiYBme", "type": "JsonWebSignature2020" } ] } } ]}Bad request - User ID required
Error body returned across the auth endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}Unauthorized
Error body returned across the auth endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}Forbidden - May only access your own DID keys
Error body returned across the auth endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}User not found
Error body returned across the auth endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}Internal server error
Error body returned across the auth endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}