# Activity Log Metadata

> This is a subset of the full specification, limited to the `activity_log_metadata` schema.
>
> 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 `activity_log_metadata` schema.
  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: []
paths: {}
components:
  schemas:
    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.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
```
