Chilkat Online Tools

SQL Server / Support API / Show Activity

Back to Collection Items

-- Important: See this note about string length limitations for strings returned by sp_OAMethod calls.
--
CREATE PROCEDURE ChilkatSample
AS
BEGIN
    DECLARE @hr int
    -- Important: Do not use nvarchar(max).  See the warning about using nvarchar(max).
    DECLARE @sTmp0 nvarchar(4000)
    -- This example assumes the Chilkat API to have been previously unlocked.
    -- See Global Unlock Sample for sample code.

    DECLARE @http int
    -- Use "Chilkat_9_5_0.Http" for versions of Chilkat < 10.0.0
    EXEC @hr = sp_OACreate 'Chilkat.Http', @http OUT
    IF @hr <> 0
    BEGIN
        PRINT 'Failed to create ActiveX component'
        RETURN
    END

    DECLARE @success int

    EXEC sp_OASetProperty @http, 'BasicAuth', 1
    EXEC sp_OASetProperty @http, 'Login', 'login'
    EXEC sp_OASetProperty @http, 'Password', 'password'

    EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Accept', 'application/json'

    DECLARE @sbResponseBody int
    -- Use "Chilkat_9_5_0.StringBuilder" for versions of Chilkat < 10.0.0
    EXEC @hr = sp_OACreate 'Chilkat.StringBuilder', @sbResponseBody OUT

    EXEC sp_OAMethod @http, 'QuickGetSb', @success OUT, 'https://example.zendesk.com/api/v2/activities/:activity_id', @sbResponseBody
    IF @success = 0
      BEGIN
        EXEC sp_OAGetProperty @http, 'LastErrorText', @sTmp0 OUT
        PRINT @sTmp0
        EXEC @hr = sp_OADestroy @http
        EXEC @hr = sp_OADestroy @sbResponseBody
        RETURN
      END

    DECLARE @jResp int
    -- Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
    EXEC @hr = sp_OACreate 'Chilkat.JsonObject', @jResp OUT

    EXEC sp_OAMethod @jResp, 'LoadSb', @success OUT, @sbResponseBody
    EXEC sp_OASetProperty @jResp, 'EmitCompact', 0


    PRINT 'Response Body:'
    EXEC sp_OAMethod @jResp, 'Emit', @sTmp0 OUT
    PRINT @sTmp0

    DECLARE @respStatusCode int
    EXEC sp_OAGetProperty @http, 'LastStatus', @respStatusCode OUT

    PRINT 'Response Status Code = ' + @respStatusCode
    IF @respStatusCode >= 400
      BEGIN

        PRINT 'Response Header:'
        EXEC sp_OAGetProperty @http, 'LastHeader', @sTmp0 OUT
        PRINT @sTmp0

        PRINT 'Failed.'
        EXEC @hr = sp_OADestroy @http
        EXEC @hr = sp_OADestroy @sbResponseBody
        EXEC @hr = sp_OADestroy @jResp
        RETURN
      END

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

    -- {
    --   "activity": {
    --     "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": {
    --         "laborum485": "cupidatat occaecat sed esse deserunt",
    --         "incididuntfe4": "ut esse dolor dolore adipisicing",
    --         "ipsum_d": false,
    --         "non_4a": 96148739
    --       },
    --       "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": {
    --         "aute_e0": false,
    --         "quis02": 59243202
    --       },
    --       "verified": "<boolean>"
    --     },
    --     "actor_id": "<integer>",
    --     "created_at": "<string>",
    --     "id": "<integer>",
    --     "object": {
    --       "consequatf61": 91186207,
    --       "labore__6": true
    --     },
    --     "target": {
    --       "anim_f0": 93298900,
    --       "deserunt_fb": -19031432.480811536
    --     },
    --     "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": {
    --         "velit_d": false,
    --         "nulla68_": -89946385,
    --         "elit1": "id commodo cu"
    --       },
    --       "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": {
    --         "dolor_c26": 36781242,
    --         "elit891": -33618800.11537988,
    --         "amet8": "consectetur"
    --       },
    --       "verified": "<boolean>"
    --     },
    --     "user_id": "<integer>",
    --     "verb": "<string>"
    --   }
    -- }

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

    DECLARE @Name nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Name OUT, 'activity.actor.name'
    DECLARE @Active nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Active OUT, 'activity.actor.active'
    DECLARE @Alias nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Alias OUT, 'activity.actor.alias'
    DECLARE @Chat_only nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Chat_only OUT, 'activity.actor.chat_only'
    DECLARE @Created_at nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Created_at OUT, 'activity.actor.created_at'
    DECLARE @Custom_role_id nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Custom_role_id OUT, 'activity.actor.custom_role_id'
    DECLARE @Default_group_id nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Default_group_id OUT, 'activity.actor.default_group_id'
    DECLARE @Details nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Details OUT, 'activity.actor.details'
    DECLARE @v_Email nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @v_Email OUT, 'activity.actor.email'
    DECLARE @External_id nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @External_id OUT, 'activity.actor.external_id'
    DECLARE @Iana_time_zone nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Iana_time_zone OUT, 'activity.actor.iana_time_zone'
    DECLARE @Id nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Id OUT, 'activity.actor.id'
    DECLARE @Last_login_at nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Last_login_at OUT, 'activity.actor.last_login_at'
    DECLARE @Locale nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Locale OUT, 'activity.actor.locale'
    DECLARE @Locale_id nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Locale_id OUT, 'activity.actor.locale_id'
    DECLARE @Moderator nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Moderator OUT, 'activity.actor.moderator'
    DECLARE @Notes nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Notes OUT, 'activity.actor.notes'
    DECLARE @Only_private_comments nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Only_private_comments OUT, 'activity.actor.only_private_comments'
    DECLARE @Organization_id nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Organization_id OUT, 'activity.actor.organization_id'
    DECLARE @Phone nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Phone OUT, 'activity.actor.phone'
    DECLARE @Laborum485 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Laborum485 OUT, 'activity.actor.photo.laborum485'
    DECLARE @Incididuntfe4 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Incididuntfe4 OUT, 'activity.actor.photo.incididuntfe4'
    DECLARE @Ipsum_d int
    EXEC sp_OAMethod @jResp, 'BoolOf', @Ipsum_d OUT, 'activity.actor.photo.ipsum_d'
    DECLARE @Non_4a int
    EXEC sp_OAMethod @jResp, 'IntOf', @Non_4a OUT, 'activity.actor.photo.non_4a'
    DECLARE @Remote_photo_url nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Remote_photo_url OUT, 'activity.actor.remote_photo_url'
    DECLARE @Report_csv nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Report_csv OUT, 'activity.actor.report_csv'
    DECLARE @Restricted_agent nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Restricted_agent OUT, 'activity.actor.restricted_agent'
    DECLARE @Role nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Role OUT, 'activity.actor.role'
    DECLARE @Role_type nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Role_type OUT, 'activity.actor.role_type'
    DECLARE @v_Shared nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @v_Shared OUT, 'activity.actor.shared'
    DECLARE @Shared_agent nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Shared_agent OUT, 'activity.actor.shared_agent'
    DECLARE @Shared_phone_number nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Shared_phone_number OUT, 'activity.actor.shared_phone_number'
    DECLARE @Signature nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Signature OUT, 'activity.actor.signature'
    DECLARE @Suspended nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Suspended OUT, 'activity.actor.suspended'
    DECLARE @Tags nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Tags OUT, 'activity.actor.tags'
    DECLARE @Ticket_restriction nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Ticket_restriction OUT, 'activity.actor.ticket_restriction'
    DECLARE @Time_zone nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Time_zone OUT, 'activity.actor.time_zone'
    DECLARE @Two_factor_auth_enabled nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Two_factor_auth_enabled OUT, 'activity.actor.two_factor_auth_enabled'
    DECLARE @Updated_at nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Updated_at OUT, 'activity.actor.updated_at'
    DECLARE @v_Url nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @v_Url OUT, 'activity.actor.url'
    DECLARE @Aute_e0 int
    EXEC sp_OAMethod @jResp, 'BoolOf', @Aute_e0 OUT, 'activity.actor.user_fields.aute_e0'
    DECLARE @Quis02 int
    EXEC sp_OAMethod @jResp, 'IntOf', @Quis02 OUT, 'activity.actor.user_fields.quis02'
    DECLARE @Verified nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Verified OUT, 'activity.actor.verified'
    DECLARE @Actor_id nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Actor_id OUT, 'activity.actor_id'
    DECLARE @activityCreated_at nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @activityCreated_at OUT, 'activity.created_at'
    DECLARE @activityId nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @activityId OUT, 'activity.id'
    DECLARE @Consequatf61 int
    EXEC sp_OAMethod @jResp, 'IntOf', @Consequatf61 OUT, 'activity.object.consequatf61'
    DECLARE @Labore__6 int
    EXEC sp_OAMethod @jResp, 'BoolOf', @Labore__6 OUT, 'activity.object.labore__6'
    DECLARE @Anim_f0 int
    EXEC sp_OAMethod @jResp, 'IntOf', @Anim_f0 OUT, 'activity.target.anim_f0'
    DECLARE @Deserunt_fb nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Deserunt_fb OUT, 'activity.target.deserunt_fb'
    DECLARE @Title nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Title OUT, 'activity.title'
    DECLARE @activityUpdated_at nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @activityUpdated_at OUT, 'activity.updated_at'
    DECLARE @activityUrl nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @activityUrl OUT, 'activity.url'
    DECLARE @UserName nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UserName OUT, 'activity.user.name'
    DECLARE @UserActive nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UserActive OUT, 'activity.user.active'
    DECLARE @UserAlias nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UserAlias OUT, 'activity.user.alias'
    DECLARE @UserChat_only nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UserChat_only OUT, 'activity.user.chat_only'
    DECLARE @UserCreated_at nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UserCreated_at OUT, 'activity.user.created_at'
    DECLARE @UserCustom_role_id nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UserCustom_role_id OUT, 'activity.user.custom_role_id'
    DECLARE @UserDefault_group_id nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UserDefault_group_id OUT, 'activity.user.default_group_id'
    DECLARE @UserDetails nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UserDetails OUT, 'activity.user.details'
    DECLARE @UserEmail nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UserEmail OUT, 'activity.user.email'
    DECLARE @UserExternal_id nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UserExternal_id OUT, 'activity.user.external_id'
    DECLARE @UserIana_time_zone nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UserIana_time_zone OUT, 'activity.user.iana_time_zone'
    DECLARE @UserId nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UserId OUT, 'activity.user.id'
    DECLARE @UserLast_login_at nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UserLast_login_at OUT, 'activity.user.last_login_at'
    DECLARE @UserLocale nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UserLocale OUT, 'activity.user.locale'
    DECLARE @UserLocale_id nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UserLocale_id OUT, 'activity.user.locale_id'
    DECLARE @UserModerator nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UserModerator OUT, 'activity.user.moderator'
    DECLARE @UserNotes nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UserNotes OUT, 'activity.user.notes'
    DECLARE @UserOnly_private_comments nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UserOnly_private_comments OUT, 'activity.user.only_private_comments'
    DECLARE @UserOrganization_id nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UserOrganization_id OUT, 'activity.user.organization_id'
    DECLARE @UserPhone nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UserPhone OUT, 'activity.user.phone'
    DECLARE @Velit_d int
    EXEC sp_OAMethod @jResp, 'BoolOf', @Velit_d OUT, 'activity.user.photo.velit_d'
    DECLARE @Nulla68_ int
    EXEC sp_OAMethod @jResp, 'IntOf', @Nulla68_ OUT, 'activity.user.photo.nulla68_'
    DECLARE @Elit1 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Elit1 OUT, 'activity.user.photo.elit1'
    DECLARE @UserRemote_photo_url nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UserRemote_photo_url OUT, 'activity.user.remote_photo_url'
    DECLARE @UserReport_csv nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UserReport_csv OUT, 'activity.user.report_csv'
    DECLARE @UserRestricted_agent nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UserRestricted_agent OUT, 'activity.user.restricted_agent'
    DECLARE @UserRole nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UserRole OUT, 'activity.user.role'
    DECLARE @UserRole_type nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UserRole_type OUT, 'activity.user.role_type'
    DECLARE @UserShared nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UserShared OUT, 'activity.user.shared'
    DECLARE @UserShared_agent nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UserShared_agent OUT, 'activity.user.shared_agent'
    DECLARE @UserShared_phone_number nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UserShared_phone_number OUT, 'activity.user.shared_phone_number'
    DECLARE @UserSignature nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UserSignature OUT, 'activity.user.signature'
    DECLARE @UserSuspended nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UserSuspended OUT, 'activity.user.suspended'
    DECLARE @UserTags nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UserTags OUT, 'activity.user.tags'
    DECLARE @UserTicket_restriction nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UserTicket_restriction OUT, 'activity.user.ticket_restriction'
    DECLARE @UserTime_zone nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UserTime_zone OUT, 'activity.user.time_zone'
    DECLARE @UserTwo_factor_auth_enabled nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UserTwo_factor_auth_enabled OUT, 'activity.user.two_factor_auth_enabled'
    DECLARE @UserUpdated_at nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UserUpdated_at OUT, 'activity.user.updated_at'
    DECLARE @UserUrl nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UserUrl OUT, 'activity.user.url'
    DECLARE @Dolor_c26 int
    EXEC sp_OAMethod @jResp, 'IntOf', @Dolor_c26 OUT, 'activity.user.user_fields.dolor_c26'
    DECLARE @Elit891 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Elit891 OUT, 'activity.user.user_fields.elit891'
    DECLARE @Amet8 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Amet8 OUT, 'activity.user.user_fields.amet8'
    DECLARE @UserVerified nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UserVerified OUT, 'activity.user.verified'
    DECLARE @User_id nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @User_id OUT, 'activity.user_id'
    DECLARE @Verb nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Verb OUT, 'activity.verb'

    EXEC @hr = sp_OADestroy @http
    EXEC @hr = sp_OADestroy @sbResponseBody
    EXEC @hr = sp_OADestroy @jResp


