Get DID key information
const url = 'https://localhost:8080/api/v1/auth/did-key/example';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/did-key/example \ --header 'Authorization: <Authorization>'Retrieve information for one of the authenticated user’s DID keys from the configured key provider
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Provider key ID (e.g., auth0-abc123), not the did:key:… value
Responses
Section titled “ Responses ”DID key information
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
{ "didDocument": { "assertionMethod": [ { "type": "JsonWebKey2020" } ], "authentication": [ { "type": "JsonWebKey2020" } ], "capabilityDelegation": [ { "type": "JsonWebKey2020" } ], "capabilityInvocation": [ { "type": "JsonWebKey2020" } ], "keyAgreement": [ { "type": "JsonWebKey2020" } ], "verificationMethod": [ { "type": "JsonWebKey2020" } ] }}Bad request - Key ID required
object
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}Unauthorized
object
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}Forbidden - May only access your own DID keys
object
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}Internal server error
object
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}