Skip to main content
POST
Create an assessment that defines the coding task candidates will complete. You can link it to an OSS issue from the Promptster problem library, or provide your own task brief and repo URL.

Authentication

Requires an org API key with an active subscription.
string
required
The assessment title shown to candidates and in the dashboard.
string
required
The role this assessment is for (e.g. “Senior Frontend Engineer”).
string
Markdown description of the task. Required if issueId is not provided. Auto-populated from the issue if omitted.
string
URL of the repository candidates will work in. Must be a valid URL.
string
ID of an OSS issue from the Promptster problem library. When provided, the task brief is auto-populated from the issue.
integer
Time limit for the assessment in minutes. Must be a positive integer.
integer
default:"7"
Number of days before candidate keys expire. Must be a positive integer.
number
Maximum token spend allowed per candidate in USD. Must be positive and at most 1000. Claude Code and Codex draw from this single shared per-candidate budget — allowing both tools does not double it.
string[]
default:"[\"claude\",\"codex\",\"cursor\"]"
Which AI coding tools the candidate may use. One or more of:
  • claude — Claude Code. Requires an org Anthropic key.
  • codex — Codex CLI. Requires an org OpenAI key.
  • cursor — Cursor. The candidate brings their own Cursor subscription, so no org key is needed.
If you omit this field, it is auto-derived from the provider keys your org has configured: claude is included if a usable Anthropic key resolves, codex if a usable OpenAI key resolves, and cursor is always included.If you set it explicitly, your org must have a usable key for each selected tool’s provider (claude → Anthropic, codex → OpenAI; cursor needs none), otherwise creation fails with 400 { "code": "byok_required" }.
string
default:"org_default"
Which Anthropic key the assessment uses when claude is allowed. org_default uses your org’s default Anthropic key; byok uses the specific key named by anthropicKeyId.
string
ID (UUID) of the Anthropic key to use when anthropicKeyMode is byok. Discover key IDs via List Provider Keys. An invalid or unknown ID fails with 400 { "code": "byok_key_invalid" }.
string
default:"org_default"
Which OpenAI key the assessment uses when codex is allowed. org_default uses your org’s default OpenAI key; byok uses the specific key named by openaiKeyId.
string
ID (UUID) of the OpenAI key to use when openaiKeyMode is byok. Discover key IDs via List Provider Keys. An invalid or unknown ID fails with 400 { "code": "byok_key_invalid" }.
To select a specific provider key, first call List Provider Keys to find its id, then pass it as anthropicKeyId or openaiKeyId.
object
The created assessment object.