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": [
null
],
"alsoKnownAs": [
null
],
"controller": [
null
],
"verificationMethod": [
{}
],
"authentication": [
{}
],
"assertionMethod": [
{}
],
"keyAgreement": [
{}
],
"capabilityInvocation": [
{}
],
"capabilityDelegation": [
{}
],
"service": [
{}
]
},
"keys": [
{
"id": "text",
"key": "text"
}
]
}),
});
const data = await response.json();