DataFlex / Support API / List Activities
Back to Collection Items
Use ChilkatAx-win32.pkg
Procedure Test
Handle hoHttp
Boolean iSuccess
Variant vQueryParams
Handle hoQueryParams
Variant vResp
Handle hoResp
Variant vSbResponseBody
Handle hoSbResponseBody
Handle hoJResp
Integer iRespStatusCode
String sName
String sActive
String sAlias
String sChat_only
String sCreated_at
String sCustom_role_id
String sDefault_group_id
String sDetails
String sV_Email
String sExternal_id
String sIana_time_zone
String sId
String sLast_login_at
String sLocale
String sLocale_id
String sModerator
String sNotes
String sOnly_private_comments
String sOrganization_id
String sPhone
Integer iAdipisicing7
Boolean iIrure_70
String sRemote_photo_url
String sReport_csv
String sRestricted_agent
String sRole
String sRole_type
String sV_Shared
String sShared_agent
String sShared_phone_number
String sSignature
String sSuspended
String sTags
String sTicket_restriction
String sTime_zone
String sTwo_factor_auth_enabled
String sUpdated_at
String sV_Url
String sTempor_f
String sVerified
String sActor_id
String sCreated_at
String sId
Boolean iOfficia1a2
String sQui9
String sIrure_1cd
Boolean iSede8
String sTitle
String sUpdated_at
String sUrl
String sUserName
String sUserActive
String sUserAlias
String sUserChat_only
String sUserCreated_at
String sUserCustom_role_id
String sUserDefault_group_id
String sUserDetails
String sUserEmail
String sUserExternal_id
String sUserIana_time_zone
String sUserId
String sUserLast_login_at
String sUserLocale
String sUserLocale_id
String sUserModerator
String sUserNotes
String sUserOnly_private_comments
String sUserOrganization_id
String sUserPhone
String sUt975
Boolean iMagna3e
String sUserRemote_photo_url
String sUserReport_csv
String sUserRestricted_agent
String sUserRole
String sUserRole_type
String sUserShared
String sUserShared_agent
String sUserShared_phone_number
String sUserSignature
String sUserSuspended
String sUserTags
String sUserTicket_restriction
String sUserTime_zone
String sUserTwo_factor_auth_enabled
String sUserUpdated_at
String sUserUrl
String sUt_d
Integer iAdipisicing_7
String sMagna_9
String sUserVerified
String sUser_id
String sVerb
Boolean iAliquipb6
String sEuc13
Integer iPariatur_39
Boolean iVoluptate_8
Integer iIpsum4
String sEst_d
String sEsse_b
String sUt_e6f
String sVoluptatef
Integer iUtba9
Boolean iUt_2
String sExcepteur1_
String sConsectetura8a
String sId_e
Integer iReprehenderit_93
String sElit7
String sAd_1a
Integer iAnim40
String sQuisa9
Boolean iFugiat_e
String sNon_224
String sCillumeb
String sCount
String sNext_page
String sPrevious_page
Integer i
Integer iCount_i
String sTemp1
Boolean bTemp1
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
Get Create (RefClass(cComChilkatHttp)) To hoHttp
If (Not(IsComObjectCreated(hoHttp))) Begin
Send CreateComObject of hoHttp
End
Set ComBasicAuth Of hoHttp To True
Set ComLogin Of hoHttp To "login"
Set ComPassword Of hoHttp To "password"
Get Create (RefClass(cComChilkatJsonObject)) To hoQueryParams
If (Not(IsComObjectCreated(hoQueryParams))) Begin
Send CreateComObject of hoQueryParams
End
Get ComUpdateString Of hoQueryParams "since" "<string>" To iSuccess
Send ComSetRequestHeader To hoHttp "Accept" "application/json"
Get pvComObject of hoQueryParams to vQueryParams
Get ComQuickRequestParams Of hoHttp "GET" "https://example.zendesk.com/api/v2/activities" vQueryParams To vResp
If (IsComObject(vResp)) Begin
Get Create (RefClass(cComChilkatHttpResponse)) To hoResp
Set pvComObject Of hoResp To vResp
End
Get ComLastMethodSuccess Of hoHttp To bTemp1
If (bTemp1 = False) Begin
Get ComLastErrorText Of hoHttp To sTemp1
Showln sTemp1
Procedure_Return
End
Get Create (RefClass(cComChilkatStringBuilder)) To hoSbResponseBody
If (Not(IsComObjectCreated(hoSbResponseBody))) Begin
Send CreateComObject of hoSbResponseBody
End
Get pvComObject of hoSbResponseBody to vSbResponseBody
Get ComGetBodySb Of hoResp vSbResponseBody To iSuccess
Get Create (RefClass(cComChilkatJsonObject)) To hoJResp
If (Not(IsComObjectCreated(hoJResp))) Begin
Send CreateComObject of hoJResp
End
Get pvComObject of hoSbResponseBody to vSbResponseBody
Get ComLoadSb Of hoJResp vSbResponseBody To iSuccess
Set ComEmitCompact Of hoJResp To False
Showln "Response Body:"
Get ComEmit Of hoJResp To sTemp1
Showln sTemp1
Get ComStatusCode Of hoResp To iRespStatusCode
Showln "Response Status Code = " iRespStatusCode
If (iRespStatusCode >= 400) Begin
Showln "Response Header:"
Get ComHeader Of hoResp To sTemp1
Showln sTemp1
Showln "Failed."
Send Destroy of hoResp
Procedure_Return
End
Send Destroy of hoResp
// 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
Get ComStringOf Of hoJResp "count" To sCount
Get ComStringOf Of hoJResp "next_page" To sNext_page
Get ComStringOf Of hoJResp "previous_page" To sPrevious_page
Move 0 To i
Get ComSizeOfArray Of hoJResp "activities" To iCount_i
While (i < iCount_i)
Set ComI Of hoJResp To i
Get ComStringOf Of hoJResp "activities[i].actor.name" To sName
Get ComStringOf Of hoJResp "activities[i].actor.active" To sActive
Get ComStringOf Of hoJResp "activities[i].actor.alias" To sAlias
Get ComStringOf Of hoJResp "activities[i].actor.chat_only" To sChat_only
Get ComStringOf Of hoJResp "activities[i].actor.created_at" To sCreated_at
Get ComStringOf Of hoJResp "activities[i].actor.custom_role_id" To sCustom_role_id
Get ComStringOf Of hoJResp "activities[i].actor.default_group_id" To sDefault_group_id
Get ComStringOf Of hoJResp "activities[i].actor.details" To sDetails
Get ComStringOf Of hoJResp "activities[i].actor.email" To sV_Email
Get ComStringOf Of hoJResp "activities[i].actor.external_id" To sExternal_id
Get ComStringOf Of hoJResp "activities[i].actor.iana_time_zone" To sIana_time_zone
Get ComStringOf Of hoJResp "activities[i].actor.id" To sId
Get ComStringOf Of hoJResp "activities[i].actor.last_login_at" To sLast_login_at
Get ComStringOf Of hoJResp "activities[i].actor.locale" To sLocale
Get ComStringOf Of hoJResp "activities[i].actor.locale_id" To sLocale_id
Get ComStringOf Of hoJResp "activities[i].actor.moderator" To sModerator
Get ComStringOf Of hoJResp "activities[i].actor.notes" To sNotes
Get ComStringOf Of hoJResp "activities[i].actor.only_private_comments" To sOnly_private_comments
Get ComStringOf Of hoJResp "activities[i].actor.organization_id" To sOrganization_id
Get ComStringOf Of hoJResp "activities[i].actor.phone" To sPhone
Get ComIntOf Of hoJResp "activities[i].actor.photo.adipisicing7" To iAdipisicing7
Get ComBoolOf Of hoJResp "activities[i].actor.photo.irure_70" To iIrure_70
Get ComStringOf Of hoJResp "activities[i].actor.remote_photo_url" To sRemote_photo_url
Get ComStringOf Of hoJResp "activities[i].actor.report_csv" To sReport_csv
Get ComStringOf Of hoJResp "activities[i].actor.restricted_agent" To sRestricted_agent
Get ComStringOf Of hoJResp "activities[i].actor.role" To sRole
Get ComStringOf Of hoJResp "activities[i].actor.role_type" To sRole_type
Get ComStringOf Of hoJResp "activities[i].actor.shared" To sV_Shared
Get ComStringOf Of hoJResp "activities[i].actor.shared_agent" To sShared_agent
Get ComStringOf Of hoJResp "activities[i].actor.shared_phone_number" To sShared_phone_number
Get ComStringOf Of hoJResp "activities[i].actor.signature" To sSignature
Get ComStringOf Of hoJResp "activities[i].actor.suspended" To sSuspended
Get ComStringOf Of hoJResp "activities[i].actor.tags" To sTags
Get ComStringOf Of hoJResp "activities[i].actor.ticket_restriction" To sTicket_restriction
Get ComStringOf Of hoJResp "activities[i].actor.time_zone" To sTime_zone
Get ComStringOf Of hoJResp "activities[i].actor.two_factor_auth_enabled" To sTwo_factor_auth_enabled
Get ComStringOf Of hoJResp "activities[i].actor.updated_at" To sUpdated_at
Get ComStringOf Of hoJResp "activities[i].actor.url" To sV_Url
Get ComStringOf Of hoJResp "activities[i].actor.user_fields.tempor_f" To sTempor_f
Get ComStringOf Of hoJResp "activities[i].actor.verified" To sVerified
Get ComStringOf Of hoJResp "activities[i].actor_id" To sActor_id
Get ComStringOf Of hoJResp "activities[i].created_at" To sCreated_at
Get ComStringOf Of hoJResp "activities[i].id" To sId
Get ComBoolOf Of hoJResp "activities[i].object.officia1a2" To iOfficia1a2
Get ComStringOf Of hoJResp "activities[i].object.qui9" To sQui9
Get ComStringOf Of hoJResp "activities[i].object.irure_1cd" To sIrure_1cd
Get ComBoolOf Of hoJResp "activities[i].target.sede8" To iSede8
Get ComStringOf Of hoJResp "activities[i].title" To sTitle
Get ComStringOf Of hoJResp "activities[i].updated_at" To sUpdated_at
Get ComStringOf Of hoJResp "activities[i].url" To sUrl
Get ComStringOf Of hoJResp "activities[i].user.name" To sUserName
Get ComStringOf Of hoJResp "activities[i].user.active" To sUserActive
Get ComStringOf Of hoJResp "activities[i].user.alias" To sUserAlias
Get ComStringOf Of hoJResp "activities[i].user.chat_only" To sUserChat_only
Get ComStringOf Of hoJResp "activities[i].user.created_at" To sUserCreated_at
Get ComStringOf Of hoJResp "activities[i].user.custom_role_id" To sUserCustom_role_id
Get ComStringOf Of hoJResp "activities[i].user.default_group_id" To sUserDefault_group_id
Get ComStringOf Of hoJResp "activities[i].user.details" To sUserDetails
Get ComStringOf Of hoJResp "activities[i].user.email" To sUserEmail
Get ComStringOf Of hoJResp "activities[i].user.external_id" To sUserExternal_id
Get ComStringOf Of hoJResp "activities[i].user.iana_time_zone" To sUserIana_time_zone
Get ComStringOf Of hoJResp "activities[i].user.id" To sUserId
Get ComStringOf Of hoJResp "activities[i].user.last_login_at" To sUserLast_login_at
Get ComStringOf Of hoJResp "activities[i].user.locale" To sUserLocale
Get ComStringOf Of hoJResp "activities[i].user.locale_id" To sUserLocale_id
Get ComStringOf Of hoJResp "activities[i].user.moderator" To sUserModerator
Get ComStringOf Of hoJResp "activities[i].user.notes" To sUserNotes
Get ComStringOf Of hoJResp "activities[i].user.only_private_comments" To sUserOnly_private_comments
Get ComStringOf Of hoJResp "activities[i].user.organization_id" To sUserOrganization_id
Get ComStringOf Of hoJResp "activities[i].user.phone" To sUserPhone
Get ComStringOf Of hoJResp "activities[i].user.photo.Ut975" To sUt975
Get ComBoolOf Of hoJResp "activities[i].user.photo.magna3e" To iMagna3e
Get ComStringOf Of hoJResp "activities[i].user.remote_photo_url" To sUserRemote_photo_url
Get ComStringOf Of hoJResp "activities[i].user.report_csv" To sUserReport_csv
Get ComStringOf Of hoJResp "activities[i].user.restricted_agent" To sUserRestricted_agent
Get ComStringOf Of hoJResp "activities[i].user.role" To sUserRole
Get ComStringOf Of hoJResp "activities[i].user.role_type" To sUserRole_type
Get ComStringOf Of hoJResp "activities[i].user.shared" To sUserShared
Get ComStringOf Of hoJResp "activities[i].user.shared_agent" To sUserShared_agent
Get ComStringOf Of hoJResp "activities[i].user.shared_phone_number" To sUserShared_phone_number
Get ComStringOf Of hoJResp "activities[i].user.signature" To sUserSignature
Get ComStringOf Of hoJResp "activities[i].user.suspended" To sUserSuspended
Get ComStringOf Of hoJResp "activities[i].user.tags" To sUserTags
Get ComStringOf Of hoJResp "activities[i].user.ticket_restriction" To sUserTicket_restriction
Get ComStringOf Of hoJResp "activities[i].user.time_zone" To sUserTime_zone
Get ComStringOf Of hoJResp "activities[i].user.two_factor_auth_enabled" To sUserTwo_factor_auth_enabled
Get ComStringOf Of hoJResp "activities[i].user.updated_at" To sUserUpdated_at
Get ComStringOf Of hoJResp "activities[i].user.url" To sUserUrl
Get ComStringOf Of hoJResp "activities[i].user.user_fields.ut_d" To sUt_d
Get ComIntOf Of hoJResp "activities[i].user.user_fields.adipisicing_7" To iAdipisicing_7
Get ComStringOf Of hoJResp "activities[i].user.user_fields.magna_9" To sMagna_9
Get ComStringOf Of hoJResp "activities[i].user.verified" To sUserVerified
Get ComStringOf Of hoJResp "activities[i].user_id" To sUser_id
Get ComStringOf Of hoJResp "activities[i].verb" To sVerb
Get ComBoolOf Of hoJResp "activities[i].actor.photo.aliquipb6" To iAliquipb6
Get ComStringOf Of hoJResp "activities[i].actor.user_fields.euc13" To sEuc13
Get ComIntOf Of hoJResp "activities[i].object.pariatur_39" To iPariatur_39
Get ComBoolOf Of hoJResp "activities[i].object.voluptate_8" To iVoluptate_8
Get ComIntOf Of hoJResp "activities[i].object.ipsum4" To iIpsum4
Get ComStringOf Of hoJResp "activities[i].target.est_d" To sEst_d
Get ComStringOf Of hoJResp "activities[i].user.photo.esse_b" To sEsse_b
Get ComStringOf Of hoJResp "activities[i].user.photo.ut_e6f" To sUt_e6f
Get ComStringOf Of hoJResp "activities[i].user.user_fields.voluptatef" To sVoluptatef
Get ComIntOf Of hoJResp "activities[i].user.user_fields.utba9" To iUtba9
Get ComBoolOf Of hoJResp "activities[i].user.user_fields.ut_2" To iUt_2
Move (i + 1) To i
Loop
Move 0 To i
Get ComSizeOfArray Of hoJResp "actors" To iCount_i
While (i < iCount_i)
Set ComI Of hoJResp To i
Get ComStringOf Of hoJResp "actors[i].Excepteur1_" To sExcepteur1_
Get ComStringOf Of hoJResp "actors[i].consectetura8a" To sConsectetura8a
Get ComStringOf Of hoJResp "actors[i].id_e" To sId_e
Get ComIntOf Of hoJResp "actors[i].reprehenderit_93" To iReprehenderit_93
Get ComStringOf Of hoJResp "actors[i].elit7" To sElit7
Get ComStringOf Of hoJResp "actors[i].ad_1a" To sAd_1a
Move (i + 1) To i
Loop
Move 0 To i
Get ComSizeOfArray Of hoJResp "users" To iCount_i
While (i < iCount_i)
Set ComI Of hoJResp To i
Get ComIntOf Of hoJResp "users[i].anim40" To iAnim40
Get ComStringOf Of hoJResp "users[i].quisa9" To sQuisa9
Get ComBoolOf Of hoJResp "users[i].fugiat_e" To iFugiat_e
Get ComStringOf Of hoJResp "users[i].non_224" To sNon_224
Get ComStringOf Of hoJResp "users[i].cillumeb" To sCillumeb
Move (i + 1) To i
Loop
End_Procedure
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}"
}
]
}