CallRail MCP
v1.3.2CallRail REST API v3: 57 tools for calls, leads, trackers, tags, users, and agency reporting.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_accounts
List CallRail accounts accessible to this API key. Most users have one account per agency. The returned `id` is used as `account_id` in all other tools (auto-resolved if omitted, or pinned with the CALLRAIL_ACCOUNT_ID environment variable). `fields` (comma-separated) adds optional attributes such as 'numeric_id', the number shown in CallRail app URLs.
| Parameter | Type | Description |
|---|---|---|
fields |
list_companies
List companies (client businesses) under a CallRail account. Args: account_id: CallRail account ID. Auto-resolves if omitted. per_page: Page size (max 250). status: Filter by status. Defaults to None (returns all). Common values: 'active' (excludes disabled/soft-deleted), 'disabled'. page: 1-indexed. Agencies with more than `per_page` companies need this to reach the rest. Previously there was no way to fetch page 2 via this tool. `search` matches the company name; `fields` (comma-separated) adds optional attribu…
| Parameter | Type | Description |
|---|---|---|
account_id | ||
fields | ||
page | integer | |
per_page | integer | |
search | ||
status |
list_trackers
List tracking phone numbers (trackers). Each tracker maps a pool of phone numbers to a traffic source (Google Ads, Organic, Direct, etc.). Args: account_id: Auto-resolves if omitted. company_id: Filter to one company. per_page: Page size (max 250). page: 1-indexed. status: Filter by status. Defaults to None (returns all, including soft-deleted/disabled). Common values: 'active', 'disabled'. `type` ('source' | 'session') filters by tracker kind; `search` matches the tracker name; `fields` (comma-separated) adds optional attri…
| Parameter | Type | Description |
|---|---|---|
account_id | ||
company_id | ||
fields | ||
page | integer | |
per_page | integer | |
search | ||
status | ||
type |
get_tracker
Get full detail for a specific tracker. Args: tracker_id: 'TRK...' id. account_id: Auto-resolves if omitted.
| Parameter | Type | Description |
|---|---|---|
tracker_id * | string | |
account_id |
create_tracker
⚠️ Create a new tracking phone number (tracker). **THIS COSTS MONEY.** CallRail charges per provisioned number. Typical pricing as of 2026: - Local numbers: ~$3/month each - Toll-free (8XX): ~$3-5/month each - Session pools: charged per number × pool_size (so pool_size=8 = 8x) - Plus per-minute usage (~$0.05/min on answered calls) Most plans bundle 5-10 numbers; provisioning beyond your bundle adds overage charges. Some plans prorate partial-month usage, so creating and immediately deleting can still produce a small charge depending on your c…
| Parameter | Type | Description |
|---|---|---|
company_id * | string | |
destination_number * | string | |
name * | string | |
account_id | ||
area_code | ||
campaign_name | ||
confirm_billing | boolean | |
greeting_text | ||
landing | ||
pool_size | ||
recording_enabled | boolean | |
referrer | ||
search_engine | ||
search_type | ||
sms_enabled | boolean | |
source_type | string | |
swap_targets | ||
toll_free | boolean | |
type | string | |
whisper_message |
update_tracker
Update a tracker's mutable settings: name, whisper, SMS, swap targets, campaign name, and the basic call flow (destination, recording, greeting). CallRail's PUT /trackers replaces the entire `call_flow` object, so when any call-flow field is given this tool first reads the tracker and merges the change into its current basic flow; the destination, recording flag and greeting you did not mention are preserved. Trackers on an advanced call flow (IVR menus, schedules, voicemail steps) are refused for call-flow edits because the API could only replace that flow wit…
| Parameter | Type | Description |
|---|---|---|
tracker_id * | string | |
account_id | ||
campaign_name | ||
destination_number | ||
greeting_recording_url | ||
greeting_text | ||
name | ||
recording_enabled | ||
sms_enabled | ||
swap_targets | ||
whisper_message |
delete_tracker
Delete (disable) a tracker. Soft-removes it from active trackers; the tracker keeps its call history but stops receiving new calls. The underlying phone number is released. Args: tracker_id: 'TRK...' id. account_id: Auto-resolves if omitted. Returns: An object with `deleted: True`, `tracker_id`, and `response` (CallRail's body, which on success contains the disabled tracker record including `disabled_at` timestamp). Empty object if CallRail returned 204.
| Parameter | Type | Description |
|---|---|---|
tracker_id * | string | |
account_id |
list_calls
List calls. Paginated. Filterable by company, date window, and answer status. Args: account_id: Auto-resolves if omitted. company_id: Filter to one company. Omit for all companies. days: Lookback in days (default 7). Ignored if `start_date` provided. start_date: 'YYYY-MM-DD'. end_date: 'YYYY-MM-DD' (defaults to today). answer_status: Server-side filter. One of 'answered', 'missed', 'voicemail'. This is CallRail's real filter parameter. Note that 'missed' includes calls that reached voicemail (CallRail's own…
| Parameter | Type | Description |
|---|---|---|
account_id | ||
answer_status | ||
answered | ||
call_type | ||
company_id | ||
days | integer | |
device | ||
direction | ||
end_date | ||
fields | ||
lead_status | ||
order | ||
page | integer | |
per_page | integer | |
search | ||
sort | ||
source | ||
start_date | ||
tags | ||
time_zone | ||
tracker_id |
get_call
Get full detail for a specific call. Args: call_id: CallRail call id (prefix 'CAL...'). account_id: Auto-resolves if omitted. fields: Comma-separated extra fields (see list_calls for common names).
| Parameter | Type | Description |
|---|---|---|
call_id * | string | |
account_id | ||
fields |
call_summary
Summarize calls over a date window. Returns counts: total, answered/missed, first-time/repeat callers, total duration, and breakdowns by `source` and `source_name`. Useful for weekly/monthly rollups without pulling every call into context. Counting rule: `missed` includes calls that reached voicemail, exactly as CallRail's own `answer_status=missed` filter and dashboard do, even though CallRail marks those calls `answered=true`. `voicemail` reports that subset separately. `by_disposition` breaks the window down by CallRail's `call_disposition` (answered, misse…
| Parameter | Type | Description |
|---|---|---|
account_id | ||
company_id | ||
days | integer | |
end_date | ||
start_date | ||
time_zone |
list_form_submissions
List form submissions captured by CallRail's Form Tracking. Paginated. Filterable by company and date window. Args: account_id: CallRail account ID. Auto-resolves if omitted. company_id: Filter to one company. Omit for all companies. days: Lookback in days (default 7). Ignored if `start_date` provided. start_date: 'YYYY-MM-DD'. end_date: 'YYYY-MM-DD' (defaults to today). per_page: Page size (max 250). page: 1-indexed. fields: Comma-separated additional fields to include, e.g. 'company_name,form_data,referrer,l…
| Parameter | Type | Description |
|---|---|---|
account_id | ||
company_id | ||
days | integer | |
end_date | ||
fields | ||
lead_status | ||
order | ||
page | integer | |
per_page | integer | |
person_lead | ||
sort | ||
start_date | ||
tags | ||
time_zone |
list_text_messages
List SMS/text message conversations sent to or received via CallRail trackers. Paginated. Filterable by company and date window. Receiving SMS works on standard accounts. Outbound SMS sending requires CallRail's A2P SMS API permission (returns 403 otherwise); see `create_text_message` notes if available on your plan. Args: account_id: CallRail account ID. Auto-resolves if omitted. company_id: Filter to one company. Omit for all companies. days: Lookback in days (default 7). Ignored if `start_date` provided. start_date: 'YYYY-MM-DD'.…
| Parameter | Type | Description |
|---|---|---|
account_id | ||
company_id | ||
days | integer | |
end_date | ||
page | integer | |
per_page | integer | |
start_date |
list_users
List users on the account. Paginated. Args: account_id: CallRail account ID. Auto-resolves if omitted. company_id: Only users with access to this company. search: Matches first_name, last_name and email. sort: User field to sort by, with `order` ('asc' | 'desc'). per_page: Page size (max 250). page: 1-indexed. Returns: JSON string with `users[]`. Each user has id ('USR...'), email, first_name, last_name, name, role ('admin' | 'manager' | 'reporting'), `accepted` (whether the invitation was accepted) and `…
| Parameter | Type | Description |
|---|---|---|
account_id | ||
company_id | ||
order | ||
page | integer | |
per_page | integer | |
search | ||
sort |
get_call_recording
Get the recording URL for a call. CallRail documents the link as good for at least 24 hours but not guaranteed forever; HIPAA accounts receive a temporary URL that expires in about 24 hours. Play or download it promptly rather than storing the link. Recording must be enabled on the company (CallRail UI > Settings > Account). Calls placed BEFORE recording was enabled have no recording even if it's enabled now; CallRail does not retroactively record. Args: call_id: 'CAL...' id. account_id: CallRail account ID. Auto-resolves if omitted. Retur…
| Parameter | Type | Description |
|---|---|---|
call_id * | string | |
account_id |
get_call_transcript
Get the transcript and conversation-intelligence fields for a call. Requests the documented field selection on GET /calls/{id}.json (`transcription`, `conversational_transcript`, `call_summary`, `call_highlights`, `keywords_spotted`, `sentiment`, `speaker_percent`) and falls back to the older /calls/{id}/transcription.json endpoint when those fields come back empty. Requires CallRail Conversation Intelligence (CallScribe) to have been enabled on the company at the time of the call; CallRail does not retroactively transcribe. Since CallRail's 2026-05-21 API cha…
| Parameter | Type | Description |
|---|---|---|
call_id * | string | |
account_id |
search_calls_by_number
Find calls from/to a specific phone number. Matches on the last 10 digits of the stored `customer_phone_number` so any format works. Args: phone_number: Any format, normalized to digits-only. Must contain at least 7 digits to avoid false positives. account_id: Auto-resolves. company_id: Optional company filter. days: Lookback window (default 90).
| Parameter | Type | Description |
|---|---|---|
phone_number * | ||
account_id | ||
company_id | ||
days | integer |
update_call
Update an existing call: notes, tags, spam flag, customer name, lead status. Args: call_id: 'CAL...' id of the call to update. account_id: Auto-resolves if omitted. note: Replace the call's note text. tags: REPLACE the call's tag list with this set of tag names. (Use `add_call_tags`/`remove_call_tags` for additive changes.) spam: True to mark as spam. False is rejected: CallRail cannot un-mark spam via the API. Note: spam-flagged calls are HIDDEN from default GET endpoints; re-reads will 404. Tag…
| Parameter | Type | Description |
|---|---|---|
call_id * | string | |
account_id | ||
customer_name | ||
lead_status | ||
note | ||
spam | ||
tags |
add_call_tags
Append tags to a call WITHOUT replacing existing ones. Reads the call's current tags first, merges the new ones in, then PUTs the combined list. Use this when you want to add labels (e.g. 'lead', 'spam', 'follow-up') without losing prior tags. To fully replace tags, use `update_call(tags=[...])` instead. Auto-creates company-level tags for any name not already in the system (CallRail's default behavior). Empty/whitespace-only entries are silently filtered, so `add_call_tags(['', 'lead'])` won't 400 (only `'lead'` is sent). Args: call_id: 'CAL...'…
| Parameter | Type | Description |
|---|---|---|
call_id * | string | |
tags * | array | |
account_id |
remove_call_tags
Remove specific tags from a call (case-sensitive on tag name). Idempotent: removing a tag that isn't attached succeeds silently. Empty/whitespace-only entries in the input list are ignored.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | |
tags * | array | |
account_id |
update_form_submission
Update an existing form submission: note, tags, value, lead status. Args: submission_id: CallRail form-submission id (prefix 'FOR...'). account_id: Auto-resolves if omitted. note: Free text (max 4000 chars). tags: Tag names. REPLACES the submission's tags unless `append_tags=True` (CallRail's documented flag). Unknown names are auto-created at the company level. value: Monetary value; sent as a currency string ("12.50"), which is what PUT /form_submissions accepts. spam: NOT supported for form submissions…
| Parameter | Type | Description |
|---|---|---|
submission_id * | string | |
account_id | ||
append_tags | boolean | |
lead_status | ||
note | ||
spam | ||
tags | ||
value |
list_tags
List all tags in the account, or filtered to one company. `status` ('enabled' | 'disabled') and `tag_level` ('account' | 'company') filter server-side.
| Parameter | Type | Description |
|---|---|---|
account_id | ||
company_id | ||
page | integer | |
per_page | integer | |
status | ||
tag_level |
create_tag
Create a new tag, scoped to one company or to the whole account. Args: name: Tag display name. company_id: 'COM...' id. Required for company-level tags (the default). Omit it when `tag_level='account'`. account_id: Auto-resolves if omitted. color: One of the 24 CallRail-supported colors (see VALID_TAG_COLORS): gray1-2, blue1-2, cyan1-2, purple1-2, pink1-4, red1-2, orange1-4, yellow1-2, green1-4. If omitted, CallRail defaults to 'gray1'. tag_level: 'company' (default) or 'account'. Account-level tags…
| Parameter | Type | Description |
|---|---|---|
name * | string | |
account_id | ||
color | ||
company_id | ||
tag_level |
update_tag
Rename, recolor, disable or re-enable a tag. Args: tag_id: Numeric tag id. account_id: Auto-resolves if omitted. name: New display name (changes the tag everywhere it is applied). disabled: True hides the tag from new interactions (existing applications stay); False re-enables it. color: One of the 24 CallRail-supported colors (see VALID_TAG_COLORS): gray1-2, blue1-2, cyan1-2, purple1-2, pink1-4, red1-2, orange1-4, yellow1-2, green1-4.
| Parameter | Type | Description |
|---|---|---|
tag_id * | ||
account_id | ||
color | ||
disabled | ||
name |
delete_tag
Delete a tag definition from the account. Removes it from any calls or form submissions that had it applied. This is a HARD delete; the tag is gone permanently along with its historical applications. To preserve history, prefer renaming or disabling via `update_tag` instead. Args: tag_id: Numeric tag ID. CallRail tag IDs are integers (NOT the string-prefixed format other entities use). Must match ^[0-9]+$ (string or numeric forms accepted). account_id: CallRail account ID. Auto-resolves if omitted. Returns: JSON string…
| Parameter | Type | Description |
|---|---|---|
tag_id * | ||
account_id |
usage_summary
Per-company cost-attribution summary for the current cycle. Aggregates active trackers + per-company call minutes and projects what each client is contributing to the agency's CallRail bill. Useful for: - Deciding which client to renegotiate / upsell / drop - Sanity-checking the upcoming invoice - Quarterly reviews Pricing assumes Call Tracking Starter ($50 base + 5 numbers + 250 mins bundled; $3/local number, $5/toll-free number, $0.05/local minute, $0.08/toll-free minute over bundle). Edit PRICING_* constants in server.py if you're on a different p…
| Parameter | Type | Description |
|---|---|---|
account_id | ||
days | integer | |
end_date | ||
start_date |
call_eligibility_check
Audit whether a specific call is/was eligible to count as a Google Ads conversion. Useful for "where did my conversion go" debugging. Checks: 1. Did the call have a `gclid`? (Required for CallRail to upload to Google Ads as a UPLOAD_CLICKS Phone Call conversion.) 2. Was the call answered? (Most integrations skip unanswered.) 3. Did duration meet Google Ads' minimum? (Default 60s; configurable per conversion action in Google Ads UI.) 4. Is the call from a Google source? Detection uses CallRail's internal `source` slug (e.g. `google_pai…
| Parameter | Type | Description |
|---|---|---|
call_id * | string | |
account_id | ||
google_ads_min_duration_seconds | integer |
compare_periods
Compare current N-day window vs the previous N-day window. Returns per-company minute / call deltas + agency-wide totals. Useful for "is Malick growing?", "did we lose Stewart traffic this month?", catching invoice surprises before they hit. Args: days: Window length on each side (default 30 = roughly one cycle). Cap: 365 (don't ask for "5-year delta", likely a typo). account_id: Auto-resolves if omitted. Returns: A breakdown showing current vs previous totals, % deltas, and per-company growth/shrink. Sorted by absolute minute change.…
| Parameter | Type | Description |
|---|---|---|
account_id | ||
days | integer |
bulk_update_calls
Apply the same update to every call matching a filter. Useful for: "tag every Bing call this month as low-priority", "mark all <30s unanswered calls from this number as spam", "add a note to every call from a specific landing page". Replaces dozens of sequential `update_call` invocations with one tool call. **Safety:** `dry_run=True` by default, so this tool returns a preview of which calls WOULD be updated without actually writing. Pass `dry_run=False` to commit. Hard cap of 500 calls per invocation to prevent runaway bulk operations. Args: compa…
| Parameter | Type | Description |
|---|---|---|
account_id | ||
answer_status | ||
answered | ||
company_id | ||
days | integer | |
dry_run | boolean | |
set_lead_status | ||
set_note | ||
set_spam | ||
set_tags_add | ||
source |
spam_detector
Heuristically identify likely-spam calls and (optionally) tag them. Spam scoring (additive): +2 if duration < 10 seconds +1 if not answered +1 if first_call AND duration < 30 seconds +1 if same caller appears >=3 times in window (likely auto-dialer) A call scoring >= 3 is flagged as likely spam. Args: company_id: Restrict to one company (recommended). days: Lookback window (1-90; 90 is hard-capped to avoid memory blowup on high-volume clients: full call list is materialized for scoring before truncating the response)…
| Parameter | Type | Description |
|---|---|---|
account_id | ||
auto_tag | boolean | |
company_id | ||
days | integer | |
tag_name | string |
get_company
Get full detail for one company. Args: company_id: 'COM...' id. account_id: Auto-resolves if omitted. fields: Optional attributes (comma-separated), for example 'verified_caller_ids'. Note: Returns the disabled record (with `status: "disabled"`, `disabled_at` timestamp) for soft-deleted companies, NOT 404. Check the `status` field if you need to distinguish.
| Parameter | Type | Description |
|---|---|---|
company_id * | string | |
account_id | ||
fields |
create_company
Create a new company (client) under the account. Useful for new-client onboarding. CallRail bills per number, not per company: creating a company is free; provisioning trackers under it is what costs money (see `create_tracker`). CallRail's POST /companies accepts only `name` and `time_zone`. Every feature toggle is a PUT field, so when any toggle is given this tool creates the company and then applies the toggles with a second call; the response carries `settings_applied` (or `settings_not_applied` plus `api_warnings` if that second call failed). Args:…
| Parameter | Type | Description |
|---|---|---|
name * | string | |
account_id | ||
callscore_enabled | ||
callscribe_enabled | ||
form_capture | ||
keyword_spotting_enabled | ||
lead_scoring_enabled | ||
swap_exclude_jquery | ||
time_zone | string |
update_company
Update mutable settings on a company. Pass None to leave a field unchanged; only fields with explicit values are sent in the PUT body. CRITICAL: Any boolean toggle you set will OVERRIDE current state. If a company has CallScribe enabled and you call `update_company(name='New Name')` without passing `callscribe_enabled`, CallScribe stays on. But passing `callscribe_enabled=False` will DISABLE CallScribe (a paid feature). Be deliberate with bool args. Empty-string `name` / `time_zone` are rejected (almost always a mistake; pass None to leave them alone).…
| Parameter | Type | Description |
|---|---|---|
company_id * | string | |
account_id | ||
callscore_enabled | ||
callscribe_enabled | ||
form_capture | ||
keyword_spotting_enabled | ||
lead_scoring_enabled | ||
name | ||
swap_cookie_duration | ||
swap_cookie_duration_unit | ||
swap_exclude_jquery | ||
swap_landing_override | ||
swap_ppc_override | ||
time_zone |
delete_company
Soft-delete a company. Status flips to 'disabled', records retained. Mirrors `delete_tracker` semantics: CallRail's DELETE on companies is a soft-delete. Use `list_companies(status="active")` to filter out disabled companies after deletion. Returns: `{"deleted": True, "company_id": ..., "response": ...}`.
| Parameter | Type | Description |
|---|---|---|
company_id * | string | |
account_id |
get_user
Get full detail for one user on the account. Args: user_id: 'USR...' id. account_id: CallRail account ID. Auto-resolves if omitted. Returns: JSON string with the user object: id, email, first_name, last_name, role ('admin' | 'manager' | 'reporting'), accepted_at (null if invitation pending), time_zone, and `company_ids[]` the user can access.
| Parameter | Type | Description |
|---|---|---|
user_id * | string | |
account_id |
create_user
Invite a new user. CallRail emails them an account-creation link. Args: email: Recipient email. CallRail sends an invite. first_name, last_name: Display name. role: Default 'reporting' (read-only). Documented values: 'admin', 'manager', 'reporting'. CallRail's docs also mention legacy "notification" users, so unknown values are passed through with a warning instead of rejected. company_ids: List of 'COM...' company IDs the user can access. REQUIRED by CallRail for manager and reporting roles (sent as…
| Parameter | Type | Description |
|---|---|---|
email * | string | |
first_name * | string | |
last_name * | string | |
account_id | ||
company_ids | ||
role | string |
update_user
Update a user's name or company access. Pass None to leave unchanged. CallRail's PUT /users accepts first_name, last_name, email and companies only, with two documented restrictions: names and email can be changed only for the user who owns the API key, and an email change requires that user's current password in the request. This server never handles passwords, so `email` is rejected; `role` is rejected because the API has no way to change it (recreate the user, or use the CallRail UI). Updates are only accepted for users who have accepted their invitation. A…
| Parameter | Type | Description |
|---|---|---|
user_id * | string | |
account_id | ||
company_ids | ||
email | ||
first_name | ||
last_name | ||
role |
delete_user
Remove a user from the account. CallRail's DELETE on users is typically a hard-remove (unlike companies/trackers which soft-delete). The user loses access immediately. Returns: `{"deleted": True, "user_id": ..., "response": ...}`.
| Parameter | Type | Description |
|---|---|---|
user_id * | string | |
account_id |
get_form_submission
Get full detail for one form submission, including all submitted field data. Useful for retrieving the original form payload after seeing a submission ID via `list_form_submissions` or in a webhook callback. Args: submission_id: 'FOR...' id. account_id: CallRail account ID. Auto-resolves if omitted. Returns: JSON string with the form submission: submitted_at, customer details, source/UTM attribution, landing page URL, referrer, and `form_data` dict keyed by form field name.
| Parameter | Type | Description |
|---|---|---|
submission_id * | string | |
account_id |
get_text_message
Get full detail for one SMS conversation, including all messages. Args: conversation_id: Short alphanumeric conversation id (e.g. '8hw3p'). Returned by `list_text_messages` as `id` on each conversation.
| Parameter | Type | Description |
|---|---|---|
conversation_id * | string | |
account_id |
get_tag
Get full detail for one tag. Args: tag_id: Numeric tag id. account_id: Auto-resolves if omitted.
| Parameter | Type | Description |
|---|---|---|
tag_id * | ||
account_id |
list_integrations
List integrations attached to one company (GMB, Google Ads, Facebook, Slack, Webhooks, etc.). Args: company_id: 'COM...' id. **Required**: the integrations endpoint returns 400 without it (account-level listing isn't supported). per_page: Page size (max 250). page: 1-indexed. account_id: Auto-resolves if omitted. `fields` (comma-separated) adds optional attributes to each integration.
| Parameter | Type | Description |
|---|---|---|
company_id * | string | |
account_id | ||
fields | ||
page | integer | |
per_page | integer |
get_integration
Get full detail for one integration. Args: integration_id: Numeric integration id (from list_integrations). account_id: Auto-resolves if omitted. fields: Optional attributes (comma-separated).
| Parameter | Type | Description |
|---|---|---|
integration_id * | ||
account_id | ||
fields |
create_form_submission
Manually create a form submission (e.g. backfill an offline lead). Useful when you receive a lead through a non-CallRail-tracked channel (paper form, in-person, etc.) and want it visible in CallRail with proper attribution + lead-status workflow. CallRail's POST /form_submissions accepts exactly: company_id, form_url, form_data, and EITHER session_id OR all three of referrer / referring_url / landing_page_url. It parses phone numbers out of form_data to find or create the person, so put the customer's phone, name and email inside form_data (there are no custom…
| Parameter | Type | Description |
|---|---|---|
company_id * | string | |
form_data * | object | |
form_url * | string | |
account_id | ||
landing_page_url | ||
lead_status | ||
note | ||
referrer | ||
referring_url | ||
session_id | ||
tags | ||
value |
create_outbound_call
Place an outbound call. THIS ACTUALLY DIALS REAL PHONES. CallRail dials `business_phone_number` FIRST; once that leg is answered it dials `customer_phone_number` and bridges the two. Both legs cost minutes against your bundle. Misuse can constitute unlawful telemarketing, so verify consent. US and Canadian numbers only (CallRail does not support outbound to the UK or Australia via this endpoint). **You must pass `confirm_dialing=True` to actually place the call.** Args: caller_id: The number shown to the recipient. Must be one of your Cal…
| Parameter | Type | Description |
|---|---|---|
business_phone_number * | string | |
caller_id * | string | |
customer_phone_number * | string | |
account_id | ||
agent_id | ||
confirm_dialing | boolean | |
outbound_greeting_recording_url | ||
outbound_greeting_text | ||
recording_enabled |
create_notification
Create a notification rule (who gets pinged on which event). Args: alert_type: Which calls trigger the rule. One of 'all', 'first_call', 'missed_and_vm', 'vm_only'. Required when call_enabled is true; omit for SMS-only rules. user_id: 'USR...' id of the user being notified. If neither user_id nor email is given, CallRail assigns the rule to the user who owns the API key. company_id, tracker_id: Optional scope filters. send_email / send_desktop / send_push: Channel toggles. call_enabled / sms_enabled: T…
| Parameter | Type | Description |
|---|---|---|
account_id | ||
agent_id | ||
alert_type | ||
call_enabled | ||
company_id | ||
email | ||
name | ||
send_desktop | boolean | |
send_email | boolean | |
send_push | boolean | |
sms_enabled | ||
tracker_id | ||
user_id |
update_notification
Update a notification rule. Pass None to leave a field unchanged; only fields with explicit values are sent in the PUT body. Notification rules trigger emails / desktop pushes / SMS when calls or form submissions match conditions. Use this to rewire targets, change triggering events, or silence a noisy rule without deleting it (set all `send_*` to False). Args: notification_id: Notification rule ID. name: NOT updatable (CallRail generates it). Ignored and reported under `api_warnings`. alert_type: 'all', 'first_call', 'missed_an…
| Parameter | Type | Description |
|---|---|---|
notification_id * | ||
account_id | ||
alert_type | ||
call_enabled | ||
company_id | ||
email | ||
name | ||
send_desktop | ||
send_email | ||
send_push | ||
sms_enabled | ||
tracker_id |
delete_notification
Delete a notification rule. The rule is gone. To keep but mute it, prefer `update_notification(send_email=False, send_desktop=False, send_push=False)`. Args: notification_id: Notification rule ID. account_id: CallRail account ID. Auto-resolves if omitted. Returns: JSON string `{"deleted": True, "notification_id": ..., "response": ...}`. The `response` mirrors CallRail's body (often empty on 204).
| Parameter | Type | Description |
|---|---|---|
notification_id * | ||
account_id |
list_notifications
List notification rules on the account. Args: company_id: Applied CLIENT-SIDE (CallRail ignores it as a query param). Keeps rules scoped to that company plus account-wide rules (company_id null), which also fire for it. The page's `total_records` describes the unfiltered query; see `company_filter` in the response. user_id: Server-side filter on the notified user. notification_type: Server-side filter: 'push', 'email', or 'desktop'. email: Server-side filter on an email-only recipient. per_…
| Parameter | Type | Description |
|---|---|---|
account_id | ||
company_id | ||
email | ||
notification_type | ||
page | integer | |
per_page | integer | |
user_id |
list_leads
List leads (unique people) across calls, forms, and texts. A lead is CallRail's deduplicated person record: one entry per customer regardless of how many times they called / submitted / texted. Use `get_lead_timeline` for a lead's full cross-channel history. Args: account_id: Auto-resolves if omitted. company_id: Filter to one company. per_page: Page size (max 250). page: 1-indexed. Returns: JSON string with `page`, `per_page`, `total_pages`, `total_records`, and `leads[]`. Each lead has id ('PER...'), name, pho…
| Parameter | Type | Description |
|---|---|---|
account_id | ||
company_id | ||
order | ||
page | integer | |
per_page | integer | |
sort |
get_lead_timeline
Get a lead's full cross-channel activity timeline: every call, form submission, and text thread from that person in one response, with first-touch/last-touch attribution. This replaces the manual "search calls by number + search forms by email" dance when reconstructing a customer's history. Args: lead_id: 'PER...' lead id (from `list_leads`). account_id: Auto-resolves if omitted. per_page: Timeline page size (max 250). page: 1-indexed. Returns: JSON string with `lead` (the person record) and `timeline[]` (chronological…
| Parameter | Type | Description |
|---|---|---|
lead_id * | string | |
account_id | ||
page | integer | |
per_page | integer |
list_sms_threads
List SMS threads. Unlike `list_text_messages` (conversation transcripts), threads carry the lead-management surface: `notes`, `value`, `tags`, `lead_qualification`, `state`. Threads are UPDATABLE via `update_sms_thread`. Args: account_id: Auto-resolves if omitted. company_id: Filter to one company. per_page: Page size (max 250). page: 1-indexed. Returns: JSON string with `sms_threads[]`. Each thread has id, customer_name / customer_phone_number, current + initial tracker/tracking-number, notes, value, tags, l…
| Parameter | Type | Description |
|---|---|---|
account_id | ||
company_id | ||
days | ||
end_date | ||
page | integer | |
per_page | integer | |
search | ||
start_date |
get_sms_thread
Get one SMS thread's lead-management record (notes, value, tags, lead_qualification, state). For the message transcript itself use `get_text_message` with the conversation id. Args: thread_id: Thread id (from `list_sms_threads`). account_id: Auto-resolves if omitted.
| Parameter | Type | Description |
|---|---|---|
thread_id * | string | |
account_id |
update_sms_thread
Update an SMS thread's lead-management fields. This is the texting equivalent of `update_call`. Closes the gap where texting leads couldn't be tagged / noted / qualified via API. Args: thread_id: Thread id (from `list_sms_threads`). notes: Note text (max 4000 chars). Empty string rejected. value: Monetary value; sent as a currency string ("12.50"), which is what PUT /sms-threads accepts. tags: Tag names to apply (max 100). append_tags: If True (default), `tags` are ADDED to existing ones (CallRail's `append_tags` flag…
| Parameter | Type | Description |
|---|---|---|
thread_id * | string | |
account_id | ||
append_tags | boolean | |
lead_qualification | ||
notes | ||
tags | ||
value |
call_stats
Server-side call aggregation via CallRail's /calls/summary.json. One request instead of paginating every call. Prefer this over `call_summary` (which fetches and counts calls client-side) when you only need grouped totals. `call_summary` remains useful for metrics this endpoint doesn't expose (first-time vs repeat split, per-source-name breakdown, exact duration sums). Args: group_by: Dimension to group by. One of: 'source', 'keywords', 'campaign', 'referrer', 'landing_page', 'company'. days: Lookback (default 30). Ignored if `start_date` g…
| Parameter | Type | Description |
|---|---|---|
account_id | ||
answer_status | ||
company_id | ||
days | integer | |
device | ||
direction | ||
end_date | ||
fields | ||
first_time_callers | ||
group_by | string | |
lead_status | ||
max_duration | ||
min_duration | ||
search | ||
start_date | ||
tags | ||
time_zone | ||
tracker_ids |
call_timeseries
Call volume over time via CallRail's /calls/timeseries.json. One request for a trend line instead of client-side bucketing. CallRail refuses any request whose result set would exceed 200 data points. With the default daily interval that caps the window at ~200 days; use `interval='week'` or `'month'` for longer ranges. This tool checks the limit before sending so you get a clear message instead of a raw 400. Args: days: Lookback (default 30). Ignored if `start_date` given. start_date / end_date: 'YYYY-MM-DD'. Explicit dates win. company_id:…
| Parameter | Type | Description |
|---|---|---|
account_id | ||
answer_status | ||
company_id | ||
days | integer | |
device | ||
direction | ||
end_date | ||
fields | ||
first_time_callers | ||
interval | ||
lead_status | ||
max_duration | ||
min_duration | ||
search | ||
start_date | ||
tags | ||
time_zone | ||
tracker_ids |
form_stats
Server-side form-submission totals via /forms/summary.json. Args: days: Lookback (default 30). Ignored if `start_date` given. start_date / end_date: 'YYYY-MM-DD'. Explicit dates win. company_id: Filter to one company. account_id: Auto-resolves if omitted. Returns: JSON string with `start_date`, `end_date`, `time_zone`, and `total_results` (e.g. {"total_forms": N}). `group_by` ('source' | 'keywords' | 'campaign' | 'referrer' | 'landing_page' | 'form_name' | 'company') returns `grouped_results`; `fields` (comma-separated) sel…
| Parameter | Type | Description |
|---|---|---|
account_id | ||
company_id | ||
days | integer | |
end_date | ||
fields | ||
group_by | ||
lead_status | ||
start_date | ||
tags | ||
time_zone |
get_call_page_views
Get the visitor's page-view history behind a call: which pages they browsed (with timestamps) before and around dialing. Pairs with `call_eligibility_check` for conversion debugging: shows the actual session journey that led to the call. Args: call_id: 'CAL...' id. account_id: Auto-resolves if omitted. per_page: Page size (max 250). page: 1-indexed. Returns: JSON string with `page_views[]` (paginated). Only available for calls placed to session trackers (a CallRail restriction). `time_zone` (IANA) localizes the timestamps.…
| Parameter | Type | Description |
|---|---|---|
call_id * | string | |
account_id | ||
page | integer | |
per_page | integer | |
time_zone |