---
title: "Trellus Developers | Public API Documentation & MCP"
description: "Public Trellus API and MCP documentation. Read the Call Data API reference, connect an AI assistant, or import contacts with the Calling Lists API."
source: "https://www.trellus.ai/developers"
note: "Text-only copy of the page for AI assistants and agents. Link to the source address, not this file."
site_summary: "https://www.trellus.ai/llms.txt"
---

# Build with your call data.

Read call records, connect an AI assistant, or send contact lists into Trellus. The guides, examples and field references are public.

The documentation is public. A Trellus account with API access is required to query your data. Your account permissions determine which calls you can read.

- [ **Call Data API** ](https://www.trellus.ai/developers/api) Read call records, transcripts, reporting fields and recording links.
- [ **MCP for AI assistants** ](https://www.trellus.ai/developers/mcp) Connect your assistant. Query call activity and selected transcripts.
- [ **Calling Lists API** ](https://www.trellus.ai/developers/calling-api) Import contact lists and update contact ownership with CSV requests.
- [ **Dialer SDK** ](https://www.trellus.ai/developers/dialer-sdk) Embed manual, power and parallel calling in your own interface. Integration preview.
- [ **CRM integrations** ](https://www.trellus.ai/integrations) Find the supported calling workflow for your sales platform.

Start with what you can read: check access, choose a date window, and select the fields your project needs. The four steps below take one small request each. The [API reference](https://www.trellus.ai/developers/api) has a page for every endpoint.

01 / Authentication

## Check account access first.

Sign in to Trellus and open **Settings → Integrations → API**. Copy your account key there. The complete reference, examples and field catalogue are available publicly on this website. If the page is unavailable, ask your team admin to check your access or [contact support](https://app.trellus.ai/support).

Store the key in your server environment as `TRELLUS_API_KEY`. It belongs to your signed-in account and inherits that account’s permissions; using it for reporting does not create a separately restricted credential.

Check readable users

```bash
curl https://ext.trellus.ai/visible \
  -H "api_key: $TRELLUS_API_KEY"
```

```javascript
const response = await fetch("https://ext.trellus.ai/visible", {
  method: "GET",
  headers: {
    "api_key": process.env.TRELLUS_API_KEY,
  },
});
console.log(await response.text());
```

```python
import os
import requests

response = requests.get(
    "https://ext.trellus.ai/visible",
    headers={
        "api_key": os.environ["TRELLUS_API_KEY"],
    },
)
print(response.text)
```

**A 200 response confirms access.** The response lists readable users, groups and memberships. A `team` value appears only when the key can read the whole team.

These examples use a placeholder environment variable. This page never asks for a key or sends a request to the API.

02 / Your first query

## Choose a date window. List your calls.

Start with a small result set. The example selects calls and returns their IDs, start times, contact names, and durations. You can include transcript columns when your project needs them.

**Generate a request** Dates are UTC

List matching calls

```bash
curl https://rpt-2.trellus.ai/session-list-v6 \
  -H "Authorization: Bearer $TRELLUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "start": 1790812800000000,
    "end": 1791417600000000,
    "cnf": [[{ "column_name": "conversation_type", "operator": "EQ", "value_safe": 1 }]],
    "limit": 50,
    "select": ["session_id", "started_at", "customer_data.name", "duration"]
  }'
```

```javascript
const response = await fetch("https://rpt-2.trellus.ai/session-list-v6", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.TRELLUS_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "start": 1790812800000000,
    "end": 1791417600000000,
    "cnf": [[{ "column_name": "conversation_type", "operator": "EQ", "value_safe": 1 }]],
    "limit": 50,
    "select": ["session_id", "started_at", "customer_data.name", "duration"]
  }),
});
console.log(await response.text());
```

```python
import os
import requests

response = requests.post(
    "https://rpt-2.trellus.ai/session-list-v6",
    headers={
        "Authorization": f"Bearer {os.environ['TRELLUS_API_KEY']}",
        "Content-Type": "application/json",
    },
    json={
        "start": 1790812800000000,
        "end": 1791417600000000,
        "cnf": [[{ "column_name": "conversation_type", "operator": "EQ", "value_safe": 1 }]],
        "limit": 50,
        "select": ["session_id", "started_at", "customer_data.name", "duration"]
    },
)
print(response.text)
```

Request fields used in this example

| Field | What to send |
| --- | --- |
| `start` / `end` | Unix microseconds. Start is included; end is excluded. The date controls calculate these values. |
| `select` | Exact field paths in the order you want returned. |
| `cnf` | Filter groups. This example selects calls using `conversation_type EQ 1`. |
| `limit` | Up to 1,000 rows. This caps the result; it is not a page size with a continuation token. |

03 / Response shape

## Map each row to your selected fields.

List results are arrays of rows. Every cell matches the field at the same position in your request’s `select` array. A successful empty response, `[]`, means no readable calls matched that query.

Example response

```json
[
  [
    "EXAMPLE_SESSION_ID",
    1790812800,
    "Example contact",
    120
  ]
]
```

Map response rows

```javascript
// Each row follows the same order as your request's select array.
const calls = rows.map(row => Object.fromEntries(
  select.map((column, index) => [column, row[index]])
));

// started_at and duration are seconds, unlike request date boundaries.
const startedAt = calls[0] ? new Date(calls[0].started_at * 1000) : null;
```

**Watch the units.** Request date boundaries use microseconds. Returned `started_at` values, call durations, and transcript offsets use seconds.

Fields in the quickstart

| Field | Meaning |
| --- | --- |
| `session_id` | The identifier to use when requesting one call. |
| `started_at` | Unix seconds. Multiply by 1,000 for a JavaScript Date. |
| `customer_data.name` | Contact name, when captured for the call. |
| `duration` | Call duration in seconds. |
| `turn_data.texts` | Transcript utterances as an array, when available. |
| `turn_data.is_customers` | Aligned with texts: true for the customer, false for the agent. |
| `turn_data.starts` | Aligned with texts: offsets in seconds from session start. |

Contact fields depend on captured CRM data. Transcripts depend on the call’s recording and transcription settings. When transcript arrays are present, match their entries by index.

04 / Call detail

## Read one selected call.

Use an exact `session_id` from your list response in the `x-session-id` header. Keep the same account key. The `x-proto-as-json` header requests JSON instead of the default binary format.

Read one call as JSON

```bash
curl https://rpt-2.trellus.ai/session \
  -H "Authorization: Bearer $TRELLUS_API_KEY" \
  -H "x-session-id: SESSION_ID_FROM_YOUR_LIST" \
  -H "x-proto-as-json: true"
```

```javascript
const response = await fetch("https://rpt-2.trellus.ai/session", {
  method: "GET",
  headers: {
    "Authorization": `Bearer ${process.env.TRELLUS_API_KEY}`,
    "x-session-id": "SESSION_ID_FROM_YOUR_LIST",
    "x-proto-as-json": "true",
  },
});
console.log(await response.text());
```

```python
import os
import requests

response = requests.get(
    "https://rpt-2.trellus.ai/session",
    headers={
        "Authorization": f"Bearer {os.environ['TRELLUS_API_KEY']}",
        "x-session-id": "SESSION_ID_FROM_YOUR_LIST",
        "x-proto-as-json": "true",
    },
)
print(response.text)
```

Detail JSON uses camelCase names such as `customerData` and `turnData`. List-query fields use snake_case paths such as `customer_data.name`. Default-valued fields may be absent in detail JSON.

Quick endpoint reference

| Endpoint | Purpose | Authentication |
| --- | --- | --- |
| GET [Check readable users](https://www.trellus.ai/developers/api/visible) `https://ext.trellus.ai/visible` | Confirm account access before querying call records. | api_key header |
| POST [List calls](https://www.trellus.ai/developers/api/list-calls) `https://rpt-2.trellus.ai/session-list-v6` | Read a bounded date window with the exact fields you need. | Authorization: Bearer |
| GET [Read one call](https://www.trellus.ai/developers/api/session) `https://rpt-2.trellus.ai/session` | Fetch one selected call in JSON using x-proto-as-json. | Authorization: Bearer + x-session-id |

Before you schedule a job

## Keep queries bounded and results checkable.

### Export complete windows

There is no cursor or offset pagination. If a result reaches your row limit, divide the date range into smaller windows and deduplicate by `session_id`. Dense windows may also need a rep filter.

### Handle rate limits

On HTTP 429, wait the number of seconds in `Retry-After` and use bounded retries. Coordinate jobs sharing the same account key. See the [rate limits](https://www.trellus.ai/developers/api/rate-limits) for request pacing.

### Inspect error text

Errors may be plain text. For a 401, inspect the response, confirm the selected call and account access, and contact support with the timestamp and session ID if needed. Keep the key out of support messages.

### Check a known call

Before scheduling an export, compare a small result with a call you can see in Trellus. Confirm the date window, field order, units, and available transcript data.

The [full Call Data API reference](https://www.trellus.ai/developers/api) also covers filtered counts and duration totals, recording links, the [complete field catalogue](https://www.trellus.ai/developers/api/fields), and an OpenAPI starter.

Call analytics through MCP

## Ask about your calls. Get the numbers behind the answer.

Connect a compatible AI assistant to Trellus reporting. Ask for call totals, connect rates, and rep-level breakdowns, then follow up with a specific call or transcript. You can explore a question without preparing a spreadsheet for each follow-up.

**Example prompts to use after connecting**

### Call volume and connect rate

Show yesterday’s outbound dials, connected calls, and connect rate by rep. Include unanswered attempts in total dials and use our team’s time zone.

### Changes in team activity

Compare the last 30 days with the previous 30. Show session count, total live duration, and calls with at least 30 seconds of live time.

### Call outcomes

Break the last 30 days down by disposition. Show session count and average duration for each outcome.

### Examples for coaching

Find five recent connected calls. Open one with a transcript and summarize its objections and agreed next step. Leave out customer contact details.

Start with a date range and a rep or team. Ask the assistant to show its filters and supporting call records so you can check the result. Transcripts are available when the call’s recording and transcription settings allow them.

**Your existing account access applies.** Sign in to Trellus and approve the connection in your browser. The reporting connector is read-only and can access only the calls your account can read. It cannot make calls or change account settings. Your AI app must support remote MCP, and your workspace must allow the connection.

[Read the MCP setup guide](https://www.trellus.ai/developers/mcp) or [watch the analytics guide](https://www.trellus.ai/videos/analytics-dashboard).

**Calling inside your CRM?** Start with the guide for the platform your team already uses: [browse integrations](https://www.trellus.ai/integrations).
