Agents: Status History

Each status an agent was in, when it started and ended, and the call it was on.

GET /agent_timestamps

Authorization Required
https://[your-subdomain].trackdrive.com/api/v1/agent_timestamps

List Agent Timestamp records.

Lists the statuses agents were in, each with its key, start, end, duration and the call and lead it was on, filtered by agent and by the window a status ran in (active_from and active_to). Pages in the order statuses were recorded. A team member who is not a superuser sees only their own. Statuses are kept for 2 months, and an unbillable status with no call is left out.

Params

Param name Description
ids
Optional

Return records matching these ids.

  • Must be an array of decimal values. EG: [0, 1, 2, 3]

collaborator_id
Optional

Agent

active_from
Optional

The start of a window, as an ISO 8601 time with its time zone. With active_to, lists every status that ran at some point in the window, including one that started before it.

  • Must be a String

active_to
Optional

The exclusive end of the window, as an ISO 8601 time with its time zone.

  • Must be a String

order
Optional

Sort results by this field.

  • Must be a String

page
Optional

Return the next page of results.

  • Must be a number.

per_page
Optional

How many results to return per page. The default is 25.

  • Must be a number.

created_at_to
Optional

Date formatted like 2016-01-01 12:25:15 -0500

  • Must be a String

created_at_from
Optional

Date formatted like 2016-01-01 12:25:15 -0500

  • Must be a String

fulltext
Optional

Search for any record that matches this text

  • Must be a String

time_zone
Optional

Date ranges will be parsed using this time zone.

columns
Optional
Specify the columns you would like returned by the API for a given resource. Limiting the columns can significantly increase API response time since only the requested data will be processed. columns=uuid,number,created_at

Must be any combination of:

  • id
  • legacy_id
  • type
  • uuid
  • created_at
  • updated_at
  • deleted_at
  • user_updated_at
  • routes_show_path
  • routes_edit_path
  • external_record_id
  • key
  • key_color
  • call_id
  • call_id_color
  • company_id
  • collaborator_id
  • duration
  • started_at
  • off_hook_lead_call_id
  • lead_id
  • call_uuid
  • off_hook_lead_call_uuid
  • agent_duration
  • call_total_duration
  • billable_duration
  • unbillable_duration
  • ended_at
  • Must be a String

root
Optional

Pass root=false to return results without a root node and metadata.
For example:
GET /api/v1/calls?root=false will return [call1, call2, call3]
While:
GET /api/v1/calls will return {calls: [call1, call2, call3], metadata: {}}

  • Must be a boolean value: 1, true, yes, on, 0, false, no, off

GET /agent_timestamps/:id

Authorization Required
https://[your-subdomain].trackdrive.com/api/v1/agent_timestamps/:id

Get Agent Timestamp by id.

Fetches one recorded agent status by id.