All pages
Powered by GitBook
1 of 3

Loading...

Loading...

Loading...

Validate DID Format

BYO APIs

Validate DID Keys

Validate DID document format.

post

Validate DID document format.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
idstringRequired
contextstring[] | nullableRequired
alsoKnownAsstring[] | nullableRequired
controllerstring[] | nullableRequired
verificationMethodobject[] | nullableRequired
authenticationobject[] | nullableRequired
assertionMethodobject[] | nullableRequired
keyAgreementobject[] | nullableRequired
capabilityInvocationobject[] | nullableRequired
capabilityDelegationobject[] | nullableRequired
serviceobject[] | nullableRequired
Responses
200

Successful operation.

application/json
401

Unauthorized

403

Forbidden.

500

Internal server error.

application/json
post
/profiles/did-document/validate

Validate DID document keys.

post

Validate DID document keys.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
documentall ofRequired
Responses
200

Successful operation.

application/json
401

Unauthorized

403

Forbidden.

500

Internal server error.

application/json
post
/profiles/did-keys/validate
{
  "valid": true,
  "error": "text",
  "didDocument": {}
}
POST /api/v1/profiles/did-document/validate HTTP/1.1
Host: 
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 239

{
  "id": "text",
  "context": [
    "text"
  ],
  "alsoKnownAs": [
    "text"
  ],
  "controller": [
    "text"
  ],
  "verificationMethod": [
    {}
  ],
  "authentication": [
    {}
  ],
  "assertionMethod": [
    {}
  ],
  "keyAgreement": [
    {}
  ],
  "capabilityInvocation": [
    {}
  ],
  "capabilityDelegation": [
    {}
  ],
  "service": [
    {}
  ]
}
{
  "id": "text",
  "key": "text",
  "valid": true
}
POST /api/v1/profiles/did-keys/validate HTTP/1.1
Host: 
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 288

{
  "document": {
    "id": "text",
    "context": [
      "text"
    ],
    "alsoKnownAs": [
      "text"
    ],
    "controller": [
      "text"
    ],
    "verificationMethod": [
      {}
    ],
    "authentication": [
      {}
    ],
    "assertionMethod": [
      {}
    ],
    "keyAgreement": [
      {}
    ],
    "capabilityInvocation": [
      {}
    ],
    "capabilityDelegation": [
      {}
    ],
    "service": [
      {}
    ]
  },
  "keys": [
    {
      "id": "text",
      "key": "text"
    }
  ]
}