ResoneraDocs

Retrieve call results

Poll for completed calls without missing or duplicating results.

Use polling when you cannot expose a public webhook endpoint, or as a scheduled reconciliation alongside webhooks. Webhooks deliver results as soon as each call ends.

Before you begin

  • An API key with the calls:read scope.

Choose a polling pattern

PatternUse when
Per campaignEach batch of contacts is a separate campaign.
By time windowCalls start continuously throughout the day.

Poll per campaign

Wait for the campaign to finish calling

GET /campaigns/{campaign_id} returns contacts_by_status. Calling is finished when no contacts are pending or initiated.

{ "status": "running", "contacts_by_status": { "pending": 12, "initiated": 3, "completed": 74, "no_answer": 6, "failed": 5 } }

Retrieve the calls

Call GET /calls?campaign_id={campaign_id}&limit=200 and increase offset by limit until you have retrieved total calls.

Poll by time window

Request calls that started since your previous run, with an overlap so that calls still in progress at the previous run are included.

import os
from datetime import datetime, timedelta

import requests

API = "https://api.resonera.ai/v1"
HEADERS = {"X-API-Key": os.environ["RESONERA_API_KEY"]}


def sync(last_run: datetime) -> None:
    since = (last_run - timedelta(hours=2)).isoformat()
    offset = 0
    while True:
        page = requests.get(f"{API}/calls", headers=HEADERS, params={
            "since": since, "status": "completed", "limit": 200, "offset": offset,
        }).json()
        for call in page["calls"]:
            if already_synced(call["call_id"]):
                continue
            save_to_crm(call)
            mark_synced(call["call_id"])
        offset += page["limit"]
        if offset >= page["total"]:
            break

The since and until filters apply to the call's start time. Set the overlap to at least your longest expected call duration, and skip call_id values you have already processed.

A polling interval of 5 to 15 minutes is sufficient for most integrations. Read requests do not consume calling minutes.

Retrieve transcripts

List responses do not include transcripts. Retrieve each call that needs one with GET /calls/{call_id}:

{
  "call_id": "88433d99-ead1-4ee2-86c1-7a2cbfd6d064",
  "outcome": "requirements_gathered",
  "summary": "Wants a demo on Friday afternoon.",
  "transcript": [
    { "role": "agent", "text": "Namaste, this is Neha from Acme Dental.", "timestamp": "2026-10-05T09:12:41+00:00" },
    { "role": "user", "text": "Haan, boliye.", "timestamp": "2026-10-05T09:12:44+00:00" }
  ]
}

Retrieve recordings

Recording links expire after one hour. Store the call_id, and request a new link from GET /calls/{call_id}/recording-url each time a user plays the recording.

Next steps

On this page