---
title: "Generate Tests"
method: POST
path: "/generate/tests"
tags: ["generation"]
---

# Generate Tests

`POST /generate/tests`

## Request

- Base URL: `https://api.specproof.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.specproof.ai/generate/tests`
- Auth: none declared

Queue a generation job and return immediately. Poll GET /generate/jobs/{id}.

## Headers

- `authorization` string
- `X-Org-Id` string, nullable

## Request body

- GenerateTestsRequest
  - `requirement_id` integer, required
  - `target` string
  - `title` string, nullable

## Response `202`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/specproof/apis/specproof-portal-api.md) · [All operations](https://skmtc.dev/specproof/apis/specproof-portal-api/llms.txt) · [OpenAPI document](https://skmtc.dev/specproof/apis/specproof-portal-api/revisions/228b03caa929?raw)
