Telara API Reference
Introduction
Welcome to the Telara API Reference. This documentation covers all REST API endpoints for interacting with Telara's AI agent platform. Our API is RESTful, returns JSON responses, and uses standard HTTP response codes.
Base URL
https://api.telara.com/v1All API endpoints are relative to this base URL.
Authentication
Telara uses API keys to authenticate requests. Include your API key in the Authorization header of every request.
Generating an API Key
- Log in to your Telara dashboard
- Navigate to Settings → API Keys
- Click "Generate New API Key"
- Give your key a descriptive name
- Copy and securely store the key (it won't be shown again)
Using Your API Key
Include your API key in the Authorization header
curl https://api.telara.com/v1/agent-definitions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"- • Never commit API keys to version control
- • Use environment variables to store keys
- • Rotate keys regularly
- • Use different keys for development and production
Getting Started
Quick Start Example
Invoke an agent definition and read its execution
curl -X POST https://api.telara.com/v1/agent-definitions/$AGENT_DEFINITION_ID/invoke \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": "Summarise the open incidents for the payments service"
}'{
"execution_id": "exec_abc123",
"agent_definition_id": "def_incident_responder",
"status": "running",
"created_at": "2024-10-09T10:30:00Z"
}curl https://api.telara.com/v1/agent-executions/$EXECUTION_ID \
-H "Authorization: Bearer YOUR_API_KEY"Agents API
Agents are addressed as definitions; invoking one starts an execution. Endpoints below are transcribed from the Gateway HTTP contract (telara-proto gateway.proto), with the proto line cited so it can be re-verified.
/v1/agent-definitionsList the agent definitions in your tenant. (gateway.proto:527)/v1/agent-definitionsCreate an agent definition. (gateway.proto:516)/v1/agent-definitions/{id}Read a single agent definition. (gateway.proto:522)/v1/agent-definitions/{agent_definition_id}/invokeInvoke an agent definition; returns an execution. (gateway.proto:628)/v1/agent-executions/{execution_id}Read the status and result of an execution. (gateway.proto:634)/v1/agent-executionsList executions, most recent first. (gateway.proto:639)/v1/agent-executions/{execution_id}/cancelCancel an in-flight execution. (gateway.proto:644)Invoke an Agent Definition
POST /v1/agent-definitions/:agent_definition_id/invoke
curl -X POST https://api.telara.com/v1/agent-definitions/$AGENT_DEFINITION_ID/invoke \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": "Summarise the open incidents for the payments service"
}'{
"execution_id": "exec_abc123",
"agent_definition_id": "def_incident_responder",
"status": "running",
"created_at": "2024-10-09T10:30:00Z"
}Read an Execution
GET /v1/agent-executions/:execution_id
curl https://api.telara.com/v1/agent-executions/$EXECUTION_ID \
-H "Authorization: Bearer YOUR_API_KEY"{
"execution_id": "exec_abc123",
"agent_definition_id": "def_incident_responder",
"status": "completed",
"created_at": "2024-10-09T10:30:00Z",
"completed_at": "2024-10-09T10:32:15Z"
}Human-in-the-loop
Approvals an agent run is waiting on.
/v1/agents/hitl/pendingList approvals waiting on a human decision. (gateway.proto:652)/v1/agents/hitl/{response_id}/submitSubmit an approval decision. (gateway.proto:664)Webhooks
Set up webhooks to receive real-time notifications when agents execute.
Webhook Configuration
- Go to Settings → Webhooks in your dashboard
- Click "Add Webhook Endpoint"
- Enter your endpoint URL (must be HTTPS)
- Select events you want to receive
- Copy the webhook signing secret
Webhook payloads
Event names and payload shapes are per integration and are shown, with a live sample, on the webhook's own page in the dashboard.
We deliberately do not reproduce a payload schema here: it would go stale the moment a connector changes. Open Settings → Webhooks in your dashboard to see the exact events and a sample delivery for your tenant.
Rate Limits
Rate Limit Tiers
X-RateLimit-Limit: 10000
X-RateLimit-Remaining: 9850
X-RateLimit-Reset: 1696680896Error Handling
HTTP Status Codes
Error Response Format
{
"error": {
"code": "invalid_request",
"message": "The 'repository' parameter is required",
"param": "repository",
"type": "validation_error"
},
"request_id": "req_abc123"
}SDKs & Libraries
Use the REST API directly
There is no published Telara SDK yet. Until there is, call the API with your HTTP client of choice.
import os, requests
resp = requests.post(
"https://api.telara.com/v1/agent-definitions/{AGENT_DEFINITION_ID}/invoke",
headers={"Authorization": f"Bearer {os.environ['TELARA_API_KEY']}"},
json={"input": "Summarise the open incidents for the payments service"},
timeout=30,
)
resp.raise_for_status()
print(resp.json())const res = await fetch(
`https://api.telara.com/v1/agent-definitions/${agentDefinitionId}/invoke`,
{
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.TELARA_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
input: 'Summarise the open incidents for the payments service',
}),
},
);
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());Gateway Endpoints
The Telara Gateway provides a unified API surface for all platform functionality, including authentication, user management, agents, integrations, search, and more. The endpoint groups below cover the surfaces available to API clients.
API Base URL
All gateway endpoints are served from the central API gateway
https://api.telara.com/v1Authentication & User Management
Endpoints for user authentication, registration, SSO, password management, and user profiles.
/v1/auth/loginAuthenticate user and get tokens/v1/auth/registerCreate new user account/v1/users/meGet current user profile/v1/auth/sso/initiateStart SSO flow/v1/auth/password/request-resetRequest password resetTeams, Tenants & Projects
Manage organizational structure with tenants, teams, projects, and member roles.
/v1/tenantsCreate new tenant/v1/teamsCreate team/v1/projectsCreate project/v1/teams/{id}/membersAdd team member/v1/projectsList user projectsAgents & Executions
Create, manage, and execute multi-step AI agents and tasks.
/v1/agent-definitionsCreate agent definition/v1/agent-definitions/{agent_definition_id}/invokeInvoke agent definition/v1/agent-executions/{execution_id}Get execution status/v1/tasksCreate task/v1/tasks/{id}/runRun taskIntegrations & Credentials
Set up and manage third-party integrations with secure credential storage.
/v1/integrations/typesList integration types/v1/integrations/configsCreate integration config/v1/credentials/integrationCreate credential/v1/integrations/{id}/executeExecute integration/v1/integrations/oauth/initiateStart OAuth flowSearch & Knowledge
Advanced search capabilities including semantic, graph, and RAG search.
/v1/search/semanticSemantic search/v1/search/ragRAG search/v1/queryMain inference query/v1/embed/textGenerate text embedding/v1/query/streamStreaming responseSecurity, Compliance & Monitoring
Endpoints for security incidents, compliance reporting, audit logs, and observability.
/v1/security/incidentsReport security incident/v1/compliance/reportGenerate compliance report/v1/audit/logs/queryQuery audit logs/v1/metrics/platformPlatform metrics/v1/logs/searchSearch logsBilling & Usage
Manage subscriptions, track usage, and view billing details.
/v1/billing/currentCurrent billing info/v1/billing/usageUsage breakdown/v1/billing/subscriptionUpdate subscription/v1/usage/trendsUsage trends/v1/billing/calculateCalculate costs


