Skip to main content
curl -X POST https://api.usenaive.ai/v1/companies/:companyId/ceo/run \
  -H "Authorization: Bearer nv_sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Analyze our competitors and draft a go-to-market strategy"
  }'
{
  "run_id": "run-abc-123",
  "pid": 12345,
  "status": "started"
}

Request Body

FieldTypeRequiredDescription
promptstringYesThe instruction or goal for the CEO to execute
conversationarrayNoPrior conversation context (message objects)
historyarrayNoPrevious run history for continuity

Behavior

The CEO interprets the prompt, proposes a plan (team composition + task breakdown), and after approval executes by hiring employees, creating tasks, and assigning work. The run operates asynchronously — use the stream endpoint to watch progress. All LLM calls are proxied through the API and charged against your credit balance.

Errors

402
{
  "error": {
    "code": "insufficient_credits",
    "message": "Not enough credits for CEO run"
  }
}
503
{
  "error": {
    "code": "container_unavailable",
    "message": "Company container is unreachable"
  }
}