Agent
Get a task's status and result
status is processing while the task waits for its phone or
works, awaiting_human when it stopped to ask a question, and
completed, failed or cancelled once it ended. The words are
Firecrawl’s; awaiting_human and cancelled are a phone task’s own.
The result reads like Firecrawl’s agent status: success, status,
data and expiresAt. data is the task’s final answer: the object
its schema describes when it was started with one, otherwise the
answer as text.
recordingUrl is the run’s recording. Fetch it with the same API
key to get signed video segments. It is an absolute URL.
GET
/
v1
/
agent
/
{id}
Get a task's status and result
curl --request GET \
--url https://api.lusor.ai/v1/agent/{id} \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/agent/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/agent/{id}"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"status": "processing",
"expiresAt": "2023-11-07T05:31:56Z",
"recordingUrl": "<string>",
"error": "<string>",
"data": "<unknown>",
"metadata": {
"concurrencyLimited": true,
"concurrencyQueueDurationMs": 123
},
"liveViewUrl": "<string>",
"stopReason": "credit_limit_reached",
"creditsUsed": 123
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Authorizations
ApiKeyBearerAuth
Query Parameters
Response
The task's status and result
Was this page helpful?
⌘I
Get a task's status and result
curl --request GET \
--url https://api.lusor.ai/v1/agent/{id} \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/agent/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/agent/{id}"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"status": "processing",
"expiresAt": "2023-11-07T05:31:56Z",
"recordingUrl": "<string>",
"error": "<string>",
"data": "<unknown>",
"metadata": {
"concurrencyLimited": true,
"concurrencyQueueDurationMs": 123
},
"liveViewUrl": "<string>",
"stopReason": "credit_limit_reached",
"creditsUsed": 123
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}
