Invoke Agent (Async)
Invoke an AI agent asynchronously. Returns immediately with task ID for later polling.
Request
- Base URLhttps://api.xpander.ai (the document declares no server; this is the origin it was published from)
- AuthAPI key in header x-api-key
Path parameters
Query parameters
The agent/workflow version to invoke. default = latest
Request body
Channel engagement-rule action prompts for this turn, rendered into the gateway system context in addition to the agent's instructions.
Channel-binding output-format text for this turn, rendered into the gateway system context in addition to the agent's instructions.
Per-execution override for the LLM provider (e.g. 'openai', 'anthropic'). Falls back to the agent's configured provider when unset.
Per-execution override for the LLM model name. Falls back to the agent's configured model when unset.
A CLI the harness container can run; chosen per conversation, never per agent.
Max tool calls for this execution. The budget belongs to the work, not the agent: a scheduled run knows how much it is worth. Falls back to the agent's setting when unset.
Transport that VERIFIED input.user this turn ('chat' = Bearer session, 'mcp' = OAuth). Set only by the services that resolved the user themselves and stripped from caller-supplied bodies; downstream consent gates key off it.
Pre-rendered cross-channel recency block for channel turns; the gateway appends it to the turn's context verbatim.
Pre-rendered history of the channel thread this turn arrived in; the gateway appends it to the turn's context, and it never becomes part of the user's message.
Pre-rendered text a channel extracted from this message's attachments and links (OCR, transcripts, fetched pages, readable files); the gateway appends it to the turn's context, and it never becomes part of the user's message.
Response
Successful Response
direct: the head row never runs a model turn, every message is one task on the agent; gateway: a router-era head.
Snapshot of the LLM provider used for this execution (request override or agent default at run time).
Snapshot of the LLM model name used for this execution (request override or agent default at run time).
A turn ends when the CLI answers; a resident process stays Executing until the agent finishes it.
A CLI the harness container can run; chosen per conversation, never per agent.
Harness agents only: the resolved built-in tool sets this execution runs with, {"harness": {"enabled": bool}, "xpander": {"enabled": bool}}; inherited per half by later tasks of the conversation unless one names its own.
Max tool calls for this execution; unset leaves the agent's own ceiling in place.
When the conversation was archived; unset while it is live.
Who archived the conversation (user id), when it was.
The agent that archived the conversation on its own, when one did; unset when a person archived it.
When the user deleted the conversation; a deleted conversation never mirrors to history again and reads as not found.
Why a live resident process is waiting rather than working (plan_limit); None otherwise.
When a waiting process resumes on its own (ISO), read from its booked wake; None otherwise.
Changes
No recorded changes to this operation across all 4 revisions of this API.