Skip to content

Resolve DID / Get Proof Parameters

GET
/{id}/did.json

This endpoint can only be called by anyone without authentication.

  1. Corresponds to the Read (Resolve) method speficied at https://w3c-ccg.github.io/did-method-web/#read-resolve.
  2. With the proofParameters query parameter present, proof parameters are returned that are required for registering, updating, and deleting DID.

did:web method specification

Parameters

Path Parameters

id
required

ID: An identifier.

string
person

Query Parameters

proofParameters
string

Only valid for GET requests

Responses

200

Returns DID Document.

One of:

DID Document: W3C DID Document, see https://w3c.github.io/did-core/.

object
id
required

DID: W3C Decentralized Identifier (DID), see https://w3c.github.io/did-core/.

string
did:web:example.com:person
{
"@context": [
"https://www.w3.org/ns/did/v1",
"https://w3id.org/security/suites/jws-2020/v1"
],
"id": "did:web:example.com",
"verificationMethod": [
{
"id": "did:web:example.com#key-0",
"type": "JsonWebKey2020",
"controller": "did:web:example.com",
"publicKeyJwk": {
"kty": "OKP",
"crv": "Ed25519",
"x": "0-e2i2_Ua1S5HbTYnVB0lj2Z2ytXu2-tYmDFf8f5NjU"
}
},
{
"id": "did:web:example.com#key-1",
"type": "JsonWebKey2020",
"controller": "did:web:example.com",
"publicKeyJwk": {
"kty": "OKP",
"crv": "X25519",
"x": "9GXjPGGvmRq9F6Ng5dQQ_s31mfhxrcNZxRGONrmH30k"
}
},
{
"id": "did:web:example.com#key-2",
"type": "JsonWebKey2020",
"controller": "did:web:example.com",
"publicKeyJwk": {
"kty": "EC",
"crv": "P-256",
"x": "38M1FDts7Oea7urmseiugGW7tWc3mLpJh6rKe7xINZ8",
"y": "nDQW6XZ7b_u2Sy9slofYLlG03sOEoug3I0aAPQ0exs4"
}
}
],
"authentication": [
"did:web:example.com#key-0",
"did:web:example.com#key-2"
],
"assertionMethod": [
"did:web:example.com#key-0",
"did:web:example.com#key-2"
],
"keyAgreement": [
"did:web:example.com#key-1",
"did:web:example.com#key-2"
]
}

400

Bad Request. Requested path not supported.

404

Not Found. DID document not found on server.

500

Internal Server Error.