Skip to main content

Create and start an assessment

POST 

/api/v1/assessments

Create an assessment and immediately spawn its workflow agent.

Admission is checked before any credit spend so gated workflows 400 cleanly. Credits are atomically deducted, the assessment record is created, and the workflow agent is spawned via the internal RPC. On any failure after credits are spent, they are refunded.

  • Scope required: assessments:create + manager-or-above role.
  • Rate-limit tier: assessment_create (100/hour/user).
  • For source-code assessments use the draft flow (POST /drafts → upload → POST /drafts/{id}/start) instead.

Request

Responses

Successful Response