Send Agent Message
Changed onStart a Krea Agent session or send a follow-up turn by passing sessionId. Returns immediately while the Agent works in the background. Sessions are visible at the returned url and billed to the workspace's compute unit balance.
The Agent does not ask questions, and cost and permission prompts are approved automatically: include all requirements in the prompt. A session runs one turn at a time.
Attachments accept http(s) URLs and authorized Krea Files URIs (file:<uuid>). Model pins must be included in the workspace plan.
Pass customAgentId, from GET /agent/custom-agents, to start a new session with a workspace custom agent.
Request
- Base URLhttps://api.krea.ai
- AuthHTTP bearer
Request body
Omit to start a new session; pass an existing id to continue it
Transfer reference files that are not otherwise accessible to the Agent here. Usable URLs in the prompt, existing Krea context, and prior session files need not be repeated in attachments. The Agent does not inherit your conversation or attachments. Mentioning OpenAI file_ IDs in prompt text does not transfer their bytes, and those IDs cannot be converted to Krea file URIs.
The LLM for this turn. Omit it for Auto, and send it on every turn that should use a specific model. Must be included in the workspace plan.
The effort for this turn. Omit it for default, and send it on every turn that should use another effort.
Session name, new sessions only
Start the new session with a custom agent from the workspace. New sessions only; a session keeps the custom agent it started with. Custom agents are available on Enterprise workspaces only.
An appId from list_desktop_apps. The Agent then works inside that desktop app for this turn.
Response
The Agent session result.
The pinned LLM this turn runs on, or null when Auto picks it
The effort this turn runs at
Changes
- info
added the new
google/gemini-4-neonenum value to the request propertymodel
- info
- info
added the optional property
required_planto the response with the status - info
added the optional property
required_planto the response with the status
5 more changes in this revision
- info