Get User Talk Time

Return a user’s total talk time and number of calls.

GEThttps://secure-api.setshape.com/api/get/user/talktime/{crmid}

Replace {crmid} with your Shape system ID — found on the API Integrations page. Every request also needs your auth header — see Using Shape APIs.

Query parameters

Field Requirement Description
user_id Required Shape user ID.
start_date Optional Start of the reporting range.
end_date Optional End of the reporting range.

Example request

curl --request GET 
  --url "https://secure-api.setshape.com/api/get/user/talktime/{crmid}?user_id=678" 
  --header "Authorization: {YOUR_API_AUTHORIZATION_KEY}"

Example response

{
  "message": "User Total talk time fetched successfully",
  "total_talk_time": "24:05 minutes:seconds",
  "number_of_calls": 52
}