# Send CallRail to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "callrail",
    "name": "CallRail",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/byungkyu/callrail",
    "canonicalUrl": "https://clawhub.ai/byungkyu/callrail",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/callrail",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=callrail",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "LICENSE.txt"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "callrail",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-01T05:38:09.876Z",
      "expiresAt": "2026-05-08T05:38:09.876Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=callrail",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=callrail",
        "contentDisposition": "attachment; filename=\"callrail-1.0.2.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "callrail"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/callrail"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/callrail",
    "downloadUrl": "https://openagent3.xyz/downloads/callrail",
    "agentUrl": "https://openagent3.xyz/skills/callrail/agent",
    "manifestUrl": "https://openagent3.xyz/skills/callrail/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/callrail/agent.md"
  }
}
```
## Documentation

### CallRail

Access the CallRail API with managed OAuth authentication. Track calls, manage tracking numbers, analyze call data, and organize with tags.

### Quick Start

# List all calls
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://gateway.maton.ai/callrail/v3/a/{account_id}/calls.json')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

### Base URL

https://gateway.maton.ai/callrail/{native-api-path}

Replace {native-api-path} with the actual CallRail API endpoint path. The gateway proxies requests to api.callrail.com and automatically injects your OAuth token.

### Authentication

All requests require the Maton API key in the Authorization header:

Authorization: Bearer $MATON_API_KEY

Environment Variable: Set your API key as MATON_API_KEY:

export MATON_API_KEY="YOUR_API_KEY"

### Getting Your API Key

Sign in or create an account at maton.ai
Go to maton.ai/settings
Copy your API key

### Connection Management

Manage your CallRail OAuth connections at https://ctrl.maton.ai.

### List Connections

python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://ctrl.maton.ai/connections?app=callrail&status=ACTIVE')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

### Create Connection

python <<'EOF'
import urllib.request, os, json
data = json.dumps({'app': 'callrail'}).encode()
req = urllib.request.Request('https://ctrl.maton.ai/connections', data=data, method='POST')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('Content-Type', 'application/json')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

### Get Connection

python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

Response:

{
  "connection": {
    "connection_id": "75364cb9-7116-4367-a707-1113d426f17d",
    "status": "ACTIVE",
    "creation_time": "2026-02-10T09:55:17.574212Z",
    "last_updated_time": "2026-02-10T09:55:34.693801Z",
    "url": "https://connect.maton.ai/?session_token=...",
    "app": "callrail",
    "metadata": {}
  }
}

Open the returned url in a browser to complete OAuth authorization.

### Delete Connection

python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}', method='DELETE')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

### Specifying Connection

If you have multiple CallRail connections, specify which one to use with the Maton-Connection header:

python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://gateway.maton.ai/callrail/v3/a.json')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('Maton-Connection', '75364cb9-7116-4367-a707-1113d426f17d')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

If omitted, the gateway uses the default (oldest) active connection.

### URL Pattern

All CallRail API endpoints follow this pattern:

/callrail/v3/a/{account_id}/{resource}.json

Account IDs start with ACC, Company IDs start with COM, Call IDs start with CAL, Tracker IDs start with TRK, User IDs start with USR.

### List Accounts

GET /callrail/v3/a.json

Response:

{
  "page": 1,
  "per_page": 100,
  "total_pages": 1,
  "total_records": 1,
  "accounts": [
    {
      "id": "ACC019c46b8a0807fbdb81c8bf12af91cb3",
      "name": "My Account",
      "numeric_id": 518664017,
      "inbound_recording_enabled": false,
      "outbound_recording_enabled": false,
      "hipaa_account": false,
      "created_at": "2026-02-10 03:43:50 -0500"
    }
  ]
}

### Get Account

GET /callrail/v3/a/{account_id}.json

### List Companies

GET /callrail/v3/a/{account_id}/companies.json

Response:

{
  "page": 1,
  "per_page": 100,
  "total_pages": 1,
  "total_records": 1,
  "companies": [
    {
      "id": "COM019c46b8a26376a9a4f29671dcdd49e9",
      "name": "My Company",
      "status": "active",
      "time_zone": "America/Los_Angeles",
      "created_at": "2026-02-10T08:43:51.280Z",
      "callscore_enabled": false,
      "lead_scoring_enabled": true,
      "callscribe_enabled": true
    }
  ]
}

### Get Company

GET /callrail/v3/a/{account_id}/companies/{company_id}.json

### List Calls

GET /callrail/v3/a/{account_id}/calls.json

Query Parameters:

ParameterDescriptionpagePage number (default: 1)per_pageResults per page (default: 100, max: 250)date_rangePreset: recent, today, yesterday, last_7_days, last_30_days, this_month, last_monthstart_dateISO 8601 date (e.g., 2026-02-01T00:00:00-08:00)end_dateISO 8601 datecompany_idFilter by companytracker_idFilter by trackersearchSearch termfieldsComma-separated field names to returnsortField to sort byorderSort order: asc or desc

Response:

{
  "page": 1,
  "per_page": 100,
  "total_pages": 1,
  "total_records": 1,
  "calls": [
    {
      "id": "CAL019c46b9fc277a7881e3728fea20869b",
      "answered": false,
      "customer_name": "John Doe",
      "customer_phone_number": "+18886757190",
      "direction": "inbound",
      "duration": 36,
      "recording": "https://api.callrail.com/v3/a/.../recording",
      "recording_duration": 36,
      "start_time": "2026-02-10T00:45:19.781-08:00",
      "tracking_phone_number": "+18017846712",
      "voicemail": true
    }
  ]
}

### Get Call

GET /callrail/v3/a/{account_id}/calls/{call_id}.json

### Update Call

PUT /callrail/v3/a/{account_id}/calls/{call_id}.json
Content-Type: application/json

{
  "customer_name": "John Smith",
  "note": "Follow up scheduled",
  "lead_status": "good_lead",
  "spam": false
}

Updatable Fields:

FieldDescriptioncustomer_nameCustomer's namenoteCall noteslead_statusgood_lead, not_a_lead, previously_marked_good_leadspamMark as spam (boolean)tag_listArray of tag names to applyvalueCall value (numeric)append_tagsAdd tags without removing existing

### Call Summary

GET /callrail/v3/a/{account_id}/calls/summary.json

Get aggregated call statistics for a date range.

Query Parameters:

ParameterDescriptiondate_rangePreset date rangestart_dateStart date (ISO 8601)end_dateEnd date (ISO 8601)group_byGroup results: company, tracker, source, medium, etc.

Response:

{
  "start_date": "2026-02-03T00:00:00-0800",
  "end_date": "2026-02-10T23:59:59-0800",
  "time_zone": "Pacific Time (US & Canada)",
  "total_results": {
    "total_calls": 42
  }
}

### Call Timeseries

GET /callrail/v3/a/{account_id}/calls/timeseries.json

Get call data over time for charts and graphs.

Response:

{
  "start_date": "2026-02-03T00:00:00-0800",
  "end_date": "2026-02-10T23:59:59-0800",
  "data": [
    {"key": "2026-02-03", "date": "2026-02-03", "total_calls": 5},
    {"key": "2026-02-04", "date": "2026-02-04", "total_calls": 8}
  ]
}

### List Trackers

GET /callrail/v3/a/{account_id}/trackers.json

Response:

{
  "page": 1,
  "per_page": 100,
  "total_records": 1,
  "trackers": [
    {
      "id": "TRK019c46b9f18174d68bb8d7985260a11f",
      "name": "Google My Business",
      "type": "source",
      "status": "active",
      "destination_number": "+18019234886",
      "tracking_numbers": ["+18017846712"],
      "sms_supported": true,
      "sms_enabled": true,
      "company": {
        "id": "COM019c46b8a26376a9a4f29671dcdd49e9",
        "name": "My Company"
      },
      "source": {"type": "google_my_business"},
      "call_flow": {
        "type": "basic",
        "recording_enabled": true,
        "destination_number": "+18019234886"
      }
    }
  ]
}

### Get Tracker

GET /callrail/v3/a/{account_id}/trackers/{tracker_id}.json

### List Tags

GET /callrail/v3/a/{account_id}/tags.json

Response:

{
  "page": 1,
  "per_page": 100,
  "total_records": 6,
  "tags": [
    {
      "id": 7886733,
      "name": "Schedule requested",
      "tag_level": "account",
      "color": "orange3",
      "background_color": "gray1",
      "company_id": null,
      "status": "enabled"
    },
    {
      "id": 7886728,
      "name": "Opportunity",
      "tag_level": "company",
      "color": "gray1",
      "company_id": "COM019c46b8a26376a9a4f29671dcdd49e9",
      "status": "enabled"
    }
  ]
}

### Create Tag

POST /callrail/v3/a/{account_id}/tags.json
Content-Type: application/json

{
  "name": "New Tag",
  "tag_level": "account",
  "color": "blue1"
}

Tag Levels:

account - Available to all companies in the account
company - Specific to a company (requires company_id)

Colors: gray1, blue1, blue2, green1, green2, orange1, orange2, orange3, red1, etc.

### Update Tag

PUT /callrail/v3/a/{account_id}/tags/{tag_id}.json
Content-Type: application/json

{
  "name": "Updated Tag Name",
  "color": "green1"
}

### Delete Tag

DELETE /callrail/v3/a/{account_id}/tags/{tag_id}.json

### List Users

GET /callrail/v3/a/{account_id}/users.json

Response:

{
  "page": 1,
  "per_page": 100,
  "total_records": 1,
  "users": [
    {
      "id": "USR019c46b8a0557b2e85e5e1c651452509",
      "email": "user@example.com",
      "first_name": "John",
      "last_name": "Doe",
      "name": "John Doe",
      "role": "admin",
      "accepted": true,
      "created_at": "2026-02-10T03:43:50.798-05:00",
      "companies": [
        {"id": "COM...", "name": "My Company"}
      ]
    }
  ]
}

### Get User

GET /callrail/v3/a/{account_id}/users/{user_id}.json

### List Integrations

GET /callrail/v3/a/{account_id}/integrations.json?company_id={company_id}

Note: company_id is required.

### List Notifications

GET /callrail/v3/a/{account_id}/notifications.json

### Pagination

CallRail uses offset-based pagination:

GET /callrail/v3/a/{account_id}/calls.json?page=2&per_page=50

Response includes:

{
  "page": 2,
  "per_page": 50,
  "total_pages": 10,
  "total_records": 487,
  "calls": [...]
}

Parameters:

page - Page number (default: 1)
per_page - Results per page (default: 100, max: 250)

For the calls endpoint, you can also use relative pagination:

GET /callrail/v3/a/{account_id}/calls.json?relative_pagination=true

This returns next_page URL and has_next_page boolean for efficient pagination of large datasets.

### JavaScript

const response = await fetch(
  'https://gateway.maton.ai/callrail/v3/a/{account_id}/calls.json',
  {
    headers: {
      'Authorization': \`Bearer ${process.env.MATON_API_KEY}\`
    }
  }
);
const data = await response.json();
console.log(data.calls);

### Python

import os
import requests

response = requests.get(
    'https://gateway.maton.ai/callrail/v3/a/{account_id}/calls.json',
    headers={'Authorization': f'Bearer {os.environ["MATON_API_KEY"]}'},
    params={'per_page': 50, 'date_range': 'last_30_days'}
)
data = response.json()
for call in data['calls']:
    print(f"{call['customer_name']}: {call['duration']}s")

### Rate Limits

Endpoint TypeHourly LimitDaily LimitGeneral API1,00010,000SMS Send1501,000Outbound Calls1002,000

Exceeding limits returns HTTP 429. Implement exponential backoff for retries.

### Notes

Account IDs start with ACC
Company IDs start with COM
Call IDs start with CAL
Tracker IDs start with TRK
User IDs start with USR
All endpoints end with .json
Communication records are retained for 25 months
Date/time values use ISO 8601 format with timezone
IMPORTANT: When using curl commands, use curl -g when URLs contain brackets to disable glob parsing
IMPORTANT: When piping curl output to jq or other commands, environment variables like $MATON_API_KEY may not expand correctly in some shell environments

### Error Handling

StatusMeaning400Bad request or missing required parameter401Invalid or missing Maton API key403Forbidden - insufficient permissions404Resource not found422Unprocessable entity429Rate limited500Internal server error503Service unavailable

### Troubleshooting: API Key Issues

Check that the MATON_API_KEY environment variable is set:

echo $MATON_API_KEY

Verify the API key is valid by listing connections:

python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://ctrl.maton.ai/connections')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

### Troubleshooting: Invalid App Name

Ensure your URL path starts with callrail. For example:

Correct: https://gateway.maton.ai/callrail/v3/a.json
Incorrect: https://gateway.maton.ai/v3/a.json

### Resources

CallRail API Documentation
CallRail Help Center - API
CallRail API Rate Limits
Maton Community
Maton Support
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: byungkyu
- Version: 1.0.1
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-01T05:38:09.876Z
- Expires at: 2026-05-08T05:38:09.876Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/callrail)
- [Send to Agent page](https://openagent3.xyz/skills/callrail/agent)
- [JSON manifest](https://openagent3.xyz/skills/callrail/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/callrail/agent.md)
- [Download page](https://openagent3.xyz/downloads/callrail)