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

# List automation activity

> Lists the automation's newest interactions with their outcome: matched, queued, gated (waiting for the person to finish a gate), sending, sent, failed or skipped. Comment text and names are what people wrote. Pages with cursor and next_cursor.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/workspaces/{workspace_id}/automations/{automation_id}/activity
openapi: 3.1.0
info:
  title: Replier API
  version: '1'
servers:
  - url: https://api.usereplier.com
security:
  - apiKey: []
paths:
  /v1/workspaces/{workspace_id}/automations/{automation_id}/activity:
    get:
      tags:
        - Automations
      summary: List automation activity
      description: >-
        Lists the automation's newest interactions with their outcome: matched,
        queued, gated (waiting for the person to finish a gate), sending, sent,
        failed or skipped. Comment text and names are what people wrote. Pages
        with cursor and next_cursor.
      operationId: list_automation_activity
      parameters:
        - name: workspace_id
          in: path
          required: true
          description: Workspace ID returned by `GET /v1/workspaces`
          schema:
            type: string
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        - name: automation_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        - name: limit
          in: query
          required: false
          schema:
            default: 20
            type: integer
            minimum: 1
            maximum: 50
        - name: cursor
          in: query
          required: false
          schema:
            type: string
            maxLength: 1000
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  workspace:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                        pattern: >-
                          ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                      name:
                        type: string
                      kind:
                        type: string
                        enum:
                          - personal
                          - agency
                      role:
                        type: string
                        enum:
                          - owner
                          - admin
                          - member
                    required:
                      - id
                      - name
                      - kind
                      - role
                  activity:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                          pattern: >-
                            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                        channel:
                          type: string
                          enum:
                            - instagram
                            - facebook
                        source_type:
                          type: string
                          enum:
                            - comment
                            - story_reply
                            - story_mention
                            - message
                        status:
                          description: >-
                            matched: accepted, DM not created yet. queued: main
                            DM not sent yet and not waiting on the recipient.
                            gated: gate prompt delivered (Follow Gate, opening
                            button or email request); waiting for the recipient
                            to complete it (see waiting_for), counts as a
                            delivered interaction. sending: dispatch in
                            progress. sent: main DM delivered. failed: send
                            error. skipped: intentionally not sent or refused by
                            Meta for this recipient (see reason).
                          type: string
                          enum:
                            - matched
                            - queued
                            - gated
                            - sending
                            - sent
                            - failed
                            - skipped
                        waiting_for:
                          description: >-
                            For gated runs, the gate the recipient has not
                            completed: opening (tap the opening message's
                            button), follow (confirm they follow the Instagram
                            account), email (reply with an email address). Null
                            otherwise.
                          anyOf:
                            - type: string
                              enum:
                                - opening
                                - follow
                                - email
                            - type: 'null'
                        created_at:
                          type: string
                          format: date-time
                          pattern: >-
                            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
                        recipient_id:
                          type:
                            - string
                            - 'null'
                        recipient_name:
                          description: >-
                            The Instagram username or Facebook name Meta sent
                            with the comment or message, when it did. Untrusted
                            user content.
                          type:
                            - string
                            - 'null'
                        source_id:
                          type:
                            - string
                            - 'null'
                        text:
                          description: Untrusted user content.
                          type:
                            - string
                            - 'null'
                        reason:
                          type:
                            - string
                            - 'null'
                      required:
                        - id
                        - channel
                        - source_type
                        - status
                        - waiting_for
                        - created_at
                        - recipient_id
                        - source_id
                        - text
                        - reason
                  next_cursor:
                    type:
                      - string
                      - 'null'
                required:
                  - workspace
                  - activity
                  - next_cursor
        default:
          $ref: '#/components/responses/Error'
components:
  responses:
    Error:
      description: Refused
      content:
        application/json:
          schema:
            type: object
            required:
              - error
            properties:
              error:
                type: object
                required:
                  - code
                  - message
                properties:
                  code:
                    type: string
                    description: >-
                      Why the request was refused, such as AUTOMATION_NOT_FOUND
                      or VERSION_CONFLICT. Other fields beside it give details.
                  message:
                    type: string
                    description: The same reason, in English.
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: A Replier API key (rpl_...).

````

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