Skip to main content
The Relyable API allows you to programmatically manage your voice agents, test cases, personas, and testing workflows. Use it to integrate automated testing into your CI/CD pipeline or build custom tooling around Relyable.

Authentication

All API endpoints require authentication using an API key. You can generate API keys from your workspace settings in the Relyable dashboard. Include your API key in the Authorization header of all requests:
curl --request GET \
  --url https://app.relyable.ai/api/agents \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json'
Keep your API key secure! Never commit API keys to version control or expose them in client-side code. Treat them like passwords.

Getting Your API Key

1

Navigate to Workspace Settings

In your Relyable dashboard, click on your workspace name and select Settings.
2

Generate API Key

Go to the API Keys section and click Create New API Key.Give your key a descriptive name (e.g., “Production CI/CD” or “Development Testing”).
3

Copy and Store Securely

Copy the API key immediately - you won’t be able to see it again. Store it in a secure location like environment variables or a secrets manager.

Base URL

The base URL for all API requests is:
https://app.relyable.ai/api
All endpoints are relative to this base URL.

Rate Limiting

API requests are rate limited based on your subscription plan:
PlanRate Limit
Free60 requests/minute
Pro300 requests/minute
EnterpriseCustom limits
Rate limit headers are included in all responses:
X-RateLimit-Limit: 300
X-RateLimit-Remaining: 299
X-RateLimit-Reset: 1640000000
If you exceed the rate limit, you’ll receive a 429 Too Many Requests response.

Response Format

All responses are returned in JSON format with the following structure: Success Response:
{
  "success": true,
  "data": {
    // Response data here
  }
}
Error Response:
{
  "success": false,
  "error": {
    "code": "ERROR_CODE",
    "message": "Human-readable error message",
    "details": {}
  }
}

Common Response Codes

Status CodeMeaning
200Success - Request completed successfully
201Created - Resource was created successfully
400Bad Request - Invalid request parameters
401Unauthorized - Invalid or missing API key
403Forbidden - You don’t have permission for this resource
404Not Found - Resource doesn’t exist
429Too Many Requests - Rate limit exceeded
500Internal Server Error - Something went wrong on our end

Pagination

List endpoints (e.g., /agents, /test-runs) support pagination:
GET /api/agents?page=1&limit=25
Parameters:
  • page - Page number (default: 1)
  • limit - Items per page (default: 25, max: 100)
Paginated Response:
{
  "success": true,
  "data": {
    "items": [...],
    "pagination": {
      "page": 1,
      "limit": 25,
      "total": 150,
      "pages": 6
    }
  }
}

Webhooks

Relyable can send webhooks to your server when certain events occur:
  • Test run completed
  • Test run failed
  • Agent score dropped below threshold
  • Critical test case failed
Configure webhooks in your workspace settings. All webhook payloads are signed for security.

Common Use Cases

Automated CI/CD Testing

Trigger Relyable tests automatically when you deploy prompt changes:
# After deploying your prompt update
curl --request POST \
  --url https://app.relyable.ai/api/agents/YOUR_AGENT_ID/test-runs \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
    "scenarios": ["scenario_1", "scenario_2"],
    "wait_for_completion": true
  }'

Monitoring Production Quality

Fetch your agent’s recent performance scores:
curl --request GET \
  --url https://app.relyable.ai/api/agents/YOUR_AGENT_ID/metrics?period=7d \
  --header 'Authorization: Bearer YOUR_API_KEY'

Bulk Test Case Management

Import test cases from your own testing framework:
curl --request POST \
  --url https://app.relyable.ai/api/agents/YOUR_AGENT_ID/test-cases/bulk \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
    "test_cases": [
      {
        "name": "Agent introduces correctly",
        "description": "Agent must introduce as Emily from Inflate Real Estate",
        "priority": "high"
      }
    ]
  }'

SDKs and Libraries

Official SDKs coming soon for:
  • Node.js/TypeScript
  • Python
  • Go
Currently, use standard HTTP clients to interact with the API.

API Endpoints

Explore the available endpoints:

OpenAPI Specification

Download our complete OpenAPI specification for use with API clients, code generators, and documentation tools:

Download OpenAPI Spec

OpenAPI 3.0 JSON specification

Support

Need help with the API?

Changelog

v1.0.0 - Initial API release
  • Core agent management endpoints
  • Test run creation and monitoring
  • Test case management
  • Webhook support
Updates and improvements are continuously deployed. Breaking changes will be versioned.