---
title: "Create a batch of CallExecution records for chat execution (exactly 10 per API call)."
method: POST
path: "/simulate/test-executions/{test_execution_id}/chat/call-executions/batch/"
tags: ["simulate"]
---

# Create a batch of CallExecution records for chat execution (exactly 10 per API call).

`POST /simulate/test-executions/{test_execution_id}/chat/call-executions/batch/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/simulate/test-executions/{test_execution_id}/chat/call-executions/batch/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

This follows the same flow as inbound/outbound calls:
1. Resolve SimulatorAgent (scenario > run_test > fallback)
2. Extract base_prompt from SimulatorAgent
3. Handle dataset scenarios (create one CallExecution per row)
4. Enhance prompt with row data if applicable
5. Store proper metadata in CallExecution

Returns exactly 10 CallExecution objects per API call.
hasMore is true until ALL row_ids of ALL scenarios have CallExecution objects created.

## Request body

- EmptyRequest

## Response `200`

OK

- TestExecutionChatBatchResponse
  - `status` boolean
  - `result` TestExecutionChatBatchResult, required
    - `call_execution_ids` string[], required
    - `has_more` boolean, required
    - `batched_scenarios` string[], required

## Other responses

- `400`: Bad Request
- `500`: Internal Server Error
- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
