Skip to content

API: specs

Status: GA Access: token required API contract: 0.3.0 · capability 2026-09-03.1 View as Markdown Open in Claude Open in ChatGPT

List Specs

Open as a page →

: list all specs sorted by id descending.

Auth: Authorization: Bearer <token> required

Responses:

CodeMeaningBody
200Successful ResponseSpecListResponse
401Missing or invalid authentication credentialsErrorResponse

Get Spec

Open as a page →

: detail with frontmatter, body, sections, tests_status.

Auth: Authorization: Bearer <token> required

ParameterInRequiredTypeDescription
spec_idpathyesstring

Responses:

CodeMeaningBody
200Successful ResponseSpecDetailResponse
400Malformed spec id (expected SPEC-NNN)—
401Missing or invalid authentication credentialsErrorResponse
404Spec not found—
422Validation ErrorHTTPValidationError

Get Spec History

Open as a page →

: git log per file. Empty if.git not mounted.

Auth: Authorization: Bearer <token> required

ParameterInRequiredTypeDescription
spec_idpathyesstring

Responses:

CodeMeaningBody
200Successful Responsearray of object
400Malformed spec id (expected SPEC-NNN)—
401Missing or invalid authentication credentialsErrorResponse
404Spec not found—
422Validation ErrorHTTPValidationError

Get Spec Progress

Open as a page →

Implementation progress grouped by spec section — each leaf §-anchor with its label and whether a test covers it (SPEC-NNN §X.Y citation).

Auth: Authorization: Bearer <token> required

ParameterInRequiredTypeDescription
spec_idpathyesstring

Responses:

CodeMeaningBody
200Successful Responsearray of ProgressSection
400Malformed spec id (expected SPEC-NNN)—
401Missing or invalid authentication credentialsErrorResponse
404Spec not found—
422Validation ErrorHTTPValidationError

Patch Spec Status

Open as a page →

: status transition with validation.

Auth: Authorization: Bearer <token> required

ParameterInRequiredTypeDescription
spec_idpathyesstring
Idempotency-KeyheadernostringOptional.

Request body: application/json — schema StatusPatch

FieldTypeRequiredDescription
statusstringyesOne of draft/review/accepted/implemented/obsolete

Responses:

CodeMeaningBody
200Successful Responseobject
401Missing or invalid authentication credentialsErrorResponse
422Validation ErrorHTTPValidationError

Get Spec Tests

Open as a page →

Return individual pytest test-cases for this spec from junit.xml.

Auth: Authorization: Bearer <token> required

ParameterInRequiredTypeDescription
spec_idpathyesstring

Responses:

CodeMeaningBody
200Successful Responsearray of SpecTestCase
400Malformed spec id (expected SPEC-NNN)—
401Missing or invalid authentication credentialsErrorResponse
404Spec not found—
422Validation ErrorHTTPValidationError