Skip to main content

Turn a prompt into a contract for an AI-authored js check

POST 

/api/v1/orgs/:org/checks/ai/contract

First step of the "Describe it" flow (spec 2026-10-03-07): the LLM turns the user's description into an ordered list of human-readable assertions, returned for the user to confirm. Nothing is saved. 404 when no AI provider is configured (SP_AI_PROVIDER empty). 429 when the organization spent its daily AI token budget (maxAiTokensPerDay).

Request​

Responses​

The proposed contract