Chilkat Online Tools

Foxpro / Support API / List Activities

Back to Collection Items

LOCAL loHttp
LOCAL lnSuccess
LOCAL loQueryParams
LOCAL loResp
LOCAL loSbResponseBody
LOCAL loJResp
LOCAL lnRespStatusCode
LOCAL lcName
LOCAL lcActive
LOCAL lcAlias
LOCAL lcChat_only
LOCAL lcCreated_at
LOCAL lcCustom_role_id
LOCAL lcDefault_group_id
LOCAL lcDetails
LOCAL lcV_Email
LOCAL lcExternal_id
LOCAL lcIana_time_zone
LOCAL lcId
LOCAL lcLast_login_at
LOCAL lcLocale
LOCAL lcLocale_id
LOCAL lcModerator
LOCAL lcNotes
LOCAL lcOnly_private_comments
LOCAL lcOrganization_id
LOCAL lcPhone
LOCAL lnAdipisicing7
LOCAL lnIrure_70
LOCAL lcRemote_photo_url
LOCAL lcReport_csv
LOCAL lcRestricted_agent
LOCAL lcRole
LOCAL lcRole_type
LOCAL lcV_Shared
LOCAL lcShared_agent
LOCAL lcShared_phone_number
LOCAL lcSignature
LOCAL lcSuspended
LOCAL lcTags
LOCAL lcTicket_restriction
LOCAL lcTime_zone
LOCAL lcTwo_factor_auth_enabled
LOCAL lcUpdated_at
LOCAL lcV_Url
LOCAL lcTempor_f
LOCAL lcVerified
LOCAL lcActor_id
LOCAL lcCreated_at
LOCAL lcId
LOCAL lnOfficia1a2
LOCAL lcQui9
LOCAL lcIrure_1cd
LOCAL lnSede8
LOCAL lcTitle
LOCAL lcUpdated_at
LOCAL lcUrl
LOCAL lcUserName
LOCAL lcUserActive
LOCAL lcUserAlias
LOCAL lcUserChat_only
LOCAL lcUserCreated_at
LOCAL lcUserCustom_role_id
LOCAL lcUserDefault_group_id
LOCAL lcUserDetails
LOCAL lcUserEmail
LOCAL lcUserExternal_id
LOCAL lcUserIana_time_zone
LOCAL lcUserId
LOCAL lcUserLast_login_at
LOCAL lcUserLocale
LOCAL lcUserLocale_id
LOCAL lcUserModerator
LOCAL lcUserNotes
LOCAL lcUserOnly_private_comments
LOCAL lcUserOrganization_id
LOCAL lcUserPhone
LOCAL lcUt975
LOCAL lnMagna3e
LOCAL lcUserRemote_photo_url
LOCAL lcUserReport_csv
LOCAL lcUserRestricted_agent
LOCAL lcUserRole
LOCAL lcUserRole_type
LOCAL lcUserShared
LOCAL lcUserShared_agent
LOCAL lcUserShared_phone_number
LOCAL lcUserSignature
LOCAL lcUserSuspended
LOCAL lcUserTags
LOCAL lcUserTicket_restriction
LOCAL lcUserTime_zone
LOCAL lcUserTwo_factor_auth_enabled
LOCAL lcUserUpdated_at
LOCAL lcUserUrl
LOCAL lcUt_d
LOCAL lnAdipisicing_7
LOCAL lcMagna_9
LOCAL lcUserVerified
LOCAL lcUser_id
LOCAL lcVerb
LOCAL lnAliquipb6
LOCAL lcEuc13
LOCAL lnPariatur_39
LOCAL lnVoluptate_8
LOCAL lnIpsum4
LOCAL lcEst_d
LOCAL lcEsse_b
LOCAL lcUt_e6f
LOCAL lcVoluptatef
LOCAL lnUtba9
LOCAL lnUt_2
LOCAL lcExcepteur1_
LOCAL lcConsectetura8a
LOCAL lcId_e
LOCAL lnReprehenderit_93
LOCAL lcElit7
LOCAL lcAd_1a
LOCAL lnAnim40
LOCAL lcQuisa9
LOCAL lnFugiat_e
LOCAL lcNon_224
LOCAL lcCillumeb
LOCAL lcCount
LOCAL lcNext_page
LOCAL lcPrevious_page
LOCAL i
LOCAL lnCount_i

* This example assumes the Chilkat API to have been previously unlocked.
* See Global Unlock Sample for sample code.

* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.Http')
loHttp = CreateObject('Chilkat.Http')

