Create Agent
Authorizations
Your API key sent as a Bearer credential — Authorization: Bearer <api_key>, where <api_key> starts with oi_sk_ (create one via POST /v1/api-keys). Although the field is labelled 'token', paste your API key here. A dashboard JWT is also accepted on this header for the same endpoints.
Body
1 - 255UUID of an LLM model from GET /v1/llm-models. Omit to use the platform-default LLM (OpenAI gpt-4o-mini) so a new user can create an agent with just name and start a web call.
30 <= x <= 72000 <= x <= 11 <= x <= 3002 - 8Template variables interpolated into system_prompt and first_message. Use {{var_name}} placeholders (legacy single-brace {var_name} also works). Per-call variables override these at dispatch time.
0=patient, 1=snappy. Maps to worker min_endpointing_delay.
0 <= x <= 1Top-level speech rate. Overrides tts.speed at the worker when non-default.
0.5 <= x <= 2None, 'office', 'cafe', etc. Store-only this iteration.
64Free-form role context. Prepended to system_prompt at the worker.
Response
Successful Response
Read-only. The system prompt the agent is actually given at call time: the linked LLM model's system_prompt with job_description prepended as a # Role block — exactly as the worker assembles it. Per-call dynamic-variable interpolation and knowledge-base chunks are resolved at runtime and not reflected here. Populated on GET /v1/agents/{id}; null on list responses.