This endpoint accepts data to create an Agent Run.
If the results from all Prompts are available within the requested timeout 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.
Compared to the Add Agent Run endpoint, this endpoint is synchronous and attempts to wait for the Agent Run to complete before returning results.
Requests are processed with higher priority when resources are available, but the endpoint is rate limited more strictly.
Optional unique key (e.g. a UUID) to prevent duplicate Runs. If this Agent already has a Run with this key, that Run is returned instead of creating a new one. Use a new key for each distinct request.
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.
For organizations with credit-based billing enabled, report the total credits used for this Run. null for organizations using page-based billing.
Show child attributes
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Kolena","colors":{"primary":"#6434c1","light":"#6434c1","dark":"#6434c1"},"logo":{"light":"https://mintcdn.com/kolena/RcQQL0B5MRBeobfg/assets/wordmark.png?fit=max\u0026auto=format\u0026n=RcQQL0B5MRBeobfg\u0026q=85\u0026s=75dc903296dd57fc21c61b4d6aadff38","dark":"https://mintcdn.com/kolena/RcQQL0B5MRBeobfg/assets/wordmark.png?fit=max\u0026auto=format\u0026n=RcQQL0B5MRBeobfg\u0026q=85\u0026s=75dc903296dd57fc21c61b4d6aadff38"},"favicon":"https://mintcdn.com/kolena/RcQQL0B5MRBeobfg/assets/favicon-96x96.webp?fit=max\u0026auto=format\u0026n=RcQQL0B5MRBeobfg\u0026q=85\u0026s=0acb5fa71c8c598c9cedbaafeaef2c0d","api":{"playground":{"display":"none"},"examples":{"defaults":"required"},"mdx":{"server":"https://agents-api.kolena.com"}},"appearance":{"default":"light","strict":true},"navbar":{"links":[{"href":"mailto:support@kolena.com","label":"Support"}],"primary":{"type":"button","label":"Kolena","href":"https://agents.kolena.com"}},"footer":{"socials":{"x":"https://x.com/kolenaIO","github":"https://github.com/kolenaIO","linkedin":"https://www.linkedin.com/company/kolena-ai"}},"fonts":{"heading":{"family":"Sora","weight":500},"body":{"family":"Inter"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"kolena","hasAudioNarration":false,"actualSubdomain":"kolena","customDomains":["docs.agents.kolena.com"],"gitSource":{"type":"github","owner":"kolenaio","repo":"restructured","deployBranch":"trunk","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aededc6958fda678bd61f0b","clientVersion":"0.0.4088","searchFilterCounts":[{"language":"default","tag":"Developers","count":34},{"language":"default","tag":"Users","count":34},{"language":"default","tag":"API Reference","count":30},{"language":"default","tag":"Get Started","count":13},{"language":"default","tag":"Managing Your Organization","count":12},{"language":"default","tag":"Agents","count":11},{"language":"default","tag":"Ground Truths","count":11},{"language":"default","tag":"User Access","count":6},{"language":"default","tag":"FAQ","count":5},{"language":"default","tag":"API Keys","count":4}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[],"page":{"pagePath":"api-reference/add-agent-run-wait","slug":"/api-reference/add-agent-run-wait","pageMetadata":{"title":"Add Agent Run (and Wait)","description":"Push data to an Agent Run and wait for results","openapi":"openapi.json POST /api/v1/client/agents/{agent_id}/runs/wait","href":"/api-reference/add-agent-run-wait"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Push data to an Agent Run and wait for results\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Heading,Note,Table}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`4`,id:`rate-limits`,children:`Rate Limits`}),`\n`,_jsx(_components.p,{children:`This endpoint is rate limited based on your Organization tier:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Organization Tier`}),_jsx(_components.th,{children:`Rate Limit (requests/minute)`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Starter`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`10`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Professional`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`20`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Enterprise`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`40`})]})]})]}),`\n`,_jsx(_components.p,{children:`Rate limits are applied per Organization.`}),`\n`,_jsx(Heading,{level:`4`,id:`behavior`,children:`Behavior`}),`\n`,_jsxs(_components.p,{children:[`This endpoint accepts data to create an Agent Run.\nIf the results from all Prompts are available within the requested `,_jsx(_components.code,{children:`timeout`}),` period, the response will include the completed Agent Run with results.\nOtherwise, the response will contain a `,_jsx(_components.code,{children:`status`}),` of `,_jsx(_components.code,{children:`running`}),` and a `,_jsx(_components.code,{children:`run_id`}),` which can be used to `,_jsx(_components.a,{href:`/api-reference/get-agent-run`,children:`fetch the results`}),` later.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Compared to the `,_jsx(_components.a,{href:`/api-reference/add-agent-run`,children:`Add Agent Run`}),` endpoint, this endpoint is synchronous and attempts to wait for the Agent Run to complete before returning results.\nRequests are processed with higher priority when resources are available, but the endpoint is rate limited more strictly.`]})}),`\n`,_jsx(Heading,{level:`4`,id:`handling-timeouts`,children:`Handling Timeouts`}),`\n`,_jsxs(_components.p,{children:[`If the Agent Run takes longer than the request timeout period to complete, this endpoint will return the Agent Run in a `,_jsx(_components.code,{children:`running`}),` status. In such cases:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`The response will indicate the Run is still in progress`}),`\n`,_jsxs(_components.li,{children:[`You can use the `,_jsx(_components.a,{href:`/api-reference/get-agent-run`,children:`Get Agent Run`}),` endpoint to fetch the results later by providing the same `,_jsx(_components.code,{children:`run_id`})]}),`\n`]}),`\n`,_jsx(Heading,{level:`4`,id:`tips-to-avoid-timeouts`,children:`Tips to Avoid Timeouts`}),`\n`,_jsx(_components.p,{children:`To reduce the likelihood of timeouts when using this endpoint:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Use smaller inputs`}),` - Upload inputs with minimal content and fewer prompts`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Disable “Data Analysis”`}),` - If your Agent has Data Analysis enabled, consider disabling it for faster processing`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Batch your requests`}),` - For large volumes of data, consider using the non-waiting version (`,_jsx(_components.a,{href:`/api-reference/add-agent-run`,children:`Add Agent Run`}),`) and poll for results`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Add Agent Run (and Wait)","description":"Push data to an Agent Run and wait for results","openapi":"openapi.json POST /api/v1/client/agents/{agent_id}/runs/wait","href":"/api-reference/add-agent-run-wait"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Rate Limits","slug":"rate-limits","depth":4,"children":[]},{"title":"Behavior","slug":"behavior","depth":4,"children":[]},{"title":"Handling Timeouts","slug":"handling-timeouts","depth":4,"children":[]},{"title":"Tips to Avoid Timeouts","slug":"tips-to-avoid-timeouts","depth":4,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["client","agents"],"summary":"Client Add Agent Run And Wait","description":"Push data to an Agent Run and wait for results","operationId":"client_add_agent_run_and_wait_api_v1_client_agents__agent_id__runs_wait_post","security":["c89ec71d-e9ce-45d5-88f2-d921cdcecd8f"],"parameters":["f3e514ff-5f90-4029-b51a-298053360286","4e8dbad3-da5d-40e2-9b07-8af45e1400e0","31c549a8-f0ea-4501-a33a-d4d0c3757cb1"],"requestBody":"37993c72-ea56-4472-b454-b6036bb4b4fd","responses":{"200":"b1cdf8d0-2ea1-4b61-b723-25c380602f32","422":"eea86bfb-45ad-49c0-99b2-c1b1e34b5b9c","429":"23b93069-7985-4edd-8fea-32c145e054f3"},"method":"post","type":"path","servers":[],"path":"/api/v1/client/agents/{agent_id}/runs/wait","baseUrlOptions":["https://agents-api.kolena.com"],"title":"Client Add Agent Run And Wait","codeSamples":[],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"f3e514ff-5f90-4029-b51a-298053360286":{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id","isRequired":true,"uniqueKey":"","typeLabel":"integer"}},"4e8dbad3-da5d-40e2-9b07-8af45e1400e0":{"name":"timeout","in":"query","required":false,"schema":{"type":"integer","maximum":120,"minimum":1,"description":"How long to wait, in seconds, for the results from this Run.","default":60,"title":"Timeout","isRequired":false,"uniqueKey":"","typeLabel":"integer"},"description":"How long to wait, in seconds, for the results from this Run."},"31c549a8-f0ea-4501-a33a-d4d0c3757cb1":{"name":"Idempotency-Key","in":"header","required":false,"schema":{"oneOf":[{"type":"string","title":"Idempotency-Key","description":"Optional unique key (e.g. a UUID) to prevent duplicate Runs. If this Agent already has a Run with this key, that Run is returned instead of creating a new one. Use a new key for each distinct request.","maxLength":255,"minLength":1,"uniqueKey":"oneOf.0","typeLabel":"string"},{"type":"null","title":"Idempotency-Key","description":"Optional unique key (e.g. a UUID) to prevent duplicate Runs. If this Agent already has a Run with this key, that Run is returned instead of creating a new one. Use a new key for each distinct request.","uniqueKey":"oneOf.1","typeLabel":"null"}],"isRequired":false,"uniqueKey":"","typeLabel":"string | null"},"description":"Optional unique key (e.g. a UUID) to prevent duplicate Runs. If this Agent already has a Run with this key, that Run is returned instead of creating a new one. Use a new key for each distinct request."}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"properties":{"files":{"items":{"type":"string","format":"binary","uniqueKey":"files.items.[INDEX]","typeLabel":"file"},"type":"array","title":"Files","description":"List of files for the run. A single request can have a maximum of 600 files. Each file can have maximum size of 250MB.","isRequired":true,"uniqueKey":"files","typeLabel":"file[]"},"user_defined_id":{"oneOf":[{"type":"string","title":"User Defined Id","description":"Optional user-defined identifier attached to this Run. Useful for tracking of Runs with external IDs.","uniqueKey":"user_defined_id.oneOf.0","typeLabel":"string"},{"type":"null","title":"User Defined Id","description":"Optional user-defined identifier attached to this Run. Useful for tracking of Runs with external IDs.","uniqueKey":"user_defined_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"user_defined_id","typeLabel":"string | null"}},"type":"object","required":["files"],"title":"Body_client_add_agent_run_and_wait_api_v1_client_agents__agent_id__runs_wait_post","uniqueKey":"","typeLabel":"Body_client_add_agent_run_and_wait_api_v1_client_agents__agent_id__runs_wait_post · object"},"examples":{"Example":{"title":"Example","value":{"files":["\u003cstring>"],"user_defined_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"b1cdf8d0-2ea1-4b61-b723-25c380602f32":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"agent_id":{"type":"integer","title":"Agent Id","description":"The ID of the Agent being run.","isRequired":true,"uniqueKey":"agent_id","typeLabel":"integer"},"run_id":{"type":"integer","title":"Run Id","description":"The ID of this Agent Run.","isRequired":true,"uniqueKey":"run_id","typeLabel":"integer"},"user_defined_id":{"oneOf":[{"type":"string","title":"User Defined Id","description":"An optional user-defined ID attached to this Run.","isRequired":true,"uniqueKey":"user_defined_id.oneOf.0","typeLabel":"string"},{"type":"null","title":"User Defined Id","description":"An optional user-defined ID attached to this Run.","isRequired":true,"uniqueKey":"user_defined_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"user_defined_id","typeLabel":"string | null"},"created":{"type":"string","format":"date-time","title":"Created","description":"When this Run was created, formatted as an ISO 8601 timestamp (e.g. `2025-12-31T10:15:45+00:00`)","isRequired":true,"uniqueKey":"created","typeLabel":"string\u003cdate-time>"},"updated":{"type":"string","format":"date-time","title":"Updated","description":"When this Run was last updated, formatted as an ISO 8601 timestamp (e.g. `2025-12-31T10:15:45+00:00`)","isRequired":true,"uniqueKey":"updated","typeLabel":"string\u003cdate-time>"},"completed":{"oneOf":[{"type":"string","title":"Completed","description":"When all Prompts in this Run completed, formatted as an ISO 8601 timestamp (e.g. `2025-12-31T10:15:45+00:00`).\n\nThe 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.","format":"date-time","isRequired":true,"uniqueKey":"completed.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","title":"Completed","description":"When all Prompts in this Run completed, formatted as an ISO 8601 timestamp (e.g. `2025-12-31T10:15:45+00:00`).\n\nThe 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.","isRequired":true,"uniqueKey":"completed.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"completed","typeLabel":"string\u003cdate-time> | null"},"files":{"items":{"type":"string","uniqueKey":"files.items.[INDEX]","typeLabel":"string"},"type":"array","title":"Files","description":"List of filenames included in this Run.","isRequired":true,"uniqueKey":"files","typeLabel":"string[]"},"run_url":{"type":"string","title":"Run Url","description":"Link to this Run on [agents.kolena.com](https://agents.kolena.com/).","isRequired":true,"uniqueKey":"run_url","typeLabel":"string"},"order":{"items":{"type":"string","uniqueKey":"order.items.[INDEX]","typeLabel":"string"},"type":"array","title":"Order","description":"The order of Prompts in this Agent. When results are ready for a Prompt, it will be included in the `data` object.","isRequired":true,"uniqueKey":"order","typeLabel":"string[]"},"data":{"additionalProperties":{"properties":{"status":{"type":"string","enum":["running","success","failed"],"title":"AgentRunStatus","description":"The status of this Prompt, either `success` or `failed`. Prompts that are `running` are omitted from the `data` object.","isRequired":true,"uniqueKey":"data.additionalProperties.status","typeLabel":"enum\u003cstring>"},"value":{"title":"AnyValue","description":"The output value from this Prompt on this Run.","isRequired":true,"uniqueKey":"data.additionalProperties.value","typeLabel":"any"},"error":{"oneOf":[{"type":"string","title":"Error","description":"An error string if the Prompt failed to execute, otherwise `null`.","isRequired":true,"uniqueKey":"data.additionalProperties.error.oneOf.0","typeLabel":"string"},{"type":"null","title":"Error","description":"An error string if the Prompt failed to execute, otherwise `null`.","isRequired":true,"uniqueKey":"data.additionalProperties.error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.additionalProperties.error","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","title":"AgentRunResultMetadata","description":"Metadata associated with this Prompt run, including reasoning and citations. The `confidence` field is deprecated and no longer reflects a real confidence score.","required":["reasoning","confidence","citations"],"properties":{"reasoning":{"oneOf":[{"type":"string","title":"Reasoning","description":"Reasoning behind the `value` provided as a Prompt output.","isRequired":true,"uniqueKey":"data.additionalProperties.metadata.oneOf.0.reasoning.oneOf.0","typeLabel":"string"},{"type":"null","title":"Reasoning","description":"Reasoning behind the `value` provided as a Prompt output.","isRequired":true,"uniqueKey":"data.additionalProperties.metadata.oneOf.0.reasoning.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.additionalProperties.metadata.oneOf.0.reasoning","typeLabel":"string | null"},"confidence":{"oneOf":[{"type":"number","title":"Confidence","description":"**Deprecated.** This field is no longer populated with a model-estimated confidence score. When present, the value is typically `1.0` and should not be used to assess result quality or uncertainty.","deprecated":true,"isRequired":true,"uniqueKey":"data.additionalProperties.metadata.oneOf.0.confidence.oneOf.0","typeLabel":"number"},{"type":"null","title":"Confidence","description":"**Deprecated.** This field is no longer populated with a model-estimated confidence score. When present, the value is typically `1.0` and should not be used to assess result quality or uncertainty.","deprecated":true,"isRequired":true,"uniqueKey":"data.additionalProperties.metadata.oneOf.0.confidence.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.additionalProperties.metadata.oneOf.0.confidence","typeLabel":"number | null"},"citations":{"items":{"properties":{"file":{"type":"string","title":"File","description":"The name of the file being referenced.","isRequired":true,"uniqueKey":"data.additionalProperties.metadata.oneOf.0.citations.items.[INDEX].file","typeLabel":"string"},"pages":{"oneOf":[{"type":"array","items":{"type":"integer","uniqueKey":"data.additionalProperties.metadata.oneOf.0.citations.items.[INDEX].pages.oneOf.0.items.[INDEX]","typeLabel":"integer"},"title":"Pages","description":"The relevant page(s) referenced by the model, or `null` if referencing a non-paginated file type.","isRequired":true,"uniqueKey":"data.additionalProperties.metadata.oneOf.0.citations.items.[INDEX].pages.oneOf.0","typeLabel":"integer[]"},{"type":"null","title":"Pages","description":"The relevant page(s) referenced by the model, or `null` if referencing a non-paginated file type.","isRequired":true,"uniqueKey":"data.additionalProperties.metadata.oneOf.0.citations.items.[INDEX].pages.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.additionalProperties.metadata.oneOf.0.citations.items.[INDEX].pages","typeLabel":"integer[] | null"},"regions":{"oneOf":[{"type":"array","items":{"properties":{"page":{"oneOf":[{"type":"integer","title":"Page","description":"The page where this supporting evidence appears.","isRequired":true,"uniqueKey":"data.additionalProperties.metadata.oneOf.0.citations.items.[INDEX].regions.oneOf.0.items.[INDEX].page.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Page","description":"The page where this supporting evidence appears.","isRequired":true,"uniqueKey":"data.additionalProperties.metadata.oneOf.0.citations.items.[INDEX].regions.oneOf.0.items.[INDEX].page.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.additionalProperties.metadata.oneOf.0.citations.items.[INDEX].regions.oneOf.0.items.[INDEX].page","typeLabel":"integer | null"},"point":{"oneOf":[{"type":"object","title":"Point","description":"The approximate position of the evidence on the page. [x, y] coordinates as percentages (0-100), where [0, 0] is the top-left and [100, 100] is the bottom-right.","properties":{"[0]":{"type":"integer","uniqueKey":"data.additionalProperties.metadata.oneOf.0.citations.items.[INDEX].regions.oneOf.0.items.[INDEX].point.oneOf.0.[0]","typeLabel":"integer"},"[1]":{"type":"integer","uniqueKey":"data.additionalProperties.metadata.oneOf.0.citations.items.[INDEX].regions.oneOf.0.items.[INDEX].point.oneOf.0.[1]","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"data.additionalProperties.metadata.oneOf.0.citations.items.[INDEX].regions.oneOf.0.items.[INDEX].point.oneOf.0","typeLabel":"Point · object"},{"type":"null","title":"Point","description":"The approximate position of the evidence on the page. [x, y] coordinates as percentages (0-100), where [0, 0] is the top-left and [100, 100] is the bottom-right.","isRequired":true,"uniqueKey":"data.additionalProperties.metadata.oneOf.0.citations.items.[INDEX].regions.oneOf.0.items.[INDEX].point.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.additionalProperties.metadata.oneOf.0.citations.items.[INDEX].regions.oneOf.0.items.[INDEX].point","typeLabel":"Point · object | null"},"text":{"oneOf":[{"type":"string","title":"Text","description":"A short excerpt or label of the supporting evidence.","isRequired":true,"uniqueKey":"data.additionalProperties.metadata.oneOf.0.citations.items.[INDEX].regions.oneOf.0.items.[INDEX].text.oneOf.0","typeLabel":"string"},{"type":"null","title":"Text","description":"A short excerpt or label of the supporting evidence.","isRequired":true,"uniqueKey":"data.additionalProperties.metadata.oneOf.0.citations.items.[INDEX].regions.oneOf.0.items.[INDEX].text.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.additionalProperties.metadata.oneOf.0.citations.items.[INDEX].regions.oneOf.0.items.[INDEX].text","typeLabel":"string | null"}},"type":"object","required":["page","point","text"],"title":"CitationRegion","uniqueKey":"data.additionalProperties.metadata.oneOf.0.citations.items.[INDEX].regions.oneOf.0.items.[INDEX]","typeLabel":"CitationRegion · object"},"title":"Regions","description":"The regions of interest supporting the citations.","uniqueKey":"data.additionalProperties.metadata.oneOf.0.citations.items.[INDEX].regions.oneOf.0","typeLabel":"CitationRegion · object[]"},{"type":"null","title":"Regions","description":"The regions of interest supporting the citations.","uniqueKey":"data.additionalProperties.metadata.oneOf.0.citations.items.[INDEX].regions.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.additionalProperties.metadata.oneOf.0.citations.items.[INDEX].regions","typeLabel":"CitationRegion · object[] | null"}},"type":"object","required":["file","pages"],"title":"AgentRunResultMetadataCitation","uniqueKey":"data.additionalProperties.metadata.oneOf.0.citations.items.[INDEX]","typeLabel":"AgentRunResultMetadataCitation · object"},"type":"array","title":"Citations","description":"A list of citations, including documents and page numbers, used to produce the output `value`.","isRequired":true,"uniqueKey":"data.additionalProperties.metadata.oneOf.0.citations","typeLabel":"AgentRunResultMetadataCitation · object[]"},"url_citations":{"items":{"properties":{"url":{"type":"string","title":"Url","description":"The URL being referenced.","isRequired":true,"uniqueKey":"data.additionalProperties.metadata.oneOf.0.url_citations.items.[INDEX].url","typeLabel":"string"},"title":{"type":"string","title":"Title","description":"The title of the web page or resource.","isRequired":true,"uniqueKey":"data.additionalProperties.metadata.oneOf.0.url_citations.items.[INDEX].title","typeLabel":"string"},"cited_text":{"type":"string","title":"Cited Text","description":"The specific text from the URL that was cited.","isRequired":true,"uniqueKey":"data.additionalProperties.metadata.oneOf.0.url_citations.items.[INDEX].cited_text","typeLabel":"string"}},"type":"object","required":["url","title","cited_text"],"title":"AgentRunResultMetadataUrlCitation","uniqueKey":"data.additionalProperties.metadata.oneOf.0.url_citations.items.[INDEX]","typeLabel":"AgentRunResultMetadataUrlCitation · object"},"type":"array","title":"Url Citations","description":"A list of URL citations, including web pages and resources, used to produce the output `value`.","uniqueKey":"data.additionalProperties.metadata.oneOf.0.url_citations","typeLabel":"AgentRunResultMetadataUrlCitation · object[]"}},"isRequired":true,"uniqueKey":"data.additionalProperties.metadata.oneOf.0","typeLabel":"AgentRunResultMetadata · object"},{"type":"null","description":"Metadata associated with this Prompt run, including reasoning and citations. The `confidence` field is deprecated and no longer reflects a real confidence score.","isRequired":true,"uniqueKey":"data.additionalProperties.metadata.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.additionalProperties.metadata","typeLabel":"AgentRunResultMetadata · object | null"},"user_input":{"oneOf":[{"type":"object","title":"CellResultUserInput","description":"Optional user-provided correction to this Prompt output.","properties":{"data":{"oneOf":[{"type":"object","title":"CellResultUserData","properties":{"value":{"oneOf":[{"title":"AnyValue"}],"uniqueKey":"data.additionalProperties.user_input.oneOf.0.data.oneOf.0.value","typeLabel":"any"}},"uniqueKey":"data.additionalProperties.user_input.oneOf.0.data.oneOf.0","typeLabel":"CellResultUserData · object"},{"type":"null","uniqueKey":"data.additionalProperties.user_input.oneOf.0.data.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.additionalProperties.user_input.oneOf.0.data","typeLabel":"CellResultUserData · object | null"},"data_updated":{"oneOf":[{"type":"string","title":"Data Updated","format":"date-time","uniqueKey":"data.additionalProperties.user_input.oneOf.0.data_updated.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","title":"Data Updated","uniqueKey":"data.additionalProperties.user_input.oneOf.0.data_updated.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.additionalProperties.user_input.oneOf.0.data_updated","typeLabel":"string\u003cdate-time> | null"},"data_edited_by":{"oneOf":[{"type":"string","title":"Data Edited By","uniqueKey":"data.additionalProperties.user_input.oneOf.0.data_edited_by.oneOf.0","typeLabel":"string"},{"type":"null","title":"Data Edited By","uniqueKey":"data.additionalProperties.user_input.oneOf.0.data_edited_by.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.additionalProperties.user_input.oneOf.0.data_edited_by","typeLabel":"string | null"}},"uniqueKey":"data.additionalProperties.user_input.oneOf.0","typeLabel":"CellResultUserInput · object"},{"type":"null","description":"Optional user-provided correction to this Prompt output.","uniqueKey":"data.additionalProperties.user_input.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.additionalProperties.user_input","typeLabel":"CellResultUserInput · object | null"},"start_time":{"oneOf":[{"type":"string","title":"Start Time","description":"ISO 8601 timestamp indicating when this Prompt started running.","format":"date-time","uniqueKey":"data.additionalProperties.start_time.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","title":"Start Time","description":"ISO 8601 timestamp indicating when this Prompt started running.","uniqueKey":"data.additionalProperties.start_time.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.additionalProperties.start_time","typeLabel":"string\u003cdate-time> | null"},"end_time":{"oneOf":[{"type":"string","title":"End Time","description":"ISO 8601 timestamp indicated when this Prompt completed.","format":"date-time","uniqueKey":"data.additionalProperties.end_time.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","title":"End Time","description":"ISO 8601 timestamp indicated when this Prompt completed.","uniqueKey":"data.additionalProperties.end_time.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.additionalProperties.end_time","typeLabel":"string\u003cdate-time> | null"},"usage":{"oneOf":[{"type":"object","title":"AgentCreditUsage","description":"Usage information for this Prompt.","required":["credits_used"],"properties":{"credits_used":{"type":"number","title":"Credits Used","description":"The credits used by this object.","isRequired":true,"uniqueKey":"data.additionalProperties.usage.oneOf.0.credits_used","typeLabel":"number"}},"uniqueKey":"data.additionalProperties.usage.oneOf.0","typeLabel":"AgentCreditUsage · object"},{"type":"null","description":"Usage information for this Prompt.","uniqueKey":"data.additionalProperties.usage.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.additionalProperties.usage","typeLabel":"AgentCreditUsage · object | null"}},"type":"object","required":["status","value","error","metadata"],"title":"AgentRunResult","uniqueKey":"data.additionalProperties","typeLabel":"AgentRunResult · object"},"type":"object","title":"Data","description":"The output data from completed Prompts, keyed on Prompt name.\n\nOnce a Prompt is completed (status `success` or `failed`), it will be included in this object. Any `running` prompts are omitted.","isRequired":true,"uniqueKey":"data","typeLabel":"Data · object"},"status":{"type":"string","enum":["running","success","failed"],"title":"AgentRunStatus","description":"The status of this Run.","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"usage":{"oneOf":[{"type":"object","title":"AgentCreditUsage","description":"For organizations with credit-based billing enabled, report the total credits used for this Run. `null` for organizations using page-based billing.","required":["credits_used"],"properties":{"credits_used":{"type":"number","title":"Credits Used","description":"The credits used by this object.","isRequired":true,"uniqueKey":"usage.oneOf.0.credits_used","typeLabel":"number"}},"uniqueKey":"usage.oneOf.0","typeLabel":"AgentCreditUsage · object"},{"type":"null","description":"For organizations with credit-based billing enabled, report the total credits used for this Run. `null` for organizations using page-based billing.","uniqueKey":"usage.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage","typeLabel":"AgentCreditUsage · object | null"}},"type":"object","required":["agent_id","run_id","user_defined_id","created","updated","completed","files","run_url","order","data","status"],"title":"AgentRun","examples":[{"agent_id":1,"completed":"2025-01-01T12:02:00","created":"2025-01-01T12:00:00","data":{"Another Example":{"end_time":"2025-01-05T03:13:59.000013","metadata":{"citations":[{"file":"demo2.csv"}],"confidence":1,"reasoning":"The order amount is listed in demo2.csv","url_citations":[]},"start_time":"2025-01-05T03:13:45.000051","status":"success","usage":{"credits_used":0.071},"value":123},"Example Prompt":{"end_time":"2025-01-05T03:05:10.000102","metadata":{"citations":[{"file":"demo1.pdf","pages":[2,5],"regions":[{"page":2,"point":[20,15],"text":"Account number"}]}],"confidence":1,"reasoning":"Looking at file demo1.pdf, ...","url_citations":[{"cited_text":"Example text from website","title":"Kolena Example","url":"https://example.com/kolena"}]},"start_time":"2025-01-05T03:05:05.000057","status":"success","usage":{"credits_used":0.052},"value":"foo"}},"files":["demo1.pdf","demo2.csv"],"order":["Example Prompt","Another Example"],"run_id":1,"run_url":"https://agents.kolena.com/my_org/agents/1/runs/1","status":"success","updated":"2025-01-05T00:00:00","usage":{"credits_used":0.123}}],"uniqueKey":"","typeLabel":"AgentRun · object"},"examples":{"Example":{"title":"Example","value":{"agent_id":1,"completed":"2025-01-01T12:02:00","created":"2025-01-01T12:00:00","data":{"Another Example":{"end_time":"2025-01-05T03:13:59.000013","metadata":{"citations":[{"file":"demo2.csv"}],"confidence":1,"reasoning":"The order amount is listed in demo2.csv","url_citations":[]},"start_time":"2025-01-05T03:13:45.000051","status":"success","usage":{"credits_used":0.071},"value":123},"Example Prompt":{"end_time":"2025-01-05T03:05:10.000102","metadata":{"citations":[{"file":"demo1.pdf","pages":[2,5],"regions":[{"page":2,"point":[20,15],"text":"Account number"}]}],"confidence":1,"reasoning":"Looking at file demo1.pdf, ...","url_citations":[{"cited_text":"Example text from website","title":"Kolena Example","url":"https://example.com/kolena"}]},"start_time":"2025-01-05T03:05:05.000057","status":"success","usage":{"credits_used":0.052},"value":"foo"}},"files":["demo1.pdf","demo2.csv"],"order":["Example Prompt","Another Example"],"run_id":1,"run_url":"https://agents.kolena.com/my_org/agents/1/runs/1","status":"success","updated":"2025-01-05T00:00:00","usage":{"credits_used":0.123}}}},"exampleType":"generated"}},"headers":{"Idempotent-Replayed":{"description":"Set to `true` when an existing Run was returned for the request's `Idempotency-Key` instead of creating a new one. Absent otherwise.","schema":{"type":"string","enum":["true"]}}},"exampleType":"generated"},"eea86bfb-45ad-49c0-99b2-c1b1e34b5b9c":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"oneOf":[{"type":"string","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"integer","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.1","typeLabel":"integer"}],"uniqueKey":"detail.items.[INDEX].loc.items.[INDEX]","typeLabel":"string | integer"},"type":"array","title":"Location","isRequired":true,"uniqueKey":"detail.items.[INDEX].loc","typeLabel":"(string | integer)[]"},"msg":{"type":"string","title":"Message","isRequired":true,"uniqueKey":"detail.items.[INDEX].msg","typeLabel":"string"},"type":{"type":"string","title":"Error Type","isRequired":true,"uniqueKey":"detail.items.[INDEX].type","typeLabel":"string"},"input":{"oneOf":[{"title":"Input"}],"uniqueKey":"detail.items.[INDEX].input","typeLabel":"any"},"ctx":{"type":"object","title":"Context","uniqueKey":"detail.items.[INDEX].ctx","typeLabel":"Context · object"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError","uniqueKey":"detail.items.[INDEX]","typeLabel":"ValidationError · object"},"type":"array","title":"Detail","uniqueKey":"detail","typeLabel":"ValidationError · object[]"}},"type":"object","title":"HTTPValidationError","uniqueKey":"","typeLabel":"HTTPValidationError · object"},"examples":{"Example":{"title":"Example","value":{"detail":[{"loc":["\u003cstring>"],"msg":"\u003cstring>","type":"\u003cstring>","input":"\u003cunknown>","ctx":{}}]}}},"exampleType":"generated"}},"exampleType":"generated"},"23b93069-7985-4edd-8fea-32c145e054f3":{"description":"Too Many Requests","content":{"application/json":{"example":{"detail":"Rate limit exceeded for account (ID 123) in 'starter' tier. Try again in 45.0 seconds. Remaining requests: 0"},"examples":{"Example":{"title":"Example","value":{"detail":"Rate limit exceeded for account (ID 123) in 'starter' tier. Try again in 45.0 seconds. Remaining requests: 0"}}},"exampleType":"examples"}},"headers":{"Retry-After":{"description":"The number of seconds to wait before retrying the request","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"The number of requests remaining in the current rate limit window","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"The time at which the current rate limit window resets, in UTC epoch seconds","schema":{"type":"integer"}}},"exampleType":"examples"}},"security":{"c89ec71d-e9ce-45d5-88f2-d921cdcecd8f":{"HTTPBearer":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`. The `\u003ctoken>` represents your API key, which must be acquired from the Kolena platform.","scopes":[],"schemeName":"HTTPBearer"}}},"servers":{},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`. The `\u003ctoken>` represents your API key, which must be acquired from the Kolena platform.","scopes":[],"schemeName":"HTTPBearer"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`. The `\u003ctoken>` represents your API key, which must be acquired from the Kolena platform.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"HTTPBearer","name":"Authorization"}],"title":"HTTPBearer"}]},"originalFileLocation":"openapi.json"},"subdomain":"kolena","siteName":"Kolena","title":"Add Agent Run (and Wait) - Kolena","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T20:40:12.352Z","originalFileLocation":"api-reference/add-agent-run-wait.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Push data to an Agent Run and wait for results\">\u003cmeta data-mint-head name=\"application-name\" content=\"Kolena\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/kolena/3gGeYDhdmk73d0dO/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/kolena/3gGeYDhdmk73d0dO/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/kolena/3gGeYDhdmk73d0dO/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/kolena/3gGeYDhdmk73d0dO/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/kolena/3gGeYDhdmk73d0dO/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/kolena/3gGeYDhdmk73d0dO/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/kolena/3gGeYDhdmk73d0dO/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/kolena/3gGeYDhdmk73d0dO/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/kolena/3gGeYDhdmk73d0dO/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Add Agent Run (and Wait) - Kolena\">\u003cmeta data-mint-head property=\"og:description\" content=\"Push data to an Agent Run and wait for results\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Kolena\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.agents.kolena.com/api-reference/add-agent-run-wait\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://kolena.mintlify.site/_mintlify/api/og/v2?division=Agents\u0026amp;title=Add+Agent+Run+%28and+Wait%29\u0026amp;description=Push+data+to+an+Agent+Run+and+wait+for+results\u0026amp;theme=bc10cb8463226c42749019bb\u0026amp;signature=038bd392fdafa700c7c8d5a320ecbe7215a49d1f2361ca8d8e7ae03e94676717\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Add Agent Run (and Wait) - Kolena\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Push data to an Agent Run and wait for results\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://kolena.mintlify.site/_mintlify/api/og/v2?division=Agents\u0026amp;title=Add+Agent+Run+%28and+Wait%29\u0026amp;description=Push+data+to+an+Agent+Run+and+wait+for+results\u0026amp;theme=bc10cb8463226c42749019bb\u0026amp;signature=038bd392fdafa700c7c8d5a320ecbe7215a49d1f2361ca8d8e7ae03e94676717\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/kolena/3gGeYDhdmk73d0dO/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Kolena\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6434c1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.agents.kolena.com/api-reference/add-agent-run-wait\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/add-agent-run-wait.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.agents.kolena.com/#organization\",\"name\":\"Kolena\",\"url\":\"https://docs.agents.kolena.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/kolena/RcQQL0B5MRBeobfg/assets/wordmark.png?fit=max\u0026auto=format\u0026n=RcQQL0B5MRBeobfg\u0026q=85\u0026s=75dc903296dd57fc21c61b4d6aadff38\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.agents.kolena.com#website\",\"name\":\"Kolena\",\"url\":\"https://docs.agents.kolena.com\",\"publisher\":{\"@id\":\"https://docs.agents.kolena.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.agents.kolena.com/api-reference/add-agent-run-wait#webpage\",\"url\":\"https://docs.agents.kolena.com/api-reference/add-agent-run-wait\",\"name\":\"Add Agent Run (and Wait)\",\"description\":\"Push data to an Agent Run and wait for results\",\"dateModified\":\"2026-01-07T20:40:12.352Z\",\"isPartOf\":{\"@id\":\"https://docs.agents.kolena.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.agents.kolena.com/api-reference/add-agent-run-wait#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.agents.kolena.com/api-reference/add-agent-run-wait#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Reference\",\"item\":\"https://docs.agents.kolena.com/api-reference/quickstart\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Agents\",\"item\":\"https://docs.agents.kolena.com/api-reference/list-agents\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Add Agent Run (and Wait)\",\"item\":\"https://docs.agents.kolena.com/api-reference/add-agent-run-wait\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.agents.kolena.com/api-reference/add-agent-run-wait#apireference\",\"headline\":\"Add Agent Run (and Wait)\",\"name\":\"Add Agent Run (and Wait)\",\"description\":\"Push data to an Agent Run and wait for results\",\"url\":\"https://docs.agents.kolena.com/api-reference/add-agent-run-wait\",\"mainEntityOfPage\":{\"@id\":\"https://docs.agents.kolena.com/api-reference/add-agent-run-wait#webpage\"},\"dateModified\":\"2026-01-07T20:40:12.352Z\",\"publisher\":{\"@id\":\"https://docs.agents.kolena.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.agents.kolena.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Kolena\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Kolena","nav":{"global":null,"tabs":[{"tab":"Users","pages":[{"title":"Users","href":"/introduction"}]},{"tab":"Developers","groups":[{"group":"Connecting to Kolena","pages":[{"title":"Overview","href":"/connecting-to-kolena"},{"title":"Manage API Keys","href":"/api-keys"}]},{"group":"API Reference","pages":[{"title":"Quickstart Guide","href":"/api-reference/quickstart"},{"group":"Agents","pages":[{"title":"List Agents","openapi":"openapi.json GET /api/v1/client/agents","href":"/api-reference/list-agents"},{"title":"Get Agent","openapi":"openapi.json GET /api/v1/client/agents/{agent_id}","href":"/api-reference/get-agent"},{"title":"Copy Agent","openapi":"openapi.json POST /api/v1/client/agents/{agent_id}/copy","href":"/api-reference/copy-agent"},{"title":"Update Agent","openapi":"openapi.json PATCH /api/v1/client/agents/{agent_id}","href":"/api-reference/update-agent"},{"title":"Add Agent Run","description":"Push data to an Agent Run","openapi":"openapi.json POST /api/v1/client/agents/{agent_id}/runs","href":"/api-reference/add-agent-run"},{"title":"Add Agent Run (and Wait)","openapi":"openapi.json POST /api/v1/client/agents/{agent_id}/runs/wait","href":"/api-reference/add-agent-run-wait"},{"title":"List Agent Runs","description":"Return all Runs for an Agent, including results","openapi":"openapi.json GET /api/v1/client/agents/{agent_id}/runs","href":"/api-reference/list-agent-runs"},{"title":"Get Agent Run","openapi":"openapi.json GET /api/v1/client/agents/{agent_id}/runs/{run_id}","href":"/api-reference/get-agent-run"},{"title":"Download Agent Run Templated Output","openapi":"openapi.json POST /api/v1/client/agents/{agent_id}/runs/{run_id}/templated-output","href":"/api-reference/download-agent-run-templated-output"},{"title":"Download Agent Runs Templated Output","openapi":"openapi.json POST /api/v1/client/agents/{agent_id}/runs/templated-output","href":"/api-reference/download-agent-runs-templated-output"},{"title":"Delete Agent Run","openapi":"openapi.json DELETE /api/v1/client/agents/{agent_id}/runs/{run_id}","href":"/api-reference/delete-agent-run"}]},{"group":"Access Logs","pages":[{"title":"Query Access Logs","openapi":"PUT /api/v1/client/access-logs/query","href":"/api-reference/query-access-logs"}]},{"group":"Ground Truths","pages":[{"title":"Create Ground Truth","openapi":"openapi.json POST /api/v1/client/agents/{agent_id}/ground_truths","href":"/api-reference/ground-truths/create-ground-truth"},{"title":"List Ground Truths","openapi":"openapi.json GET /api/v1/client/agents/{agent_id}/ground_truths","href":"/api-reference/ground-truths/list-ground-truth"},{"title":"Get Ground Truth","openapi":"openapi.json GET /api/v1/client/agents/{agent_id}/ground_truths/{ground_truth_id}","href":"/api-reference/ground-truths/get-ground-truth"},{"title":"Delete Ground Truth","openapi":"openapi.json DELETE /api/v1/client/agents/{agent_id}/ground_truths/{ground_truth_id}","href":"/api-reference/ground-truths/delete-ground-truth"},{"title":"Create Ground Truth Version","openapi":"openapi.json POST /api/v1/client/agents/{agent_id}/ground_truths/{ground_truth_id}/versions","href":"/api-reference/ground-truths/create-ground-truth-version"},{"title":"List Ground Truth Versions","openapi":"openapi.json GET /api/v1/client/agents/{agent_id}/ground_truths/{ground_truth_id}/versions","href":"/api-reference/ground-truths/list-ground-truth-versions"},{"title":"Get Ground Truth Version","openapi":"openapi.json GET /api/v1/client/agents/{agent_id}/ground_truths/{ground_truth_id}/versions/{version}","href":"/api-reference/ground-truths/get-ground-truth-version"},{"title":"Create Validation","openapi":"openapi.json POST /api/v1/client/agents/{agent_id}/ground_truths/{ground_truth_id}/validations","href":"/api-reference/ground-truths/create-validation"},{"title":"List Validations","openapi":"openapi.json GET /api/v1/client/agents/{agent_id}/ground_truths/{ground_truth_id}/validations","href":"/api-reference/ground-truths/list-validations"},{"title":"Get Validation","openapi":"openapi.json GET /api/v1/client/agents/{agent_id}/ground_truths/{ground_truth_id}/validations/{validation_id}","href":"/api-reference/ground-truths/get-validation"},{"title":"Delete Validation","openapi":"openapi.json DELETE /api/v1/client/agents/{agent_id}/ground_truths/{ground_truth_id}/validations/{validation_id}","href":"/api-reference/ground-truths/delete-validation"}]},{"group":"Usage","pages":[{"title":"List Usage Records","openapi":"openapi.json GET /api/v1/client/usage","href":"/api-reference/list-usage-records"}]},{"group":"Workspaces","pages":[{"title":"List Workspaces","openapi":"openapi.json GET /api/v1/client/workspaces","href":"/api-reference/list-workspaces"}]},{"group":"API Keys","pages":[{"title":"Create API Key","openapi":"openapi.json POST /api/v1/client/api-keys","href":"/api-reference/create-api-key"},{"title":"List API Keys","openapi":"openapi.json GET /api/v1/client/api-keys","href":"/api-reference/list-api-keys"},{"title":"Get API Key","openapi":"openapi.json GET /api/v1/client/api-keys/{key_id}","href":"/api-reference/get-api-key"},{"title":"Delete API Key","openapi":"openapi.json DELETE /api/v1/client/api-keys/{key_id}","href":"/api-reference/delete-api-key"}]}]},{"group":"Python Client","pages":[{"title":"Quickstart Guide","href":"/python-client/quickstart"}]},{"group":"Webhook","pages":[{"title":"Webhook Integration","href":"/webhook"}]}]}]},"basePath":"","title":"Add Agent Run (and Wait) - Kolena","buildId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","deploymentId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-5FCzAcfS.js","utils-SLtAG4EZ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-2DZi8ZMu.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D7J3nkzE.js","snippetPresets-D0Alv0AH.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BI4qNJ2c.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BD3uyr8j.js","shallow-D8iEBr5z.js","getApiPlaygroundDisplay-CgNP4lzR.js","CodeSnippet-CX-QHuMs.js","CodeSnippets-VlXE-ZUf.js","Page-D9ithiIZ.js","getPastedJson-DYNQkZ1M.js","icon-CzacdwOi.js","MethodPill-2JVqoYKi.js","DuplicateIcon-_xVXs-U8.js","createIcon-BRHrweLo.js","DynamicMarkdown-mQG_iQiE.js","SectionHeading-DMpJzv8f.js","axios-vUo_bRtp.js","Markdown-5FGIym-8.js","clsx-D-TRO5q5.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CdrJecqK.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-CHlcWBLM.js"]}