List Runs
curl --request GET \
--url https://api.exa.ai/monitors/{id}/runs \
--header 'x-api-key: <api-key>'import requests
url = "https://api.exa.ai/monitors/{id}/runs"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.exa.ai/monitors/{id}/runs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "<string>",
"monitorId": "<string>",
"status": "pending",
"output": {
"results": [
{}
],
"content": true,
"grounding": [
{
"field": "<string>",
"citations": [
{
"url": "<string>",
"title": "<string>"
}
],
"confidence": "low"
}
]
},
"failReason": "api_key_invalid",
"startedAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"failedAt": "2023-11-07T05:31:56Z",
"cancelledAt": "2023-11-07T05:31:56Z",
"durationMs": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"hasMore": true,
"nextCursor": "<string>"
}{
"requestId": "0a1b2c3d4e5f60718293a4b5c6d7e8f9",
"error": "Invalid request body: query: Invalid input: expected string, received undefined",
"tag": "INVALID_REQUEST_BODY"
}{
"requestId": "f2a4c6e8b0d2f4a6c8e0b2d4f6a8c0e2",
"error": "Invalid API key",
"tag": "INVALID_API_KEY"
}{
"requestId": "3b1d5f7a9c0e2b4d6f8a0c2e4b6d8f0a",
"error": "Not found",
"tag": "NOT_FOUND"
}{
"requestId": "9b1d3f5e7a0c2e4b6d8f0a2c4e6b8d0f",
"error": "Sorry, we encountered an error while processing your request. Please try again later",
"tag": "DEFAULT_ERROR"
}Runs
List Runs
Lists all runs for a monitor with cursor-based pagination. Runs are returned in reverse chronological order.
GET
/
monitors
/
{id}
/
runs
List Runs
curl --request GET \
--url https://api.exa.ai/monitors/{id}/runs \
--header 'x-api-key: <api-key>'import requests
url = "https://api.exa.ai/monitors/{id}/runs"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.exa.ai/monitors/{id}/runs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "<string>",
"monitorId": "<string>",
"status": "pending",
"output": {
"results": [
{}
],
"content": true,
"grounding": [
{
"field": "<string>",
"citations": [
{
"url": "<string>",
"title": "<string>"
}
],
"confidence": "low"
}
]
},
"failReason": "api_key_invalid",
"startedAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"failedAt": "2023-11-07T05:31:56Z",
"cancelledAt": "2023-11-07T05:31:56Z",
"durationMs": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"hasMore": true,
"nextCursor": "<string>"
}{
"requestId": "0a1b2c3d4e5f60718293a4b5c6d7e8f9",
"error": "Invalid request body: query: Invalid input: expected string, received undefined",
"tag": "INVALID_REQUEST_BODY"
}{
"requestId": "f2a4c6e8b0d2f4a6c8e0b2d4f6a8c0e2",
"error": "Invalid API key",
"tag": "INVALID_API_KEY"
}{
"requestId": "3b1d5f7a9c0e2b4d6f8a0c2e4b6d8f0a",
"error": "Not found",
"tag": "NOT_FOUND"
}{
"requestId": "9b1d3f5e7a0c2e4b6d8f0a2c4e6b8d0f",
"error": "Sorry, we encountered an error while processing your request. Please try again later",
"tag": "DEFAULT_ERROR"
}Authorizations
apiKeybearer
Pass your Exa API key in the x-api-key header. You can also authenticate with Authorization: Bearer .
Path Parameters
The monitor ID
Query Parameters
Pagination cursor from a previous response
Number of results per page
Required range:
1 <= x <= 100