Invoke Agent
POST/v1/agents/:agent_id/versions/:version_id/invoke
Invoke an agent with the provided messages and return the complete response. Use latest as the version_id to invoke the most recent version. The request body accepts messages, optional guardrails, and agent-type-specific parameters such as hxqlQuery for RAG agents.
Status Codes:
200: Agent invoked successfully400: Validation error (invalid input, extra/unknown fields, or incompatible agent type)404: Agent or version not found500: Internal server error502: The model's response was cut off because it reached the configured max_tokens limit. IncreaseinferenceConfig.maxTokensand retry.
Request
Responses
- 200
- 400
- 502
Successful Response
Validation Error
Bad Gateway - The model's response was cut off because it reached the configured max_tokens limit