Skip to main content

Overview

CREAO supports two API paths for running agents programmatically: Both paths run CREAO agents you own and consume credits from your CREAO account balance. Developer Platform can also create personal agents, update agents by replacing provided fields, and request natural-language edits. They are current supported paths with different key scopes, route families, and request shapes.
For the Developer Platform endpoint reference, see the API Reference. For a side-by-side contract summary, see API Paths.
API keys are server-side secrets. Do not put capi_ or cr_sk_ keys in browser frontend code, mobile apps, public repositories, client logs, or analytics events.

Which path should I use?

Use the app-scoped API Trigger when you want a key that can run only one agent. This is the path shown from the agent page in agent.creao.ai, and it uses inputs in the request body. Use Developer Platform when your backend owns an account-level integration. Developer Platform keys can create, edit, and run personal agents owned by the same account, use agent_id and input, and support async polling, realtime SSE, webhooks, and account-level analytics.

App-scoped API Trigger

Create an app-scoped API key from the agent detail page in agent.creao.ai. The key starts with capi_ and is scoped to that agent.

Create a run

The response is accepted for background execution:

Poll a run

Poll until status becomes completed, failed, or cancelled.

Developer Platform API

Create an Account API key in Developer Console. Developer Platform keys start with cr_sk_ and are sent as Bearer tokens to developer.creao.ai/v1/*.
1

Create an Account API key

Open Developer Console, go to API Keys, and create a key. Store the full key immediately because it is shown only once.
2

Find the agent ID

Start a personal-agent creation run through POST /v1/agents and poll it for the new agent_id, or open Agents in Developer Console and copy the agent_id for an existing agent. Browser-based editing, files, schedules, and debugging still live in agent.creao.ai.
3

Create an async run

The API returns 202 Accepted with a run ID and conversation ID:
4

Poll for the result

Poll until status becomes completed, failed, or cancelled.

Developer Platform reference

Create an agent

JSON body

Returns 202 Accepted with a queued run_id, conversation_id, and agent_id: null. Poll GET /v1/runs/:run_id; when the creation run completes, the response includes the new agent ID in both agent_id and result.agent_id.

Update an agent

Update an agent by replacing provided fields. Omitted fields are unchanged; this endpoint does not interpret natural-language instructions. The body can include any supported create field plus optional release_note. The target must be a personal agent owned by the Account key owner. Team, shared, deleted, or foreign agents return AGENT_NOT_FOUND.

Edit an agent from instructions

Start an async natural-language edit for an agent. Use this when your product wants to say what should change, for example:
Returns 202 Accepted with run_id, agent_id, status, and timestamps. Poll GET /v1/agents/:agent_id/edits/:run_id until status is succeeded, failed, or cancelled.

Create an async run

JSON body

Returns 202 Accepted with a run object.

Get run status

Returns the run object for the authenticated Account key owner.

List runs

Query parameters: Response:

Realtime runs

Use Developer Platform realtime runs when your backend wants streamed progress and output.
Body fields: Example:
The response is text/event-stream. Events include:

Conversations

Pass a previous conversation_id to continue the same thread of work with the same agent through Developer Platform:

Webhooks

Developer Platform async runs can deliver the terminal result to your backend:
webhook_url must be a publicly reachable http or https URL. URLs pointing to private networks are rejected.

Keep request shapes separate

Do not mix the two route families:

Rate limits

Developer Platform requests are account-scoped and enforced before execution starts. The Developer Console dashboard shows your plan, available credits, and active rate limit.