REST API

Base URL: https://api.agenteasy.ai/v1. All requests are authenticated with a Bearer API key and return JSON responses.

REST API

Authentication

Authenticate requests using your AgentEasy API key in the Authorization header.

Include your secret API key as a Bearer token on every request. Never expose live keys in client-side browser code.

Authorization header
Authorization: Bearer ae_live_9f8a7b6c5d4e3f2a1b
Keep your keys secret

Rotate compromised keys immediately from the AgentEasy dashboard. Keys prefixed with ae_live_ bill against your active plan.

Endpoints

Place a call

Start an outbound AI phone call to any E.164 phone number.

POST/v1/calls

Queues an outbound call and returns a call_id immediately. Use GET /v1/calls/:id or webhooks to receive the final transcript.

Parameters
tostringrequired

Destination phone number in E.164 format (e.g. +14155550199).

taskstringrequired

Instructions for what the AI agent should accomplish on the call.

metadataobject

Optional key-value metadata returned in webhooks and GET responses.

Response example
{
  "id": "call_01J9X8K2M4N7P",
  "status": "queued",
  "to": "+14155550199",
  "created_at": "2026-12-01T11:30:00Z"
}
Endpoints

Get call status

Retrieve real-time status, transcript turns, and structured outcome for a call.

GET/v1/calls/:call_id

Returns the current state of a call, including duration_seconds, outcome, and full transcript once completed.

Parameters
call_idstringrequired

Unique identifier returned when the call was created.

Response example
{
  "id": "call_01J9X8K2M4N7P",
  "status": "completed",
  "duration_seconds": 48,
  "outcome": "Reservation confirmed for 4 guests at 7:30 PM under Alex.",
  "transcript": [
    { "speaker": "agent", "text": "Hi, I'm calling to confirm a reservation for Alex..." },
    { "speaker": "recipient", "text": "Yes, we have you down for 4 at 7:30 PM." }
  ]
}
Endpoints

List calls

Paginate through recent outbound calls and their outcomes.

GET/v1/calls

Returns a reverse-chronological list of calls associated with your workspace.

Parameters
limitinteger

Number of records to return (default 20, max 100).

statusstring

Filter by queued, in_progress, completed, or failed.

Response example
{
  "data": [
    {
      "id": "call_01J9X8K2M4N7P",
      "status": "completed",
      "to": "+14155550199",
      "duration_seconds": 48
    }
  ],
  "has_more": false
}