> ## Documentation Index
> Fetch the complete documentation index at: https://docs.inflection.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a contact's activity log

> Paged, combined activity log. `eventTypes` filters to internal types
(`Contact Event`, `User Event`); other values are ignored.
`activityProperties` is free-form. Returns an empty list for an unknown
contact.




## OpenAPI

````yaml /api-reference/openapi.yaml get /v2/contacts/{id}/activity-log
openapi: 3.1.0
info:
  title: Inflection Developer API
  version: 1.1.0
  description: >
    The Inflection Developer API (`/v2`). Authenticate with a Personal Access

    Token (`Authorization: Bearer inf_pat_...`).


    **`/v2` is `/v1` plus more.** Every `/v1` endpoint is served here unchanged,

    so a client can pin to one version and reach the whole API. On top of those

    sit reads `/v1` never had: journeys, journey and email stats with a journey

    rollup, and the email and list collections. `/v1` remains published.


    **Response envelope.** Every response is wrapped:

    `{ "data": …, "pagination": …, "errors": [...], "meta": { "status":
    "SUCCESS|FAILURE", "timestamp": "…" } }`.

    `data` carries the payload, `pagination` appears only on paged lists, and on

    failures `errors` is populated with `meta.status: "FAILURE"`.

    Product Activity ingestion uses a specialized envelope containing only
    `errors`

    and `meta`, with a correlation id in `meta` for support and downstream
    tracing.


    **Query parameters are camelCase**: `pageNumber`, `pageSize`, `startTime`,

    `folderId`. The journeys, emails, lists and stats reads additionally accept

    the snake_case spelling of every scalar parameter (`page_number`,

    `folder_id`, …); the contact, activity and list-member endpoints do not.

    Repeatable parameters also accept a `[]` suffix (`status[]`, `tag[]`).


    **Asynchronous contact writes.** `POST/PATCH /v2/contacts*` are processed

    asynchronously: they return **200** with a `PENDING` transaction

    acknowledgement (not the created/updated contact). Poll

    `GET /v2/contacts/transactions/{transactionId}` for the per-contact result.


    **Status-code quirks** (documented per-operation): a missing **contact** is

    reported as **400** (not 404), whereas a missing **list**, **email** or

    **journey** is **404**. For journeys and emails that also covers a

    soft-deleted record and a malformed id. Nothing returns 201 or 204.


    **Empty results are not errors.** On the paged reads, a `tag`, `folderId` or

    `search` that matches nothing returns an empty page, not a 404.


    **Errors.** Failures use the envelope above

    (`errors[].{errorCode,message,detail}`). Authentication and authorization

    failures (401/403) are returned with an empty body. The journey stats rollup

    adds `RESULT_SET_TOO_LARGE` (a **400**) when a filter matches more journeys

    than one request may cover; narrow it rather than paging further.


    **Rate limiting.** Requests are metered per tenant. Exceeding the budget

    yields **429** (empty body) on any endpoint; the `Retry-After` header gives

    the seconds to wait and `X-RateLimit-Limit` the sustained per-second budget.

    Product Activity has its own per-tenant budget in fixed-cost units rather
    than

    requests: 3,000 units per second with a burst of 15,000. A single-event
    request

    costs 1 unit and a batch request costs 2,000 units.
servers:
  - url: https://api.inflection.io
    description: Production
security:
  - PatAuth: []
tags:
  - name: Contacts
    description: Create, read, and update contacts. Writes are asynchronous.
  - name: Contact Activity
    description: >-
      Product, marketing, and combined activity for a contact, plus Salesforce
      data.
  - name: Journeys
    description: Read journeys (campaigns), their schedule and their derived status.
  - name: Stats
    description: >-
      Send and engagement metrics for journeys and emails, with a journey
      rollup.
  - name: Lists
    description: Static and dynamic lists, and static-list members.
  - name: Emails
    description: Email listing and creation.
  - name: Product Users
    description: |
      Read product users -- the logins underneath a contact -- by id or email,
      and list them for a contact or an organization.
  - name: Organizations
    description: Read organizations (company accounts) and a contact's memberships.
  - name: Email Versions
    description: Per-contact versions of a Personalized Email Asset, served under `/v1`.
  - name: Product Activity
    description: >
      Submit product events: actions your product users take in your product.


      **Accepted is not stored.** A `202` means an event passed validation and
      is

      durably queued. Each event name starts disabled: its events are archived
      but

      not stored or used by triggers until the name is enabled in Product Data

      Explorer, where it appears after its first event. Enabling takes effect
      within

      minutes and back-fills that event's recent history from the archive

      asynchronously; back-filled events do not fire triggers.


      **Identity.** `userId` is the product user id used by `POST /v2/users`,
      and

      `orgId` the organization id. Events never create or update product users
      or

      organizations; events for an id not created yet are kept and link up once
      it

      exists.


      **Deduplication and retries.** `eventId` identifies an event within your

      tenant. A repeat within the deduplication window is rejected with

      `DUPLICATE_EVENT`; later repeats are processed again. Always retry with
      the

      same `eventId`: resend events rejected with `DEPENDENCY_UNAVAILABLE`, or
      the

      whole request after a `500`; on a retry, `DUPLICATE_EVENT` normally means
      the

      event was already accepted. Valid events in one batch that share an
      `eventId` are all

      rejected.


      **Rate limit.** 3,000 units per second per tenant, with a burst of 15,000.
      A

      single-event request costs 1 unit and a batch request 2,000 units.
      Requests

      rejected after authentication also use the budget. On `429`,

      `X-RateLimit-Limit` is in units.
