> ## 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 project events



## OpenAPI

````yaml /openapi.json get /project_events
openapi: 3.0.3
info:
  title: Pocketflows API
  version: 0.0.4
servers:
  - url: https://api.pocketflows.com
    description: Production server
security:
  - HttpBasicAuth: []
paths:
  /project_events:
    get:
      tags:
        - Project events
      summary: List project events
      parameters:
        - in: query
          name: after
          schema:
            type: string
          description: >-
            Cursor returned from a previous page's `page_info.end_cursor`.
            Returns the events older than the one 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 events newer than the one it points to, which is
            excluded, starting with the ones closest to it. Use it to fetch only
            the events created since your last request. An empty page means
            there are none yet; keep your cursor and try again later. Cannot be
            combined with `after`.
          required: false
      responses:
        '200':
          description: >-
            A paginated list of the project's events from the last 30 days,
            including any that a webhook failed to deliver
          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/ProjectEvent'
                    description: The project events on this page, newest first
                required:
                  - page_info
                  - data
components:
  schemas:
    ProjectEvent:
      type: object
      properties:
        id:
          type: string
          description: The ID of the project event (prefixed `pe_`)
        type:
          type: string
          enum:
            - customer.unsubscribe
            - business.external_integrations.updated
            - campaign.created
            - campaign.updated
            - campaign.deleted
            - trigger.created
            - trigger.updated
            - trigger.deleted
            - trigger_execution.created
            - segment.created
            - segment.updated
            - segment.deleted
            - sent_sms_message.queued
            - sent_sms_message.sent
            - sent_sms_message.delivered
            - sent_sms_message.failed
            - sent_sms_message.clicked
            - inbound_message.received
            - phone_number_provisioning.created
            - phone_number_provisioning.updated
          description: The type of the event
        data:
          type: object
          additionalProperties: true
          description: >-
            The object the event is about, in the shape documented for its event
            type
      required:
        - id
        - type
        - data
      title: The Project Event object
  securitySchemes:
    HttpBasicAuth:
      type: http
      scheme: basic

````

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