Skip to content

Get platform DID document

GET
/api/v1/protected/platform/did-doc
curl --request GET \
--url https://localhost:8080/api/v1/protected/platform/did-doc \
--header 'Authorization: <Authorization>'

Return the DID document for the shared organization-key DID key; also mounted at /platform/api/v1/protected/did-doc for SDK AuthServiceSigner compatibility

DID Document

Media type application/json

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
Example
{
"@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 - Invalid or missing credential

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