Check out our upcoming events and meetups! View events →
List recent runs across all missions
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const runListRunsResponse of client.ai.missions.runs.listRuns()) {
console.log(runListRunsResponse.mission_id);
}{
"data": [
{
"run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mission_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"started_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"input": {},
"finished_at": "2023-11-07T05:31:56Z",
"result_summary": "<string>",
"result_payload": {},
"error": "<string>",
"metadata": {}
}
],
"meta": {
"total_pages": 123,
"total_results": 123,
"page_number": 123,
"page_size": 123
}
}Documentation Index
Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Page number (1-based)
x >= 1Number of items per page
0 < x <= 1000Was this page helpful?
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const runListRunsResponse of client.ai.missions.runs.listRuns()) {
console.log(runListRunsResponse.mission_id);
}{
"data": [
{
"run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mission_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"started_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"input": {},
"finished_at": "2023-11-07T05:31:56Z",
"result_summary": "<string>",
"result_payload": {},
"error": "<string>",
"metadata": {}
}
],
"meta": {
"total_pages": 123,
"total_results": 123,
"page_number": 123,
"page_size": 123
}
}