Attestations
Create an attestation
POST
/
v1
/
attestations
Create an attestation
curl --request POST \
--url https://api.technicallyfit.com/v1/attestations \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"instrument_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"measurement_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
instrument_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
measurement_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://api.technicallyfit.com/v1/attestations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.technicallyfit.com/v1/attestations"
payload = {
"instrument_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"measurement_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"algorithm": "Ed25519",
"key_id": "<string>",
"signature": "<string>",
"statement": {
"attestation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attestor": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "coach",
"name": "<string>"
},
"issued_at": "2023-11-07T05:31:56Z",
"key_id": "<string>",
"measurement": {
"instrument_kind": "<string>",
"measure": "<string>",
"observed_at": "2023-11-07T05:31:56Z",
"protocol_key": "<string>",
"protocol_kind": "none",
"quantity": "<string>",
"unit": "<string>",
"value": 123
},
"measurement_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mode": "test",
"version": "attestation/1",
"vouching_level": 3
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}Body
application/json
⌘I
Create an attestation
curl --request POST \
--url https://api.technicallyfit.com/v1/attestations \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"instrument_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"measurement_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
instrument_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
measurement_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://api.technicallyfit.com/v1/attestations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.technicallyfit.com/v1/attestations"
payload = {
"instrument_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"measurement_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"algorithm": "Ed25519",
"key_id": "<string>",
"signature": "<string>",
"statement": {
"attestation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attestor": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "coach",
"name": "<string>"
},
"issued_at": "2023-11-07T05:31:56Z",
"key_id": "<string>",
"measurement": {
"instrument_kind": "<string>",
"measure": "<string>",
"observed_at": "2023-11-07T05:31:56Z",
"protocol_key": "<string>",
"protocol_kind": "none",
"quantity": "<string>",
"unit": "<string>",
"value": 123
},
"measurement_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mode": "test",
"version": "attestation/1",
"vouching_level": 3
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}