loHttp.BasicAuth = 1
loHttp.Login = "login"
loHttp.Password = "password"

* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.JsonObject')
loQueryParams = CreateObject('Chilkat.JsonObject')
loQueryParams.UpdateString("since","<string>")

loHttp.SetRequestHeader("Accept","application/json")

loResp = loHttp.QuickRequestParams("GET","https://example.zendesk.com/api/v2/activities",loQueryParams)
IF (loHttp.LastMethodSuccess = 0) THEN
    ? loHttp.LastErrorText
    RELEASE loHttp
    RELEASE loQueryParams
    CANCEL
ENDIF

* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.StringBuilder')
loSbResponseBody = CreateObject('Chilkat.StringBuilder')
loResp.GetBodySb(loSbResponseBody)

* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.JsonObject')
loJResp = CreateObject('Chilkat.JsonObject')
loJResp.LoadSb(loSbResponseBody)
loJResp.EmitCompact = 0

? "Response Body:"
? loJResp.Emit()

lnRespStatusCode = loResp.StatusCode
? "Response Status Code = " + STR(lnRespStatusCode)
IF (lnRespStatusCode >= 400) THEN
    ? "Response Header:"
    ? loResp.Header
    ? "Failed."
    RELEASE loResp
    RELEASE loHttp
    RELEASE loQueryParams
    RELEASE loSbResponseBody
    RELEASE loJResp
    CANCEL
ENDIF

RELEASE loResp

* Sample JSON response:
* (Sample code for parsing the JSON response is shown below)

