> ## Documentation index
> Fetch the complete documentation index at: https://workover.io/docs/llms.txt

# Start a draft

POST`/ai/draft`

Queue Workover AI to draft a document, grounded in the project's linked repository. Answers a job id at once; poll the job for the result.

## Response

201

**cURL**

```bash
curl --request POST \
  --url 'https://api.workover.io/ai/draft' \
  --header 'Content-Type: application/json' \
  --data '{}'
```

**JavaScript**

```javascript
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({})
};

fetch('https://api.workover.io/ai/draft', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
```

**Python**

```python
import requests

url = "https://api.workover.io/ai/draft"

payload = {}

response = requests.post(url, json=payload)

print(response.text)
```
