Get approval status and callback delivery
curl --request GET \
--url https://api.finalsay-hitl.com/v1/approvals/{requestId} \
--header 'X-Agent-Id: <api-key>' \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api.finalsay-hitl.com/v1/approvals/{requestId}"
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}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"request_id": "<string>",
"status": "pending",
"expires_at": "2023-11-07T05:31:56Z",
"result_delivery_status": "pending",
"result_delivery_error": "<string>"
}{
"error": "missing_agent_auth"
}{
"error": "not_found"
}Approvals
Get approval status and callback delivery
Returns the approval’s status and whether the result reached your callback.url. Use
GET /v1/approvals/{requestId}/result for the answer itself.
GET
/
v1
/
approvals
/
{requestId}
Get approval status and callback delivery
curl --request GET \
--url https://api.finalsay-hitl.com/v1/approvals/{requestId} \
--header 'X-Agent-Id: <api-key>' \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api.finalsay-hitl.com/v1/approvals/{requestId}"
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}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"request_id": "<string>",
"status": "pending",
"expires_at": "2023-11-07T05:31:56Z",
"result_delivery_status": "pending",
"result_delivery_error": "<string>"
}{
"error": "missing_agent_auth"
}{
"error": "not_found"
}Authorizations
Path Parameters
Response
Status and delivery state