HTTP API
POST
bearerheader
AuthorizationBearer <token>An operator key or the configured token.
application/json- body
answers?A subset of the wizard's steps, as strings. GET /v1/provision lists every step with its prompt, default and choices. Send this or template, not both.
template?stringCreate the agent from a template in this server's sandbox instead of from answers. Needs name; takes vars.
Length
1 <= lengthname?stringThe new agent's name, with template. Its slug becomes the id; the template sees both as {{agent.name}} and {{agent.id}}.
vars?Values for the template's declared variables. A secret variable's value goes to the agent's .env and is never returned.
created; adopted is empty with an error if it is not running
curl -X POST 'http://localhost:7420/v1/agents' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
Empty