Get DID key for service
const url = 'https://localhost:8080/api/v1/service/did-keys/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/service/did-keys/example \ --header 'Authorization: <Authorization>'Retrieve DID key information for service-to-service calls (requires did:read scope)
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Provider key ID (e.g., auth0-abc123) or the key’s did:key
Responses
Section titled “ Responses ”DID key information
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
{ "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 - Key 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 - API key authentication 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"}Forbidden - Insufficient scope
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"}DID key 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"}