> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getbluejay.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# POST /v1/datasets/{dataset_id}/generate

> Generate Items

Queue writing draft items from a brief. The speech worker writes them and creates the personas they need, one persona per speaker in each conversation.## Path parameters

\<table><thead><tr><th>Name</th>
            \<th>Type</th>
            \<th>Required</th>
            \<th>Description</th></tr></thead>
        \<tbody /></table>

## Headers

\<table><thead><tr><th>Name</th>
            \<th>Type</th>
            \<th>Required</th>
            \<th>Description</th></tr></thead>
        \<tbody /></table>

## Request body

\<table><thead><tr><th>Name</th>
            \<th>Type</th>
            \<th>Required</th>
            \<th>Description</th></tr></thead>
        \<tbody /></table>

## Response

\<table><thead><tr><th>Name</th>
            \<th>Type</th>
            \<th>Required</th>
            \<th>Description</th></tr></thead>
        \<tbody /></table>

## Status codes| Status | Meaning |
| - | - |
| `201` | Successful Response |
| `422` | Validation Error |## Example request```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
curl --request POST \
  --url https://api.getbluejay.ai/v1/datasets/{dataset_id}/generate \
  --header 'X-API-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
    "description": "<string>",
    "count": 123,
    "length_minutes": {
      "min": 1.5,
      "max": 1.5
    },
    "language": "en",
    "speakers": [
      {
        "role": "<string>",
        "persona_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      }
    ],
    "environments": [
      {
        "weight": 123,
        "environment": {
          "background": "<string>",
          "level": "quiet",
          "device": "close_mic"
        }
      }
    ],
    "use_vocabulary": true,
    "build_audio": false
  }'
```## Example response```json 201 theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "queued",
  "count": 123,
  "items_written": 123,
  "items_failed": 123,
  "error": "<string>",
  "created_at": "2026-01-01T00:00:00Z",
  "started_at": "2026-01-01T00:00:00Z",
  "finished_at": "2026-01-01T00:00:00Z"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.