Skip to main content
POST
/
v1
/
agents
Create an agent
curl --request POST \
  --url https://developer.creao.ai/v1/agents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "input": "Create an equity research agent that writes concise stock analysis memos from a ticker and reporting period."
}
'
{
  "run_id": "11111111-1111-4111-8111-111111111111",
  "status": "pending",
  "agent_id": null,
  "conversation_id": "22222222-2222-4222-8222-222222222222",
  "created_at": "2026-07-03T00:00:00.000Z"
}

Authorizations

Authorization
string
header
default:cr_sk_your_key_here
required

Account API key from Developer Console. Keys start with cr_sk_.

Body

application/json
input
string
required

Natural-language request describing the agent to create. Serialized input must be 256 KB or smaller.

Maximum string length: 262144
conversation_id
string<uuid>

Existing creation conversation to continue. Omit to create a new conversation.

webhook_url
string<uri>

Public http or https URL for the terminal agent-creation result.

Maximum string length: 2048

Response

Agent creation run accepted.

run_id
string<uuid>
required

Developer API run ID.

status
enum<string>
required
Available options:
pending,
running,
completed,
failed,
cancelled
agent_id
string<uuid> | null
required

Agent that ran. Creation runs return null until the agent is created, then the completed run includes the new agent ID.

conversation_id
string<uuid> | null
required

Conversation ID for follow-up runs.

result
object

Final agent output. Completed runs commonly include text; agent-creation runs also include agent_id.

usage
object
error
object
created_at
string<date-time>
started_at
string<date-time> | null
completed_at
string<date-time> | null
webhook_delivered_at
string<date-time> | null