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

# List execution step logs for a campaign (paginated)



## OpenAPI

````yaml /openapi.json get /campaigns/{id}/execution_step_logs
openapi: 3.0.3
info:
  title: Pocketflows API
  version: 0.0.4
servers:
  - url: https://api.pocketflows.com
    description: Production server
security:
  - HttpBasicAuth: []
paths:
  /campaigns/{id}/execution_step_logs:
    get:
      tags:
        - Execution step logs
      summary: List execution step logs for a campaign (paginated)
      parameters:
        - in: path
          name: id
          schema:
            type: string
          description: The ID of the campaign
          required: true
        - in: query
          name: after
          schema:
            type: string
          description: >-
            Cursor returned from a previous page's `page_info.end_cursor`.
            Returns the results older than the row it points to, which is
            excluded. Cannot be combined with `before`.
          required: false
        - in: query
          name: before
          schema:
            type: string
          description: >-
            Cursor returned from a previous page's `page_info.start_cursor`.
            Returns the results newer than the row it points to, which is
            excluded, starting with the ones closest to it. Cannot be combined
            with `after`.
          required: false
      responses:
        '200':
          description: >-
            A paginated list of the step logs across all of the campaign's
            executions
          content:
            application/json:
              schema:
                type: object
                properties:
                  page_info:
                    type: object
                    properties:
                      has_next_page:
                        type: boolean
                        description: >-
                          Whether there are older results after this page.
                          Always `false` when paging with `before`.
                      end_cursor:
                        type: string
                        nullable: true
                        description: >-
                          Cursor of the oldest result on this page. Pass it as
                          `after` to fetch the next older page. Null when the
                          page is empty.
                      has_previous_page:
                        type: boolean
                        description: >-
                          Whether there are newer results before this page. Only
                          computed when paging with `before`; otherwise `false`.
                      start_cursor:
                        type: string
                        nullable: true
                        description: >-
                          Cursor of the newest result on this page. Store it and
                          pass it as `before` later to fetch only results
                          created since. Null when the page is empty.
                    required:
                      - has_next_page
                      - end_cursor
                      - has_previous_page
                      - start_cursor
                    description: Pagination metadata
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ExecutionStepLog'
                    description: The execution step logs on this page, newest first
                required:
                  - page_info
                  - data
components:
  schemas:
    ExecutionStepLog:
      type: object
      properties:
        id:
          type: string
          description: The ID of the execution step log
        execution:
          type: string
          nullable: true
          description: >-
            The ID of the campaign execution the step ran in, or `null` for a
            trigger execution
        trigger_execution:
          type: string
          nullable: true
          description: >-
            The ID of the trigger execution the step ran in, or `null` for a
            campaign execution
        step:
          type: string
          description: The ID of the campaign step
        outcome:
          type: string
          description: >-
            What the step did: `sent`, `skipped` (nothing was sent; see
            `reason`), `failed`, `waited` (a wait step completed), `rescheduled`
            (the step was postponed and will run again), or `evaluated_true` /
            `evaluated_false` (the branch a condition step took)
        reason:
          type: string
          nullable: true
          description: >-
            Why the step had this outcome, for example `email_address_blank` on
            a skipped step, or `null` when there is nothing to add
        sent_email:
          type: string
          nullable: true
          description: The ID of the sent email, if applicable
        sent_sms_message:
          type: string
          nullable: true
          description: The ID of the sent SMS message, if applicable
        sent_custom_step:
          type: string
          nullable: true
          description: The ID of the sent custom step, if applicable
        created_at:
          type: string
          description: The time the step was logged in ISO 8601 format
      required:
        - id
        - execution
        - trigger_execution
        - step
        - outcome
        - reason
        - sent_email
        - sent_sms_message
        - sent_custom_step
        - created_at
      title: The Execution Step Log object
  securitySchemes:
    HttpBasicAuth:
      type: http
      scheme: basic

````

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