# List all activity logs

`GET /admins/activity_logs`

> This is a subset of the full specification, limited to the `GET /admins/activity_logs` operation.
>
> You can find the full specification here: /_bundle/docs/references/@2.15/rest-api/api.intercom.io.yaml

```yaml
openapi: 3.0.1
info:
  title: Intercom API
  version: '2.15'
  description: This is a subset of the full specification, limited to the `GET /admins/activity_logs` operation.
  contact:
    name: Intercom Developer Hub
    url: https://developers.intercom.com
  license:
    name: MIT
    url: https://spdx.org/licenses/MIT
servers:
  - url: https://api.intercom.io
    description: The production API server
  - url: https://api.eu.intercom.io
    description: The european API server
  - url: https://api.au.intercom.io
    description: The australian API server
security:
  - bearerAuth: []
tags:
  - name: Admins
    description: Everything about your Admins
paths:
  /admins/activity_logs:
    get:
      summary: List all activity logs
      parameters:
        - name: Intercom-Version
          in: header
          schema:
            $ref: '#/components/schemas/intercom_version'
        - name: created_at_after
          in: query
          required: true
          description: The start date that you request data for. It must be formatted as a Unix timestamp.
          example: '1677253093'
          schema:
            type: string
        - name: created_at_before
          in: query
          required: false
          description: The end date that you request data for. It must be formatted as a Unix timestamp.
          example: '1677861493'
          schema:
            type: string
      tags:
        - Admins
      operationId: listActivityLogs
      description: You can get a log of activities by all admins in an app.
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              examples:
                Successful response:
                  value:
                    type: activity_log.list
                    pages:
                      type: pages
                      next: null
                      page: 1
                      per_page: 20
                      total_pages: 1
                    activity_logs:
                      - id: fca05814-4b72-4dce-ad4f-77a786a2c136
                        performed_by:
                          type: admin
                          id: '991267464'
                          email: admin5@email.com
                          ip: 127.0.0.1
                        metadata:
                          before: before
                          after: after
                        created_at: 1734537253
                        activity_type: app_name_change
                        activity_description: Ciaran5 Lee changed your app name from before to after.
                      - id: f48c653b-0185-48ac-a276-23d11006bafb
                        performed_by:
                          type: admin
                          id: '991267464'
                          email: admin5@email.com
                          ip: 127.0.0.1
                        metadata:
                          message:
                            id: 123
                            title: Initial message title
                          before: Initial message title
                          after: Eventual message title
                        created_at: 1734537253
                        activity_type: message_state_change
                        activity_description: Ciaran5 Lee changed your Initial message title message from Initial message title to Eventual message title.
              schema:
                $ref: '#/components/schemas/activity_log_list'
        '401':
          description: Unauthorized
          content:
            application/json:
              examples:
                Unauthorized:
                  value:
                    type: error.list
                    request_id: 57cc6148-2c0a-471b-bd9e-859538110958
                    errors:
                      - code: unauthorized
                        message: Access Token Invalid
              schema:
                $ref: '#/components/schemas/error'
components:
  schemas:
    activity_log:
      title: Activity Log
      type: object
      description: Activities performed by Admins.
      nullable: true
      properties:
        id:
          type: string
          description: The id representing the activity.
          example: '6'
        performed_by:
          type: object
          description: Details about the Admin involved in the activity.
          properties:
            type:
              type: string
              description: String representing the object's type. Always has the value `admin`.
              example: admin
            id:
              type: string
              description: The id representing the admin.
              example: '1295'
            email:
              type: string
              description: The email of the admin.
              example: john@example.com
            ip:
              type: string
              description: The IP address of the admin.
              example: 198.51.100.255
        metadata:
          $ref: '#/components/schemas/activity_log_metadata'
        created_at:
          type: integer
          format: date-time
          description: The time the activity was created.
          example: 1671028894
        activity_type:
          type: string
          enum:
            - admin_conversation_assignment_limit_change
            - admin_ticket_assignment_limit_change
            - admin_avatar_change
            - admin_away_mode_change
            - admin_deletion
            - admin_deprovisioned
            - admin_impersonation_end
            - admin_impersonation_start
            - admin_impersonation_consent_approved
            - admin_impersonation_consent_revoked
            - admin_invite_change
            - admin_invite_creation
            - admin_invite_deletion
            - admin_login_failure
            - admin_login_success
            - admin_logout
            - admin_occupancy_setting_change
            - admin_occupancy_state_change
            - admin_password_reset_request
            - admin_password_reset_success
            - admin_permission_change
            - admin_provisioned
            - admin_two_factor_auth_change
            - admin_unauthorized_sign_in_method
            - app_admin_join
            - app_authentication_method_change
            - app_data_deletion
            - app_data_export
            - app_google_sso_domain_change
            - app_identity_verification_change
            - app_name_change
            - app_outbound_address_change
            - app_package_installation
            - app_package_token_regeneration
            - app_package_uninstallation
            - app_team_creation
            - app_team_deletion
            - app_team_membership_modification
            - app_timezone_change
            - app_webhook_creation
            - app_webhook_deletion
            - articles_in_messenger_enabled_change
            - automatic_away_mode_setting_change
            - bulk_delete
            - bulk_export
            - campaign_deletion
            - campaign_state_change
            - conversation_deletion_schedule_creation
            - conversation_deletion_schedule_deletion
            - conversation_deletion_schedule_state_change
            - conversation_deletion_schedule_update
            - conversation_part_deletion
            - conversation_pdf_export
            - conversation_topic_change
            - conversation_topic_creation
            - conversation_topic_deletion
            - content_redaction_rule_creation
            - content_redaction_rule_deletion
            - content_redaction_rule_update
            - csv_import_completion
            - csv_import_creation
            - custom_authentication_token_creation
            - help_center_settings_change
            - inbound_conversations_change
            - inbox_access_change
            - inbox_bulk_action
            - macro_creation
            - macro_deletion
            - macro_update
            - macro_usage_export
            - malicious_domains_setting_change
            - message_deletion
            - message_state_change
            - messenger_api_secret_creation
            - messenger_api_secret_deletion
            - messenger_look_and_feel_change
            - messenger_search_required_change
            - messenger_spaces_change
            - oauth_token_revocation
            - office_hours_change
            - role_change
            - role_creation
            - role_deletion
            - ruleset_activation_title_preview
            - ruleset_creation
            - ruleset_deletion
            - search_browse_enabled_change
            - search_browse_required_change
            - seat_change
            - seat_revoke
            - security_settings_change
            - series_creation
            - series_deletion
            - series_settings_update
            - series_status_change
            - series_update
            - strip_inbound_email_links_change
            - temporary_expectation_change
            - team_assignment_limit_change
            - trusted_domains_setting_change
            - unassign_unsnoozed_at_capacity_setting_change
            - unassign_unsnoozed_when_away_setting_change
            - upfront_email_collection_change
            - allowed_attachment_filetypes_setting_change
            - attach_uploads_inline_setting_change
            - teammate_gifs_setting_change
            - user_camera_attachments_setting_change
            - user_conversation_attachments_setting_change
            - user_file_attachments_setting_change
            - user_gifs_setting_change
            - user_media_attachments_setting_change
            - user_voice_notes_setting_change
            - welcome_message_change
            - workspace_deletion_request
            - hide_csat_from_agents_setting_change
          example: app_name_change
        activity_description:
          type: string
          description: A sentence or two describing the activity.
          example: Admin updated the app's name to "My App".
    activity_log_list:
      title: Paginated Response
      type: object
      description: A paginated list of activity logs.
      properties:
        type:
          type: string
          description: String representing the object's type. Always has the value `activity_log.list`.
          example: activity_log.list
        pages:
          $ref: '#/components/schemas/cursor_pages'
        activity_logs:
          type: array
          description: An array of activity logs
          items:
            $ref: '#/components/schemas/activity_log'
    activity_log_metadata:
      title: Activity Log Metadata
      type: object
      description: Additional data provided about Admin activity.
      nullable: true
      properties:
        sign_in_method:
          type: string
          nullable: true
          description: The way the admin signed in.
          example: email_password
        external_id:
          type: string
          nullable: true
          description: The unique identifier for the contact which is provided by the Client.
          example: f3b87a2e09d514c6c2e79b9a
        away_mode:
          type: boolean
          nullable: true
          description: The away mode status which is set to true when away and false when returned.
          example: true
        away_status_reason:
          type: string
          nullable: true
          description: The reason the Admin is away.
          example: 😌 On a break
        reassign_conversations:
          type: boolean
          nullable: true
          description: Indicates if conversations should be reassigned while an Admin is away.
          example: false
        source:
          type: string
          nullable: true
          description: The action that initiated the status change.
          example: 'admin update from web - Admin id: 93'
        auto_changed:
          type: string
          nullable: true
          description: Indicates if the status was changed automatically or manually.
          example: false
        update_by:
          type: integer
          nullable: true
          description: The ID of the Admin who initiated the activity.
          example: 93
        update_by_name:
          type: string
          nullable: true
          description: The name of the Admin who initiated the activity.
          example: Joe Example
        previous_state:
          type: string
          nullable: true
          description: The state before the change. `idle` or `occupied` for an occupancy change, and null when the Admin had not been classified yet; `enabled` or `disabled` for an IP allowlist change.
          example: idle
        new_state:
          type: string
          nullable: true
          description: The state after the change. `idle` or `occupied` for an occupancy change; `enabled` or `disabled` for an IP allowlist change.
          example: occupied
        threshold_minutes:
          type: integer
          nullable: true
          description: The inactivity window, in minutes, used to classify the Admin.
          example: 15
        last_activity_at:
          type: integer
          format: date-time
          nullable: true
          description: The time of the Admin's last recorded activity.
          example: 1671028894
        auto:
          type: boolean
          nullable: true
          description: Indicates the state was derived automatically rather than set by an Admin.
          example: true
        setting_type:
          type: string
          nullable: true
          description: The group of workspace settings the change belongs to, for example `teammate_occupancy` or `automatic_away_mode`.
          example: teammate_occupancy
        changes:
          type: object
          nullable: true
          description: The settings altered by the change, keyed by setting name. Only settings whose value actually moved are included, so an unchanged setting is absent rather than present with equal values.
          additionalProperties:
            type: object
            properties:
              before:
                description: The value before the change.
              after:
                description: The value after the change.
          example:
            occupancy_window_minutes:
              before: 15
              after: 30
        conversation_assignment_limit:
          type: integer
          nullable: true
          description: The conversation assignment limit value for an admin.
          example: 15
        ticket_assignment_limit:
          type: integer
          nullable: true
          description: The ticket assignment limit value for an admin.
          example: 20
        team:
          type: object
          nullable: true
          description: Details about the team whose assignment limit was changed.
          properties:
            id:
              type: integer
              description: The ID of the team.
              example: 123
            name:
              type: string
              description: The name of the team.
              example: Support Team
        team_assignment_limit:
          type: integer
          nullable: true
          description: The team assignment limit value (null if limit was removed).
          example: 50
        enabled:
          type: boolean
          nullable: true
          description: Indicates if the setting is enabled or disabled.
          example: true
        mode:
          type: string
          nullable: true
          description: The mode of the setting (e.g., when_away_only, when_away_and_reassign).
          example: when_away_only
        consent_id:
          type: integer
          nullable: true
          description: The ID of the impersonation consent.
          example: 149673
        expired_at:
          type: string
          format: date-time
          nullable: true
          description: The timestamp when the impersonation consent expires.
          example: '2025-12-04T09:31:57.000Z'
        before:
          type: object
          nullable: true
          description: The state of settings or values before the change. Structure varies by activity type.
        after:
          type: object
          nullable: true
          description: The state of settings or values after the change. Structure varies by activity type.
    cursor_pages:
      title: Cursor based pages
      type: object
      description: |
        Cursor-based pagination is a technique used in the Intercom API to navigate through large amounts of data.
        A "cursor" or pointer is used to keep track of the current position in the result set, allowing the API to return the data in small chunks or "pages" as needed.
      nullable: true
      properties:
        type:
          type: string
          description: the type of object `pages`.
          example: pages
          enum:
            - pages
        page:
          type: integer
          description: The current page
          example: 1
        next:
          $ref: '#/components/schemas/starting_after_paging'
        per_page:
          type: integer
          description: Number of results per page
          example: 2
        total_pages:
          type: integer
          description: Total number of pages
          example: 13
    error:
      type: object
      title: Error
      description: The API will return an Error List for a failed request, which will contain one or more Error objects.
      properties:
        type:
          type: string
          description: The type is error.list
          example: error.list
        request_id:
          type: string
          nullable: true
          format: uuid
          description: ''
          example: f93ecfa8-d08a-4325-8694-89aeb89c8f85
        errors:
          type: array
          description: An array of one or more error objects
          items:
            properties:
              code:
                type: string
                description: A string indicating the kind of error, used to further qualify the HTTP response code
                example: unauthorized
              message:
                type: string
                nullable: true
                description: Optional. Human readable description of the error.
                example: Access Token Invalid
              field:
                type: string
                nullable: true
                description: Optional. Used to identify a particular field or query parameter that was in error.
                example: email
            required:
              - code
      required:
        - type
        - errors
    intercom_version:
      description: Intercom API version.</br>By default, it's equal to the version set in the app package.
      type: string
      example: '2.15'
      default: '2.15'
      enum:
        - '1.0'
        - '1.1'
        - '1.2'
        - '1.3'
        - '1.4'
        - '2.0'
        - '2.1'
        - '2.2'
        - '2.3'
        - '2.4'
        - '2.5'
        - '2.6'
        - '2.7'
        - '2.8'
        - '2.9'
        - '2.10'
        - '2.11'
        - '2.12'
        - '2.13'
        - '2.14'
        - '2.15'
    starting_after_paging:
      title: 'Pagination: Starting After'
      type: object
      nullable: true
      properties:
        per_page:
          type: integer
          description: The number of results to fetch per page.
          example: 2
        starting_after:
          type: string
          description: The cursor to use in the next request to get the next page of results.
          nullable: true
          example: your-cursor-from-response
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
```
