> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developer.jelliu.co/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developer.jelliu.co/_mcp/server.

# List calls

GET https://api.jelliu.co/api/calls

Returns the workspace's calls, inbound and outbound, newest first (`created_at` descending), optionally filtered by agent and/or campaign. Use `GET /api/calls/{callId}` for the transcript and the detail-only columns.

Two pagination styles are supported; use one or the other:

* **Cursor**: pass the previous page's `nextCursor` as `cursor`. `nextCursor` is non-null whenever the page came back full (exactly `limit` rows), so the last page can be followed by one empty page. The cursor is the `created_at` of the last row and pages with a strict "created before" comparison.
* **Offset**: pass `offset` for a numbered pager. When `offset` is greater than 0 it takes precedence and `cursor` is ignored. `total` is always the count of every call matching the filters.

List rows omit the large or detail-only columns (`transcript`, `transfer_*`, `kpi_data`, token counts, `sentiment_timeline`, execution counters and a few more); see the `Call` schema for the exact list. Vendor identifiers (carrier call SID, voice-provider conversation id) are never returned.

**Consistency.** Pages are cached for up to 60 seconds per exact combination of parameters. A manual hang-up invalidates the cache; post-call updates may take up to a minute to appear here, while `GET /api/calls/{callId}` is invalidated on the same events.

**Idempotency.** Read-only; safe to retry.

**Access**

* **Required scope:** `read` (or `write`).
* **Rate limit:** Outbound — 20 requests/min per workspace, shared by every `/api/calls` endpoint including reads. See [Rate limits](/rate-limits).
* **Plan:** Available on every plan.

Reference: https://developer.jelliu.co/api-reference/calls/get-calls

## Authentication

- `Authorization` header (bearer token, required) — Workspace API key: `jl_` followed by 64 lowercase hex characters, created by the workspace owner in the dashboard (**Settings → API Keys**) and sent as `Authorization: Bearer jl_...`. The plaintext is shown once, at creation; Jelliu stores only a SHA-256 hash. A workspace can hold up to 25 active keys. | Scope | GET / HEAD | POST / PUT / PATCH / DELETE | Admin-only routes | | --- | --- | --- | --- | | `read` | Yes | No | No | | `write` | Yes | Yes | No | | `full` | Yes | Yes | Yes | Operations restricted to admins or owners reject keys without the `full` scope with `403`, and say so in their description. No key, whatever its scope, can mint or revoke API keys or rotate a webhook secret — that requires a signed-in owner session. A revoked key stops authenticating within about 10 seconds. See [Authentication](/authentication).

## Request

### Query parameters

- `limit` (integer, optional, default: 50) — Page size, 1 to 100. A value outside the range or not an integer is rejected with 400 (it is not clamped).
- `cursor` (datetime, optional) — The `nextCursor` of the previous page (an ISO-8601 `created_at` timestamp). Returns calls created strictly before it. The value is not validated, so pass back exactly what you received. Ignored when `offset` is greater than 0.
- `offset` (integer, optional, default: 0) — Rows to skip for numbered pagination, 0 to 100000 (400 outside the range). Takes precedence over `cursor` when greater than 0.
- `agentId` (string, optional) — Only calls served by this agent. Must be a UUID (400 otherwise). An agent of another workspace simply matches nothing.
- `campaignId` (string, optional) — Only calls filed under this campaign. Must be a UUID (400 otherwise).

## Response

### 200

One page of calls.

