apicheats.dev Cheat sheet Raw .md
POST

Try POST /v1/convai/agent-testing/create — ElevenLabs API

ElevenLabs playground

Create Agent Response Test

Credentials

Kept in this tab only. Requests go through apicheats.dev's same-origin proxy straight to api.elevenlabs.io; the proxy stores and logs nothing about them.

Body application/json

11 body fields
  • from_conversation_metadata · optional · object — Metadata of a conversation this test was created from (if applicable).
  • dynamic_variables · optional · object — Dynamic variables to replace in the agent config during testing
  • chat_history · optional · object[] — Request body field chat_history.
  • conversation_initiation_source · optional · string — Simulate the test as if the conversation originated from this channel.
  • environment · optional · string — The environment to resolve environment-specific variable values against when running this test (URL, headers, auth connections). If not provided, defaults to 'production'. For simulation tests, simulation_environment takes precedence when set.
  • type · optional · string — Request body field type.
  • success_condition · optional · string — A prompt that evaluates whether the agent's response is successful. Should return True or False.
  • success_examples · optional · object[] — Non-empty list of example responses that should be considered successful
  • failure_examples · optional · object[] — Non-empty list of example responses that should be considered failures
  • name · required · string — Request body field name.
  • parent_folder_id · optional · string — The ID of the parent folder. If not provided, the test will be created at the root level.