GET
/
calls
curl --request GET \
  --url https://app.happyrobot.ai/api/v1/calls \
  --header 'authorization: <authorization>'
{
  "calls": [
    {
      "id": "<string>",
      "organization_id": "<string>",
      "type": "Inbound",
      "status": "Scheduled",
      "provider": "Twilio",
      "metadata": {
        "call_sid": "<string>",
        "from": "+1234567890",
        "to": "+1234567890",
        "recording_sid": "<string>",
        "tags": [
          "<string>"
        ],
        "custom": {
          "clientId": "123",
          "orderId": "456"
        }
      },
      "use_case": {
        "id": "<string>",
        "organization_id": "<string>",
        "name": "Kate",
        "transfer_number": "<string>",
        "extract_with_ai": [
          {
            "name": "<string>",
            "description": "<string>",
            "type": "string",
            "example": "<string>",
            "required": true
          }
        ],
        "classification_tags": [
          {
            "name": "<string>",
            "description": "<string>"
          }
        ],
        "language": "en-US",
        "work_start": "<string>",
        "work_end": "<string>",
        "timezone": "<string>",
        "keywords": [
          "<string>"
        ],
        "hook": {
          "url": "<string>",
          "headers": [
            {
              "key": "<string>",
              "value": "<string>"
            }
          ]
        },
        "params": {},
        "amd": true,
        "amd_behavior": "Hangup",
        "amd_messages": {},
        "sample_labels": [
          {
            "name": "<string>",
            "color": "slate"
          }
        ],
        "hidden": true,
        "evaluation_models": [
          "<string>"
        ],
        "model": "<string>"
      },
      "agent": {
        "id": "<string>",
        "name": "<string>"
      },
      "language": "en-US",
      "params": {},
      "extraction": {},
      "classification": {
        "tag": "<string>",
        "reasoning": "<string>"
      },
      "created": "2024-01-01T01:01:01Z",
      "duration": 123,
      "viewed_by": [
        "<string>"
      ],
      "notes": [
        {
          "id": "<string>",
          "user_id": "<string>",
          "content": "<string>",
          "flagged": true,
          "created_at": "2024-01-01T01:01:01Z"
        }
      ],
      "samples": [
        "<string>"
      ],
      "ratings": [
        {
          "emoji": "✅",
          "email": "jsmith@example.com",
          "created": "2024-01-01T01:01:01Z"
        }
      ],
      "scheduled_for": "<string>",
      "campaign_id": "<string>"
    }
  ],
  "count": 12993,
  "currentPage": 3
}

Headers

authorization
string
required

Your API key for authentication. Use Bearer format.

Query Parameters

type
enum<string>

Filter by call type

Available options:
Inbound,
Outbound
limit
string

Limit the number of calls returned

skip
string

Skip the first N calls

callId
string

Calculate current page if callId is provided

statuses
string

Filter by call statuses, comma separated

tags
string

Filter by tags, comma separated

models
string

Filter by models names, comma separated

ratings
string

Filter by ratings, comma separated

use_cases
string

Filter by use case ids, comma separated

from
string

Filter by start date

to
string

Filter by end date

search
string

Search by extraction or phone number

campaigns
string

Filter by campaign ids, comma separated

Response

200 - application/json
calls
object[]
required
count
number
required

Total number of calls

currentPage
number

Current page number