Get version-bound signing metadata for the current user
const url = 'https://localhost:8080/api/v1/protected/signing-key';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/protected/signing-key \ --header 'Authorization: <Authorization>'Returns a public DID and opaque reference to echo on /api/v1/protected/sign. Also supports service-account users authenticated by existing middleware.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”OK
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
Example
{ "algorithm": "secp256k1", "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" } ] }}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"}The user’s key ID selects reserved platform key material
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"}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"}Service Unavailable
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"}