Creates a new agent for the current user in the specified organization.
Also creates the first agent revision.
Revision fields match AgentCreateRequest / AgentRevisionConfigBase (model,
prompts, temperature, PII scrubbing, smart/full document settings, MCP, JSON
structured output, promptCachingEnabled, promptCacheKey). Fields in
AgentRevisionConfigUpdateOnly (reasoningEffort, thinkingEnabled,
thinkingBudgetTokens, searchDomainFilter, searchRecencyFilter)
are not accepted on create; use PUT /api/agents/{agentId} to set them.
Supports optional JSON Structured Output: set jsonOutputEnabled: true and
provide a valid jsonSchema (JSON Schema Draft 7, object or string) to force
the agent's responses into a predefined JSON format. Not available for image
generation models.
Set model to a name from GET /api/models (see example catalog_flow_create_agent).
Then call POST /api/chat with the returned agent id as agentId.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
