Reports›Call Flow Report

Call Flow Report

Returns every call in a date range, newest first, with the record, campaign, user, direction, duration and status. It’s the API version of the Call Flow report in Shape.

POSThttps://secure-api.setshape.com/api/reports/call-flow/{crmid}

Replace {crmid} with your CRM ID, the Shape system ID that belongs to your API key. Send the standard headers on every request: Authorization: YOUR_API_AUTHORIZATION_KEY and Content-Type: application/json. See Authentication.

This report returns data for the system your API key belongs to. Use the CRM ID and API key for the same system.

Dates are required. There are no other filters. See Reports Overview.

Body parameters

Send a filters object holding the report’s filters.

Field Requirement Description
filters Required An object holding the report’s filters.
fromDate Required Start date, YYYY-MM-DD.
toDate Required End date, YYYY-MM-DD.
slctPerPage Optional Results per page. Default 50, maximum 500.
pn Optional Page number, starting at 1.

Example request

{
  "filters": {
    "fromDate": "2026-08-01",
    "toDate": "2026-08-08",
    "slctPerPage": 50,
    "pn": 1
  }
}

Response fields

Results are in Data, with a capital D.

Field Description
recordNameFull Name on the record. Can be blank.
lead_id The record ID.
status The record’s main status.
campaign The record’s campaign.
phoneNumberDialed Outbound calls: the number called. Inbound calls: your Shape number the caller dialed.
callStartDate&Time When the call started, as MM/DD/YYYY hh:mm AM/PM, in your system’s time zone.
user The Shape user on the call. For an inbound call no one answered, the name of your Shape number, or blank.
userCallerId Outbound calls: the caller ID shown. Inbound calls: the caller’s number.
callDirection Inbound or Outbound.
callDuration Length of the call, as HH:MM:SS.
callStatus Completed, No Answer, Busy, Failed, Connecting, Connected, Blocked or Scheduled. -- means the status isn’t known.
callOutcome The outcome the user chose, from your system’s call outcome list. Blank if none.
providerUUID The phone provider’s ID for the call.
recduration Length of the call recording, in seconds. 0 if there’s no recording.