API Reference
API Overview

API Overview

The Aila REST API provides programmatic access to call records, transcripts, custom extractions, QA scorecards, and batch ingest workflows.


Base URL

All REST API endpoints use the following base URL:

https://app.aila.fyi/api/v1

Authentication

Authenticate all API requests by passing an API key in the Authorization HTTP header:

Authorization: Bearer <YOUR_API_KEY>

See the Authentication Guide to generate and manage keys.


Core Endpoints

Calls

Method & EndpointDescription
GET /callsQuery call records with date, agent, and pagination filters.
GET /calls/{call_id}Retrieve complete call details, transcript, and AI summary.
POST /calls/uploadUpload a single audio or video recording file for processing.
POST /calls/batch-uploadIngest multiple audio recordings (1–100) in a single batch.
GET /calls/{call_id}/scorecardRetrieve QA scorecard criteria and evaluation results.

Contacts

Method & EndpointDescription
GET /contactsList customer contact profiles with aggregated call metrics.
GET /contacts/{contact_id}Retrieve contact details, conversation history, and CRM IDs.

Analytics

Method & EndpointDescription
GET /analytics/team-metricsRetrieve aggregated team call volume, duration, and speed-to-lead.

Rate Limits

PlanHourly Limit
Standard1,000 requests / hour
EnterpriseCustom limits

Response headers include standard rate limit status:

  • X-RateLimit-Limit: Maximum requests per window.
  • X-RateLimit-Remaining: Available requests in the current window.
  • X-RateLimit-Reset: Unix timestamp when the limit resets.

Related Documentation