Call Census API guide
Use the Core API to pull call records or manage imports of older calls. Use the Reporting API to bring call totals and reviewed outcomes into your own reports. Both use the same API keys.
https://api.callcensus.com/v1/developer
OpenAPI specification
Get started
Create an API key
- Sign in as an Account owner or admin and open Developer. Select Set up reporting for your first connection or New reporting connection to add another.
- Name the integration and select the locations it needs. Under Advanced settings, select
metrics:readto follow the report and call examples below. Addlocations:readif the integration needs to list locations. Choose Create reporting access. - Copy the key when it appears and save it securely. The examples below read it from an environment variable named
CALL_CENSUS_API_TOKEN. Set that variable in the terminal or application where you’ll make the requests.
Check the connection
printf 'Authorization: Bearer %s\n' "$CALL_CENSUS_API_TOKEN" |
curl --fail-with-body --silent --show-error --header @- \
'https://api.callcensus.com/v1/developer/status'
A 200 OK response confirms the key works. Check dataset.status to see whether your reporting data is ready. If it says provisioning, wait and check again before requesting your first report.
See a sample response 200 OK
{
"api_version": "v1",
"dataset": {
"status": "ready",
"location_count": 1,
"history_months": 13,
"as_of": "2026-11-30T14:00:00.000Z",
"stale": false
},
"request_id": "req-123"
}
This example shows only part of the response. The full response also includes when the key expires and the reporting limits.
Read calls and reports
Get report totals
Use from and to to choose your dates. Both dates are included in your account’s reporting time zone. Replace the example dates with dates covered by your reporting connection.
printf 'Authorization: Bearer %s\n' "$CALL_CENSUS_API_TOKEN" |
curl --fail-with-body --silent --show-error --header @- \
'https://api.callcensus.com/v1/developer/metrics/summary?from=2026-11-01&to=2026-11-30'
Reports show human-reviewed outcomes and AI estimates separately. Before using the totals, check when the calls were last updated (freshness.calls_as_of), which dates are available (retained_history), and whether the response includes any warnings. When Google Ads spend is unavailable, check google_ads.availability before calculating costs.
List call records
printf 'Authorization: Bearer %s\n' "$CALL_CENSUS_API_TOKEN" |
curl --fail-with-body --silent --show-error --header @- \
'https://api.callcensus.com/v1/developer/calls?from=2026-11-01&to=2026-11-30&limit=25'
Use the ID from the list with GET /calls/{callId} to see a call’s review and attribution details. Use human_decision to tell how a person reviewed the call. The classification field can also reflect an AI suggestion.
Read Google Ads campaign performance
Connect Google Ads in Call Census, then open your reporting connection in Developer. Expand Google Ads reporting (optional), choose the advertiser and reporting scope, and select Bind and refresh Google reporting. The advertiser and reporting connection need matching time zones and currencies.
With a key that has metrics:read, call GET /reports/google-ads/campaign-performance with from and to. Use completed dates with data for the whole range. If you linked the advertiser to one location, send that location’s ID as location.
To compare ad performance with reviewed calls, use GET /calls/attribution for the same period. Join the entries in mapped_campaigns by advertiser_id and campaign_id. An empty list means no confirmed campaign mapping applied to that call. Use Map calls to campaigns in Settings to add a mapping.
Pagination and limits
- To get the next page, URL-encode the value of
next_cursorand send it ascursorin your next request. Keep the same filters and sort order. Stop whennext_cursorisnull. - Call and location lists support up to 100 results per page. You can request up to 92 days at a time in a report. For a longer period, send separate requests within the dates available to your reporting connection.
- If the API sends a
Retry-Afterheader, wait as instructed before trying again. Limit the number of retries.
Permissions and key management
locations:read- List the locations and import sources available to the key.
metrics:read- Read reports, call records, available transcripts and recordings, and import progress. A key with this permission can access call content even when the integration only uses report totals.
imports:write- Start, confirm, pause, resume, or cancel imports of older calls. Select this under Advanced settings when creating a key if your integration needs to manage imports.
Use a separate key for each integration. Keep keys out of browser code, shared documents, and logs. To replace or disable a key, open Developer, then API keys, and select Rotate or Revoke.
Endpoint reference
Add each path below to the base URL at the top of the page. See the OpenAPI specification for accepted filters, request fields, and response fields.
Core API
| Endpoint | Permission | Purpose | What it does |
|---|---|---|---|
GET /status | Any valid key | Connection check | Checks that your key works and tells you whether your call and reporting data is ready to read. |
GET /locations | locations:read | Location list | Shows which locations this key can access and gives you the IDs to use as filters. |
GET /sources | locations:read | Import sources | Lists the connected CallRail and WhatConverts sources you can import older calls from. |
GET /calls | metrics:read | Call search | Lists calls that match your filters, such as date or location. Use it to find call IDs for a closer look. |
GET /calls/{callId} | metrics:read | Call details | Shows details for one call, including its current classification, review decision, and available attribution information. |
GET /calls/{callId}/transcript | metrics:read | Call transcript | Returns the written conversation for one call when a transcript is available. |
POST /calls/{callId}/recording-session | metrics:read | Recording playback | Prepares temporary access to listen to one call. A 202 Accepted response means the recording is still being prepared. |
GET /calls/attribution | metrics:read | Campaign attribution | Lists call outcomes, the campaign labels supplied by your call tracker, and any confirmed campaign links for those calls. The response omits phone numbers, audio, and transcripts. |
GET /historical-imports | metrics:read | Import list | Shows your recent historical imports and their progress. |
GET /historical-imports/{importId} | metrics:read | Import details | Shows the current status and progress of one import, including any reason it is paused. |
POST /historical-imports | imports:write | Start scan | Checks which older calls are available for the selected source and dates. You can review the scan before approving the import. |
POST /historical-imports/{importId}/confirm | imports:write | Confirm import | Approves the calls selected after the scan and starts the import with the limit you set for requests to the call provider. |
POST /historical-imports/{importId}/pause | imports:write | Pause import | Holds further work so you can continue the same import later. |
POST /historical-imports/{importId}/resume | imports:write | Resume import | Continues a paused scan or import after its pause reason has been resolved. |
POST /historical-imports/{importId}/cancel | imports:write | Cancel import | Ends the import and stops queued work. Calls already imported remain in the Call Log. |
Send an Idempotency-Key header with each POST to an import endpoint. Use a new value for a new action and reuse that value if you retry the same request. See API and CLI workflows for examples.
Reporting API
| Endpoint | Permission | Purpose | What it does |
|---|---|---|---|
GET /metrics/summary | metrics:read | Period totals | Combines calls, leads, and available ad metrics into one set of totals for the dates you choose. |
GET /metrics/daily | metrics:read | Daily breakdown | Returns the same measures for each day so you can see how they change over time. |
GET /metrics/locations | metrics:read | Location breakdown | Returns the same measures for each location so you can compare locations over the same dates. |
GET /reports/google-ads/campaign-performance | metrics:read | Google Ads by campaign | Shows spend, impressions, clicks, interactions, conversions, and conversion value for each campaign in the Google Ads account linked to the requested reporting scope. |
Metric definitions
The summary, daily, and location reports use the same definitions. Counts cover the dates you request and the locations available to your API key, unless you narrow the request to one location.
| Metric | API field | What it measures |
|---|---|---|
| Total calls | total_calls | Number of distinct calls that started in the period. Sample and test calls are excluded. |
| Google-attributed calls | google_attributed_calls | Calls with a Google Ads click identifier (GCLID, GBRAID, or WBRAID). A call can count here without a known campaign. |
| AI-estimated leads | call_census_estimated_leads.value | Calls where the AI identified a booking, a qualified lead, or a quote, or suggested counting the call as an ad conversion. |
| Calls evaluated by AI | call_census_estimated_leads.evaluated_calls | Calls with a completed AI evaluation. Use this count to understand how many calls were considered for the estimate. |
| Human-reviewed calls | human_reviewed.calls | Calls whose current outcome was set by a person. Includes calls they counted as conversions and calls they did not. |
| Human-reviewed leads | human_reviewed.leads | Calls a person confirmed as conversions under your Account’s outcome criteria. |
| Booked appointments | human_reviewed.booked_outcomes | Calls a reviewer counted as conversions and marked with Appointment booked as the primary outcome. |
| Google Ads spend | google_ads.spend_micros | Ad spend reported by Google. Divide by 1,000,000 to get the amount in the returned currency. For example, 12,500,000 micros is 12.50 in that currency. |
| Google Ads clicks | google_ads.clicks | Number of clicks Google recorded on your ads for the reporting period. |
| Cost per call | cost_per_call.micros | Google Ads spend divided by calls with a Google Ads click identifier. |
| Cost per AI-estimated lead | cost_per_estimated_lead.micros | Google Ads spend divided by AI-estimated leads with a Google Ads click identifier. |
| Cost per human-reviewed lead | cost_per_human_reviewed_lead.micros | Google Ads spend divided by human-confirmed conversions with a Google Ads click identifier. |
Cost metrics use micros and return null when spend is unavailable or there are no qualifying calls or leads. AI estimates and human-reviewed totals can include the same call. Keep the two counts separate.
Google Ads campaign metrics
| Metric | API field | What it measures |
|---|---|---|
| Spend | spend_micros | Amount spent on this campaign. Divide by 1,000,000 to get the amount in the reported currency. |
| Impressions | impressions | How many times Google showed ads from the campaign. |
| Clicks | clicks | How many clicks Google recorded on ads from the campaign. |
| Interactions | interactions | The main action for the ad format, such as a click on a search ad or a view of a video ad. |
| Conversions | conversions | The campaign’s Google Ads Conversions total for the selected ad interaction dates. Counts can be fractional. |
| All conversions | all_conversions | The Google Ads total that also includes actions outside the Conversions column. |
| Conversion value | conversions_value, all_conversions_value | The value of the respective conversion totals in the reported currency. A value of 12.50 means 12.50 in that currency. |
Handle errors
Use the HTTP status and error.code to decide what to do. When contacting support, include the request_id and omit your key and customer call data.
| HTTP status | What to do |
|---|---|
| 400 | Check the date range, filter, cursor, or request body. |
| 401 | Check the Authorization header and confirm the key is still active under Developer → API keys. |
| 403 | Check the key’s permissions and whether your network is allowed. |
| 404 | Check that the call, location, or import ID came from a list you fetched with this key. If the call exists but its transcript or recording is missing, check whether that file is available in Call Census. |
| 409 or 422 | For imports, check the job’s status and the error message before retrying. |
| 425 | Your reporting data is still being prepared. Wait for the time given in Retry-After if present, then check GET /status. |
| 429 | Follow Retry-After if present, then send requests less often. |
| 503 | Wait and retry with increasing delays. Contact support if the error persists. |