END
GO

Curl Command

curl  -u login:password -X GET
	-H "Accept: application/json"
https://example.zendesk.com/api/v2/activities/:activity_id

Postman Collection Item JSON

{
  "name": "Show Activity",
  "request": {
    "method": "GET",
    "header": [
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "url": {
      "raw": "{{baseUrl}}/api/v2/activities/:activity_id",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "api",
        "v2",
        "activities",
        ":activity_id"
      ],
      "variable": [
        {
          "key": "activity_id",
          "value": "<integer>"
        }
      ]
    },
    "description": "Lists a specific activity.\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/:activity_id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v2",
            "activities",
            ":activity_id"
          ],
          "variable": [
            {
              "key": "activity_id"
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"activity\": {\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        \"laborum485\": \"cupidatat occaecat sed esse deserunt\",\n        \"incididuntfe4\": \"ut esse dolor dolore adipisicing\",\n        \"ipsum_d\": false,\n        \"non_4a\": 96148739\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        \"aute_e0\": false,\n        \"quis02\": 59243202\n      },\n      \"verified\": \"<boolean>\"\n    },\n    \"actor_id\": \"<integer>\",\n    \"created_at\": \"<string>\",\n    \"id\": \"<integer>\",\n    \"object\": {\n      \"consequatf61\": 91186207,\n      \"labore__6\": true\n    },\n    \"target\": {\n      \"anim_f0\": 93298900,\n      \"deserunt_fb\": -19031432.480811536\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        \"velit_d\": false,\n        \"nulla68_\": -89946385,\n        \"elit1\": \"id commodo cu\"\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        \"dolor_c26\": 36781242,\n        \"elit891\": -33618800.11537988,\n        \"amet8\": \"consectetur\"\n      },\n      \"verified\": \"<boolean>\"\n    },\n    \"user_id\": \"<integer>\",\n    \"verb\": \"<string>\"\n  }\n}"
    }
  ]
}