provider POST /v1/convai/agents/{agent_id}/run-tests
@utdk/elevenlabs /v1/convai/agents/{agent_id}/run-tests
Run Tests On The Agent
Run selected tests on the agent with provided configuration. If the agent configuration is provided, it will be used to override default agent configuration.
agent_id path required
The id of an agent. This is returned on agent creation.
string
xi-api-key header
Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

Try it

Authentication
Configure credentials for ElevenLabs API Documentation
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

runAgentTestSuiteRoute
POST/v1/convai/agents/{agent_id}/run-tests
Run selected tests on the agent with provided configuration. If the agent configuration is provided, it will be used to override default agent configuration.

Parameters

required

The id of an agent. This is returned on agent creation.

Input

required

List of tests to run on the agent

Configuration overrides to use for testing. If not provided, the agent's default configuration will be used.

ID of the branch to run the tests on. If not provided, the tests will be run on the agent default configuration.

Number of times to run each test. When greater than 1, results are grouped and summarized.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import elevenlabs from '@utdk/elevenlabs';

await elevenlabs.runAgentTestSuiteRoute({
  "repeat_count": 1
})