Get the result
curl --request GET \
--url https://api.finalsay-hitl.com/v1/approvals/{requestId}/result \
--header 'X-Agent-Id: <api-key>' \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api.finalsay-hitl.com/v1/approvals/{requestId}/result"
headers = {
"X-Agent-Id": "<api-key>",
"X-Api-Key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Agent-Id': '<api-key>', 'X-Api-Key': '<api-key>'}};
fetch('https://api.finalsay-hitl.com/v1/approvals/{requestId}/result', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"request_id": "<string>",
"status": "pending",
"answer": "<string>"
}{
"error": "missing_agent_auth"
}{
"error": "not_found"
}Approvals
Get the result
Returns { "request_id", "status": "pending", "answer": null } until someone answers or the approval expires, then the full
result. The body POSTed to your callback.url is the same resolved object.
GET
/
v1
/
approvals
/
{requestId}
/
result
Get the result
curl --request GET \
--url https://api.finalsay-hitl.com/v1/approvals/{requestId}/result \
--header 'X-Agent-Id: <api-key>' \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api.finalsay-hitl.com/v1/approvals/{requestId}/result"
headers = {
"X-Agent-Id": "<api-key>",
"X-Api-Key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Agent-Id': '<api-key>', 'X-Api-Key': '<api-key>'}};
fetch('https://api.finalsay-hitl.com/v1/approvals/{requestId}/result', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"request_id": "<string>",
"status": "pending",
"answer": "<string>"
}{
"error": "missing_agent_auth"
}{
"error": "not_found"
}