Execute the agent with one or more messages. By default a session is created and persisted. Pass persist=false for an ephemeral run that leaves no persisted session.
Response includes a status field: completed (run finished normally) or pending_approval (run paused waiting for tool confirmation; subsequent messages in the request, if any, were not sent). When persist=false is combined with a tool that requires approval, the session is still purged — the caller is responsible for not requesting persist=false against agents that may pause.
A public API key can only run public agents, anonymously: any other agent answers 404, as an unknown one does. The optional user field identifying the end-user requires a secret API key.
Messages to seed the run with. Only role: 'user' messages drive the agent; non-user roles in this list are silently ignored (not persisted, not dispatched). If a user message hits a HITL pause (pending_approval), any remaining messages in the list are not dispatched and must be re-sent after the pause is resolved.
Required array length: 1 - 10 elements
Show child attributes
user
SessionUser · object | null
End-user of a session, addressed by id or by reference.
id is lookup-only: it never writes, so name/email/phone sent with
it are ignored. reference is an upsert key: unknown references are
created, known ones are merged with the display fields provided here —
fields left out keep their stored value.
Defined here (rather than in a surface's schemas.py) because both the
agent and the public/widget surfaces expose the very same field and must
validate it identically. Re-exported by
api/v1/external/agent/schemas.py for backwards compatibility.
Show child attributes
context
Context · object | null
Free-form key/value pairs injected into the agent's system context for this run.
metadata
Metadata · object | null
Integrator-defined storage. Not seen by the agent.
persist
boolean
padrão:true
If true, a session is created and persisted. If false, the run is intended to be ephemeral (current implementation still persists; this will change in a future release).
Resposta
Successful Response
agent_message
Message · object
obrigatório
Show child attributes
session_id
string | null
status
enum<string>
padrão:completed
Opções disponíveis:
completed,
pending_approval
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Documentação - Quintus","colors":{"primary":"#36529f","light":"#6b8fd4","dark":"#1e3a7a"},"logo":{"light":"https://mintcdn.com/quintus-e902af6d/5eGvCEP-eDjvP4dJ/logo-light.svg?fit=max\u0026auto=format\u0026n=5eGvCEP-eDjvP4dJ\u0026q=85\u0026s=23dbc6755fe3529fe663f08097cf8f3a","dark":"https://mintcdn.com/quintus-e902af6d/5eGvCEP-eDjvP4dJ/logo-dark.svg?fit=max\u0026auto=format\u0026n=5eGvCEP-eDjvP4dJ\u0026q=85\u0026s=f6541fefa5b1d0d446c07dce71dde8ee"},"favicon":{"light":"https://mintcdn.com/quintus-e902af6d/5eGvCEP-eDjvP4dJ/favicon-light.png?fit=max\u0026auto=format\u0026n=5eGvCEP-eDjvP4dJ\u0026q=85\u0026s=611f94bcf5deccf8241b5b9d844b6fb6","dark":"https://mintcdn.com/quintus-e902af6d/5eGvCEP-eDjvP4dJ/favicon-dark.png?fit=max\u0026auto=format\u0026n=5eGvCEP-eDjvP4dJ\u0026q=85\u0026s=a6aeb7b8df69ac5b5aa2c012dfb08a4b"},"styling":{"latex":false},"navigation":{"languages":[{"language":"pt-BR","default":true,"href":"pt-BR/public/platform/introduction"},{"language":"en","href":"en/public/platform/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"quintus-e902af6d","hasAudioNarration":false,"actualSubdomain":"quintus-e902af6d","customDomains":["quintus.tec.br"],"gitSource":{"type":"github","owner":"quintus-tec","repo":"quintus-docs","deployBranch":"main","contentDirectory":"mintlify","isPrivate":true,"mountPath":"","label":"","_id":"6b10e5149ffae5051c412f48"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b06012021c429e7792679ab","clientVersion":"0.0.4453","searchFilterCounts":[{"language":"default","tag":"API","count":29},{"language":"default","tag":"Agentes","count":17},{"language":"default","tag":"Chats públicos","count":12},{"language":"en","tag":"Platform","count":7},{"language":"pt-BR","tag":"Plataforma","count":7},{"language":"default","tag":"Mensagens","count":7},{"language":"en","tag":"API","count":6},{"language":"pt-BR","tag":"API","count":6},{"language":"default","tag":"Arquivos","count":6},{"language":"default","tag":"Conversas","count":5},{"language":"default","tag":"Usuários","count":5},{"language":"en","tag":"Getting Started","count":4},{"language":"pt-BR","tag":"Início","count":4},{"language":"default","tag":"Sessões","count":4},{"language":"en","tag":"Agents","count":2},{"language":"en","tag":"Public Chats","count":2},{"language":"en","tag":"Features","count":2},{"language":"pt-BR","tag":"Agentes","count":2},{"language":"pt-BR","tag":"Chats públicos","count":2},{"language":"pt-BR","tag":"Funcionalidades","count":2},{"language":"en","tag":"Integrations","count":1},{"language":"en","tag":"Overview","count":1},{"language":"en","tag":"Chrome extension","count":1},{"language":"pt-BR","tag":"Integrações","count":1},{"language":"pt-BR","tag":"Visão geral","count":1},{"language":"pt-BR","tag":"Extensão para Chrome","count":1},{"language":"default","tag":"Feedback","count":1},{"language":"default","tag":"Runs","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"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":"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":"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":"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":"turbopuffer-dual-write","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":"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":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/runs/run-agent-single-shot","slug":"/api-reference/runs/run-agent-single-shot","pageMetadata":{"title":"Run agent (single-shot)","description":"Execute the agent with one or more messages. By default a session is created and persisted. Pass `persist=false` for an ephemeral run that leaves no persisted session.\n\nResponse includes a `status` field: `completed` (run finished normally) or `pending_approval` (run paused waiting for tool confirmation; subsequent messages in the request, if any, were not sent). When `persist=false` is combined with a tool that requires approval, the session is still purged — the caller is responsible for not requesting `persist=false` against agents that may pause.\n\nA public API key can only run public agents, anonymously: any other agent answers 404, as an unknown one does. The optional `user` field identifying the end-user requires a secret API key.","deprecated":null,"version":null,"openapi":"/agent/api/openapi.json post /v1/agents/{agent_id}/run","href":"/api-reference/runs/run-agent-single-shot","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Execute the agent with one or more messages. By default a session is created and persisted. Pass \", _jsx(_components.code, {\n children: \"persist=false\"\n }), \" for an ephemeral run that leaves no persisted session.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Response includes a \", _jsx(_components.code, {\n children: \"status\"\n }), \" field: \", _jsx(_components.code, {\n children: \"completed\"\n }), \" (run finished normally) or \", _jsx(_components.code, {\n children: \"pending_approval\"\n }), \" (run paused waiting for tool confirmation; subsequent messages in the request, if any, were not sent). When \", _jsx(_components.code, {\n children: \"persist=false\"\n }), \" is combined with a tool that requires approval, the session is still purged — the caller is responsible for not requesting \", _jsx(_components.code, {\n children: \"persist=false\"\n }), \" against agents that may pause.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"A public API key can only run public agents, anonymously: any other agent answers 404, as an unknown one does. The optional \", _jsx(_components.code, {\n children: \"user\"\n }), \" field identifying the end-user requires a secret API key.\"]\n })]\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Run agent (single-shot)","description":"Execute the agent with one or more messages. By default a session is created and persisted. Pass `persist=false` for an ephemeral run that leaves no persisted session.\n\nResponse includes a `status` field: `completed` (run finished normally) or `pending_approval` (run paused waiting for tool confirmation; subsequent messages in the request, if any, were not sent). When `persist=false` is combined with a tool that requires approval, the session is still purged — the caller is responsible for not requesting `persist=false` against agents that may pause.\n\nA public API key can only run public agents, anonymously: any other agent answers 404, as an unknown one does. The optional `user` field identifying the end-user requires a secret API key.","deprecated":null,"version":null,"openapi":"/agent/api/openapi.json post /v1/agents/{agent_id}/run","href":"/api-reference/runs/run-agent-single-shot","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/quintus-e902af6d/efc6d1b1f2a972cd/caht-widget.js","/docs/_mintlify/custom/quintus-e902af6d/58d34273bf1e377f/chat-widget.js"],"openApiReferenceData":{"operation":{"tags":["Runs"],"summary":"Run agent (single-shot)","description":"Execute the agent with one or more messages. By default a session is created and persisted. Pass `persist=false` for an ephemeral run that leaves no persisted session.\n\nResponse includes a `status` field: `completed` (run finished normally) or `pending_approval` (run paused waiting for tool confirmation; subsequent messages in the request, if any, were not sent). When `persist=false` is combined with a tool that requires approval, the session is still purged — the caller is responsible for not requesting `persist=false` against agents that may pause.\n\nA public API key can only run public agents, anonymously: any other agent answers 404, as an unknown one does. The optional `user` field identifying the end-user requires a secret API key.","operationId":"runAgent","parameters":["690bc170-6b48-49c4-ad9e-66335fdd5d6e"],"requestBody":"7508c156-1a50-4b12-ae2f-bf8670caca42","responses":{"201":"2d0cf594-41ef-4854-8743-8f32d85386a0","401":"65dcd1ab-08e1-40cb-8420-040b3f7abf10","403":"eca21a5e-7c96-4078-ace4-3d04ca8cb3d1","404":"55085535-6eef-4ac0-ad55-75ce42434c79","422":"3476c20d-c600-43e9-9290-da5e0cbb8890","429":"45d74e8c-30ae-4cc0-ba83-e166c3655231"},"security":["550fbd62-0354-4980-be8d-2262710bb2ea"],"method":"post","type":"path","servers":["ab80f2c4-4a48-4e87-9e2e-eb11d8d9d98a"],"path":"/v1/agents/{agent_id}/run","baseUrlOptions":["https://api.quintus.tec.br"],"title":"Run agent (single-shot)","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"690bc170-6b48-49c4-ad9e-66335fdd5d6e":{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id","isRequired":true,"uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"messages":{"items":{"properties":{"content":{"oneOf":[{"type":"string","title":"Content","description":"Either a plain string (treated as a single text block) or a list of typed content blocks (text/image/file).","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"properties":{"type":{"type":"string","enum":["text","image","file"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","description":"Present when type=text.","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].text","typeLabel":"string"},"file_id":{"type":"string","description":"Present when type=image|file.","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].file_id","typeLabel":"string"}},"type":"object","required":["type"],"title":"MessageContentBlock","description":"A content block. `type` selects the payload: `text` carries `text`; `image`/`file` carry `file_id`.","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX]","typeLabel":"MessageContentBlock · object"},"title":"Content","description":"Either a plain string (treated as a single text block) or a list of typed content blocks (text/image/file).","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1","typeLabel":"MessageContentBlock · object[]"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].content","typeLabel":"string | MessageContentBlock · object[]"},"role":{"type":"string","enum":["user","assistant"],"title":"Role","default":"user","uniqueKey":"messages.items.[INDEX].role","typeLabel":"enum\u003cstring>"},"metadata":{"oneOf":[{"type":"object","title":"Metadata","description":"Free-form integrator storage attached to this message. Not seen by the agent.","additionalProperties":true,"uniqueKey":"messages.items.[INDEX].metadata.oneOf.0","typeLabel":"Metadata · object"},{"type":"null","title":"Metadata","description":"Free-form integrator storage attached to this message. Not seen by the agent.","uniqueKey":"messages.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].metadata","typeLabel":"Metadata · object | null"}},"type":"object","required":["content"],"title":"MessageCreateRequest","uniqueKey":"messages.items.[INDEX]","typeLabel":"MessageCreateRequest · object"},"type":"array","maxItems":10,"minItems":1,"title":"Messages","description":"Messages to seed the run with. Only `role: 'user'` messages drive the agent; non-user roles in this list are silently ignored (not persisted, not dispatched). If a `user` message hits a HITL pause (`pending_approval`), any remaining messages in the list are not dispatched and must be re-sent after the pause is resolved.","isRequired":true,"uniqueKey":"messages","typeLabel":"MessageCreateRequest · object[]"},"user":{"oneOf":[{"type":"object","title":"SessionUser","description":"End-user of a session, addressed by `id` or by `reference`.\n\n`id` is lookup-only: it never writes, so `name`/`email`/`phone` sent with\nit are ignored. `reference` is an upsert key: unknown references are\ncreated, known ones are merged with the display fields provided here —\nfields left out keep their stored value.\n\nDefined here (rather than in a surface's `schemas.py`) because both the\nagent and the public/widget surfaces expose the very same field and must\nvalidate it identically. Re-exported by\n`api/v1/external/agent/schemas.py` for backwards compatibility.","properties":{"id":{"oneOf":[{"type":"string","title":"Id","uniqueKey":"user.oneOf.0.id.oneOf.0","typeLabel":"string"},{"type":"null","title":"Id","uniqueKey":"user.oneOf.0.id.oneOf.1","typeLabel":"null"}],"uniqueKey":"user.oneOf.0.id","typeLabel":"string | null"},"reference":{"oneOf":[{"type":"string","title":"Reference","description":"Your identifier for this end-user, unique per tenant. Unknown references are created; known ones are merged with the display fields below.","maxLength":128,"pattern":"^[a-zA-Z0-9_\\-:.]+$","uniqueKey":"user.oneOf.0.reference.oneOf.0","typeLabel":"string"},{"type":"null","title":"Reference","description":"Your identifier for this end-user, unique per tenant. Unknown references are created; known ones are merged with the display fields below.","uniqueKey":"user.oneOf.0.reference.oneOf.1","typeLabel":"null"}],"uniqueKey":"user.oneOf.0.reference","typeLabel":"string | null"},"name":{"oneOf":[{"type":"string","title":"Name","description":"Display name. Merged into the stored user only alongside `reference`; ignored when the user is addressed by `id`.","maxLength":255,"uniqueKey":"user.oneOf.0.name.oneOf.0","typeLabel":"string"},{"type":"null","title":"Name","description":"Display name. Merged into the stored user only alongside `reference`; ignored when the user is addressed by `id`.","uniqueKey":"user.oneOf.0.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"user.oneOf.0.name","typeLabel":"string | null"},"email":{"oneOf":[{"type":"string","title":"Email","description":"Email. Merged into the stored user only alongside `reference`; ignored when the user is addressed by `id`.","format":"email","uniqueKey":"user.oneOf.0.email.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","title":"Email","description":"Email. Merged into the stored user only alongside `reference`; ignored when the user is addressed by `id`.","uniqueKey":"user.oneOf.0.email.oneOf.1","typeLabel":"null"}],"uniqueKey":"user.oneOf.0.email","typeLabel":"string\u003cemail> | null"},"phone":{"oneOf":[{"type":"string","title":"Phone","description":"Phone. Merged into the stored user only alongside `reference`; ignored when the user is addressed by `id`.","maxLength":32,"uniqueKey":"user.oneOf.0.phone.oneOf.0","typeLabel":"string"},{"type":"null","title":"Phone","description":"Phone. Merged into the stored user only alongside `reference`; ignored when the user is addressed by `id`.","uniqueKey":"user.oneOf.0.phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"user.oneOf.0.phone","typeLabel":"string | null"}},"uniqueKey":"user.oneOf.0","typeLabel":"SessionUser · object"},{"type":"null","uniqueKey":"user.oneOf.1","typeLabel":"null"}],"uniqueKey":"user","typeLabel":"SessionUser · object | null"},"context":{"oneOf":[{"type":"object","title":"Context","description":"Free-form key/value pairs injected into the agent's system context for this run.","additionalProperties":true,"uniqueKey":"context.oneOf.0","typeLabel":"Context · object"},{"type":"null","title":"Context","description":"Free-form key/value pairs injected into the agent's system context for this run.","uniqueKey":"context.oneOf.1","typeLabel":"null"}],"uniqueKey":"context","typeLabel":"Context · object | null"},"metadata":{"oneOf":[{"type":"object","title":"Metadata","description":"Integrator-defined storage. Not seen by the agent.","additionalProperties":true,"uniqueKey":"metadata.oneOf.0","typeLabel":"Metadata · object"},{"type":"null","title":"Metadata","description":"Integrator-defined storage. Not seen by the agent.","uniqueKey":"metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"metadata","typeLabel":"Metadata · object | null"},"persist":{"type":"boolean","title":"Persist","description":"If true, a session is created and persisted. If false, the run is intended to be ephemeral (current implementation still persists; this will change in a future release).","default":true,"uniqueKey":"persist","typeLabel":"boolean"}},"type":"object","required":["messages"],"title":"RunRequest","uniqueKey":"","typeLabel":"RunRequest · object"},"examples":{"Example":{"title":"Example","value":{"messages":[{"content":"\u003cstring>","role":"user","metadata":{}}],"user":{"id":"\u003cstring>","reference":"\u003cstring>","name":"\u003cstring>","email":"jsmith@example.com","phone":"\u003cstring>"},"context":{},"metadata":{},"persist":true}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"2d0cf594-41ef-4854-8743-8f32d85386a0":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"agent_message":{"properties":{"id":{"type":"string","title":"Id","isRequired":true,"uniqueKey":"agent_message.id","typeLabel":"string"},"role":{"type":"string","enum":["user","assistant"],"title":"Role","isRequired":true,"uniqueKey":"agent_message.role","typeLabel":"enum\u003cstring>"},"content":{"items":{"properties":{"type":{"type":"string","enum":["text","image","file"],"isRequired":true,"uniqueKey":"agent_message.content.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","description":"Present when type=text.","uniqueKey":"agent_message.content.items.[INDEX].text","typeLabel":"string"},"file_id":{"type":"string","description":"Present when type=image|file.","uniqueKey":"agent_message.content.items.[INDEX].file_id","typeLabel":"string"}},"type":"object","required":["type"],"title":"MessageContentBlock","description":"A content block. `type` selects the payload: `text` carries `text`; `image`/`file` carry `file_id`.","uniqueKey":"agent_message.content.items.[INDEX]","typeLabel":"MessageContentBlock · object"},"type":"array","title":"Content","isRequired":true,"uniqueKey":"agent_message.content","typeLabel":"MessageContentBlock · object[]"},"created_at":{"type":"string","format":"date-time","title":"Created At","isRequired":true,"uniqueKey":"agent_message.created_at","typeLabel":"string\u003cdate-time>"},"metadata":{"oneOf":[{"type":"object","title":"Metadata","additionalProperties":true,"uniqueKey":"agent_message.metadata.oneOf.0","typeLabel":"Metadata · object"},{"type":"null","title":"Metadata","uniqueKey":"agent_message.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"agent_message.metadata","typeLabel":"Metadata · object | null"}},"type":"object","required":["id","role","content","created_at"],"title":"Message","isRequired":true,"uniqueKey":"agent_message","typeLabel":"Message · object"},"session_id":{"oneOf":[{"type":"string","title":"Session Id","uniqueKey":"session_id.oneOf.0","typeLabel":"string"},{"type":"null","title":"Session Id","uniqueKey":"session_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"session_id","typeLabel":"string | null"},"status":{"type":"string","enum":["completed","pending_approval"],"title":"Status","default":"completed","uniqueKey":"status","typeLabel":"enum\u003cstring>"}},"type":"object","required":["agent_message"],"title":"RunResponse","uniqueKey":"","typeLabel":"RunResponse · object"},"examples":{"Example":{"title":"Example","value":{"agent_message":{"id":"\u003cstring>","role":"user","content":[{"type":"text","text":"\u003cstring>","file_id":"\u003cstring>"}],"created_at":"2023-11-07T05:31:56Z","metadata":{}},"session_id":"\u003cstring>","status":"completed"}}},"exampleType":"generated"}},"exampleType":"generated"},"65dcd1ab-08e1-40cb-8420-040b3f7abf10":{"description":"Authentication missing or invalid","content":{"application/json":{"schema":{"example":{"error":{"code":"session_token_expired","context":{},"message":"Session token has expired. Refresh to continue.","name":"SessionTokenExpiredError"},"request_id":"5f0c-...","timestamp":"2026-04-27T12:00:00Z"},"properties":{"error":{"properties":{"code":{"type":"string","title":"Code","description":"Stable machine-readable error code (snake_case).","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"name":{"type":"string","title":"Name","description":"Error class name (PascalCase).","isRequired":true,"uniqueKey":"error.name","typeLabel":"string"},"message":{"type":"string","title":"Message","description":"Human-readable explanation.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"context":{"additionalProperties":true,"type":"object","title":"Context","description":"Error-specific structured context (ids, limits, hints).","uniqueKey":"error.context","typeLabel":"Context · object"}},"type":"object","required":["code","name","message"],"title":"ErrorBody","isRequired":true,"uniqueKey":"error","typeLabel":"ErrorBody · object"},"request_id":{"oneOf":[{"type":"string","title":"Request Id","description":"Request ID for support correlation.","uniqueKey":"request_id.oneOf.0","typeLabel":"string"},{"type":"null","title":"Request Id","description":"Request ID for support correlation.","uniqueKey":"request_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"request_id","typeLabel":"string | null"},"timestamp":{"oneOf":[{"type":"string","title":"Timestamp","description":"ISO-8601 server timestamp when the error occurred.","uniqueKey":"timestamp.oneOf.0","typeLabel":"string"},{"type":"null","title":"Timestamp","description":"ISO-8601 server timestamp when the error occurred.","uniqueKey":"timestamp.oneOf.1","typeLabel":"null"}],"uniqueKey":"timestamp","typeLabel":"string | null"}},"required":["error"],"title":"ErrorEnvelope","type":"object","uniqueKey":"","typeLabel":"ErrorEnvelope · object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"session_token_expired","context":{},"message":"Session token has expired. Refresh to continue.","name":"SessionTokenExpiredError"},"request_id":"5f0c-...","timestamp":"2026-04-27T12:00:00Z"}}},"exampleType":"generated"}},"exampleType":"generated"},"eca21a5e-7c96-4078-ace4-3d04ca8cb3d1":{"description":"Authenticated but not allowed for this resource","content":{"application/json":{"schema":{"example":{"error":{"code":"session_token_expired","context":{},"message":"Session token has expired. Refresh to continue.","name":"SessionTokenExpiredError"},"request_id":"5f0c-...","timestamp":"2026-04-27T12:00:00Z"},"properties":{"error":{"properties":{"code":{"type":"string","title":"Code","description":"Stable machine-readable error code (snake_case).","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"name":{"type":"string","title":"Name","description":"Error class name (PascalCase).","isRequired":true,"uniqueKey":"error.name","typeLabel":"string"},"message":{"type":"string","title":"Message","description":"Human-readable explanation.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"context":{"additionalProperties":true,"type":"object","title":"Context","description":"Error-specific structured context (ids, limits, hints).","uniqueKey":"error.context","typeLabel":"Context · object"}},"type":"object","required":["code","name","message"],"title":"ErrorBody","isRequired":true,"uniqueKey":"error","typeLabel":"ErrorBody · object"},"request_id":{"oneOf":[{"type":"string","title":"Request Id","description":"Request ID for support correlation.","uniqueKey":"request_id.oneOf.0","typeLabel":"string"},{"type":"null","title":"Request Id","description":"Request ID for support correlation.","uniqueKey":"request_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"request_id","typeLabel":"string | null"},"timestamp":{"oneOf":[{"type":"string","title":"Timestamp","description":"ISO-8601 server timestamp when the error occurred.","uniqueKey":"timestamp.oneOf.0","typeLabel":"string"},{"type":"null","title":"Timestamp","description":"ISO-8601 server timestamp when the error occurred.","uniqueKey":"timestamp.oneOf.1","typeLabel":"null"}],"uniqueKey":"timestamp","typeLabel":"string | null"}},"required":["error"],"title":"ErrorEnvelope","type":"object","uniqueKey":"","typeLabel":"ErrorEnvelope · object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"session_token_expired","context":{},"message":"Session token has expired. Refresh to continue.","name":"SessionTokenExpiredError"},"request_id":"5f0c-...","timestamp":"2026-04-27T12:00:00Z"}}},"exampleType":"generated"}},"exampleType":"generated"},"55085535-6eef-4ac0-ad55-75ce42434c79":{"description":"Resource not found","content":{"application/json":{"schema":{"example":{"error":{"code":"session_token_expired","context":{},"message":"Session token has expired. Refresh to continue.","name":"SessionTokenExpiredError"},"request_id":"5f0c-...","timestamp":"2026-04-27T12:00:00Z"},"properties":{"error":{"properties":{"code":{"type":"string","title":"Code","description":"Stable machine-readable error code (snake_case).","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"name":{"type":"string","title":"Name","description":"Error class name (PascalCase).","isRequired":true,"uniqueKey":"error.name","typeLabel":"string"},"message":{"type":"string","title":"Message","description":"Human-readable explanation.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"context":{"additionalProperties":true,"type":"object","title":"Context","description":"Error-specific structured context (ids, limits, hints).","uniqueKey":"error.context","typeLabel":"Context · object"}},"type":"object","required":["code","name","message"],"title":"ErrorBody","isRequired":true,"uniqueKey":"error","typeLabel":"ErrorBody · object"},"request_id":{"oneOf":[{"type":"string","title":"Request Id","description":"Request ID for support correlation.","uniqueKey":"request_id.oneOf.0","typeLabel":"string"},{"type":"null","title":"Request Id","description":"Request ID for support correlation.","uniqueKey":"request_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"request_id","typeLabel":"string | null"},"timestamp":{"oneOf":[{"type":"string","title":"Timestamp","description":"ISO-8601 server timestamp when the error occurred.","uniqueKey":"timestamp.oneOf.0","typeLabel":"string"},{"type":"null","title":"Timestamp","description":"ISO-8601 server timestamp when the error occurred.","uniqueKey":"timestamp.oneOf.1","typeLabel":"null"}],"uniqueKey":"timestamp","typeLabel":"string | null"}},"required":["error"],"title":"ErrorEnvelope","type":"object","uniqueKey":"","typeLabel":"ErrorEnvelope · object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"session_token_expired","context":{},"message":"Session token has expired. Refresh to continue.","name":"SessionTokenExpiredError"},"request_id":"5f0c-...","timestamp":"2026-04-27T12:00:00Z"}}},"exampleType":"generated"}},"exampleType":"generated"},"3476c20d-c600-43e9-9290-da5e0cbb8890":{"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"},"45d74e8c-30ae-4cc0-ba83-e166c3655231":{"description":"Rate limit exceeded - see Retry-After header","content":{"application/json":{"schema":{"example":{"error":{"code":"session_token_expired","context":{},"message":"Session token has expired. Refresh to continue.","name":"SessionTokenExpiredError"},"request_id":"5f0c-...","timestamp":"2026-04-27T12:00:00Z"},"properties":{"error":{"properties":{"code":{"type":"string","title":"Code","description":"Stable machine-readable error code (snake_case).","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"name":{"type":"string","title":"Name","description":"Error class name (PascalCase).","isRequired":true,"uniqueKey":"error.name","typeLabel":"string"},"message":{"type":"string","title":"Message","description":"Human-readable explanation.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"context":{"additionalProperties":true,"type":"object","title":"Context","description":"Error-specific structured context (ids, limits, hints).","uniqueKey":"error.context","typeLabel":"Context · object"}},"type":"object","required":["code","name","message"],"title":"ErrorBody","isRequired":true,"uniqueKey":"error","typeLabel":"ErrorBody · object"},"request_id":{"oneOf":[{"type":"string","title":"Request Id","description":"Request ID for support correlation.","uniqueKey":"request_id.oneOf.0","typeLabel":"string"},{"type":"null","title":"Request Id","description":"Request ID for support correlation.","uniqueKey":"request_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"request_id","typeLabel":"string | null"},"timestamp":{"oneOf":[{"type":"string","title":"Timestamp","description":"ISO-8601 server timestamp when the error occurred.","uniqueKey":"timestamp.oneOf.0","typeLabel":"string"},{"type":"null","title":"Timestamp","description":"ISO-8601 server timestamp when the error occurred.","uniqueKey":"timestamp.oneOf.1","typeLabel":"null"}],"uniqueKey":"timestamp","typeLabel":"string | null"}},"required":["error"],"title":"ErrorEnvelope","type":"object","uniqueKey":"","typeLabel":"ErrorEnvelope · object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"session_token_expired","context":{},"message":"Session token has expired. Refresh to continue.","name":"SessionTokenExpiredError"},"request_id":"5f0c-...","timestamp":"2026-04-27T12:00:00Z"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"550fbd62-0354-4980-be8d-2262710bb2ea":{"ApiKey":{"type":"apiKey","in":"header","name":"X-API-Key","scopes":[],"schemeName":"ApiKey"}}},"servers":{"ab80f2c4-4a48-4e87-9e2e-eb11d8d9d98a":{"url":"https://api.quintus.tec.br"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-Key","scopes":[],"schemeName":"ApiKey"},"schema":{"title":"X-API-Key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKey","name":"X-API-Key"}],"title":"ApiKey"}]},"originalFileLocation":"agent/api/openapi.json"},"subdomain":"quintus-e902af6d","siteName":"Documentação - Quintus","title":"Run agent (single-shot) - Documentação - Quintus","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"pt-BR":{"href":"/api-reference/runs/run-agent-single-shot","matchLevel":0},"en":{"href":"/api-reference/runs/run-agent-single-shot","matchLevel":0}}},"lastModified":"2026-11-17T18:15:34.471Z","originalFileLocation":"api-reference/runs/run-agent-single-shot.mdx","locale":"pt-BR"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;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=\"system\"}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=\"Execute the agent with one or more messages. By default a session is created and persisted. Pass persist=false for an ephemeral run that leaves no persisted session. Response includes a status field: completed (run finished normally) or pending_approval (run paused waiting for tool confirmation; subsequent messages in the request, if any, were not sent). When persist=false is combined with a tool that requires approval, the session is still purged — the caller is responsible for not requesting persist=false against agents that may pause. A public API key can only run public agents, anonymously: any other agent answers 404, as an unknown one does. The optional user field identifying the end-user requires a secret API key.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Documentação - Quintus\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/quintus-e902af6d/MVIa_WUBZSqy2gcf/_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=\"/docs/mintlify-assets/_mintlify/favicons/quintus-e902af6d/MVIa_WUBZSqy2gcf/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/quintus-e902af6d/MVIa_WUBZSqy2gcf/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/quintus-e902af6d/MVIa_WUBZSqy2gcf/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/quintus-e902af6d/MVIa_WUBZSqy2gcf/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/quintus-e902af6d/MVIa_WUBZSqy2gcf/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/quintus-e902af6d/MVIa_WUBZSqy2gcf/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/quintus-e902af6d/MVIa_WUBZSqy2gcf/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/quintus-e902af6d/MVIa_WUBZSqy2gcf/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Run agent (single-shot) - Documentação - Quintus\">\u003cmeta data-mint-head property=\"og:description\" content=\"Execute the agent with one or more messages. By default a session is created and persisted. Pass persist=false for an ephemeral run that leaves no persisted session. Response includes a status field: completed (run finished normally) or pending_approval (run paused waiting for tool confirmation; subsequent messages in the request, if any, were not sent). When persist=false is combined with a tool that requires approval, the session is still purged — the caller is responsible for not requesting persist=false against agents that may pause. A public API key can only run public agents, anonymously: any other agent answers 404, as an unknown one does. The optional user field identifying the end-user requires a secret API key.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Documentação - Quintus\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://quintus.tec.br/docs/api-reference/runs/run-agent-single-shot\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://quintus-e902af6d.mintlify.site/docs/_mintlify/api/og/v2?division=Runs\u0026amp;title=Run+agent+%28single-shot%29\u0026amp;description=Execute+the+agent+with+one+or+more+messages.+By+default+a+session+is+created+and+persisted.+Pass+%60persist%3Dfalse%60+for+an+ephemeral+run+that+leaves+no+persisted+s\u0026amp;theme=7d7db0cf6e48999b5e6adcd3\u0026amp;signature=1e9413b504ce5c9e0887dd9fa3bd50fcd16ea02399b7215dc9c972eb62778ca4\">\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=\"Run agent (single-shot) - Documentação - Quintus\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Execute the agent with one or more messages. By default a session is created and persisted. Pass persist=false for an ephemeral run that leaves no persisted session. Response includes a status field: completed (run finished normally) or pending_approval (run paused waiting for tool confirmation; subsequent messages in the request, if any, were not sent). When persist=false is combined with a tool that requires approval, the session is still purged — the caller is responsible for not requesting persist=false against agents that may pause. A public API key can only run public agents, anonymously: any other agent answers 404, as an unknown one does. The optional user field identifying the end-user requires a secret API key.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://quintus-e902af6d.mintlify.site/docs/_mintlify/api/og/v2?division=Runs\u0026amp;title=Run+agent+%28single-shot%29\u0026amp;description=Execute+the+agent+with+one+or+more+messages.+By+default+a+session+is+created+and+persisted.+Pass+%60persist%3Dfalse%60+for+an+ephemeral+run+that+leaves+no+persisted+s\u0026amp;theme=7d7db0cf6e48999b5e6adcd3\u0026amp;signature=1e9413b504ce5c9e0887dd9fa3bd50fcd16ea02399b7215dc9c972eb62778ca4\">\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=\"/docs/mintlify-assets/_mintlify/favicons/quintus-e902af6d/MVIa_WUBZSqy2gcf/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Documentação - Quintus\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#36529f\">\u003clink data-mint-head rel=\"canonical\" href=\"https://quintus.tec.br/docs/api-reference/runs/run-agent-single-shot\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/runs/run-agent-single-shot.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://quintus.tec.br/#organization\",\"name\":\"Documentação - Quintus\",\"url\":\"https://quintus.tec.br\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/quintus-e902af6d/5eGvCEP-eDjvP4dJ/logo-light.svg?fit=max\u0026auto=format\u0026n=5eGvCEP-eDjvP4dJ\u0026q=85\u0026s=23dbc6755fe3529fe663f08097cf8f3a\"}},{\"@type\":\"WebSite\",\"@id\":\"https://quintus.tec.br/docs#website\",\"name\":\"Documentação - Quintus\",\"url\":\"https://quintus.tec.br/docs\",\"publisher\":{\"@id\":\"https://quintus.tec.br/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://quintus.tec.br/docs/api-reference/runs/run-agent-single-shot#webpage\",\"url\":\"https://quintus.tec.br/docs/api-reference/runs/run-agent-single-shot\",\"name\":\"Run agent (single-shot)\",\"description\":\"Execute the agent with one or more messages. By default a session is created and persisted. Pass persist=false for an ephemeral run that leaves no persisted session. Response includes a status field: completed (run finished normally) or pending_approval (run paused waiting for tool confirmation; subsequent messages in the request, if any, were not sent). When persist=false is combined with a tool that requires approval, the session is still purged — the caller is responsible for not requesting persist=false against agents that may pause. A public API key can only run public agents, anonymously: any other agent answers 404, as an unknown one does. The optional user field identifying the end-user requires a secret API key.\",\"dateModified\":\"2026-11-17T18:15:34.471Z\",\"isPartOf\":{\"@id\":\"https://quintus.tec.br/docs#website\"},\"breadcrumb\":{\"@id\":\"https://quintus.tec.br/docs/api-reference/runs/run-agent-single-shot#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://quintus.tec.br/docs/api-reference/runs/run-agent-single-shot#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Agentes\",\"item\":\"https://quintus.tec.br/docs/pt-BR/public/api/agents/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Run agent (single-shot)\",\"item\":\"https://quintus.tec.br/docs/api-reference/runs/run-agent-single-shot\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://quintus.tec.br/docs/api-reference/runs/run-agent-single-shot#apireference\",\"headline\":\"Run agent (single-shot)\",\"name\":\"Run agent (single-shot)\",\"description\":\"Execute the agent with one or more messages. By default a session is created and persisted. Pass persist=false for an ephemeral run that leaves no persisted session. Response includes a status field: completed (run finished normally) or pending_approval (run paused waiting for tool confirmation; subsequent messages in the request, if any, were not sent). When persist=false is combined with a tool that requires approval, the session is still purged — the caller is responsible for not requesting persist=false against agents that may pause. A public API key can only run public agents, anonymously: any other agent answers 404, as an unknown one does. The optional user field identifying the end-user requires a secret API key.\",\"url\":\"https://quintus.tec.br/docs/api-reference/runs/run-agent-single-shot\",\"mainEntityOfPage\":{\"@id\":\"https://quintus.tec.br/docs/api-reference/runs/run-agent-single-shot#webpage\"},\"dateModified\":\"2026-11-17T18:15:34.471Z\",\"publisher\":{\"@id\":\"https://quintus.tec.br/#organization\"},\"isPartOf\":{\"@id\":\"https://quintus.tec.br/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Documentação - Quintus\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Documentação - Quintus\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/api-reference/runs/run-agent-single-shot.md","siteName":"Documentação - Quintus","nav":{"global":null,"languages":[{"language":"pt-BR","default":true,"tabs":[{"tab":"Plataforma","pages":[{"title":"Plataforma","href":"/pt-BR/public/platform/introduction"}]},{"tab":"API","groups":[{"group":"Visão geral","pages":[{"title":"APIs da Quintus","href":"/pt-BR/public/api/introduction"}]},{"group":"Integrações","pages":[{"title":"Identidade do usuário em conectores e webhooks","href":"/pt-BR/public/api/integrations/identidade-do-usuario"}]},{"group":"Agentes","pages":[{"title":"Visão geral","href":"/pt-BR/public/api/agents/overview"},{"title":"Autenticação de agentes","description":"Como autenticar chamadas na API server-to-server de agentes.","href":"/pt-BR/public/api/agents/authentication"},{"group":"Runs","pages":[{"title":"Run agent (single-shot)","deprecated":null,"version":null,"openapi":"/agent/api/openapi.json post /v1/agents/{agent_id}/run","href":"/api-reference/runs/run-agent-single-shot"}]},{"group":"Sessões","pages":[{"title":"Create session","description":"Create a stateful session bound to an agent. Requires a secret API key: a public key reaches a conversation only through `POST /v1/public/agent/conversations` and its session token. The optional `user` field references an existing user (use POST /users to create one).","deprecated":null,"version":null,"openapi":"/agent/api/openapi.json post /v1/agents/{agent_id}/sessions","href":"/api-reference/sessions/create-session"},{"title":"List sessions","deprecated":null,"version":null,"openapi":"/agent/api/openapi.json get /v1/agents/sessions","href":"/api-reference/sessions/list-sessions"},{"title":"Get session","deprecated":null,"version":null,"openapi":"/agent/api/openapi.json get /v1/agents/sessions/{session_id}","href":"/api-reference/sessions/get-session"},{"title":"Terminate session","deprecated":null,"version":null,"openapi":"/agent/api/openapi.json post /v1/agents/sessions/{session_id}/terminate","href":"/api-reference/sessions/terminate-session"}]},{"group":"Mensagens","pages":[{"title":"Send message","deprecated":null,"version":null,"openapi":"/agent/api/openapi.json post /v1/agents/sessions/{session_id}/messages","href":"/api-reference/messages/send-message"},{"title":"List messages","deprecated":null,"version":null,"openapi":"/public/api/openapi.json get /v1/public/agents/conversations/{conversation_id}/messages","href":"/api-reference/messages/list-messages"},{"title":"Get message","deprecated":null,"version":null,"openapi":"/agent/api/openapi.json get /v1/agents/sessions/{session_id}/messages/{message_id}","href":"/api-reference/messages/get-message"},{"title":"Send message (streaming)","deprecated":null,"version":null,"openapi":"/agent/api/openapi.json post /v1/agents/sessions/{session_id}/messages/stream","href":"/api-reference/messages/send-message-streaming"}]},{"group":"Arquivos","pages":[{"title":"Upload file","deprecated":null,"version":null,"openapi":"/agent/api/openapi.json post /v1/agents/files","href":"/api-reference/files/upload-file"},{"title":"List files","deprecated":null,"version":null,"openapi":"/agent/api/openapi.json get /v1/agents/files","href":"/api-reference/files/list-files"},{"title":"Get file metadata","deprecated":null,"version":null,"openapi":"/agent/api/openapi.json get /v1/agents/files/{file_id}","href":"/api-reference/files/get-file-metadata"},{"title":"Delete file","deprecated":null,"version":null,"openapi":"/agent/api/openapi.json delete /v1/agents/files/{file_id}","href":"/api-reference/files/delete-file"}]},{"group":"Usuários","pages":[{"title":"Create user","deprecated":null,"version":null,"openapi":"/agent/api/openapi.json post /v1/agents/users","href":"/api-reference/users/create-user"},{"title":"List users","deprecated":null,"version":null,"openapi":"/agent/api/openapi.json get /v1/agents/users","href":"/api-reference/users/list-users"},{"title":"Get user","deprecated":null,"version":null,"openapi":"/agent/api/openapi.json get /v1/agents/users/{user_id}","href":"/api-reference/users/get-user"},{"title":"Update user","deprecated":null,"version":null,"openapi":"/agent/api/openapi.json patch /v1/agents/users/{user_id}","href":"/api-reference/users/update-user"},{"title":"Delete user","deprecated":null,"version":null,"openapi":"/agent/api/openapi.json delete /v1/agents/users/{user_id}","href":"/api-reference/users/delete-user"}]}]},{"group":"Chats públicos","pages":[{"title":"Visão geral","href":"/pt-BR/public/api/public-agents/overview"},{"title":"Autenticação de agentes públicos","href":"/pt-BR/public/api/public-agents/authentication"},{"group":"Conversas","pages":[{"title":"Create a conversation","deprecated":null,"version":null,"openapi":"/public/api/openapi.json post /v1/public/agents/conversations","href":"/api-reference/conversations/create-a-conversation"},{"title":"Get conversation state","deprecated":null,"version":null,"openapi":"/public/api/openapi.json get /v1/public/agents/conversations/{conversation_id}","href":"/api-reference/conversations/get-conversation-state"},{"title":"Terminate a conversation","deprecated":null,"version":null,"openapi":"/public/api/openapi.json post /v1/public/agents/conversations/{conversation_id}/terminate","href":"/api-reference/conversations/terminate-a-conversation"},{"title":"Refresh the session token of a conversation","deprecated":null,"version":null,"openapi":"/public/api/openapi.json post /v1/public/agents/conversations/{conversation_id}/token/refresh","href":"/api-reference/conversations/refresh-the-session-token-of-a-conversation"},{"title":"Generate an inactivity message","deprecated":null,"version":null,"openapi":"/public/api/openapi.json post /v1/public/agents/conversations/{conversation_id}/inactivity","href":"/api-reference/conversations/generate-an-inactivity-message"}]},{"group":"Mensagens","pages":[{"title":"Send a message","deprecated":null,"version":null,"openapi":"/public/api/openapi.json post /v1/public/agents/conversations/{conversation_id}/messages","href":"/api-reference/messages/send-a-message"},{"title":"List messages","deprecated":null,"version":null,"openapi":"/public/api/openapi.json get /v1/public/agents/conversations/{conversation_id}/messages","href":"/api-reference/messages/list-messages"},{"title":"Get a single message","deprecated":null,"version":null,"openapi":"/public/api/openapi.json get /v1/public/agents/conversations/{conversation_id}/messages/{message_id}","href":"/api-reference/messages/get-a-single-message"},{"title":"Send a message (streaming)","deprecated":null,"version":null,"openapi":"/public/api/openapi.json post /v1/public/agents/conversations/{conversation_id}/messages/stream","href":"/api-reference/messages/send-a-message-streaming"}]},{"group":"Arquivos","pages":[{"title":"Upload a file to a conversation","deprecated":null,"version":null,"openapi":"/public/api/openapi.json post /v1/public/agents/conversations/{conversation_id}/files","href":"/api-reference/files/upload-a-file-to-a-conversation"},{"title":"List conversation files","deprecated":null,"version":null,"openapi":"/public/api/openapi.json get /v1/public/agents/conversations/{conversation_id}/files","href":"/api-reference/files/list-conversation-files"}]},{"group":"Feedback","pages":[{"title":"Submit feedback for the conversation","deprecated":null,"version":null,"openapi":"/public/api/openapi.json post /v1/public/agents/conversations/{conversation_id}/feedback","href":"/api-reference/feedback/submit-feedback-for-the-conversation"}]}]}]}]},{"language":"en","tabs":[{"tab":"Platform","pages":[{"title":"Platform","href":"/en/public/platform/introduction"}]},{"tab":"API","groups":[{"group":"Overview","pages":[{"title":"Quintus APIs","href":"/en/public/api/introduction"}]},{"group":"Integrations","pages":[{"title":"User identity in connectors and webhooks","href":"/en/public/api/integrations/user-identity"}]},{"group":"Agents","pages":[{"title":"Overview","href":"/en/public/api/agents/overview"},{"title":"Agent authentication","description":"How to authenticate requests to the server-to-server agents API.","href":"/en/public/api/agents/authentication"},{"group":"Runs","pages":[{"title":"Run agent (single-shot)","deprecated":null,"version":null,"openapi":"/agent/api/openapi.json post /v1/agents/{agent_id}/run","href":"/api-reference/runs/run-agent-single-shot"}]},{"group":"Sessions","pages":[{"title":"Create session","description":"Create a stateful session bound to an agent. Requires a secret API key: a public key reaches a conversation only through `POST /v1/public/agent/conversations` and its session token. The optional `user` field references an existing user (use POST /users to create one).","deprecated":null,"version":null,"openapi":"/agent/api/openapi.json post /v1/agents/{agent_id}/sessions","href":"/api-reference/sessions/create-session"},{"title":"List sessions","deprecated":null,"version":null,"openapi":"/agent/api/openapi.json get /v1/agents/sessions","href":"/api-reference/sessions/list-sessions"},{"title":"Get session","deprecated":null,"version":null,"openapi":"/agent/api/openapi.json get /v1/agents/sessions/{session_id}","href":"/api-reference/sessions/get-session"},{"title":"Terminate session","deprecated":null,"version":null,"openapi":"/agent/api/openapi.json post /v1/agents/sessions/{session_id}/terminate","href":"/api-reference/sessions/terminate-session"}]},{"group":"Messages","pages":[{"title":"Send message","deprecated":null,"version":null,"openapi":"/agent/api/openapi.json post /v1/agents/sessions/{session_id}/messages","href":"/api-reference/messages/send-message"},{"title":"List messages","deprecated":null,"version":null,"openapi":"/public/api/openapi.json get /v1/public/agents/conversations/{conversation_id}/messages","href":"/api-reference/messages/list-messages"},{"title":"Get message","deprecated":null,"version":null,"openapi":"/agent/api/openapi.json get /v1/agents/sessions/{session_id}/messages/{message_id}","href":"/api-reference/messages/get-message"},{"title":"Send message (streaming)","deprecated":null,"version":null,"openapi":"/agent/api/openapi.json post /v1/agents/sessions/{session_id}/messages/stream","href":"/api-reference/messages/send-message-streaming"}]},{"group":"Files","pages":[{"title":"Upload file","deprecated":null,"version":null,"openapi":"/agent/api/openapi.json post /v1/agents/files","href":"/api-reference/files/upload-file"},{"title":"List files","deprecated":null,"version":null,"openapi":"/agent/api/openapi.json get /v1/agents/files","href":"/api-reference/files/list-files"},{"title":"Get file metadata","deprecated":null,"version":null,"openapi":"/agent/api/openapi.json get /v1/agents/files/{file_id}","href":"/api-reference/files/get-file-metadata"},{"title":"Delete file","deprecated":null,"version":null,"openapi":"/agent/api/openapi.json delete /v1/agents/files/{file_id}","href":"/api-reference/files/delete-file"}]},{"group":"Users","pages":[{"title":"Create user","deprecated":null,"version":null,"openapi":"/agent/api/openapi.json post /v1/agents/users","href":"/api-reference/users/create-user"},{"title":"List users","deprecated":null,"version":null,"openapi":"/agent/api/openapi.json get /v1/agents/users","href":"/api-reference/users/list-users"},{"title":"Get user","deprecated":null,"version":null,"openapi":"/agent/api/openapi.json get /v1/agents/users/{user_id}","href":"/api-reference/users/get-user"},{"title":"Update user","deprecated":null,"version":null,"openapi":"/agent/api/openapi.json patch /v1/agents/users/{user_id}","href":"/api-reference/users/update-user"},{"title":"Delete user","deprecated":null,"version":null,"openapi":"/agent/api/openapi.json delete /v1/agents/users/{user_id}","href":"/api-reference/users/delete-user"}]}]},{"group":"Public Chats","pages":[{"title":"Overview","href":"/en/public/api/public-agents/overview"},{"title":"Public agent authentication","href":"/en/public/api/public-agents/authentication"},{"group":"Conversations","pages":[{"title":"Create a conversation","deprecated":null,"version":null,"openapi":"/public/api/openapi.json post /v1/public/agents/conversations","href":"/api-reference/conversations/create-a-conversation"},{"title":"Get conversation state","deprecated":null,"version":null,"openapi":"/public/api/openapi.json get /v1/public/agents/conversations/{conversation_id}","href":"/api-reference/conversations/get-conversation-state"},{"title":"Terminate a conversation","deprecated":null,"version":null,"openapi":"/public/api/openapi.json post /v1/public/agents/conversations/{conversation_id}/terminate","href":"/api-reference/conversations/terminate-a-conversation"},{"title":"Refresh the session token of a conversation","deprecated":null,"version":null,"openapi":"/public/api/openapi.json post /v1/public/agents/conversations/{conversation_id}/token/refresh","href":"/api-reference/conversations/refresh-the-session-token-of-a-conversation"},{"title":"Generate an inactivity message","deprecated":null,"version":null,"openapi":"/public/api/openapi.json post /v1/public/agents/conversations/{conversation_id}/inactivity","href":"/api-reference/conversations/generate-an-inactivity-message"}]},{"group":"Messages","pages":[{"title":"Send a message","deprecated":null,"version":null,"openapi":"/public/api/openapi.json post /v1/public/agents/conversations/{conversation_id}/messages","href":"/api-reference/messages/send-a-message"},{"title":"List messages","deprecated":null,"version":null,"openapi":"/public/api/openapi.json get /v1/public/agents/conversations/{conversation_id}/messages","href":"/api-reference/messages/list-messages"},{"title":"Get a single message","deprecated":null,"version":null,"openapi":"/public/api/openapi.json get /v1/public/agents/conversations/{conversation_id}/messages/{message_id}","href":"/api-reference/messages/get-a-single-message"},{"title":"Send a message (streaming)","deprecated":null,"version":null,"openapi":"/public/api/openapi.json post /v1/public/agents/conversations/{conversation_id}/messages/stream","href":"/api-reference/messages/send-a-message-streaming"}]},{"group":"Files","pages":[{"title":"Upload a file to a conversation","deprecated":null,"version":null,"openapi":"/public/api/openapi.json post /v1/public/agents/conversations/{conversation_id}/files","href":"/api-reference/files/upload-a-file-to-a-conversation"},{"title":"List conversation files","deprecated":null,"version":null,"openapi":"/public/api/openapi.json get /v1/public/agents/conversations/{conversation_id}/files","href":"/api-reference/files/list-conversation-files"}]},{"group":"Feedback","pages":[{"title":"Submit feedback for the conversation","deprecated":null,"version":null,"openapi":"/public/api/openapi.json post /v1/public/agents/conversations/{conversation_id}/feedback","href":"/api-reference/feedback/submit-feedback-for-the-conversation"}]}]}]}]}]},"basePath":"","title":"Run agent (single-shot) - Documentação - Quintus","deploymentId":"dpl_2Ja9WRbxdgSB12oQLm2PJEkKFtyF","buildId":"dpl_2Ja9WRbxdgSB12oQLm2PJEkKFtyF","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BRitsR0X.js","snippetPresets-ClE-XDYq.js","utils-D6GoSh4e.js","style-to-object-BY3JEAdk.js","utils-BIoBCscf.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-ClAGMcC7.js","conditional-requirements-CFM0id0Q.js","cloneDeep-VcQHkM8O.js","_Uint8Array-BfowNb6O.js","isObject-FP1Yky1u.js","ApiExamples-gV0dyvs0.js","usePlaygroundInputsStore-QAOp9JcQ.js","shallow-DLiYnRHF.js","isEqual-B63f8KZd.js","CodeSnippets-B-SXZBSI.js","CodeSnippet-Cw6ZDxau.js","use-playground-group-access-BXw3xK_V.js","Page-DwujvZXi.js","api-description-markdown-BMIBo-8n.js","DynamicMarkdown-CyCIQ57E.js","SectionHeading-ZEhuRMG2.js","MethodPill-DdAh6fqq.js","getPastedJson-Be2hTcbl.js","Check2Icon-BGQQTXrd.js","axios-CsQoIw0U.js","Markdown-Ds13Nbmo.js","AssistantPageLink-BHEn5OEQ.js","dist-DyDOH6EY.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}