Chilkat Online Tools

PowerBuilder / Support API / List Activities

Back to Collection Items

integer li_rc
oleobject loo_Http
integer li_Success
oleobject loo_QueryParams
oleobject loo_Resp
oleobject loo_SbResponseBody
oleobject loo_JResp
integer li_RespStatusCode
string ls_Name
string ls_Active
string ls_Alias
string ls_Chat_only
string ls_Created_at
string ls_Custom_role_id
string ls_Default_group_id
string ls_Details
string ls_V_Email
string ls_External_id
string ls_Iana_time_zone
string ls_Id
string ls_Last_login_at
string ls_Locale
string ls_Locale_id
string ls_Moderator
string ls_Notes
string ls_Only_private_comments
string ls_Organization_id
string ls_Phone
integer li_Adipisicing7
integer li_Irure_70
string ls_Remote_photo_url
string ls_Report_csv
string ls_Restricted_agent
string ls_Role
string ls_Role_type
string ls_V_Shared
string ls_Shared_agent
string ls_Shared_phone_number
string ls_Signature
string ls_Suspended
string ls_Tags
string ls_Ticket_restriction
string ls_Time_zone
string ls_Two_factor_auth_enabled
string ls_Updated_at
string ls_V_Url
string ls_Tempor_f
string ls_Verified
string ls_Actor_id
string ls_Created_at
string ls_Id
integer li_Officia1a2
string ls_Qui9
string ls_Irure_1cd
integer li_Sede8
string ls_Title
string ls_Updated_at
string ls_Url
string ls_UserName
string ls_UserActive
string ls_UserAlias
string ls_UserChat_only
string ls_UserCreated_at
string ls_UserCustom_role_id
string ls_UserDefault_group_id
string ls_UserDetails
string ls_UserEmail
string ls_UserExternal_id
string ls_UserIana_time_zone
string ls_UserId
string ls_UserLast_login_at
string ls_UserLocale
string ls_UserLocale_id
string ls_UserModerator
string ls_UserNotes
string ls_UserOnly_private_comments
string ls_UserOrganization_id
string ls_UserPhone
string ls_Ut975
integer li_Magna3e
string ls_UserRemote_photo_url
string ls_UserReport_csv
string ls_UserRestricted_agent
string ls_UserRole
string ls_UserRole_type
string ls_UserShared
string ls_UserShared_agent
string ls_UserShared_phone_number
string ls_UserSignature
string ls_UserSuspended
string ls_UserTags
string ls_UserTicket_restriction
string ls_UserTime_zone
string ls_UserTwo_factor_auth_enabled
string ls_UserUpdated_at
string ls_UserUrl
string ls_Ut_d
integer li_Adipisicing_7
string ls_Magna_9
string ls_UserVerified
string ls_User_id
string ls_Verb
integer li_Aliquipb6
string ls_Euc13
integer li_Pariatur_39
integer li_Voluptate_8
integer li_Ipsum4
string ls_Est_d
string ls_Esse_b
string ls_Ut_e6f
string ls_Voluptatef
integer li_Utba9
integer li_Ut_2
string ls_Excepteur1_
string ls_Consectetura8a
string ls_Id_e
integer li_Reprehenderit_93
string ls_Elit7
string ls_Ad_1a
integer li_Anim40
string ls_Quisa9
integer li_Fugiat_e
string ls_Non_224
string ls_Cillumeb
string ls_Count
string ls_Next_page
string ls_Previous_page
integer i
integer li_Count_i

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

loo_Http = create oleobject
li_rc = loo_Http.ConnectToNewObject("Chilkat_9_5_0.Http")
if li_rc < 0 then
    destroy loo_Http
    MessageBox("Error","Connecting to COM object failed")
    return
end if

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

loo_QueryParams = create oleobject
li_rc = loo_QueryParams.ConnectToNewObject("Chilkat_9_5_0.JsonObject")

loo_QueryParams.UpdateString("since","<string>")

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

loo_Resp = loo_Http.QuickRequestParams("GET","https://example.zendesk.com/api/v2/activities",loo_QueryParams)
if loo_Http.LastMethodSuccess = 0 then
    Write-Debug loo_Http.LastErrorText
    destroy loo_Http
    destroy loo_QueryParams
    return
