Activities

Activities allow you to track the time spent by agents on tasks other than phone calls.

Fields

class Activity
id: integer

The activity’s unique ID.

name: string

The name of the activity.

API

GET /j/activities

Retrieves the list of activities.

Example request:

GET /j/activities HTTP/1.1
Authorization: Bearer 0a1b2c3d4e5f

Example response:

HTTP/1.1 200 OK
Content-Type: application/json

[
   {
      "id": 1,
      "name": "First activity"
   },
   {
      "id": 2,
      "name": "Second activity"
   }
]
Request Headers:
Response JSON Array of Objects:
  • id (integer) – The activity’s unique ID.

  • name (string) – The name of the activity.

Status Codes:
  • 200 OK – no error

  • 400 Bad Request – for instance a required field is missing

  • 403 Forbidden – you tried to access a forbidden resource, check you provided a valid OAuth token