{
  "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": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/callrail",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=callrail",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "LICENSE.txt"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/callrail",
    "agentPageUrl": "https://openagent3.xyz/skills/callrail/agent",
    "manifestUrl": "https://openagent3.xyz/skills/callrail/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/callrail/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "CallRail",
        "body": "Access the CallRail API with managed OAuth authentication. Track calls, manage tracking numbers, analyze call data, and organize with tags."
      },
      {
        "title": "Quick Start",
        "body": "# List all calls\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/callrail/v3/a/{account_id}/calls.json')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Base URL",
        "body": "https://gateway.maton.ai/callrail/{native-api-path}\n\nReplace {native-api-path} with the actual CallRail API endpoint path. The gateway proxies requests to api.callrail.com and automatically injects your OAuth token."
      },
      {
        "title": "Authentication",
        "body": "All requests require the Maton API key in the Authorization header:\n\nAuthorization: Bearer $MATON_API_KEY\n\nEnvironment Variable: Set your API key as MATON_API_KEY:\n\nexport MATON_API_KEY=\"YOUR_API_KEY\""
      },
      {
        "title": "Getting Your API Key",
        "body": "Sign in or create an account at maton.ai\nGo to maton.ai/settings\nCopy your API key"
      },
      {
        "title": "Connection Management",
        "body": "Manage your CallRail OAuth connections at https://ctrl.maton.ai."
      },
      {
        "title": "List Connections",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections?app=callrail&status=ACTIVE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Create Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'app': 'callrail'}).encode()\nreq = urllib.request.Request('https://ctrl.maton.ai/connections', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Get Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nResponse:\n\n{\n  \"connection\": {\n    \"connection_id\": \"75364cb9-7116-4367-a707-1113d426f17d\",\n    \"status\": \"ACTIVE\",\n    \"creation_time\": \"2026-02-10T09:55:17.574212Z\",\n    \"last_updated_time\": \"2026-02-10T09:55:34.693801Z\",\n    \"url\": \"https://connect.maton.ai/?session_token=...\",\n    \"app\": \"callrail\",\n    \"metadata\": {}\n  }\n}\n\nOpen the returned url in a browser to complete OAuth authorization."
      },
      {
        "title": "Delete Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}', method='DELETE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Specifying Connection",
        "body": "If you have multiple CallRail connections, specify which one to use with the Maton-Connection header:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/callrail/v3/a.json')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Maton-Connection', '75364cb9-7116-4367-a707-1113d426f17d')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nIf omitted, the gateway uses the default (oldest) active connection."
      },
      {
        "title": "URL Pattern",
        "body": "All CallRail API endpoints follow this pattern:\n\n/callrail/v3/a/{account_id}/{resource}.json\n\nAccount IDs start with ACC, Company IDs start with COM, Call IDs start with CAL, Tracker IDs start with TRK, User IDs start with USR."
      },
      {
        "title": "List Accounts",
        "body": "GET /callrail/v3/a.json\n\nResponse:\n\n{\n  \"page\": 1,\n  \"per_page\": 100,\n  \"total_pages\": 1,\n  \"total_records\": 1,\n  \"accounts\": [\n    {\n      \"id\": \"ACC019c46b8a0807fbdb81c8bf12af91cb3\",\n      \"name\": \"My Account\",\n      \"numeric_id\": 518664017,\n      \"inbound_recording_enabled\": false,\n      \"outbound_recording_enabled\": false,\n      \"hipaa_account\": false,\n      \"created_at\": \"2026-02-10 03:43:50 -0500\"\n    }\n  ]\n}"
      },
      {
        "title": "Get Account",
        "body": "GET /callrail/v3/a/{account_id}.json"
      },
      {
        "title": "List Companies",
        "body": "GET /callrail/v3/a/{account_id}/companies.json\n\nResponse:\n\n{\n  \"page\": 1,\n  \"per_page\": 100,\n  \"total_pages\": 1,\n  \"total_records\": 1,\n  \"companies\": [\n    {\n      \"id\": \"COM019c46b8a26376a9a4f29671dcdd49e9\",\n      \"name\": \"My Company\",\n      \"status\": \"active\",\n      \"time_zone\": \"America/Los_Angeles\",\n      \"created_at\": \"2026-02-10T08:43:51.280Z\",\n      \"callscore_enabled\": false,\n      \"lead_scoring_enabled\": true,\n      \"callscribe_enabled\": true\n    }\n  ]\n}"
      },
      {
        "title": "Get Company",
        "body": "GET /callrail/v3/a/{account_id}/companies/{company_id}.json"
      },
      {
        "title": "List Calls",
        "body": "GET /callrail/v3/a/{account_id}/calls.json\n\nQuery Parameters:\n\nParameterDescriptionpagePage 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\n\nResponse:\n\n{\n  \"page\": 1,\n  \"per_page\": 100,\n  \"total_pages\": 1,\n  \"total_records\": 1,\n  \"calls\": [\n    {\n      \"id\": \"CAL019c46b9fc277a7881e3728fea20869b\",\n      \"answered\": false,\n      \"customer_name\": \"John Doe\",\n      \"customer_phone_number\": \"+18886757190\",\n      \"direction\": \"inbound\",\n      \"duration\": 36,\n      \"recording\": \"https://api.callrail.com/v3/a/.../recording\",\n      \"recording_duration\": 36,\n      \"start_time\": \"2026-02-10T00:45:19.781-08:00\",\n      \"tracking_phone_number\": \"+18017846712\",\n      \"voicemail\": true\n    }\n  ]\n}"
      },
      {
        "title": "Get Call",
        "body": "GET /callrail/v3/a/{account_id}/calls/{call_id}.json"
      },
      {
        "title": "Update Call",
        "body": "PUT /callrail/v3/a/{account_id}/calls/{call_id}.json\nContent-Type: application/json\n\n{\n  \"customer_name\": \"John Smith\",\n  \"note\": \"Follow up scheduled\",\n  \"lead_status\": \"good_lead\",\n  \"spam\": false\n}\n\nUpdatable Fields:\n\nFieldDescriptioncustomer_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"
      },
      {
        "title": "Call Summary",
        "body": "GET /callrail/v3/a/{account_id}/calls/summary.json\n\nGet aggregated call statistics for a date range.\n\nQuery Parameters:\n\nParameterDescriptiondate_rangePreset date rangestart_dateStart date (ISO 8601)end_dateEnd date (ISO 8601)group_byGroup results: company, tracker, source, medium, etc.\n\nResponse:\n\n{\n  \"start_date\": \"2026-02-03T00:00:00-0800\",\n  \"end_date\": \"2026-02-10T23:59:59-0800\",\n  \"time_zone\": \"Pacific Time (US & Canada)\",\n  \"total_results\": {\n    \"total_calls\": 42\n  }\n}"
      },
      {
        "title": "Call Timeseries",
        "body": "GET /callrail/v3/a/{account_id}/calls/timeseries.json\n\nGet call data over time for charts and graphs.\n\nResponse:\n\n{\n  \"start_date\": \"2026-02-03T00:00:00-0800\",\n  \"end_date\": \"2026-02-10T23:59:59-0800\",\n  \"data\": [\n    {\"key\": \"2026-02-03\", \"date\": \"2026-02-03\", \"total_calls\": 5},\n    {\"key\": \"2026-02-04\", \"date\": \"2026-02-04\", \"total_calls\": 8}\n  ]\n}"
      },
      {
        "title": "List Trackers",
        "body": "GET /callrail/v3/a/{account_id}/trackers.json\n\nResponse:\n\n{\n  \"page\": 1,\n  \"per_page\": 100,\n  \"total_records\": 1,\n  \"trackers\": [\n    {\n      \"id\": \"TRK019c46b9f18174d68bb8d7985260a11f\",\n      \"name\": \"Google My Business\",\n      \"type\": \"source\",\n      \"status\": \"active\",\n      \"destination_number\": \"+18019234886\",\n      \"tracking_numbers\": [\"+18017846712\"],\n      \"sms_supported\": true,\n      \"sms_enabled\": true,\n      \"company\": {\n        \"id\": \"COM019c46b8a26376a9a4f29671dcdd49e9\",\n        \"name\": \"My Company\"\n      },\n      \"source\": {\"type\": \"google_my_business\"},\n      \"call_flow\": {\n        \"type\": \"basic\",\n        \"recording_enabled\": true,\n        \"destination_number\": \"+18019234886\"\n      }\n    }\n  ]\n}"
      },
      {
        "title": "Get Tracker",
        "body": "GET /callrail/v3/a/{account_id}/trackers/{tracker_id}.json"
      },
      {
        "title": "List Tags",
        "body": "GET /callrail/v3/a/{account_id}/tags.json\n\nResponse:\n\n{\n  \"page\": 1,\n  \"per_page\": 100,\n  \"total_records\": 6,\n  \"tags\": [\n    {\n      \"id\": 7886733,\n      \"name\": \"Schedule requested\",\n      \"tag_level\": \"account\",\n      \"color\": \"orange3\",\n      \"background_color\": \"gray1\",\n      \"company_id\": null,\n      \"status\": \"enabled\"\n    },\n    {\n      \"id\": 7886728,\n      \"name\": \"Opportunity\",\n      \"tag_level\": \"company\",\n      \"color\": \"gray1\",\n      \"company_id\": \"COM019c46b8a26376a9a4f29671dcdd49e9\",\n      \"status\": \"enabled\"\n    }\n  ]\n}"
      },
      {
        "title": "Create Tag",
        "body": "POST /callrail/v3/a/{account_id}/tags.json\nContent-Type: application/json\n\n{\n  \"name\": \"New Tag\",\n  \"tag_level\": \"account\",\n  \"color\": \"blue1\"\n}\n\nTag Levels:\n\naccount - Available to all companies in the account\ncompany - Specific to a company (requires company_id)\n\nColors: gray1, blue1, blue2, green1, green2, orange1, orange2, orange3, red1, etc."
      },
      {
        "title": "Update Tag",
        "body": "PUT /callrail/v3/a/{account_id}/tags/{tag_id}.json\nContent-Type: application/json\n\n{\n  \"name\": \"Updated Tag Name\",\n  \"color\": \"green1\"\n}"
      },
      {
        "title": "Delete Tag",
        "body": "DELETE /callrail/v3/a/{account_id}/tags/{tag_id}.json"
      },
      {
        "title": "List Users",
        "body": "GET /callrail/v3/a/{account_id}/users.json\n\nResponse:\n\n{\n  \"page\": 1,\n  \"per_page\": 100,\n  \"total_records\": 1,\n  \"users\": [\n    {\n      \"id\": \"USR019c46b8a0557b2e85e5e1c651452509\",\n      \"email\": \"user@example.com\",\n      \"first_name\": \"John\",\n      \"last_name\": \"Doe\",\n      \"name\": \"John Doe\",\n      \"role\": \"admin\",\n      \"accepted\": true,\n      \"created_at\": \"2026-02-10T03:43:50.798-05:00\",\n      \"companies\": [\n        {\"id\": \"COM...\", \"name\": \"My Company\"}\n      ]\n    }\n  ]\n}"
      },
      {
        "title": "Get User",
        "body": "GET /callrail/v3/a/{account_id}/users/{user_id}.json"
      },
      {
        "title": "List Integrations",
        "body": "GET /callrail/v3/a/{account_id}/integrations.json?company_id={company_id}\n\nNote: company_id is required."
      },
      {
        "title": "List Notifications",
        "body": "GET /callrail/v3/a/{account_id}/notifications.json"
      },
      {
        "title": "Pagination",
        "body": "CallRail uses offset-based pagination:\n\nGET /callrail/v3/a/{account_id}/calls.json?page=2&per_page=50\n\nResponse includes:\n\n{\n  \"page\": 2,\n  \"per_page\": 50,\n  \"total_pages\": 10,\n  \"total_records\": 487,\n  \"calls\": [...]\n}\n\nParameters:\n\npage - Page number (default: 1)\nper_page - Results per page (default: 100, max: 250)\n\nFor the calls endpoint, you can also use relative pagination:\n\nGET /callrail/v3/a/{account_id}/calls.json?relative_pagination=true\n\nThis returns next_page URL and has_next_page boolean for efficient pagination of large datasets."
      },
      {
        "title": "JavaScript",
        "body": "const response = await fetch(\n  'https://gateway.maton.ai/callrail/v3/a/{account_id}/calls.json',\n  {\n    headers: {\n      'Authorization': `Bearer ${process.env.MATON_API_KEY}`\n    }\n  }\n);\nconst data = await response.json();\nconsole.log(data.calls);"
      },
      {
        "title": "Python",
        "body": "import os\nimport requests\n\nresponse = requests.get(\n    'https://gateway.maton.ai/callrail/v3/a/{account_id}/calls.json',\n    headers={'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'},\n    params={'per_page': 50, 'date_range': 'last_30_days'}\n)\ndata = response.json()\nfor call in data['calls']:\n    print(f\"{call['customer_name']}: {call['duration']}s\")"
      },
      {
        "title": "Rate Limits",
        "body": "Endpoint TypeHourly LimitDaily LimitGeneral API1,00010,000SMS Send1501,000Outbound Calls1002,000\n\nExceeding limits returns HTTP 429. Implement exponential backoff for retries."
      },
      {
        "title": "Notes",
        "body": "Account IDs start with ACC\nCompany IDs start with COM\nCall IDs start with CAL\nTracker IDs start with TRK\nUser IDs start with USR\nAll endpoints end with .json\nCommunication records are retained for 25 months\nDate/time values use ISO 8601 format with timezone\nIMPORTANT: When using curl commands, use curl -g when URLs contain brackets to disable glob parsing\nIMPORTANT: When piping curl output to jq or other commands, environment variables like $MATON_API_KEY may not expand correctly in some shell environments"
      },
      {
        "title": "Error Handling",
        "body": "StatusMeaning400Bad request or missing required parameter401Invalid or missing Maton API key403Forbidden - insufficient permissions404Resource not found422Unprocessable entity429Rate limited500Internal server error503Service unavailable"
      },
      {
        "title": "Troubleshooting: API Key Issues",
        "body": "Check that the MATON_API_KEY environment variable is set:\n\necho $MATON_API_KEY\n\nVerify the API key is valid by listing connections:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Troubleshooting: Invalid App Name",
        "body": "Ensure your URL path starts with callrail. For example:\n\nCorrect: https://gateway.maton.ai/callrail/v3/a.json\nIncorrect: https://gateway.maton.ai/v3/a.json"
      },
      {
        "title": "Resources",
        "body": "CallRail API Documentation\nCallRail Help Center - API\nCallRail API Rate Limits\nMaton Community\nMaton Support"
      }
    ],
    "body": "CallRail\n\nAccess the CallRail API with managed OAuth authentication. Track calls, manage tracking numbers, analyze call data, and organize with tags.\n\nQuick Start\n# List all calls\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/callrail/v3/a/{account_id}/calls.json')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nBase URL\nhttps://gateway.maton.ai/callrail/{native-api-path}\n\n\nReplace {native-api-path} with the actual CallRail API endpoint path. The gateway proxies requests to api.callrail.com and automatically injects your OAuth token.\n\nAuthentication\n\nAll requests require the Maton API key in the Authorization header:\n\nAuthorization: Bearer $MATON_API_KEY\n\n\nEnvironment Variable: Set your API key as MATON_API_KEY:\n\nexport MATON_API_KEY=\"YOUR_API_KEY\"\n\nGetting Your API Key\nSign in or create an account at maton.ai\nGo to maton.ai/settings\nCopy your API key\nConnection Management\n\nManage your CallRail OAuth connections at https://ctrl.maton.ai.\n\nList Connections\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections?app=callrail&status=ACTIVE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nCreate Connection\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'app': 'callrail'}).encode()\nreq = urllib.request.Request('https://ctrl.maton.ai/connections', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nGet Connection\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nResponse:\n\n{\n  \"connection\": {\n    \"connection_id\": \"75364cb9-7116-4367-a707-1113d426f17d\",\n    \"status\": \"ACTIVE\",\n    \"creation_time\": \"2026-02-10T09:55:17.574212Z\",\n    \"last_updated_time\": \"2026-02-10T09:55:34.693801Z\",\n    \"url\": \"https://connect.maton.ai/?session_token=...\",\n    \"app\": \"callrail\",\n    \"metadata\": {}\n  }\n}\n\n\nOpen the returned url in a browser to complete OAuth authorization.\n\nDelete Connection\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}', method='DELETE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nSpecifying Connection\n\nIf you have multiple CallRail connections, specify which one to use with the Maton-Connection header:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/callrail/v3/a.json')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Maton-Connection', '75364cb9-7116-4367-a707-1113d426f17d')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nIf omitted, the gateway uses the default (oldest) active connection.\n\nAPI Reference\nURL Pattern\n\nAll CallRail API endpoints follow this pattern:\n\n/callrail/v3/a/{account_id}/{resource}.json\n\n\nAccount IDs start with ACC, Company IDs start with COM, Call IDs start with CAL, Tracker IDs start with TRK, User IDs start with USR.\n\nAccounts\nList Accounts\nGET /callrail/v3/a.json\n\n\nResponse:\n\n{\n  \"page\": 1,\n  \"per_page\": 100,\n  \"total_pages\": 1,\n  \"total_records\": 1,\n  \"accounts\": [\n    {\n      \"id\": \"ACC019c46b8a0807fbdb81c8bf12af91cb3\",\n      \"name\": \"My Account\",\n      \"numeric_id\": 518664017,\n      \"inbound_recording_enabled\": false,\n      \"outbound_recording_enabled\": false,\n      \"hipaa_account\": false,\n      \"created_at\": \"2026-02-10 03:43:50 -0500\"\n    }\n  ]\n}\n\nGet Account\nGET /callrail/v3/a/{account_id}.json\n\nCompanies\nList Companies\nGET /callrail/v3/a/{account_id}/companies.json\n\n\nResponse:\n\n{\n  \"page\": 1,\n  \"per_page\": 100,\n  \"total_pages\": 1,\n  \"total_records\": 1,\n  \"companies\": [\n    {\n      \"id\": \"COM019c46b8a26376a9a4f29671dcdd49e9\",\n      \"name\": \"My Company\",\n      \"status\": \"active\",\n      \"time_zone\": \"America/Los_Angeles\",\n      \"created_at\": \"2026-02-10T08:43:51.280Z\",\n      \"callscore_enabled\": false,\n      \"lead_scoring_enabled\": true,\n      \"callscribe_enabled\": true\n    }\n  ]\n}\n\nGet Company\nGET /callrail/v3/a/{account_id}/companies/{company_id}.json\n\nCalls\nList Calls\nGET /callrail/v3/a/{account_id}/calls.json\n\n\nQuery Parameters:\n\nParameter\tDescription\npage\tPage number (default: 1)\nper_page\tResults per page (default: 100, max: 250)\ndate_range\tPreset: recent, today, yesterday, last_7_days, last_30_days, this_month, last_month\nstart_date\tISO 8601 date (e.g., 2026-02-01T00:00:00-08:00)\nend_date\tISO 8601 date\ncompany_id\tFilter by company\ntracker_id\tFilter by tracker\nsearch\tSearch term\nfields\tComma-separated field names to return\nsort\tField to sort by\norder\tSort order: asc or desc\n\nResponse:\n\n{\n  \"page\": 1,\n  \"per_page\": 100,\n  \"total_pages\": 1,\n  \"total_records\": 1,\n  \"calls\": [\n    {\n      \"id\": \"CAL019c46b9fc277a7881e3728fea20869b\",\n      \"answered\": false,\n      \"customer_name\": \"John Doe\",\n      \"customer_phone_number\": \"+18886757190\",\n      \"direction\": \"inbound\",\n      \"duration\": 36,\n      \"recording\": \"https://api.callrail.com/v3/a/.../recording\",\n      \"recording_duration\": 36,\n      \"start_time\": \"2026-02-10T00:45:19.781-08:00\",\n      \"tracking_phone_number\": \"+18017846712\",\n      \"voicemail\": true\n    }\n  ]\n}\n\nGet Call\nGET /callrail/v3/a/{account_id}/calls/{call_id}.json\n\nUpdate Call\nPUT /callrail/v3/a/{account_id}/calls/{call_id}.json\nContent-Type: application/json\n\n{\n  \"customer_name\": \"John Smith\",\n  \"note\": \"Follow up scheduled\",\n  \"lead_status\": \"good_lead\",\n  \"spam\": false\n}\n\n\nUpdatable Fields:\n\nField\tDescription\ncustomer_name\tCustomer's name\nnote\tCall notes\nlead_status\tgood_lead, not_a_lead, previously_marked_good_lead\nspam\tMark as spam (boolean)\ntag_list\tArray of tag names to apply\nvalue\tCall value (numeric)\nappend_tags\tAdd tags without removing existing\nCall Summary\nGET /callrail/v3/a/{account_id}/calls/summary.json\n\n\nGet aggregated call statistics for a date range.\n\nQuery Parameters:\n\nParameter\tDescription\ndate_range\tPreset date range\nstart_date\tStart date (ISO 8601)\nend_date\tEnd date (ISO 8601)\ngroup_by\tGroup results: company, tracker, source, medium, etc.\n\nResponse:\n\n{\n  \"start_date\": \"2026-02-03T00:00:00-0800\",\n  \"end_date\": \"2026-02-10T23:59:59-0800\",\n  \"time_zone\": \"Pacific Time (US & Canada)\",\n  \"total_results\": {\n    \"total_calls\": 42\n  }\n}\n\nCall Timeseries\nGET /callrail/v3/a/{account_id}/calls/timeseries.json\n\n\nGet call data over time for charts and graphs.\n\nResponse:\n\n{\n  \"start_date\": \"2026-02-03T00:00:00-0800\",\n  \"end_date\": \"2026-02-10T23:59:59-0800\",\n  \"data\": [\n    {\"key\": \"2026-02-03\", \"date\": \"2026-02-03\", \"total_calls\": 5},\n    {\"key\": \"2026-02-04\", \"date\": \"2026-02-04\", \"total_calls\": 8}\n  ]\n}\n\nTrackers (Tracking Numbers)\nList Trackers\nGET /callrail/v3/a/{account_id}/trackers.json\n\n\nResponse:\n\n{\n  \"page\": 1,\n  \"per_page\": 100,\n  \"total_records\": 1,\n  \"trackers\": [\n    {\n      \"id\": \"TRK019c46b9f18174d68bb8d7985260a11f\",\n      \"name\": \"Google My Business\",\n      \"type\": \"source\",\n      \"status\": \"active\",\n      \"destination_number\": \"+18019234886\",\n      \"tracking_numbers\": [\"+18017846712\"],\n      \"sms_supported\": true,\n      \"sms_enabled\": true,\n      \"company\": {\n        \"id\": \"COM019c46b8a26376a9a4f29671dcdd49e9\",\n        \"name\": \"My Company\"\n      },\n      \"source\": {\"type\": \"google_my_business\"},\n      \"call_flow\": {\n        \"type\": \"basic\",\n        \"recording_enabled\": true,\n        \"destination_number\": \"+18019234886\"\n      }\n    }\n  ]\n}\n\nGet Tracker\nGET /callrail/v3/a/{account_id}/trackers/{tracker_id}.json\n\nTags\nList Tags\nGET /callrail/v3/a/{account_id}/tags.json\n\n\nResponse:\n\n{\n  \"page\": 1,\n  \"per_page\": 100,\n  \"total_records\": 6,\n  \"tags\": [\n    {\n      \"id\": 7886733,\n      \"name\": \"Schedule requested\",\n      \"tag_level\": \"account\",\n      \"color\": \"orange3\",\n      \"background_color\": \"gray1\",\n      \"company_id\": null,\n      \"status\": \"enabled\"\n    },\n    {\n      \"id\": 7886728,\n      \"name\": \"Opportunity\",\n      \"tag_level\": \"company\",\n      \"color\": \"gray1\",\n      \"company_id\": \"COM019c46b8a26376a9a4f29671dcdd49e9\",\n      \"status\": \"enabled\"\n    }\n  ]\n}\n\nCreate Tag\nPOST /callrail/v3/a/{account_id}/tags.json\nContent-Type: application/json\n\n{\n  \"name\": \"New Tag\",\n  \"tag_level\": \"account\",\n  \"color\": \"blue1\"\n}\n\n\nTag Levels:\n\naccount - Available to all companies in the account\ncompany - Specific to a company (requires company_id)\n\nColors: gray1, blue1, blue2, green1, green2, orange1, orange2, orange3, red1, etc.\n\nUpdate Tag\nPUT /callrail/v3/a/{account_id}/tags/{tag_id}.json\nContent-Type: application/json\n\n{\n  \"name\": \"Updated Tag Name\",\n  \"color\": \"green1\"\n}\n\nDelete Tag\nDELETE /callrail/v3/a/{account_id}/tags/{tag_id}.json\n\nUsers\nList Users\nGET /callrail/v3/a/{account_id}/users.json\n\n\nResponse:\n\n{\n  \"page\": 1,\n  \"per_page\": 100,\n  \"total_records\": 1,\n  \"users\": [\n    {\n      \"id\": \"USR019c46b8a0557b2e85e5e1c651452509\",\n      \"email\": \"user@example.com\",\n      \"first_name\": \"John\",\n      \"last_name\": \"Doe\",\n      \"name\": \"John Doe\",\n      \"role\": \"admin\",\n      \"accepted\": true,\n      \"created_at\": \"2026-02-10T03:43:50.798-05:00\",\n      \"companies\": [\n        {\"id\": \"COM...\", \"name\": \"My Company\"}\n      ]\n    }\n  ]\n}\n\nGet User\nGET /callrail/v3/a/{account_id}/users/{user_id}.json\n\nIntegrations\nList Integrations\nGET /callrail/v3/a/{account_id}/integrations.json?company_id={company_id}\n\n\nNote: company_id is required.\n\nNotifications\nList Notifications\nGET /callrail/v3/a/{account_id}/notifications.json\n\nPagination\n\nCallRail uses offset-based pagination:\n\nGET /callrail/v3/a/{account_id}/calls.json?page=2&per_page=50\n\n\nResponse includes:\n\n{\n  \"page\": 2,\n  \"per_page\": 50,\n  \"total_pages\": 10,\n  \"total_records\": 487,\n  \"calls\": [...]\n}\n\n\nParameters:\n\npage - Page number (default: 1)\nper_page - Results per page (default: 100, max: 250)\n\nFor the calls endpoint, you can also use relative pagination:\n\nGET /callrail/v3/a/{account_id}/calls.json?relative_pagination=true\n\n\nThis returns next_page URL and has_next_page boolean for efficient pagination of large datasets.\n\nCode Examples\nJavaScript\nconst response = await fetch(\n  'https://gateway.maton.ai/callrail/v3/a/{account_id}/calls.json',\n  {\n    headers: {\n      'Authorization': `Bearer ${process.env.MATON_API_KEY}`\n    }\n  }\n);\nconst data = await response.json();\nconsole.log(data.calls);\n\nPython\nimport os\nimport requests\n\nresponse = requests.get(\n    'https://gateway.maton.ai/callrail/v3/a/{account_id}/calls.json',\n    headers={'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'},\n    params={'per_page': 50, 'date_range': 'last_30_days'}\n)\ndata = response.json()\nfor call in data['calls']:\n    print(f\"{call['customer_name']}: {call['duration']}s\")\n\nRate Limits\nEndpoint Type\tHourly Limit\tDaily Limit\nGeneral API\t1,000\t10,000\nSMS Send\t150\t1,000\nOutbound Calls\t100\t2,000\n\nExceeding limits returns HTTP 429. Implement exponential backoff for retries.\n\nNotes\nAccount IDs start with ACC\nCompany IDs start with COM\nCall IDs start with CAL\nTracker IDs start with TRK\nUser IDs start with USR\nAll endpoints end with .json\nCommunication records are retained for 25 months\nDate/time values use ISO 8601 format with timezone\nIMPORTANT: When using curl commands, use curl -g when URLs contain brackets to disable glob parsing\nIMPORTANT: When piping curl output to jq or other commands, environment variables like $MATON_API_KEY may not expand correctly in some shell environments\nError Handling\nStatus\tMeaning\n400\tBad request or missing required parameter\n401\tInvalid or missing Maton API key\n403\tForbidden - insufficient permissions\n404\tResource not found\n422\tUnprocessable entity\n429\tRate limited\n500\tInternal server error\n503\tService unavailable\nTroubleshooting: API Key Issues\nCheck that the MATON_API_KEY environment variable is set:\necho $MATON_API_KEY\n\nVerify the API key is valid by listing connections:\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nTroubleshooting: Invalid App Name\nEnsure your URL path starts with callrail. For example:\nCorrect: https://gateway.maton.ai/callrail/v3/a.json\nIncorrect: https://gateway.maton.ai/v3/a.json\nResources\nCallRail API Documentation\nCallRail Help Center - API\nCallRail API Rate Limits\nMaton Community\nMaton Support"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/byungkyu/callrail",
    "publisherUrl": "https://clawhub.ai/byungkyu/callrail",
    "owner": "byungkyu",
    "version": "1.0.1",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "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"
  }
}