List user's DID keys for service
const url = 'https://localhost:8080/api/v1/service/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/service/users/example/did-keys \ --header 'Authorization: <Authorization>'List all DID keys for a specific user (service endpoint, requires did:read scope)
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”User ID
Responses
Section titled “ Responses ”List of DID keys
object
object
object
object
Append a query (’?’) even if RawQuery is empty
Fragment for references, without ’#’
Host or host:port (see Hostname and Port methods)
Do not emit empty host (authority)
Encoded opaque data
Path (relative paths may omit leading slash)
Encoded fragment hint (see EscapedFragment method)
Encoded path hint (see EscapedPath method)
Encoded query values, without ’?’
Username and password information
object
object
object
DecodedID is the method-specific ID, in unescaped form. It is only set during parsing, and not used by the String() method.
ID is the method-specific ID, in escaped form.
Method is the DID method, e.g. “example”.
object
DecodedFragment is the DID fragment without the leading ’#’, in unescaped form. It is only set during parsing, and not used by the String() method.
DecodedID is the method-specific ID, in unescaped form. It is only set during parsing, and not used by the String() method.
DecodedPath is the DID path without the leading ’/’, in unescaped form. It is only set during parsing, and not used by the String() method.
Fragment is the DID fragment without the leading ’#’, in escaped form.
ID is the method-specific ID, in escaped form.
Method is the DID method, e.g. “example”.
Path is the DID path without the leading ’/’, in escaped form.
Query contains the DID query key-value pairs, in unescaped form. String() will escape the values again, and order the keys alphabetically.
object
PublicKeyBase58 is deprecated and should not be used anymore. Use PublicKeyMultibase or PublicKeyJwk instead.
object
object
object
DecodedID is the method-specific ID, in unescaped form. It is only set during parsing, and not used by the String() method.
ID is the method-specific ID, in escaped form.
Method is the DID method, e.g. “example”.
object
DecodedFragment is the DID fragment without the leading ’#’, in unescaped form. It is only set during parsing, and not used by the String() method.
DecodedID is the method-specific ID, in unescaped form. It is only set during parsing, and not used by the String() method.
DecodedPath is the DID path without the leading ’/’, in unescaped form. It is only set during parsing, and not used by the String() method.
Fragment is the DID fragment without the leading ’#’, in escaped form.
ID is the method-specific ID, in escaped form.
Method is the DID method, e.g. “example”.
Path is the DID path without the leading ’/’, in escaped form.
Query contains the DID query key-value pairs, in unescaped form. String() will escape the values again, and order the keys alphabetically.
object
PublicKeyBase58 is deprecated and should not be used anymore. Use PublicKeyMultibase or PublicKeyJwk instead.
object
object
object
DecodedID is the method-specific ID, in unescaped form. It is only set during parsing, and not used by the String() method.
ID is the method-specific ID, in escaped form.
Method is the DID method, e.g. “example”.
object
DecodedFragment is the DID fragment without the leading ’#’, in unescaped form. It is only set during parsing, and not used by the String() method.
DecodedID is the method-specific ID, in unescaped form. It is only set during parsing, and not used by the String() method.
DecodedPath is the DID path without the leading ’/’, in unescaped form. It is only set during parsing, and not used by the String() method.
Fragment is the DID fragment without the leading ’#’, in escaped form.
ID is the method-specific ID, in escaped form.
Method is the DID method, e.g. “example”.
Path is the DID path without the leading ’/’, in escaped form.
Query contains the DID query key-value pairs, in unescaped form. String() will escape the values again, and order the keys alphabetically.
object
PublicKeyBase58 is deprecated and should not be used anymore. Use PublicKeyMultibase or PublicKeyJwk instead.
object
object
object
DecodedID is the method-specific ID, in unescaped form. It is only set during parsing, and not used by the String() method.
ID is the method-specific ID, in escaped form.
Method is the DID method, e.g. “example”.
object
DecodedFragment is the DID fragment without the leading ’#’, in unescaped form. It is only set during parsing, and not used by the String() method.
DecodedID is the method-specific ID, in unescaped form. It is only set during parsing, and not used by the String() method.
DecodedPath is the DID path without the leading ’/’, in unescaped form. It is only set during parsing, and not used by the String() method.
Fragment is the DID fragment without the leading ’#’, in escaped form.
ID is the method-specific ID, in escaped form.
Method is the DID method, e.g. “example”.
Path is the DID path without the leading ’/’, in escaped form.
Query contains the DID query key-value pairs, in unescaped form. String() will escape the values again, and order the keys alphabetically.
object
PublicKeyBase58 is deprecated and should not be used anymore. Use PublicKeyMultibase or PublicKeyJwk instead.
object
object
DecodedID is the method-specific ID, in unescaped form. It is only set during parsing, and not used by the String() method.
ID is the method-specific ID, in escaped form.
Method is the DID method, e.g. “example”.
object
DecodedID is the method-specific ID, in unescaped form. It is only set during parsing, and not used by the String() method.
ID is the method-specific ID, in escaped form.
Method is the DID method, e.g. “example”.
object
object
DecodedID is the method-specific ID, in unescaped form. It is only set during parsing, and not used by the String() method.
ID is the method-specific ID, in escaped form.
Method is the DID method, e.g. “example”.
object
DecodedFragment is the DID fragment without the leading ’#’, in unescaped form. It is only set during parsing, and not used by the String() method.
DecodedID is the method-specific ID, in unescaped form. It is only set during parsing, and not used by the String() method.
DecodedPath is the DID path without the leading ’/’, in unescaped form. It is only set during parsing, and not used by the String() method.
Fragment is the DID fragment without the leading ’#’, in escaped form.
ID is the method-specific ID, in escaped form.
Method is the DID method, e.g. “example”.
Path is the DID path without the leading ’/’, in escaped form.
Query contains the DID query key-value pairs, in unescaped form. String() will escape the values again, and order the keys alphabetically.
object
PublicKeyBase58 is deprecated and should not be used anymore. Use PublicKeyMultibase or PublicKeyJwk instead.
object
object
object
Append a query (’?’) even if RawQuery is empty
Fragment for references, without ’#’
Host or host:port (see Hostname and Port methods)
Do not emit empty host (authority)
Encoded opaque data
Path (relative paths may omit leading slash)
Encoded fragment hint (see EscapedFragment method)
Encoded path hint (see EscapedPath method)
Encoded query values, without ’?’
Username and password information
object
object
object
DecodedID is the method-specific ID, in unescaped form. It is only set during parsing, and not used by the String() method.
ID is the method-specific ID, in escaped form.
Method is the DID method, e.g. “example”.
object
DecodedFragment is the DID fragment without the leading ’#’, in unescaped form. It is only set during parsing, and not used by the String() method.
DecodedID is the method-specific ID, in unescaped form. It is only set during parsing, and not used by the String() method.
DecodedPath is the DID path without the leading ’/’, in unescaped form. It is only set during parsing, and not used by the String() method.
Fragment is the DID fragment without the leading ’#’, in escaped form.
ID is the method-specific ID, in escaped form.
Method is the DID method, e.g. “example”.
Path is the DID path without the leading ’/’, in escaped form.
Query contains the DID query key-value pairs, in unescaped form. String() will escape the values again, and order the keys alphabetically.
object
PublicKeyBase58 is deprecated and should not be used anymore. Use PublicKeyMultibase or PublicKeyJwk instead.
object
Deprecated: use keyReference
Example
{ "keys": [ { "didDocument": { "assertionMethod": [ { "type": "JsonWebKey2020" } ], "authentication": [ { "type": "JsonWebKey2020" } ], "capabilityDelegation": [ { "type": "JsonWebKey2020" } ], "capabilityInvocation": [ { "type": "JsonWebKey2020" } ], "keyAgreement": [ { "type": "JsonWebKey2020" } ], "verificationMethod": [ { "type": "JsonWebKey2020" } ] } } ], "userId": "auth0|user-123"}Bad request - User ID required
object
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}Unauthorized - API key authentication required
object
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}Forbidden - Insufficient scope
object
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}Internal server error
object
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}