* {
*   "activities": [
*     {
*       "actor": {
*         "name": "<string>",
*         "active": "<boolean>",
*         "alias": "<string>",
*         "chat_only": "<boolean>",
*         "created_at": "<string>",
*         "custom_role_id": "<integer>",
*         "default_group_id": "<integer>",
*         "details": "<string>",
*         "email": "<string>",
*         "external_id": "<string>",
*         "iana_time_zone": "<string>",
*         "id": "<integer>",
*         "last_login_at": "<string>",
*         "locale": "<string>",
*         "locale_id": "<integer>",
*         "moderator": "<boolean>",
*         "notes": "<string>",
*         "only_private_comments": "<boolean>",
*         "organization_id": "<integer>",
*         "phone": "<string>",
*         "photo": {
*           "adipisicing7": 56151302,
*           "irure_70": true
*         },
*         "remote_photo_url": "<string>",
*         "report_csv": "<boolean>",
*         "restricted_agent": "<boolean>",
*         "role": "<string>",
*         "role_type": "<integer>",
*         "shared": "<boolean>",
*         "shared_agent": "<boolean>",
*         "shared_phone_number": "<boolean>",
*         "signature": "<string>",
*         "suspended": "<boolean>",
*         "tags": "<array>",
*         "ticket_restriction": "<string>",
*         "time_zone": "<string>",
*         "two_factor_auth_enabled": "<boolean>",
*         "updated_at": "<string>",
*         "url": "<string>",
*         "user_fields": {
*           "tempor_f": 85786252.44695336
*         },
*         "verified": "<boolean>"
*       },
*       "actor_id": "<integer>",
*       "created_at": "<string>",
*       "id": "<integer>",
*       "object": {
*         "officia1a2": true,
*         "qui9": "voluptate mollit Excepteur ipsum veniam",
*         "irure_1cd": "id ea"
*       },
*       "target": {
*         "sede8": false
*       },
*       "title": "<string>",
*       "updated_at": "<string>",
*       "url": "<string>",
*       "user": {
*         "name": "<string>",
*         "active": "<boolean>",
*         "alias": "<string>",
*         "chat_only": "<boolean>",
*         "created_at": "<string>",
*         "custom_role_id": "<integer>",
*         "default_group_id": "<integer>",
*         "details": "<string>",
*         "email": "<string>",
*         "external_id": "<string>",
*         "iana_time_zone": "<string>",
*         "id": "<integer>",
*         "last_login_at": "<string>",
*         "locale": "<string>",
*         "locale_id": "<integer>",
*         "moderator": "<boolean>",
*         "notes": "<string>",
*         "only_private_comments": "<boolean>",
*         "organization_id": "<integer>",
*         "phone": "<string>",
*         "photo": {
*           "Ut975": -74534220.66145113,
*           "magna3e": false
*         },
*         "remote_photo_url": "<string>",
*         "report_csv": "<boolean>",
*         "restricted_agent": "<boolean>",
*         "role": "<string>",
*         "role_type": "<integer>",
*         "shared": "<boolean>",
*         "shared_agent": "<boolean>",
*         "shared_phone_number": "<boolean>",
*         "signature": "<string>",
*         "suspended": "<boolean>",
*         "tags": "<array>",
*         "ticket_restriction": "<string>",
*         "time_zone": "<string>",
*         "two_factor_auth_enabled": "<boolean>",
*         "updated_at": "<string>",
*         "url": "<string>",
*         "user_fields": {
*           "ut_d": "tempor",
*           "adipisicing_7": 28937910,
*           "magna_9": -45754090.269199036
*         },
*         "verified": "<boolean>"
*       },
*       "user_id": "<integer>",
*       "verb": "<string>"
*     },
*     {
*       "actor": {
*         "name": "<string>",
*         "active": "<boolean>",
*         "alias": "<string>",
*         "chat_only": "<boolean>",
*         "created_at": "<string>",
*         "custom_role_id": "<integer>",
*         "default_group_id": "<integer>",
*         "details": "<string>",
*         "email": "<string>",
*         "external_id": "<string>",
*         "iana_time_zone": "<string>",
*         "id": "<integer>",
*         "last_login_at": "<string>",
*         "locale": "<string>",
*         "locale_id": "<integer>",
*         "moderator": "<boolean>",
*         "notes": "<string>",
*         "only_private_comments": "<boolean>",
*         "organization_id": "<integer>",
*         "phone": "<string>",
*         "photo": {
*           "aliquipb6": false
*         },
*         "remote_photo_url": "<string>",
*         "report_csv": "<boolean>",
*         "restricted_agent": "<boolean>",
*         "role": "<string>",
*         "role_type": "<integer>",
*         "shared": "<boolean>",
*         "shared_agent": "<boolean>",
*         "shared_phone_number": "<boolean>",
*         "signature": "<string>",
*         "suspended": "<boolean>",
*         "tags": "<array>",
*         "ticket_restriction": "<string>",
*         "time_zone": "<string>",
*         "two_factor_auth_enabled": "<boolean>",
*         "updated_at": "<string>",
*         "url": "<string>",
*         "user_fields": {
*           "euc13": "pariatur"
*         },
*         "verified": "<boolean>"
*       },
*       "actor_id": "<integer>",
*       "created_at": "<string>",
*       "id": "<integer>",
*       "object": {
*         "pariatur_39": -13246316,
*         "voluptate_8": false,
*         "ipsum4": -24640571
*       },
*       "target": {
*         "est_d": 43464084.60404679
*       },
*       "title": "<string>",
*       "updated_at": "<string>",
*       "url": "<string>",
*       "user": {
*         "name": "<string>",
*         "active": "<boolean>",
*         "alias": "<string>",
*         "chat_only": "<boolean>",
*         "created_at": "<string>",
*         "custom_role_id": "<integer>",
*         "default_group_id": "<integer>",
*         "details": "<string>",
*         "email": "<string>",
*         "external_id": "<string>",
*         "iana_time_zone": "<string>",
*         "id": "<integer>",
*         "last_login_at": "<string>",
*         "locale": "<string>",
*         "locale_id": "<integer>",
*         "moderator": "<boolean>",
*         "notes": "<string>",
*         "only_private_comments": "<boolean>",
*         "organization_id": "<integer>",
*         "phone": "<string>",
*         "photo": {
*           "esse_b": "occaec",
*           "ut_e6f": "Ut est deserunt"
*         },
*         "remote_photo_url": "<string>",
*         "report_csv": "<boolean>",
*         "restricted_agent": "<boolean>",
*         "role": "<string>",
*         "role_type": "<integer>",
*         "shared": "<boolean>",
*         "shared_agent": "<boolean>",
*         "shared_phone_number": "<boolean>",
*         "signature": "<string>",
*         "suspended": "<boolean>",
*         "tags": "<array>",
*         "ticket_restriction": "<string>",
*         "time_zone": "<string>",
*         "two_factor_auth_enabled": "<boolean>",
*         "updated_at": "<string>",
*         "url": "<string>",
*         "user_fields": {
*           "voluptatef": -38514506.191917874,
*           "utba9": -99737083,
*           "ut_2": false
*         },
*         "verified": "<boolean>"
*       },
*       "user_id": "<integer>",
*       "verb": "<string>"
*     }
*   ],
*   "actors": [
*     {
*       "Excepteur1_": -85145004.89320306,
*       "consectetura8a": -98072772.2193171,
*       "id_e": -68362078.49006462,
*       "reprehenderit_93": 96874887,
*       "elit7": "dolor"
*     },
*     {
*       "ad_1a": "sunt nulla incididunt sed"
*     }
*   ],
*   "count": "<integer>",
*   "next_page": "<string>",
*   "previous_page": "<string>",
*   "users": [
*     {
*       "anim40": -83874192,
*       "quisa9": 17607150.376219943,
*       "fugiat_e": true,
*       "non_224": 21739369.8385354
*     },
*     {
*       "cillumeb": "ut nisi sunt deserunt"
*     }
*   ]
* }

