Skip to main content
POST
Start a Role, Call, or Critic run

Authorizations

Authorization
string
header
required

Bearer token from OAuth 2.1 MCP sign-in, native app sign-in, or a Pro developer API key (es_live_...).

Headers

Idempotency-Key
string

Optional key (1–128 chars) so retries return the existing run instead of drafting twice.

Pattern: ^[A-Za-z0-9._:-]{1,128}$

Body

application/json
product
enum<string>
required
Available options:
role,
call,
critic
text
string
required
Required string length: 1 - 200000

Response

Idempotent replay matching an existing run.

run
object
required