# Contact Activity

Schema: #/components/schemas/contact_activity

Method: SCHEMA
Version: 2.18
Security: bearerAuth

## Schema fields:

  - `type` (string)
    Always contact_activity
    Enum: "contact_activity"

  - `id` (string)
    The unique identifier for the activity event.
    Example: 1717000000000.0000a1

  - `event_type` (string)
    The type of activity event.
    Enum: "contact.created", "contact.role_updated", "contact.deleted", "contact.merged", "contact.merge_failed"

  - `contact_id` (string)
    The unique identifier for the contact the event relates to.
    Example: 6329bd9ffe4e2e91dc5d6a1e

  - `external_id` (string)
    The external identifier of the contact. Omitted when not set.
    Example: user-42

  - `role` (string)
    The role of the contact at the time of the event, either user, lead, or visitor. Omitted when not recorded.
    Example: user

  - `merge_source_id` (string)
    For merge events, the identifier of the contact that was merged away. Omitted on other events.
    Example: 5f7f0d217c3f2e001a4e8b12

  - `merge_target_id` (string)
    For merge events, the identifier of the contact that was merged into. Omitted on other events.
    Example: 6329bd9ffe4e2e91dc5d6a1e

  - `failure_reason` (string)
    For failed events, the reason the activity did not succeed. Omitted on other events.
    Example: duplicate_external_id

  - `created_at` (integer)
    The time the activity event occurred, as a Unix timestamp in seconds.
    Example: 1717000000