* Sample code for parsing the JSON response...
* Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code

lcCount = loJResp.StringOf("count")
lcNext_page = loJResp.StringOf("next_page")
lcPrevious_page = loJResp.StringOf("previous_page")
i = 0
lnCount_i = loJResp.SizeOfArray("activities")
DO WHILE i < lnCount_i
    loJResp.I = i
    lcName = loJResp.StringOf("activities[i].actor.name")
    lcActive = loJResp.StringOf("activities[i].actor.active")
    lcAlias = loJResp.StringOf("activities[i].actor.alias")
    lcChat_only = loJResp.StringOf("activities[i].actor.chat_only")
    lcCreated_at = loJResp.StringOf("activities[i].actor.created_at")
    lcCustom_role_id = loJResp.StringOf("activities[i].actor.custom_role_id")
    lcDefault_group_id = loJResp.StringOf("activities[i].actor.default_group_id")
    lcDetails = loJResp.StringOf("activities[i].actor.details")
    lcV_Email = loJResp.StringOf("activities[i].actor.email")
    lcExternal_id = loJResp.StringOf("activities[i].actor.external_id")
    lcIana_time_zone = loJResp.StringOf("activities[i].actor.iana_time_zone")
    lcId = loJResp.StringOf("activities[i].actor.id")
    lcLast_login_at = loJResp.StringOf("activities[i].actor.last_login_at")
    lcLocale = loJResp.StringOf("activities[i].actor.locale")
    lcLocale_id = loJResp.StringOf("activities[i].actor.locale_id")
    lcModerator = loJResp.StringOf("activities[i].actor.moderator")
    lcNotes = loJResp.StringOf("activities[i].actor.notes")
    lcOnly_private_comments = loJResp.StringOf("activities[i].actor.only_private_comments")
    lcOrganization_id = loJResp.StringOf("activities[i].actor.organization_id")
    lcPhone = loJResp.StringOf("activities[i].actor.phone")
    lnAdipisicing7 = loJResp.IntOf("activities[i].actor.photo.adipisicing7")
    lnIrure_70 = loJResp.BoolOf("activities[i].actor.photo.irure_70")
    lcRemote_photo_url = loJResp.StringOf("activities[i].actor.remote_photo_url")
    lcReport_csv = loJResp.StringOf("activities[i].actor.report_csv")
    lcRestricted_agent = loJResp.StringOf("activities[i].actor.restricted_agent")
    lcRole = loJResp.StringOf("activities[i].actor.role")
    lcRole_type = loJResp.StringOf("activities[i].actor.role_type")
    lcV_Shared = loJResp.StringOf("activities[i].actor.shared")
    lcShared_agent = loJResp.StringOf("activities[i].actor.shared_agent")
    lcShared_phone_number = loJResp.StringOf("activities[i].actor.shared_phone_number")
    lcSignature = loJResp.StringOf("activities[i].actor.signature")
    lcSuspended = loJResp.StringOf("activities[i].actor.suspended")
    lcTags = loJResp.StringOf("activities[i].actor.tags")
    lcTicket_restriction = loJResp.StringOf("activities[i].actor.ticket_restriction")
    lcTime_zone = loJResp.StringOf("activities[i].actor.time_zone")
    lcTwo_factor_auth_enabled = loJResp.StringOf("activities[i].actor.two_factor_auth_enabled")
    lcUpdated_at = loJResp.StringOf("activities[i].actor.updated_at")
    lcV_Url = loJResp.StringOf("activities[i].actor.url")
    lcTempor_f = loJResp.StringOf("activities[i].actor.user_fields.tempor_f")
    lcVerified = loJResp.StringOf("activities[i].actor.verified")
    lcActor_id = loJResp.StringOf("activities[i].actor_id")
    lcCreated_at = loJResp.StringOf("activities[i].created_at")
    lcId = loJResp.StringOf("activities[i].id")
    lnOfficia1a2 = loJResp.BoolOf("activities[i].object.officia1a2")
    lcQui9 = loJResp.StringOf("activities[i].object.qui9")
    lcIrure_1cd = loJResp.StringOf("activities[i].object.irure_1cd")
    lnSede8 = loJResp.BoolOf("activities[i].target.sede8")
    lcTitle = loJResp.StringOf("activities[i].title")
    lcUpdated_at = loJResp.StringOf("activities[i].updated_at")
    lcUrl = loJResp.StringOf("activities[i].url")
    lcUserName = loJResp.StringOf("activities[i].user.name")
    lcUserActive = loJResp.StringOf("activities[i].user.active")
    lcUserAlias = loJResp.StringOf("activities[i].user.alias")
    lcUserChat_only = loJResp.StringOf("activities[i].user.chat_only")
    lcUserCreated_at = loJResp.StringOf("activities[i].user.created_at")
    lcUserCustom_role_id = loJResp.StringOf("activities[i].user.custom_role_id")
    lcUserDefault_group_id = loJResp.StringOf("activities[i].user.default_group_id")
    lcUserDetails = loJResp.StringOf("activities[i].user.details")
    lcUserEmail = loJResp.StringOf("activities[i].user.email")
    lcUserExternal_id = loJResp.StringOf("activities[i].user.external_id")
    lcUserIana_time_zone = loJResp.StringOf("activities[i].user.iana_time_zone")
    lcUserId = loJResp.StringOf("activities[i].user.id")
    lcUserLast_login_at = loJResp.StringOf("activities[i].user.last_login_at")
    lcUserLocale = loJResp.StringOf("activities[i].user.locale")
    lcUserLocale_id = loJResp.StringOf("activities[i].user.locale_id")
    lcUserModerator = loJResp.StringOf("activities[i].user.moderator")
    lcUserNotes = loJResp.StringOf("activities[i].user.notes")
    lcUserOnly_private_comments = loJResp.StringOf("activities[i].user.only_private_comments")
    lcUserOrganization_id = loJResp.StringOf("activities[i].user.organization_id")
    lcUserPhone = loJResp.StringOf("activities[i].user.phone")
    lcUt975 = loJResp.StringOf("activities[i].user.photo.Ut975")
    lnMagna3e = loJResp.BoolOf("activities[i].user.photo.magna3e")
    lcUserRemote_photo_url = loJResp.StringOf("activities[i].user.remote_photo_url")
    lcUserReport_csv = loJResp.StringOf("activities[i].user.report_csv")
    lcUserRestricted_agent = loJResp.StringOf("activities[i].user.restricted_agent")
    lcUserRole = loJResp.StringOf("activities[i].user.role")
    lcUserRole_type = loJResp.StringOf("activities[i].user.role_type")
    lcUserShared = loJResp.StringOf("activities[i].user.shared")
    lcUserShared_agent = loJResp.StringOf("activities[i].user.shared_agent")
    lcUserShared_phone_number = loJResp.StringOf("activities[i].user.shared_phone_number")
    lcUserSignature = loJResp.StringOf("activities[i].user.signature")
    lcUserSuspended = loJResp.StringOf("activities[i].user.suspended")
    lcUserTags = loJResp.StringOf("activities[i].user.tags")
    lcUserTicket_restriction = loJResp.StringOf("activities[i].user.ticket_restriction")
    lcUserTime_zone = loJResp.StringOf("activities[i].user.time_zone")
    lcUserTwo_factor_auth_enabled = loJResp.StringOf("activities[i].user.two_factor_auth_enabled")
    lcUserUpdated_at = loJResp.StringOf("activities[i].user.updated_at")
    lcUserUrl = loJResp.StringOf("activities[i].user.url")
    lcUt_d = loJResp.StringOf("activities[i].user.user_fields.ut_d")
    lnAdipisicing_7 = loJResp.IntOf("activities[i].user.user_fields.adipisicing_7")
    lcMagna_9 = loJResp.StringOf("activities[i].user.user_fields.magna_9")
    lcUserVerified = loJResp.StringOf("activities[i].user.verified")
    lcUser_id = loJResp.StringOf("activities[i].user_id")
    lcVerb = loJResp.StringOf("activities[i].verb")
    lnAliquipb6 = loJResp.BoolOf("activities[i].actor.photo.aliquipb6")
    lcEuc13 = loJResp.StringOf("activities[i].actor.user_fields.euc13")
    lnPariatur_39 = loJResp.IntOf("activities[i].object.pariatur_39")
    lnVoluptate_8 = loJResp.BoolOf("activities[i].object.voluptate_8")
    lnIpsum4 = loJResp.IntOf("activities[i].object.ipsum4")
    lcEst_d = loJResp.StringOf("activities[i].target.est_d")
    lcEsse_b = loJResp.StringOf("activities[i].user.photo.esse_b")
    lcUt_e6f = loJResp.StringOf("activities[i].user.photo.ut_e6f")
    lcVoluptatef = loJResp.StringOf("activities[i].user.user_fields.voluptatef")
    lnUtba9 = loJResp.IntOf("activities[i].user.user_fields.utba9")
    lnUt_2 = loJResp.BoolOf("activities[i].user.user_fields.ut_2")
    i = i + 1
