ResoneraDocs

Quickstart

Create an API key, create a campaign, place a call, and retrieve the result.

This guide takes you from a new API key to a completed call in five steps.

Launching a campaign places real phone calls and is billed to your account. Use your own phone number while you test.

Before you begin

  • A Resonera account with at least one agent. To create one with the API, see Manage agents.
  • Calling minutes on your plan.

Create an API key

In the dashboard, go to Settings → API access and click New key. Select the agents:read, calls:read, calls:write, and calls:dispatch scopes. Copy the key. It is shown only once.

Store the key in an environment variable:

export RESONERA_API_KEY="rsn_live_..."

Get an agent ID

List your agents and copy the id of the agent that places the calls.

curl https://api.resonera.ai/v1/agents \
  -H "X-API-Key: $RESONERA_API_KEY"

Create a campaign

Create a campaign with one contact. The extra object holds your own data, such as a CRM record ID, and is returned with every call result.

curl -X POST https://api.resonera.ai/v1/campaigns \
  -H "X-API-Key: $RESONERA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Quickstart",
    "agent_id": "AGENT_ID",
    "contacts": [
      {"phone_number": "+919876543210", "name": "Asha", "extra": {"crm_id": "42"}}
    ]
  }'

The campaign is created with status draft. No calls are placed yet.

Launch the campaign

curl -X POST https://api.resonera.ai/v1/campaigns/CAMPAIGN_ID/launch \
  -H "X-API-Key: $RESONERA_API_KEY"

Calls are placed only within the campaign's calling hours (default 09:00 to 21:00 IST). Outside those hours, the response includes "waiting_reason": "calling_hours" and calling starts when the window opens.

Retrieve the result

After the call ends, list the campaign's calls. Each call includes its status, outcome, summary, and the contact's extra data.

curl "https://api.resonera.ai/v1/calls?campaign_id=CAMPAIGN_ID" \
  -H "X-API-Key: $RESONERA_API_KEY"

To get the transcript, retrieve a single call with GET /calls/{call_id}.

Next steps

On this page