Skip to content

Get version-bound signing metadata for the current user

GET
/api/v1/protected/signing-key
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.

OK

Media type application/json
object
algorithm
string
Allowed values: secp256k1 p256
didDocument

The W3C DID document for a key, in did:key form

object
@context
string
assertionMethod
Array<string>
authentication

DID URLs into verificationMethod

Array<string>
id
string
verificationMethod
Array<object>

A public key in a DID document, published as a JWK

object
controller
string
id
string
publicKeyJwk
object
type
string
hashAlgorithm
string
joseAlgorithm
string
purpose
string
signatureEncoding
string
signingKeyReference
string
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

Media type application/json

Error body returned across the auth endpoints; the message is human-readable and not a stable identifier

object
error
string
error_description
string
Example
{
"error": "Unauthorized",
"error_description": "Invalid token"
}

The user’s key ID selects reserved platform key material

Media type application/json

Error body returned across the auth endpoints; the message is human-readable and not a stable identifier

object
error
string
error_description
string
Example
{
"error": "Unauthorized",
"error_description": "Invalid token"
}

Not Found

Media type application/json

Error body returned across the auth endpoints; the message is human-readable and not a stable identifier

object
error
string
error_description
string
Example
{
"error": "Unauthorized",
"error_description": "Invalid token"
}

Internal Server Error

Media type application/json

Error body returned across the auth endpoints; the message is human-readable and not a stable identifier

object
error
string
error_description
string
Example
{
"error": "Unauthorized",
"error_description": "Invalid token"
}

Service Unavailable

Media type application/json

Error body returned across the auth endpoints; the message is human-readable and not a stable identifier

object
error
string
error_description
string
Example
{
"error": "Unauthorized",
"error_description": "Invalid token"
}