以 AI 机器人身份加入视频会议,提供语音、虚拟形象与屏幕共享四种模式。
文档
CallRail
试用通过托管 OAuth 代理访问 CallRail API,管理通话、追踪号码、公司、标签与用户。
它能做什么
通过托管 OAuth 代理将请求转发到 api.callrail.com,可调用 CallRail v3 接口读取并更新通话、管理追踪号码/公司/标签/用户,以及拉取通话汇总与时序数据。请求需在 Authorization 头携带 MATON_API_KEY 环境变量对应的 Bearer 令牌;多账号场景下需额外通过 Maton-Connection 头指定目标连接。读取为默认行为,所有写入(通话更新、标签增删改、连接的创建与删除)在执行前都需先经用户确认。
什么时候用它
- 按日期范围、追踪号或公司筛选拉取通话列表
- 获取按公司、追踪号或来源分组的通话汇总数据
- 创建、重命名或删除标签,并通过 tag_list/append_tags 应用到通话
- 管理 CallRail OAuth 连接,并在多个账号间路由请求
技能文档
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://api.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://api.maton.ai/callrail/{native-api-path}
Maton 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://api.maton.ai.
List Connections
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.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://api.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://api.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": "{connection_id}",
"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://api.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://api.maton.ai/callrail/v3/a.json')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('Maton-Connection', '{connection_id}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
If you have multiple connections, always include this header to ensure requests go to the intended account.
Security & Permissions
- Access is scoped to calls, accounts, companies, trackers, and integrations within the connected CallRail account.
- All write operations require explicit user approval. Before executing any create, update, or delete call, confirm the target resource and intended effect with the user.
API Reference
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.
Accounts
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
Companies
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
Calls
List Calls
GET /callrail/v3/a/{account_id}/calls.json
Query Parameters:
| Parameter | Description |
|---|---|
page | Page number (default: 1) |
per_page | Results per page (default: 100, max: 250) |
date_range | Preset: recent, today, yesterday, last_7_days, last_30_days, this_month, last_month |
start_date | ISO 8601 date (e.g., 2026-02-01T00:00:00-08:00) |
end_date | ISO 8601 date |
company_id | Filter by company |
tracker_id | Filter by tracker |
search | Search term |
fields | Comma-separated field names to return |
sort | Field to sort by |
order | Sort 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:
| Field | Description |
|---|---|
customer_name | Customer's name |
note | Call notes |
lead_status | good_lead, not_a_lead, previously_marked_good_lead |
spam | Mark as spam (boolean) |
tag_list | Array of tag names to apply |
value | Call value (numeric) |
append_tags | Add 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:
| Parameter | Description |
|---|---|
date_range | Preset date range |
start_date | Start date (ISO 8601) |
end_date | End date (ISO 8601) |
group_by | Group 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}
]
}
Trackers (Tracking Numbers)
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
Tags
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 accountcompany- Specific to a company (requirescompany_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
Users
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
Integrations
List Integrations
GET /callrail/v3/a/{account_id}/integrations.json?company_id={company_id}
Note: company_id is required.
Notifications
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.
Code Examples
JavaScript
const response = await fetch(
'https://api.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://api.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 Type | Hourly Limit | Daily Limit |
|---|---|---|
| General API | 1,000 | 10,000 |
| SMS Send | 150 | 1,000 |
| Outbound Calls | 100 | 2,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 -gwhen URLs contain brackets to disable glob parsing - IMPORTANT: When piping curl output to
jqor other commands, environment variables like$MATON_API_KEYmay not expand correctly in some shell environments
Error Handling
| Status | Meaning |
|---|---|
| 400 | Bad request or missing required parameter |
| 401 | Invalid or missing Maton API key |
| 403 | Forbidden - insufficient permissions |
| 404 | Resource not found |
| 422 | Unprocessable entity |
| 429 | Rate limited |
| 500 | Internal server error |
| 503 | Service unavailable |
Troubleshooting: API Key Issues
- Check that the
MATON_API_KEYenvironment 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://api.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://api.maton.ai/callrail/v3/a.json - Incorrect:
https://api.maton.ai/v3/a.json
Resources
常见问题
- 如何完成认证?
- 将 MATON_API_KEY 设为环境变量,以 Bearer 方式放入 Authorization 头,代理会自动附加已存储的 CallRail OAuth 令牌。
- 覆盖了哪些资源?
- 账户、公司、通话(含汇总与时序)、追踪号码、标签、用户、集成和通知——这些资源均有读取接口,另支持通话更新以及标签的完整增删改。
- 写入操作受到保护吗?
- 是的。更新通话、增删改标签以及创建或删除 OAuth 连接,均需在请求发出前明确确认,代理不会自动执行写入。
相关技能
从 AdMapix API 拉取广告创意、应用、榜单和收入预估等数据,原样返回结构化 JSON。
在本地磁盘以分类纯 Markdown 文件保存需要长期留存的事实,与智能体内置记忆并存。
把自然语言描述转为结构化 JSON,并由 mcp-diagram-generator MCP 服务生成 Draw.io、Mermaid 或 Excalidraw 图表文件。
诊断生产力系统反复失效的根因,给出最小干预——容量测算、瓶颈定位、可靠的本地记录。
编写、调试与调优 Playwright 测试,涵盖定位器策略、追踪诊断与 CI 友好的超时配置。
byungkyu 的更多技能
浏览全部技能通过托管 OAuth 访问 Microsoft Graph Excel 接口,读写 OneDrive 中的工作簿、工作表、区域、表格与图表。
通过 OAuth 认证网关管理 Stripe 客户、订阅、发票、产品、价格和支付。
通过托管 OAuth 的统一网关读写 Google Sheets 数据。
通过托管 OAuth 代理访问 YouTube Data API v3,搜索与管理视频、播放列表、频道、订阅和评论。
通过托管 OAuth 代理调用 WooCommerce REST API,管理商品、订单、客户、优惠券、物流、税务等数据。
通过托管 OAuth 认证,访问并管理 ClickUp 工作区、空间、文件夹、清单与任务等数据。