https://retellai.com/?utm_source=discord&utm_medium=seo logo
is there an API to create a test call
# ❓・ai-evy-support
d
@AI Evy is there an API to create a test call? We're working with the Create Batch API which requires test_case_definition_ids. I need to be able to create test_case via API
a
Thanks for tagging me @Dan. I'll look through relevant sources and get back to you shortly.
### Answer There is mention of users programmatically creating test cases for batch testing, but the official documentation does not list a public API endpoint for directly creating a test_case_definition (test case) via API. The batch test API requires test_case_definition_ids, so test cases must exist before initiating a batch test [(1) ]() [(2) ]() . However, a community discussion references an internal API endpoint () used for creating test cases, which requires a bearer token and org id [(3) ]() [(4) ]() . This endpoint is not documented in the official public API references, and there is no official support or guarantee for its use. If you need to automate test case creation, you could try using the internal endpoint as discussed in the community forums, but be aware this is not officially documented or supported. Otherwise, test cases are created via the dashboard UI as described in the documentation [(2) ]() . Check out these potentially useful sources: [Create Batch Test]() , [Batch test your agent]() , [Test case data issues]() Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Create Batch Test](https://docs.retellai.com/api-references/create-batch-test) [[2] Batch test your agent](https://docs.retellai.com/test/batch-test-simulation) [[3] Question about API's](https://discord.com/channels/1186424376300679209/1404590446214385705) [[4] Test case data issues](https://discord.com/channels/1186424376300679209/1403465412875649044) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
d
@AI Evy is it possible with sdk?
a
Thanks for the follow-up, @Dan. I'll get back to you soon.
### Answer Based on the available documentation, there is no public API in the SDKs or official references that allows direct creation of a test case (test_case_definition) via the SDK [(1) ]() [(2) ]() [(3) ]() . Creating test cases is described as a manual process through the dashboard UI in the official docs [(2) ]() [(3) ]() . Community discussions mention uploading and downloading test cases, but do not provide SDK methods for this [(4) ]() [(5) ]() . So, creating a test case directly via the SDK is not documented. If you need more details, let me know if you want a general answer based on broader knowledge.
​ To learn more, see the sources I considered: [[1] SDKs](https://docs.retellai.com/get-started/sdk) [[2] Batch test your agent](https://docs.retellai.com/test/batch-test-simulation) [[3] Automatically test your agent](https://docs.retellai.com/test/llm-simulation-testing) [[4] Downloadable/uploadable Test Cases](https://discord.com/channels/1186424376300679209/1389693441155530864) [[5] Discord message from @webb_100 on 2025-10-17](https://discord.com/channels/1186424376300679209/1186462578310910112/1428567515860046024) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.