paths:
  /v2/contacts/{id}/activity-log:
    get:
      tags:
        - Contact Activity
      summary: Get a contact's activity log
      description: |
        Paged, combined activity log. `eventTypes` filters to internal types
        (`Contact Event`, `User Event`); other values are ignored.
        `activityProperties` is free-form. Returns an empty list for an unknown
        contact.
      operationId: getContactActivityLog
      parameters:
        - $ref: '#/components/parameters/ContactId'
        - $ref: '#/components/parameters/PageNumber'
        - $ref: '#/components/parameters/PageSize'
        - $ref: '#/components/parameters/StartTime'
        - $ref: '#/components/parameters/EndTime'
        - name: eventTypes
          in: query
          required: false
          description: Repeatable. Only `Contact Event` and `User Event` are honored.
          schema:
            type: array
            items:
              type: string
              enum:
                - Contact Event
                - User Event
      responses:
        '200':
          description: Paged activity-log records.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActivityLogResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/TooManyRequests'
components:
  parameters:
    ContactId:
      name: id
      in: path
      required: true
      description: Contact id.
      schema:
        type: string
    PageNumber:
      name: pageNumber
      in: query
      required: false
      description: 1-based page number.
      schema:
        type: integer
        minimum: 1
        maximum: 2147483647
        default: 1
    PageSize:
      name: pageSize
      in: query
      required: false
      description: Items per page.
      schema:
        type: integer
        minimum: 1
        maximum: 200
        default: 20
    StartTime:
      name: startTime
      in: query
      required: false
      description: ISO-8601 lower bound (inclusive) for the activity window.
      schema:
        type: string
        format: date-time
    EndTime:
      name: endTime
      in: query
      required: false
      description: ISO-8601 upper bound (inclusive) for the activity window.
      schema:
        type: string
        format: date-time
  schemas:
    ActivityLogResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/ActivityLogEntry'
        pagination:
          $ref: '#/components/schemas/Pagination'
        meta:
          $ref: '#/components/schemas/Meta'
    ActivityLogEntry:
      type: object
      properties:
        activityName:
          type: string
        activityType:
          type: string
          enum:
            - Marketing Activity
            - Product Activity
            - Contact Event
            - User Event
        productUserId:
          type: string
        orgId:
          type: string
        timestamp:
          type: string
        createdTime:
          type: string
        logTime:
          type: string
        activityProperties:
          type: object
          additionalProperties: true
          description: Free-form; shape depends on `activityType`.
    Pagination:
      type: object
      description: Present only on paged list responses.
      properties:
        pageNumber:
          type: integer
        pageSize:
          type: integer
        totalElements:
          type: integer
        totalPages:
          type: integer
    Meta:
      type: object
      description: Envelope metadata present on every response.
      properties:
        status:
          type: string
          enum:
            - SUCCESS
            - FAILURE
        timestamp:
          type: string
          format: date-time
      required:
        - status
    ErrorEnvelope:
      type: object
      description: Standard failure envelope.
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/ErrorItem'
        meta:
          $ref: '#/components/schemas/Meta'
    ErrorItem:
      type: object
      properties:
        errorCode:
          type: string
          examples:
            - NOT_FOUND
        message:
          type: string
        detail:
          type: string
      required:
        - errorCode
        - message
  responses:
    BadRequest:
      description: Malformed request or validation error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    Unauthorized:
      description: Missing or invalid Personal Access Token. Empty body.
    Forbidden:
      description: >-
        The PAT lacks the required scope (READ for reads, WRITE for writes).
        Empty body.
    TooManyRequests:
      description: |
        Per-tenant rate limit exceeded. Empty body. Retry after the number of
        seconds given in the `Retry-After` header.
      headers:
        Retry-After:
          description: Seconds to wait before retrying.
          schema:
            type: integer
        X-RateLimit-Limit:
          description: Sustained request budget, in requests per second, per tenant.
          schema:
            type: integer
  securitySchemes:
    PatAuth:
      type: http
      scheme: bearer
      bearerFormat: inf_pat
      description: |
        Personal Access Token or OAuth 2.1 access token, sent as a bearer
        credential (`Authorization: Bearer inf_pat_...`). Read operations
        require a token with the `READ` scope; write operations
        (POST/PATCH/DELETE) require `WRITE`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.