API Overview
Voxli is a testing platform for conversational AI systems. Test your chatbots and AI agents by running automated conversation scenarios and evaluating their responses.
Core Concepts
- Test Scenarios: Collections of tests that validate specific aspects of your AI
- Test Runs: Executions of a test suite, creating a snapshot of results
- Tests: Individual conversation scenarios with expected behavior patterns
- Test Results: The outcomes of running a test, including conversation transcripts and evaluations
Authentication
Voxli uses API keys for authentication. You can create an API key from the Settings page.
Set your API key as an environment variable:
import osimport requests# Set up authenticationapi_key = os.getenv("VOXLI_API_KEY") # Your Voxli API keybase_url = os.getenv("VOXLI_API_URL", "https://api.voxli.io")# Configure request headersheaders = {"Authorization": f"Bearer {api_key}"}# Example: Verify authentication by fetching a single runresponse = requests.get(f"{base_url}/runs/", headers=headers, params={"limit": 1})response.raise_for_status()print("Authentication successful!")
All API requests require the Authorization header with your API key as a Bearer token. You can create and manage API keys from the Voxli dashboard settings.
Pagination
All list endpoints return paginated results. Use query parameters to control pagination:
| Parameter | Type | Default | Description |
|---|---|---|---|
page | integer | 1 | Page number (starting from 1) |
limit | integer | 10 | Items per page (max 1000) |
Response format:
data: Array of items for the current pagetotal: Total number of items across all pagespage: Current page numberlimit: Items per page
Base URL
The production API is available at https://api.voxli.io. For local development or custom deployments, set the VOXLI_API_URL environment variable.