Last updated 8 months ago
Validate DID document keys.
DID Document and keys.
Successful operation.
const response = await fetch('/api/v1/profiles/did-keys/validate', { method: 'POST', headers: { "Authorization": "Bearer JWT", "Content-Type": "application/json" }, body: JSON.stringify({ "document": { "id": "text", "context": [ "text" ], "alsoKnownAs": [ "text" ], "controller": [ "text" ], "verificationMethod": [], "authentication": [], "assertionMethod": [], "keyAgreement": [], "capabilityInvocation": [], "capabilityDelegation": [], "service": [] }, "keys": [ { "id": "text", "key": "text" } ] }), }); const data = await response.json();
{ "id": "text", "key": "text", "valid": false }