Create an agent
Creates an AI agent with its instructions, model, voice and capabilities. It answers no conversation until you assign it to one or make it a channel default in Ricky.
Scope: agents:write.
bearerAuthAuthorizationBearer <token>An organization API key, rky_live_…, created in Settings → API. Send it only from a server.
Idempotency-Key?stringOptional. A value you choose, unique per logical write, 8–200 characters: a UUID or an ID from your system such as order-10482-ready. Retrying with the same key and body replays the first response instead of repeating the write.
8 <= length <= 200application/json- body
Only name is required; it does not connect the agent to any channel.
name*stringName the team sees.
1 <= length <= 120description?|What the agent is for.
instructions?|How the agent answers customers.
model?stringA model id of GET /agent-options. Without one, the default model.
length <= 200voice?stringA voice of GET /agent-options. Without one, the default voice.
length <= 100capabilities?array<>The complete set of capability names. Replaces the current ones.
items <= 200handoff_user_ids?array<>The complete set of members who receive handed-off conversations. Required with ricky.handoff.request.
items <= 100Success.
application/json- response
data*An AI agent that answers conversations alongside the team.
curl -X POST 'https://getricky.ai/api/v1/agents' \ -H 'Idempotency-Key: order-10482-ready' \ -H 'Content-Type: application/json' \ -d '{ "name": "Asistente de ventas", "instructions": "Saluda por el nombre y confirma el pedido antes de dar la fecha de entrega.", "capabilities": [ "ricky.handoff.request" ], "handoff_user_ids": [ "2d4f6a8c-1b3d-4e5f-8a7b-9c0d1e2f3a4b" ]}'{ "data": { "id": "7e8f9a0b-1c2d-4e3f-a4b5-c6d7e8f9a0b1", "name": "Asistente de ventas", "description": "Atiende consultas de pedidos y horarios.", "instructions": "Saluda por el nombre y confirma el pedido antes de dar la fecha de entrega.", "model": "deepseek/deepseek-v4.1-flash", "voice": "diana", "capabilities": [ "ricky.handoff.request" ], "handoff_user_ids": [ "2d4f6a8c-1b3d-4e5f-8a7b-9c0d1e2f3a4b" ], "created_at": "2026-10-14T15:30:00.000Z", "updated_at": "2026-10-14T15:30:00.000Z", "archived_at": "2026-10-14T15:30:00.000Z" }}