Skip to content

Get DID key for service

GET
/api/v1/service/did-keys/{keyId}
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)

keyId
required
string

Provider key ID (e.g., auth0-abc123) or the key’s did:key

DID key information

Media type application/json

A DID key held for a user, described independently of the KMS backing it

object
createdAt
string format: date-time
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
keyId
string
keyReference
string
keyVaultUrl

Deprecated: use keyReference

string
provider
string
publicKey
string
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

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"
}

Unauthorized - API key authentication required

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"
}

Forbidden - Insufficient scope

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"
}

DID key 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"
}