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();