ENDDO
i = 0
lnCount_i = loJResp.SizeOfArray("actors")
DO WHILE i < lnCount_i
    loJResp.I = i
    lcExcepteur1_ = loJResp.StringOf("actors[i].Excepteur1_")
    lcConsectetura8a = loJResp.StringOf("actors[i].consectetura8a")
    lcId_e = loJResp.StringOf("actors[i].id_e")
    lnReprehenderit_93 = loJResp.IntOf("actors[i].reprehenderit_93")
    lcElit7 = loJResp.StringOf("actors[i].elit7")
    lcAd_1a = loJResp.StringOf("actors[i].ad_1a")
    i = i + 1
ENDDO
i = 0
lnCount_i = loJResp.SizeOfArray("users")
DO WHILE i < lnCount_i
    loJResp.I = i
    lnAnim40 = loJResp.IntOf("users[i].anim40")
    lcQuisa9 = loJResp.StringOf("users[i].quisa9")
    lnFugiat_e = loJResp.BoolOf("users[i].fugiat_e")
    lcNon_224 = loJResp.StringOf("users[i].non_224")
    lcCillumeb = loJResp.StringOf("users[i].cillumeb")
    i = i + 1
ENDDO

RELEASE loHttp
RELEASE loQueryParams
RELEASE loSbResponseBody
RELEASE loJResp