- `data` (object, required)
  - `calls` (list of object, required) — The page, newest first. List rows omit the detail-only fields.
    - `id` (string, required) — Unique identifier of the call.
    - `tenant_id` (string, required) — The workspace that owns the call.
    - `phone_number` (string, required) — The other party's number (E.164).
    - `status` (enum, required) — Lifecycle state. `queued` (row created, not yet accepted by the provider), `ringing` (accepted; native voice-provider calls can stay here for the whole conversation), `in-progress` (answered, when the carrier reports it), and the terminal states `completed`, `failed`, `no-answer`, `busy`, `canceled`.
      - Allowed values: `queued`, `ringing`, `in-progress`, `completed`, `failed`, `no-answer`, `busy`, `canceled`
    - `call_direction` (enum, required) — `outbound` for calls placed by Jelliu, `inbound` for calls received on a workspace number.
      - Allowed values: `inbound`, `outbound`
    - `created_at` (datetime, required) — When the call row was created. Also the list's sort key and cursor.
    - `updated_at` (datetime, required) — Last change to the row.
    - `campaign_id` (string, optional, nullable) — Campaign the call is filed under. Null for manual and inbound calls.
    - `contact_id` (string, optional, nullable) — The contact at the dialed (or calling) number.
    - `agent_id` (string, optional, nullable) — The agent that served the call. Null on legacy rows.
    - `outcome` (string, optional, nullable) — Business outcome written by post-call analysis, e.g. `sale_closed`, `callback_scheduled`, `rejected`, `no_answer`, `voicemail`, `escalated_to_human`, `issue_resolved`, `appointment_booked`, `info_provided`. Null when not analysed or when no outcome was decisive.
    - `duration_seconds` (integer, optional, nullable) — Talk time in seconds. Billed minutes are this, rounded up per call. Null until the call ends.
    - `prompt_variant_id` (string, optional, nullable) — A/B prompt variant the call used.
    - `transcript` (list of object, optional, nullable) — Conversation turns, in order. Detail only. Null until post-call processing.
      - `role` (string, optional) — Who spoke, `agent` or `user`.
      - `message` (string, optional, nullable) — What was said. Null for turns without text (e.g. tool calls).
      - `time_in_call_secs` (double, optional, nullable) — Seconds from the start of the call.
    - `summary` (string, optional, nullable) — Short AI summary of the call, in the call's language.
    - `sentiment_score` (double, optional, nullable) — Overall sentiment, -1 (negative) to 1 (positive). Null when not measured.
    - `frustration_score` (double, optional, nullable) — Frustration, 0 to 1. Null when not measured; 0 means nobody was frustrated.
    - `sentiment_low` (double, optional, nullable) — The worst user turn's sentiment.
    - `objections` (list of string, optional, nullable) — Objections the person raised.
    - `evaluation_criteria_results` (map from string to object, optional) — Per-criterion verdicts from post-call analysis, keyed by criterion id. Empty object when none.
      - `result` (enum, optional) — Verdict: `success`, `failure` or `unknown`.
        - Allowed values: `success`, `failure`, `unknown`
      - `rationale` (string, optional) — Why.
    - `data_collection_results` (map from string to object, optional) — Values the agent extracted during the call, keyed by field id. Empty object when none.
      - `value` (any, optional) — The extracted value (any JSON type).
      - `rationale` (string, optional) — Where it came from.
    - `kpi_data` (map from string to any, optional, nullable) — Campaign KPIs computed from the call. Detail only.
    - `analysis` (object, optional, nullable) — Post-call analysis nested for display. Null when the call has no analysis signal yet. Not returned by `POST /api/calls`.
      - `summary` (string, required) — Same as the top-level `summary`, or empty string.
      - `outcome` (string, required, nullable) — Same as the top-level `outcome`.
      - `sentiment` (enum, required) — Label derived from `sentiment_score`: `positive` above 0.2, `negative` below -0.2, `neutral` otherwise; null when unmeasured.
        - Allowed values: `positive`, `neutral`, `negative`
      - `sentiment_score` (double, required, nullable) — Same as the top-level `sentiment_score`.
      - `key_topics` (list of string, required) — Currently always empty.
      - `qualification` (object, required, nullable) — Lead qualification derived from the collected data. Null when the call captured nothing to judge.
        - `score` (integer, required, nullable) — Qualification score, 0 to 100.
        - `interest` (enum, required) — Interest level: `high`, `medium` or `low`.
          - Allowed values: `high`, `medium`, `low`
        - `answered` (boolean, required, nullable) — Whether a person engaged in the conversation.
        - `next_step` (string, required, nullable) — Agreed next step, if any.
        - `objections` (list of string, required) — Objections raised.
        - `reasons` (list of string, required) — Why the score is what it is.
    - `has_recording` (boolean, optional) — True when a recording can be streamed from `GET /api/calls/{callId}/audio` (the call ended and had a conversation). Not returned by `POST /api/calls`.
    - `agent_name` (string, optional, nullable) — Name of the agent. Not returned by `POST /api/calls`.
    - `campaign_name` (string, optional, nullable) — Name of the campaign. Not returned by `POST /api/calls`.
    - `contact_name` (string, optional, nullable) — Name of the contact. Not returned by `POST /api/calls`.
    - `first_response_ms` (integer, optional, nullable) — Milliseconds until the agent first spoke. Detail only.
    - `transfer_call_sid` (string, optional, nullable) — Carrier id of the warm-transfer leg while a transfer is active. Detail only.
    - `transferred_at` (datetime, optional, nullable) — When a warm transfer started. Detail only.
    - `transferred_to` (string, optional, nullable) — E.164 number the call was transferred to. Detail only.
    - `cost_credits` (double, optional, nullable) — Voice-provider credits charged for the conversation.
    - `cost_usd` (string, optional, nullable) — Provider cost in USD as a decimal string. This is Jelliu's cost, not what the workspace is billed.
    - `llm_cost_usd` (string, optional, nullable) — LLM share of the cost, as a decimal string. Detail only.
    - `termination_reason` (string, optional, nullable) — Why the conversation ended, as reported by the voice provider (free text).
    - `main_language` (string, optional, nullable) — Main language detected in the conversation.
    - `initiation_source` (string, optional, nullable) — How the conversation was started, e.g. `twilio`, `sip_trunk`, `whatsapp`, `js_sdk`.
    - `call_success_score` (double, optional, nullable) — Voice provider's 0-100 confidence the call met its goal.
    - `agent_talk_seconds` (double, optional, nullable) — Seconds of agent audio.
    - `user_talk_seconds` (double, optional, nullable) — Seconds of the other party's audio.
    - `agent_turn_count` (integer, optional, nullable) — Number of agent turns.
    - `user_turn_count` (integer, optional, nullable) — Number of user turns.
    - `interruption_count` (integer, optional, nullable) — Agent turns the person cut off.
    - `avg_response_latency_ms` (double, optional, nullable) — Average silence-to-agent-audio latency, in milliseconds.
    - `max_response_latency_ms` (double, optional, nullable) — Worst agent-turn latency, in milliseconds.
    - `llm_input_tokens` (integer, optional, nullable) — LLM input tokens. Detail only.
    - `llm_output_tokens` (integer, optional, nullable) — LLM output tokens. Detail only.
    - `sentiment_timeline` (list of object, optional, nullable) — Per scored user turn - `t` seconds into the call, `s` sentiment, `f` frustration. Detail only.
      - `t` (double, optional) — Seconds into the call.
      - `s` (double, optional) — Sentiment, -1 to 1.
      - `f` (double, optional) — Frustration, 0 to 1.
    - `telemetry_fetched_at` (datetime, optional, nullable) — When telemetry was last fetched from the voice provider. Detail only.
    - `tool_call_count` (integer, optional, nullable) — Tools invoked during the conversation. Detail only.
    - `mcp_call_count` (integer, optional, nullable) — Tool calls that reached external software (MCP / webhook). Detail only.
    - `rag_lookup_count` (integer, optional, nullable) — Knowledge-base retrievals. Detail only.
    - `tool_result_bytes` (string, optional, nullable) — Characters returned by tool results, as an integer string. Detail only.
    - `dnc_scanned_at` (datetime, optional, nullable) — When the transcript was last scanned for an opt-out request. Detail only.
    - `started_at` (datetime, optional, nullable) — When the conversation started. Null until known.
    - `ended_at` (datetime, optional, nullable) — When the call ended. Null while live.
    - `deleted_at` (datetime, optional, nullable) — Always null on returned rows (deleted calls are not served).
  - `total` (integer, required) — Total calls matching the filters (all pages).
  - `limit` (integer, required) — The page size applied.
  - `offset` (integer, required) — The offset applied (0 when paging by cursor).
  - `nextCursor` (string, required, nullable) — Pass as `cursor` to get the next page; `null` when this page came back with fewer than `limit` rows.