end if

loo_SbResponseBody = create oleobject
li_rc = loo_SbResponseBody.ConnectToNewObject("Chilkat_9_5_0.StringBuilder")

loo_Resp.GetBodySb(loo_SbResponseBody)

loo_JResp = create oleobject
li_rc = loo_JResp.ConnectToNewObject("Chilkat_9_5_0.JsonObject")

loo_JResp.LoadSb(loo_SbResponseBody)
loo_JResp.EmitCompact = 0

Write-Debug "Response Body:"
Write-Debug loo_JResp.Emit()

li_RespStatusCode = loo_Resp.StatusCode
Write-Debug "Response Status Code = " + string(li_RespStatusCode)
if li_RespStatusCode >= 400 then
    Write-Debug "Response Header:"
    Write-Debug loo_Resp.Header
    Write-Debug "Failed."
    destroy loo_Resp
    destroy loo_Http
    destroy loo_QueryParams
    destroy loo_SbResponseBody
    destroy loo_JResp
    return
end if

destroy loo_Resp

// 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

ls_Count = loo_JResp.StringOf("count")
ls_Next_page = loo_JResp.StringOf("next_page")
ls_Previous_page = loo_JResp.StringOf("previous_page")
i = 0
li_Count_i = loo_JResp.SizeOfArray("activities")
do while i < li_Count_i
    loo_JResp.I = i
    ls_Name = loo_JResp.StringOf("activities[i].actor.name")
    ls_Active = loo_JResp.StringOf("activities[i].actor.active")
    ls_Alias = loo_JResp.StringOf("activities[i].actor.alias")
    ls_Chat_only = loo_JResp.StringOf("activities[i].actor.chat_only")
    ls_Created_at = loo_JResp.StringOf("activities[i].actor.created_at")
    ls_Custom_role_id = loo_JResp.StringOf("activities[i].actor.custom_role_id")
    ls_Default_group_id = loo_JResp.StringOf("activities[i].actor.default_group_id")
    ls_Details = loo_JResp.StringOf("activities[i].actor.details")
    ls_V_Email = loo_JResp.StringOf("activities[i].actor.email")
    ls_External_id = loo_JResp.StringOf("activities[i].actor.external_id")
    ls_Iana_time_zone = loo_JResp.StringOf("activities[i].actor.iana_time_zone")
    ls_Id = loo_JResp.StringOf("activities[i].actor.id")
    ls_Last_login_at = loo_JResp.StringOf("activities[i].actor.last_login_at")
    ls_Locale = loo_JResp.StringOf("activities[i].actor.locale")
    ls_Locale_id = loo_JResp.StringOf("activities[i].actor.locale_id")
    ls_Moderator = loo_JResp.StringOf("activities[i].actor.moderator")
    ls_Notes = loo_JResp.StringOf("activities[i].actor.notes")
    ls_Only_private_comments = loo_JResp.StringOf("activities[i].actor.only_private_comments")
    ls_Organization_id = loo_JResp.StringOf("activities[i].actor.organization_id")
    ls_Phone = loo_JResp.StringOf("activities[i].actor.phone")
    li_Adipisicing7 = loo_JResp.IntOf("activities[i].actor.photo.adipisicing7")
    li_Irure_70 = loo_JResp.BoolOf("activities[i].actor.photo.irure_70")
    ls_Remote_photo_url = loo_JResp.StringOf("activities[i].actor.remote_photo_url")
    ls_Report_csv = loo_JResp.StringOf("activities[i].actor.report_csv")
    ls_Restricted_agent = loo_JResp.StringOf("activities[i].actor.restricted_agent")
    ls_Role = loo_JResp.StringOf("activities[i].actor.role")
    ls_Role_type = loo_JResp.StringOf("activities[i].actor.role_type")
    ls_V_Shared = loo_JResp.StringOf("activities[i].actor.shared")
    ls_Shared_agent = loo_JResp.StringOf("activities[i].actor.shared_agent")
    ls_Shared_phone_number = loo_JResp.StringOf("activities[i].actor.shared_phone_number")
    ls_Signature = loo_JResp.StringOf("activities[i].actor.signature")
    ls_Suspended = loo_JResp.StringOf("activities[i].actor.suspended")
    ls_Tags = loo_JResp.StringOf("activities[i].actor.tags")
    ls_Ticket_restriction = loo_JResp.StringOf("activities[i].actor.ticket_restriction")
    ls_Time_zone = loo_JResp.StringOf("activities[i].actor.time_zone")
    ls_Two_factor_auth_enabled = loo_JResp.StringOf("activities[i].actor.two_factor_auth_enabled")
    ls_Updated_at = loo_JResp.StringOf("activities[i].actor.updated_at")
    ls_V_Url = loo_JResp.StringOf("activities[i].actor.url")
    ls_Tempor_f = loo_JResp.StringOf("activities[i].actor.user_fields.tempor_f")
    ls_Verified = loo_JResp.StringOf("activities[i].actor.verified")
    ls_Actor_id = loo_JResp.StringOf("activities[i].actor_id")
    ls_Created_at = loo_JResp.StringOf("activities[i].created_at")
    ls_Id = loo_JResp.StringOf("activities[i].id")
    li_Officia1a2 = loo_JResp.BoolOf("activities[i].object.officia1a2")
    ls_Qui9 = loo_JResp.StringOf("activities[i].object.qui9")
    ls_Irure_1cd = loo_JResp.StringOf("activities[i].object.irure_1cd")
    li_Sede8 = loo_JResp.BoolOf("activities[i].target.sede8")
    ls_Title = loo_JResp.StringOf("activities[i].title")
    ls_Updated_at = loo_JResp.StringOf("activities[i].updated_at")
    ls_Url = loo_JResp.StringOf("activities[i].url")
    ls_UserName = loo_JResp.StringOf("activities[i].user.name")
    ls_UserActive = loo_JResp.StringOf("activities[i].user.active")
    ls_UserAlias = loo_JResp.StringOf("activities[i].user.alias")
    ls_UserChat_only = loo_JResp.StringOf("activities[i].user.chat_only")
    ls_UserCreated_at = loo_JResp.StringOf("activities[i].user.created_at")
    ls_UserCustom_role_id = loo_JResp.StringOf("activities[i].user.custom_role_id")
    ls_UserDefault_group_id = loo_JResp.StringOf("activities[i].user.default_group_id")
    ls_UserDetails = loo_JResp.StringOf("activities[i].user.details")
    ls_UserEmail = loo_JResp.StringOf("activities[i].user.email")
    ls_UserExternal_id = loo_JResp.StringOf("activities[i].user.external_id")
    ls_UserIana_time_zone = loo_JResp.StringOf("activities[i].user.iana_time_zone")
    ls_UserId = loo_JResp.StringOf("activities[i].user.id")
    ls_UserLast_login_at = loo_JResp.StringOf("activities[i].user.last_login_at")
    ls_UserLocale = loo_JResp.StringOf("activities[i].user.locale")
    ls_UserLocale_id = loo_JResp.StringOf("activities[i].user.locale_id")
    ls_UserModerator = loo_JResp.StringOf("activities[i].user.moderator")
    ls_UserNotes = loo_JResp.StringOf("activities[i].user.notes")
    ls_UserOnly_private_comments = loo_JResp.StringOf("activities[i].user.only_private_comments")
    ls_UserOrganization_id = loo_JResp.StringOf("activities[i].user.organization_id")
    ls_UserPhone = loo_JResp.StringOf("activities[i].user.phone")
    ls_Ut975 = loo_JResp.StringOf("activities[i].user.photo.Ut975")
    li_Magna3e = loo_JResp.BoolOf("activities[i].user.photo.magna3e")
    ls_UserRemote_photo_url = loo_JResp.StringOf("activities[i].user.remote_photo_url")
    ls_UserReport_csv = loo_JResp.StringOf("activities[i].user.report_csv")
    ls_UserRestricted_agent = loo_JResp.StringOf("activities[i].user.restricted_agent")
    ls_UserRole = loo_JResp.StringOf("activities[i].user.role")
    ls_UserRole_type = loo_JResp.StringOf("activities[i].user.role_type")
    ls_UserShared = loo_JResp.StringOf("activities[i].user.shared")
    ls_UserShared_agent = loo_JResp.StringOf("activities[i].user.shared_agent")
    ls_UserShared_phone_number = loo_JResp.StringOf("activities[i].user.shared_phone_number")
    ls_UserSignature = loo_JResp.StringOf("activities[i].user.signature")
    ls_UserSuspended = loo_JResp.StringOf("activities[i].user.suspended")
    ls_UserTags = loo_JResp.StringOf("activities[i].user.tags")
    ls_UserTicket_restriction = loo_JResp.StringOf("activities[i].user.ticket_restriction")
    ls_UserTime_zone = loo_JResp.StringOf("activities[i].user.time_zone")
    ls_UserTwo_factor_auth_enabled = loo_JResp.StringOf("activities[i].user.two_factor_auth_enabled")
    ls_UserUpdated_at = loo_JResp.StringOf("activities[i].user.updated_at")
    ls_UserUrl = loo_JResp.StringOf("activities[i].user.url")
    ls_Ut_d = loo_JResp.StringOf("activities[i].user.user_fields.ut_d")
    li_Adipisicing_7 = loo_JResp.IntOf("activities[i].user.user_fields.adipisicing_7")
    ls_Magna_9 = loo_JResp.StringOf("activities[i].user.user_fields.magna_9")
    ls_UserVerified = loo_JResp.StringOf("activities[i].user.verified")
    ls_User_id = loo_JResp.StringOf("activities[i].user_id")
    ls_Verb = loo_JResp.StringOf("activities[i].verb")
    li_Aliquipb6 = loo_JResp.BoolOf("activities[i].actor.photo.aliquipb6")
    ls_Euc13 = loo_JResp.StringOf("activities[i].actor.user_fields.euc13")
    li_Pariatur_39 = loo_JResp.IntOf("activities[i].object.pariatur_39")
    li_Voluptate_8 = loo_JResp.BoolOf("activities[i].object.voluptate_8")
    li_Ipsum4 = loo_JResp.IntOf("activities[i].object.ipsum4")
    ls_Est_d = loo_JResp.StringOf("activities[i].target.est_d")
    ls_Esse_b = loo_JResp.StringOf("activities[i].user.photo.esse_b")
    ls_Ut_e6f = loo_JResp.StringOf("activities[i].user.photo.ut_e6f")
    ls_Voluptatef = loo_JResp.StringOf("activities[i].user.user_fields.voluptatef")
    li_Utba9 = loo_JResp.IntOf("activities[i].user.user_fields.utba9")
    li_Ut_2 = loo_JResp.BoolOf("activities[i].user.user_fields.ut_2")
    i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("actors")
do while i < li_Count_i
    loo_JResp.I = i
    ls_Excepteur1_ = loo_JResp.StringOf("actors[i].Excepteur1_")
    ls_Consectetura8a = loo_JResp.StringOf("actors[i].consectetura8a")
    ls_Id_e = loo_JResp.StringOf("actors[i].id_e")
    li_Reprehenderit_93 = loo_JResp.IntOf("actors[i].reprehenderit_93")
    ls_Elit7 = loo_JResp.StringOf("actors[i].elit7")
    ls_Ad_1a = loo_JResp.StringOf("actors[i].ad_1a")
    i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("users")
do while i < li_Count_i
    loo_JResp.I = i
    li_Anim40 = loo_JResp.IntOf("users[i].anim40")
    ls_Quisa9 = loo_JResp.StringOf("users[i].quisa9")
    li_Fugiat_e = loo_JResp.BoolOf("users[i].fugiat_e")
    ls_Non_224 = loo_JResp.StringOf("users[i].non_224")
    ls_Cillumeb = loo_JResp.StringOf("users[i].cillumeb")
    i = i + 1
loop


destroy loo_Http
destroy loo_QueryParams
destroy loo_SbResponseBody
destroy loo_JResp

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}"
    }
  ]
}