Curl Command

curl  -u login:password -G -d "since=%3Cstring%3E"
	-H "Accept: application/json"
https://example.zendesk.com/api/v2/activities

Postman Collection Item JSON

{
  "name": "List Activities",
  "request": {
    "method": "GET",
    "header": [
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "url": {
      "raw": "{{baseUrl}}/api/v2/activities?since=<string>",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "api",
        "v2",
        "activities"
      ],
      "query": [
        {
          "key": "since",
          "value": "<string>",
          "description": "A UTC time in ISO 8601 format to return ticket activities since said date."
        }
      ]
    },
    "description": "Lists ticket activities in the last 30 days affecting the agent making the request.\nAlso sideloads the following arrays of user records:\n\n- actors - All actors involved in the listed activities\n- users - All users involved in the listed activities\n\n#### Pagination\n\n- Cursor pagination (recommended)\n- Offset pagination\n\nSee [Pagination](/api-reference/introduction/pagination/).\n\nReturns a maximum of 100 records per page.\n\n#### Allowed For\n\n* Agents\n"
  },
  "response": [
    {
      "name": "Success response",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "description": "Added as a part of security scheme: basic",
            "key": "Authorization",
            "value": "Basic <credentials>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/v2/activities?since=<string>",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v2",
            "activities"
          ],
          "query": [
            {
              "key": "since",
              "value": "<string>",
              "description": "A UTC time in ISO 8601 format to return ticket activities since said date."
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"activities\": [\n    {\n      \"actor\": {\n        \"name\": \"<string>\",\n        \"active\": \"<boolean>\",\n        \"alias\": \"<string>\",\n        \"chat_only\": \"<boolean>\",\n        \"created_at\": \"<string>\",\n        \"custom_role_id\": \"<integer>\",\n        \"default_group_id\": \"<integer>\",\n        \"details\": \"<string>\",\n        \"email\": \"<string>\",\n        \"external_id\": \"<string>\",\n        \"iana_time_zone\": \"<string>\",\n        \"id\": \"<integer>\",\n        \"last_login_at\": \"<string>\",\n        \"locale\": \"<string>\",\n        \"locale_id\": \"<integer>\",\n        \"moderator\": \"<boolean>\",\n        \"notes\": \"<string>\",\n        \"only_private_comments\": \"<boolean>\",\n        \"organization_id\": \"<integer>\",\n        \"phone\": \"<string>\",\n        \"photo\": {\n          \"adipisicing7\": 56151302,\n          \"irure_70\": true\n        },\n        \"remote_photo_url\": \"<string>\",\n        \"report_csv\": \"<boolean>\",\n        \"restricted_agent\": \"<boolean>\",\n        \"role\": \"<string>\",\n        \"role_type\": \"<integer>\",\n        \"shared\": \"<boolean>\",\n        \"shared_agent\": \"<boolean>\",\n        \"shared_phone_number\": \"<boolean>\",\n        \"signature\": \"<string>\",\n        \"suspended\": \"<boolean>\",\n        \"tags\": \"<array>\",\n        \"ticket_restriction\": \"<string>\",\n        \"time_zone\": \"<string>\",\n        \"two_factor_auth_enabled\": \"<boolean>\",\n        \"updated_at\": \"<string>\",\n        \"url\": \"<string>\",\n        \"user_fields\": {\n          \"tempor_f\": 85786252.44695336\n        },\n        \"verified\": \"<boolean>\"\n      },\n      \"actor_id\": \"<integer>\",\n      \"created_at\": \"<string>\",\n      \"id\": \"<integer>\",\n      \"object\": {\n        \"officia1a2\": true,\n        \"qui9\": \"voluptate mollit Excepteur ipsum veniam\",\n        \"irure_1cd\": \"id ea\"\n      },\n      \"target\": {\n        \"sede8\": false\n      },\n      \"title\": \"<string>\",\n      \"updated_at\": \"<string>\",\n      \"url\": \"<string>\",\n      \"user\": {\n        \"name\": \"<string>\",\n        \"active\": \"<boolean>\",\n        \"alias\": \"<string>\",\n        \"chat_only\": \"<boolean>\",\n        \"created_at\": \"<string>\",\n        \"custom_role_id\": \"<integer>\",\n        \"default_group_id\": \"<integer>\",\n        \"details\": \"<string>\",\n        \"email\": \"<string>\",\n        \"external_id\": \"<string>\",\n        \"iana_time_zone\": \"<string>\",\n        \"id\": \"<integer>\",\n        \"last_login_at\": \"<string>\",\n        \"locale\": \"<string>\",\n        \"locale_id\": \"<integer>\",\n        \"moderator\": \"<boolean>\",\n        \"notes\": \"<string>\",\n        \"only_private_comments\": \"<boolean>\",\n        \"organization_id\": \"<integer>\",\n        \"phone\": \"<string>\",\n        \"photo\": {\n          \"Ut975\": -74534220.66145113,\n          \"magna3e\": false\n        },\n        \"remote_photo_url\": \"<string>\",\n        \"report_csv\": \"<boolean>\",\n        \"restricted_agent\": \"<boolean>\",\n        \"role\": \"<string>\",\n        \"role_type\": \"<integer>\",\n        \"shared\": \"<boolean>\",\n        \"shared_agent\": \"<boolean>\",\n        \"shared_phone_number\": \"<boolean>\",\n        \"signature\": \"<string>\",\n        \"suspended\": \"<boolean>\",\n        \"tags\": \"<array>\",\n        \"ticket_restriction\": \"<string>\",\n        \"time_zone\": \"<string>\",\n        \"two_factor_auth_enabled\": \"<boolean>\",\n        \"updated_at\": \"<string>\",\n        \"url\": \"<string>\",\n        \"user_fields\": {\n          \"ut_d\": \"tempor\",\n          \"adipisicing_7\": 28937910,\n          \"magna_9\": -45754090.269199036\n        },\n        \"verified\": \"<boolean>\"\n      },\n      \"user_id\": \"<integer>\",\n      \"verb\": \"<string>\"\n    },\n    {\n      \"actor\": {\n        \"name\": \"<string>\",\n        \"active\": \"<boolean>\",\n        \"alias\": \"<string>\",\n        \"chat_only\": \"<boolean>\",\n        \"created_at\": \"<string>\",\n        \"custom_role_id\": \"<integer>\",\n        \"default_group_id\": \"<integer>\",\n        \"details\": \"<string>\",\n        \"email\": \"<string>\",\n        \"external_id\": \"<string>\",\n        \"iana_time_zone\": \"<string>\",\n        \"id\": \"<integer>\",\n        \"last_login_at\": \"<string>\",\n        \"locale\": \"<string>\",\n        \"locale_id\": \"<integer>\",\n        \"moderator\": \"<boolean>\",\n        \"notes\": \"<string>\",\n        \"only_private_comments\": \"<boolean>\",\n        \"organization_id\": \"<integer>\",\n        \"phone\": \"<string>\",\n        \"photo\": {\n          \"aliquipb6\": false\n        },\n        \"remote_photo_url\": \"<string>\",\n        \"report_csv\": \"<boolean>\",\n        \"restricted_agent\": \"<boolean>\",\n        \"role\": \"<string>\",\n        \"role_type\": \"<integer>\",\n        \"shared\": \"<boolean>\",\n        \"shared_agent\": \"<boolean>\",\n        \"shared_phone_number\": \"<boolean>\",\n        \"signature\": \"<string>\",\n        \"suspended\": \"<boolean>\",\n        \"tags\": \"<array>\",\n        \"ticket_restriction\": \"<string>\",\n        \"time_zone\": \"<string>\",\n        \"two_factor_auth_enabled\": \"<boolean>\",\n        \"updated_at\": \"<string>\",\n        \"url\": \"<string>\",\n        \"user_fields\": {\n          \"euc13\": \"pariatur\"\n        },\n        \"verified\": \"<boolean>\"\n      },\n      \"actor_id\": \"<integer>\",\n      \"created_at\": \"<string>\",\n      \"id\": \"<integer>\",\n      \"object\": {\n        \"pariatur_39\": -13246316,\n        \"voluptate_8\": false,\n        \"ipsum4\": -24640571\n      },\n      \"target\": {\n        \"est_d\": 43464084.60404679\n      },\n      \"title\": \"<string>\",\n      \"updated_at\": \"<string>\",\n      \"url\": \"<string>\",\n      \"user\": {\n        \"name\": \"<string>\",\n        \"active\": \"<boolean>\",\n        \"alias\": \"<string>\",\n        \"chat_only\": \"<boolean>\",\n        \"created_at\": \"<string>\",\n        \"custom_role_id\": \"<integer>\",\n        \"default_group_id\": \"<integer>\",\n        \"details\": \"<string>\",\n        \"email\": \"<string>\",\n        \"external_id\": \"<string>\",\n        \"iana_time_zone\": \"<string>\",\n        \"id\": \"<integer>\",\n        \"last_login_at\": \"<string>\",\n        \"locale\": \"<string>\",\n        \"locale_id\": \"<integer>\",\n        \"moderator\": \"<boolean>\",\n        \"notes\": \"<string>\",\n        \"only_private_comments\": \"<boolean>\",\n        \"organization_id\": \"<integer>\",\n        \"phone\": \"<string>\",\n        \"photo\": {\n          \"esse_b\": \"occaec\",\n          \"ut_e6f\": \"Ut est deserunt\"\n        },\n        \"remote_photo_url\": \"<string>\",\n        \"report_csv\": \"<boolean>\",\n        \"restricted_agent\": \"<boolean>\",\n        \"role\": \"<string>\",\n        \"role_type\": \"<integer>\",\n        \"shared\": \"<boolean>\",\n        \"shared_agent\": \"<boolean>\",\n        \"shared_phone_number\": \"<boolean>\",\n        \"signature\": \"<string>\",\n        \"suspended\": \"<boolean>\",\n        \"tags\": \"<array>\",\n        \"ticket_restriction\": \"<string>\",\n        \"time_zone\": \"<string>\",\n        \"two_factor_auth_enabled\": \"<boolean>\",\n        \"updated_at\": \"<string>\",\n        \"url\": \"<string>\",\n        \"user_fields\": {\n          \"voluptatef\": -38514506.191917874,\n          \"utba9\": -99737083,\n          \"ut_2\": false\n        },\n        \"verified\": \"<boolean>\"\n      },\n      \"user_id\": \"<integer>\",\n      \"verb\": \"<string>\"\n    }\n  ],\n  \"actors\": [\n    {\n      \"Excepteur1_\": -85145004.89320306,\n      \"consectetura8a\": -98072772.2193171,\n      \"id_e\": -68362078.49006462,\n      \"reprehenderit_93\": 96874887,\n      \"elit7\": \"dolor\"\n    },\n    {\n      \"ad_1a\": \"sunt nulla incididunt sed\"\n    }\n  ],\n  \"count\": \"<integer>\",\n  \"next_page\": \"<string>\",\n  \"previous_page\": \"<string>\",\n  \"users\": [\n    {\n      \"anim40\": -83874192,\n      \"quisa9\": 17607150.376219943,\n      \"fugiat_e\": true,\n      \"non_224\": 21739369.8385354\n    },\n    {\n      \"cillumeb\": \"ut nisi sunt deserunt\"\n    }\n  ]\n}"
    }
  ]
}