## Errors

### 400 Bad Request Error

A query parameter is invalid. Message `Invalid calls query`; `details` holds zod `flatten()` output keyed by parameter.

- `error` (object, required) — The error object. Always has `code` and `message`.
  - `code` (string, required) — Stable machine-readable error code (for example `VALIDATION_FAILED`, `UNAUTHORIZED`, `FORBIDDEN`, `NOT_FOUND`, `BILLING_ERROR`, `COMPLIANCE_BLOCKED`, `RATE_LIMIT_EXCEEDED`, `INTERNAL_ERROR`). Switch on this, not on `message`. See [Errors](/errors).
  - `message` (string, required) — Human-readable explanation. English or Spanish depending on the route; may change without notice.
  - `details` (object or list of object, optional) — Present on `VALIDATION_FAILED` only. Its shape depends on how the route validates: * a field map, either Zod's `flatten()` output (`{ "formErrors": [], "fieldErrors": { "name": ["..."] } }`) or just its `fieldErrors` part (`{ "name": ["..."] }`); * an issue list, where each issue has at least `path`, `message` and `code`. `path` is a dot-separated string on routes that let the schema throw, and an array of keys on routes that forward Zod's raw issues (those also carry Zod's extra issue fields).
    - Field map
      - `formErrors` (list of string, optional)
      - `fieldErrors` (map from string to list of string, optional)
  - `metadata` (map from string to any, optional) — Structured detail exposed for a small allowlist of codes only — for example `BILLING_ERROR` carries `limit`, `current` and `tier` (resource caps) or `tier` and `feature` (feature gates).

### 401 Unauthorized Error

No usable credential. Either the `Authorization` header is missing or is not a well-formed `Bearer jl_…` key, or the key is unknown, revoked or expired. Do not retry with the same key. See [Authentication](/authentication#401-unauthorized).

- `error` (object, required) — The error object. Always has `code` and `message`.
  - `code` (string, required) — Stable machine-readable error code (for example `VALIDATION_FAILED`, `UNAUTHORIZED`, `FORBIDDEN`, `NOT_FOUND`, `BILLING_ERROR`, `COMPLIANCE_BLOCKED`, `RATE_LIMIT_EXCEEDED`, `INTERNAL_ERROR`). Switch on this, not on `message`. See [Errors](/errors).
  - `message` (string, required) — Human-readable explanation. English or Spanish depending on the route; may change without notice.
  - `details` (object or list of object, optional) — Present on `VALIDATION_FAILED` only. Its shape depends on how the route validates: * a field map, either Zod's `flatten()` output (`{ "formErrors": [], "fieldErrors": { "name": ["..."] } }`) or just its `fieldErrors` part (`{ "name": ["..."] }`); * an issue list, where each issue has at least `path`, `message` and `code`. `path` is a dot-separated string on routes that let the schema throw, and an array of keys on routes that forward Zod's raw issues (those also carry Zod's extra issue fields).
    - Field map
      - `formErrors` (list of string, optional)
      - `fieldErrors` (map from string to list of string, optional)
  - `metadata` (map from string to any, optional) — Structured detail exposed for a small allowlist of codes only — for example `BILLING_ERROR` carries `limit`, `current` and `tier` (resource caps) or `tier` and `feature` (feature gates).

### 403 Forbidden Error

The API key has neither the `read` nor the `write` scope, or the workspace is suspended.

- `error` (object, required) — The error object. Always has `code` and `message`.
  - `code` (string, required) — Stable machine-readable error code (for example `VALIDATION_FAILED`, `UNAUTHORIZED`, `FORBIDDEN`, `NOT_FOUND`, `BILLING_ERROR`, `COMPLIANCE_BLOCKED`, `RATE_LIMIT_EXCEEDED`, `INTERNAL_ERROR`). Switch on this, not on `message`. See [Errors](/errors).
  - `message` (string, required) — Human-readable explanation. English or Spanish depending on the route; may change without notice.
  - `details` (object or list of object, optional) — Present on `VALIDATION_FAILED` only. Its shape depends on how the route validates: * a field map, either Zod's `flatten()` output (`{ "formErrors": [], "fieldErrors": { "name": ["..."] } }`) or just its `fieldErrors` part (`{ "name": ["..."] }`); * an issue list, where each issue has at least `path`, `message` and `code`. `path` is a dot-separated string on routes that let the schema throw, and an array of keys on routes that forward Zod's raw issues (those also carry Zod's extra issue fields).
    - Field map
      - `formErrors` (list of string, optional)
      - `fieldErrors` (map from string to list of string, optional)
  - `metadata` (map from string to any, optional) — Structured detail exposed for a small allowlist of codes only — for example `BILLING_ERROR` carries `limit`, `current` and `tier` (resource caps) or `tier` and `feature` (feature gates).

### 429 Too Many Requests Error

The outbound budget (20 requests/min per workspace, shared by every `/api/calls` endpoint) is spent.

- `error` (object, required) — The error object. Always has `code` and `message`.
  - `code` (string, required) — Stable machine-readable error code (for example `VALIDATION_FAILED`, `UNAUTHORIZED`, `FORBIDDEN`, `NOT_FOUND`, `BILLING_ERROR`, `COMPLIANCE_BLOCKED`, `RATE_LIMIT_EXCEEDED`, `INTERNAL_ERROR`). Switch on this, not on `message`. See [Errors](/errors).
  - `message` (string, required) — Human-readable explanation. English or Spanish depending on the route; may change without notice.
  - `details` (object or list of object, optional) — Present on `VALIDATION_FAILED` only. Its shape depends on how the route validates: * a field map, either Zod's `flatten()` output (`{ "formErrors": [], "fieldErrors": { "name": ["..."] } }`) or just its `fieldErrors` part (`{ "name": ["..."] }`); * an issue list, where each issue has at least `path`, `message` and `code`. `path` is a dot-separated string on routes that let the schema throw, and an array of keys on routes that forward Zod's raw issues (those also carry Zod's extra issue fields).
    - Field map
      - `formErrors` (list of string, optional)
      - `fieldErrors` (map from string to list of string, optional)
  - `metadata` (map from string to any, optional) — Structured detail exposed for a small allowlist of codes only — for example `BILLING_ERROR` carries `limit`, `current` and `tier` (resource caps) or `tier` and `feature` (feature gates).

## Examples

**Response**

```json
{
  "data": {
    "calls": [
      {
        "id": "8d0f3c1e-5b7a-4c52-9d0e-2a6f1b3c4d5e",
        "tenant_id": "5a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
        "phone_number": "+573001234567",
        "status": "completed",
        "call_direction": "outbound",
        "created_at": "2026-09-14T15:02:05.000Z",
        "updated_at": "2026-09-14T15:04:40.000Z",
        "campaign_id": null,
        "contact_id": "c3a1f2e4-7b6d-4e5f-9a8b-0c1d2e3f4a5b",
        "agent_id": "2f2d8b4d-aa6f-41e0-9d3e-4d61e1b07a11",
        "outcome": "appointment_booked",
        "duration_seconds": 142,
        "prompt_variant_id": null,
        "summary": "La clienta agendó una cita de valoración para el martes a las 10:00.",
        "sentiment_score": 1,
        "frustration_score": 0.05,
        "sentiment_low": 0,
        "objections": [],
        "evaluation_criteria_results": {
          "cita_agendada": {
            "result": "success",
            "rationale": "La clienta aceptó el martes a las 10:00."
          }
        },
        "data_collection_results": {
          "fecha_cita": {
            "value": "2026-09-16T10:00:00-05:00",
            "rationale": "Confirmó el martes a las 10."
          }
        },
        "analysis": {
          "summary": "La clienta agendó una cita de valoración para el martes a las 10:00.",
          "outcome": "appointment_booked",
          "sentiment": "positive",
          "sentiment_score": 1,
          "key_topics": [],
          "qualification": null
        },
        "has_recording": true,
        "agent_name": "Sofía - Agendamiento",
        "campaign_name": null,
        "contact_name": "Laura Gómez",
        "cost_credits": 1420,
        "cost_usd": "0.3012",
        "termination_reason": "end_call tool was called.",
        "main_language": "es",
        "initiation_source": "twilio",
        "call_success_score": 92,
        "agent_talk_seconds": 71.4,
        "user_talk_seconds": 48.2,
        "agent_turn_count": 11,
        "user_turn_count": 10,
        "interruption_count": 1,
        "avg_response_latency_ms": 910,
        "max_response_latency_ms": 1840,
        "started_at": "2026-09-14T15:02:11.000Z",
        "ended_at": "2026-09-14T15:04:33.000Z",
        "deleted_at": null
      }
    ],
    "total": 132,
    "limit": 25,
    "offset": 0,
    "nextCursor": "2026-09-14T15:02:05.000Z"
  }
}
```

**SDK Code**

```python Calls_getCalls_example
import requests

url = "https://api.jelliu.co/api/calls"

querystring = {"agentId":"2f2d8b4d-aa6f-41e0-9d3e-4d61e1b07a11","campaignId":"fbb7c4c9-0e1d-4f58-a3d7-6c3a99b8d7c0","cursor":"2026-09-14T15:02:05.000Z","limit":"25","offset":"50"}

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Calls_getCalls_example
const url = 'https://api.jelliu.co/api/calls?agentId=2f2d8b4d-aa6f-41e0-9d3e-4d61e1b07a11&campaignId=fbb7c4c9-0e1d-4f58-a3d7-6c3a99b8d7c0&cursor=2026-09-14T15%3A02%3A05.000Z&limit=25&offset=50';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Calls_getCalls_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.jelliu.co/api/calls?agentId=2f2d8b4d-aa6f-41e0-9d3e-4d61e1b07a11&campaignId=fbb7c4c9-0e1d-4f58-a3d7-6c3a99b8d7c0&cursor=2026-09-14T15%3A02%3A05.000Z&limit=25&offset=50"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Calls_getCalls_example
require 'uri'
require 'net/http'

url = URI("https://api.jelliu.co/api/calls?agentId=2f2d8b4d-aa6f-41e0-9d3e-4d61e1b07a11&campaignId=fbb7c4c9-0e1d-4f58-a3d7-6c3a99b8d7c0&cursor=2026-09-14T15%3A02%3A05.000Z&limit=25&offset=50")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java Calls_getCalls_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.jelliu.co/api/calls?agentId=2f2d8b4d-aa6f-41e0-9d3e-4d61e1b07a11&campaignId=fbb7c4c9-0e1d-4f58-a3d7-6c3a99b8d7c0&cursor=2026-09-14T15%3A02%3A05.000Z&limit=25&offset=50")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Calls_getCalls_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.jelliu.co/api/calls?agentId=2f2d8b4d-aa6f-41e0-9d3e-4d61e1b07a11&campaignId=fbb7c4c9-0e1d-4f58-a3d7-6c3a99b8d7c0&cursor=2026-09-14T15%3A02%3A05.000Z&limit=25&offset=50', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp Calls_getCalls_example
using RestSharp;

var client = new RestClient("https://api.jelliu.co/api/calls?agentId=2f2d8b4d-aa6f-41e0-9d3e-4d61e1b07a11&campaignId=fbb7c4c9-0e1d-4f58-a3d7-6c3a99b8d7c0&cursor=2026-09-14T15%3A02%3A05.000Z&limit=25&offset=50");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Calls_getCalls_example
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.jelliu.co/api/calls?agentId=2f2d8b4d-aa6f-41e0-9d3e-4d61e1b07a11&campaignId=fbb7c4c9-0e1d-4f58-a3d7-6c3a99b8d7c0&cursor=2026-09-14T15%3A02%3A05.000Z&limit=25&offset=50")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```