Add Agent Run (and Wait)
Push data to an Agent Run and wait for results
Documentation Index
Fetch the complete documentation index at: https://docs.agents.kolena.com/llms.txt
Use this file to discover all available pages before exploring further.
Rate Limits
This endpoint is rate limited based on your Organization tier:| Organization Tier | Rate Limit (requests/minute) |
|---|---|
| Starter | 10 |
| Professional | 20 |
| Enterprise | 40 |
Behavior
This endpoint accepts data to create an Agent Run. If the results from all Prompts are available within the requestedtimeout period, the response will include the completed Agent Run with results.
Otherwise, the response will contain a status of running and a run_id which can be used to fetch the results later.
Handling Timeouts
If the Agent Run takes longer than the request timeout period to complete, this endpoint will return the Agent Run in arunning status. In such cases:
- The response will indicate the Run is still in progress
- You can use the Get Agent Run endpoint to fetch the results later by providing the same
run_id
Tips to Avoid Timeouts
To reduce the likelihood of timeouts when using this endpoint:- Use smaller inputs - Upload inputs with minimal content and fewer prompts
- Disable “Data Analysis” - If your Agent has Data Analysis enabled, consider disabling it for faster processing
- Batch your requests - For large volumes of data, consider using the non-waiting version (Add Agent Run) and poll for results
Authorizations
Bearer authentication header of the form Bearer <token>. The <token> represents your API key, which must be acquired from the Kolena platform.
Path Parameters
Query Parameters
How long to wait, in seconds, for the results from this Run.
1 <= x <= 120Body
Response
Successful Response
The ID of the Agent being run.
The ID of this Agent Run.
An optional user-defined ID attached to this Run.
When this Run was created, formatted as an ISO 8601 timestamp (e.g. 2025-12-31T10:15:45+00:00)
When this Run was last updated, formatted as an ISO 8601 timestamp (e.g. 2025-12-31T10:15:45+00:00)
When all Prompts in this Run completed, formatted as an ISO 8601 timestamp (e.g. 2025-12-31T10:15:45+00:00).
The time between created and completed is the total time taken by the Agent for this Run. Will be null if the Run is still in progress and for historical Runs created before March 2026.
List of filenames included in this Run.
Link to this Run on agents.kolena.com.
The order of Prompts in this Agent. When results are ready for a Prompt, it will be included in the data object.
The output data from completed Prompts, keyed on Prompt name.
Once a Prompt is completed (status success or failed), it will be included in this object. Any running prompts are omitted.
The status of this Run.
running, success, failed For organizations with credit-based billing enabled, report the total credits used for this Run. null for organizations using page-based billing.
