Skip to main content
POST
Propose a keyword setup for a scanned draft

Authorizations

Authorization
string
header
required

Clerk API key. Create one in Settings → API Keys. Pass as Authorization: Bearer <key>. Keys carry a scope — read, write (implies read) or admin (implies write) — chosen when the key is minted. Each operation's security requirement (and its x-required-scope extension) names the minimum scope it needs; request the least-privileged key that covers the operations you call.

Body

application/json
draftId
string
required

The draft_… id a scan returned.

Required string length: 1 - 64
Example:

"draft_k3v9x0q2m1"

force
boolean

Start a new proposal even when the draft already has a current one.

Response

202 response

draftId
string
required

The draft the proposal belongs to — also the {id} to poll.

domain
string
required
status
enum<string>
required

proposing → measuring → sampling → proposing (the agent) → ready | needs_narrowing | failed. Poll until it is one of the last three.

Available options:
scanning,
scanned,
proposing,
measuring,
sampling,
ready,
needs_narrowing,
failed,
applied
stale
boolean
required

The profile was edited after this proposal: propose again.

tier
enum<string> | null
required
Available options:
balanced,
thorough
model
string | null
required
guideVersion
string
required
agentFallback
boolean
required
startedAt
string | null
required
finishedAt
string | null
required
steps
object[]
required
degraded
object[]
required
timeline
object[]
required
proposal
object | null
required

Present once the status is ready or needs_narrowing.