> ## 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/queue-http-text-simulation-run

> Run an HTTP text simulation.

Starts a text run for an HTTP agent and returns `simulation_run_id` and `simulation_result_ids`.1) Queue the run with this endpoint.
2) Receive each Digital Human message at the webhook in the agent settings.
3) Send each agent reply with [Send HTTP Text Message](https://docs.getbluejay.ai/api-reference/endpoint/send-http-text-message.md).If you omit `digital_human_ids`, all Digital Humans in the simulation run. `knowledge_base_id` is ignored. `prompt_id` is deprecated. Use `agent_version_id`.## 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 |
| - | - |
| `200` | 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/queue-http-text-simulation-run \
  --header 'X-API-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
    "simulation_id": "<string>",
    "prompt_id": "<string>",
    "agent_version_id": "<string>",
    "knowledge_base_id": "<string>",
    "digital_human_ids": [
      "<string>"
    ],
    "runs_per_digital_human": 123
  }'
```## Example response```json 200 theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
{
  "simulation_run_id": "<string>",
  "simulation_result_ids": [
    "<string>"
  ],
  "agent_id": "<string>",
  "status": "success"
}
```


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