Skip to main content
POST
/
v1
/
agents
/
{agent_id}
/
edits
Edit an agent from instructions
curl --request POST \
  --url https://developer.creao.ai/v1/agents/{agent_id}/edits \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "instructions": "Add a valuation sensitivity table for the selected ticker and include a short note on downside risk."
}
'
const url = 'https://developer.creao.ai/v1/agents/{agent_id}/edits';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: JSON.stringify({
    instructions: 'Add a valuation sensitivity table for the selected ticker and include a short note on downside risk.'
  })
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
import requests

url = "https://developer.creao.ai/v1/agents/{agent_id}/edits"

payload = { "instructions": "Add a valuation sensitivity table for the selected ticker and include a short note on downside risk." }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
{
  "run_id": "11111111-1111-4111-8111-111111111111",
  "agent_id": "00000000-0000-4000-8000-000000000000",
  "status": "queued",
  "created_at": "2026-07-03T10:00:00.000Z",
  "started_at": null,
  "completed_at": null
}
{
  "error": "INVALID_INPUT"
}
{
  "error": "AUTHENTICATION_REQUIRED"
}
{
  "error": "INSUFFICIENT_CREDITS",
  "available": 0,
  "required": 1000
}
{
  "error": "ACCOUNT_BLOCKED"
}
{
  "error": "AGENT_NOT_FOUND"
}
{
  "error": "RATE_LIMITED"
}
{
  "error": "SERVICE_UNAVAILABLE"
}

Authorizations

Authorization
string
header
default:cr_sk_your_key_here
required

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

Path Parameters

agent_id
string<uuid>
required

Personal CREAO agent to edit.

Body

application/json
instructions
string
required

Natural-language description of the changes to make to the agent.

Required string length: 1 - 65536
release_note
string | null

Optional caller-provided release note for the persisted agent update.

Maximum string length: 2000

Response

Agent edit accepted.

run_id
string<uuid>
required

Backing Developer API run ID for polling/debugging.

agent_id
string<uuid>
required
status
enum<string>
required
Available options:
queued,
running,
succeeded,
failed,
cancelled
result
object

Terminal edit result when the edit succeeds.

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