Call Census

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.

Base URLhttps://api.callcensus.com/v1/developer OpenAPI specification

Get started

Create an API key

  1. 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.
  2. Name the integration and select the locations it needs. Under Advanced settings, select metrics:read to follow the report and call examples below. Add locations:read if the integration needs to list locations. Choose Create reporting access.
  3. 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

GET /status
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.

GET /metrics/summary
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

GET /calls
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_cursor and send it as cursor in your next request. Keep the same filters and sort order. Stop when next_cursor is null.
  • 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-After header, 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

EndpointPermissionPurposeWhat it does
GET /statusAny valid keyConnection checkChecks that your key works and tells you whether your call and reporting data is ready to read.
GET /locationslocations:readLocation listShows which locations this key can access and gives you the IDs to use as filters.
GET /sourceslocations:readImport sourcesLists the connected CallRail and WhatConverts sources you can import older calls from.
GET /callsmetrics:readCall searchLists calls that match your filters, such as date or location. Use it to find call IDs for a closer look.
GET /calls/{callId}metrics:readCall detailsShows details for one call, including its current classification, review decision, and available attribution information.
GET /calls/{callId}/transcriptmetrics:readCall transcriptReturns the written conversation for one call when a transcript is available.
POST /calls/{callId}/recording-sessionmetrics:readRecording playbackPrepares temporary access to listen to one call. A 202 Accepted response means the recording is still being prepared.
GET /calls/attributionmetrics:readCampaign attributionLists 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-importsmetrics:readImport listShows your recent historical imports and their progress.
GET /historical-imports/{importId}metrics:readImport detailsShows the current status and progress of one import, including any reason it is paused.
POST /historical-importsimports:writeStart scanChecks which older calls are available for the selected source and dates. You can review the scan before approving the import.
POST /historical-imports/{importId}/confirmimports:writeConfirm importApproves 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}/pauseimports:writePause importHolds further work so you can continue the same import later.
POST /historical-imports/{importId}/resumeimports:writeResume importContinues a paused scan or import after its pause reason has been resolved.
POST /historical-imports/{importId}/cancelimports:writeCancel importEnds 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

EndpointPermissionPurposeWhat it does
GET /metrics/summarymetrics:readPeriod totalsCombines calls, leads, and available ad metrics into one set of totals for the dates you choose.
GET /metrics/dailymetrics:readDaily breakdownReturns the same measures for each day so you can see how they change over time.
GET /metrics/locationsmetrics:readLocation breakdownReturns the same measures for each location so you can compare locations over the same dates.
GET /reports/google-ads/campaign-performancemetrics:readGoogle Ads by campaignShows 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.

MetricAPI fieldWhat it measures
Total callstotal_callsNumber of distinct calls that started in the period. Sample and test calls are excluded.
Google-attributed callsgoogle_attributed_callsCalls with a Google Ads click identifier (GCLID, GBRAID, or WBRAID). A call can count here without a known campaign.
AI-estimated leadscall_census_estimated_leads.valueCalls where the AI identified a booking, a qualified lead, or a quote, or suggested counting the call as an ad conversion.
Calls evaluated by AIcall_census_estimated_leads.evaluated_callsCalls with a completed AI evaluation. Use this count to understand how many calls were considered for the estimate.
Human-reviewed callshuman_reviewed.callsCalls whose current outcome was set by a person. Includes calls they counted as conversions and calls they did not.
Human-reviewed leadshuman_reviewed.leadsCalls a person confirmed as conversions under your Account’s outcome criteria.
Booked appointmentshuman_reviewed.booked_outcomesCalls a reviewer counted as conversions and marked with Appointment booked as the primary outcome.
Google Ads spendgoogle_ads.spend_microsAd 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 clicksgoogle_ads.clicksNumber of clicks Google recorded on your ads for the reporting period.
Cost per callcost_per_call.microsGoogle Ads spend divided by calls with a Google Ads click identifier.
Cost per AI-estimated leadcost_per_estimated_lead.microsGoogle Ads spend divided by AI-estimated leads with a Google Ads click identifier.
Cost per human-reviewed leadcost_per_human_reviewed_lead.microsGoogle 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

MetricAPI fieldWhat it measures
Spendspend_microsAmount spent on this campaign. Divide by 1,000,000 to get the amount in the reported currency.
ImpressionsimpressionsHow many times Google showed ads from the campaign.
ClicksclicksHow many clicks Google recorded on ads from the campaign.
InteractionsinteractionsThe main action for the ad format, such as a click on a search ad or a view of a video ad.
ConversionsconversionsThe campaign’s Google Ads Conversions total for the selected ad interaction dates. Counts can be fractional.
All conversionsall_conversionsThe Google Ads total that also includes actions outside the Conversions column.
Conversion valueconversions_value, all_conversions_valueThe 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 statusWhat to do
400Check the date range, filter, cursor, or request body.
401Check the Authorization header and confirm the key is still active under Developer → API keys.
403Check the key’s permissions and whether your network is allowed.
404Check 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 422For imports, check the job’s status and the error message before retrying.
425Your reporting data is still being prepared. Wait for the time given in Retry-After if present, then check GET /status.
429Follow Retry-After if present, then send requests less often.
503Wait and retry with increasing delays. Contact support if the error persists.