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
- 200
- 400
- 401
- 404
- 429
The proposed contract
Validation error
Authentication required
Resource not found
Too many requests