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

# List events

> Events recorded for your organisation in the last 90 days, newest first; with `organisationId`, for another organisation on your account; with `scope=customer`, for every organisation on your account in one list. Both need account-wide access. Filter by up to 10 types or families (`eventType=payslip.*,payroll_run.completed`) and by date.



## OpenAPI

````yaml /api-reference/specs/webhooks.json get /events
openapi: 3.1.1
info:
  title: Webhooks Service
  description: >-
    Outbound webhooks for FlowPayroll: register an endpoint, subscribe to event
    types, manage signing secrets, inspect the delivery log and replay.
  version: v1
servers:
  - url: https://api.sandbox.flowpayroll.ai/v1/webhooks
security:
  - X-Auth-Token: []
tags:
  - name: Alert contacts
  - name: Delivery log
  - name: Endpoint subscriptions
  - name: Endpoints
  - name: Event types
  - name: Events
  - name: Replays
paths:
  /events:
    get:
      tags:
        - Events
      summary: List events
      description: >-
        Events recorded for your organisation in the last 90 days, newest first;
        with `organisationId`, for another organisation on your account; with
        `scope=customer`, for every organisation on your account in one list.
        Both need account-wide access. Filter by up to 10 types or families
        (`eventType=payslip.*,payroll_run.completed`) and by date.
      operationId: ListEvents
      parameters:
        - name: organisationId
          in: query
          schema:
            type: string
        - name: scope
          in: query
          description: >-
            Whose resources: your organisation's (the default), or with
            account-wide access the account's (`customer`).
          schema:
            enum:
              - organisation
              - customer
            type: string
            default: organisation
        - name: eventType
          in: query
          schema:
            type: array
            items:
              type: string
        - name: startDate
          in: query
          schema:
            type: string
        - name: endDate
          in: query
          schema:
            type: string
        - name: pageSize
          in: query
          description: >-
            Rows per page. Defaults to 20, maximum 100. Every page holds exactly
            this many results except the last, which may hold fewer.
          schema:
            type: string
        - name: paginationToken
          in: query
          description: >-
            Cursor for the next page, present only when more results follow and
            null on the last page. Pass it back unmodified to continue; it is
            opaque and short-lived, so do not store it.
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/WebhookEventRecordResponseListResponseBody
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ObjectResponseBody'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ObjectResponseBody'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ObjectResponseBody'
components:
  schemas:
    WebhookEventRecordResponseListResponseBody:
      type: object
      properties:
        message:
          $ref: '#/components/schemas/MessageWithTokenResponse'
        content:
          $ref: '#/components/schemas/WebhookEventRecordResponseListContentResponse'
        validationIssues:
          type:
            - 'null'
            - array
          items:
            $ref: '#/components/schemas/ValidationIssue'
      additionalProperties: false
    ObjectResponseBody:
      type: object
      properties:
        message:
          $ref: '#/components/schemas/MessageWithTokenResponse'
        content:
          $ref: '#/components/schemas/ObjectContentResponse'
        validationIssues:
          type:
            - 'null'
            - array
          items:
            $ref: '#/components/schemas/ValidationIssue'
      additionalProperties: false
    MessageWithTokenResponse:
      type: object
      properties:
        text:
          type: string
        token:
          type: string
        tokenArguments:
          type:
            - 'null'
            - array
          items:
            $ref: '#/components/schemas/ValidationIssueArgument'
      additionalProperties: false
    WebhookEventRecordResponseListContentResponse:
      type: object
      properties:
        data:
          type:
            - 'null'
            - array
          items:
            $ref: '#/components/schemas/WebhookEventRecordResponse'
        metadata:
          $ref: '#/components/schemas/ContentMetadataResponse'
      additionalProperties: false
    ValidationIssue:
      type: object
      properties:
        field:
          type: string
        reason:
          type: string
        reasonToken:
          type: string
        reasonTokenArguments:
          type:
            - 'null'
            - array
          items:
            $ref: '#/components/schemas/ValidationIssueArgument'
      additionalProperties: false
    ObjectContentResponse:
      type: object
      properties:
        data:
          type: 'null'
        metadata:
          $ref: '#/components/schemas/ContentMetadataResponse'
      additionalProperties: false
    ValidationIssueArgument:
      type: object
      properties:
        name:
          type: string
        value:
          type: 'null'
      additionalProperties: false
    WebhookEventRecordResponse:
      required:
        - envelope
        - eventId
        - eventType
        - organisationId
        - timestamp
      type: object
      properties:
        eventId:
          type: string
        eventType:
          type: string
        organisationId:
          type: string
        timestamp:
          type: string
        envelope: {}
      additionalProperties: false
    ContentMetadataResponse:
      type: object
      properties:
        dateFormat:
          type: string
        dateTimeFormat:
          type: string
        paginationToken:
          type:
            - 'null'
            - string
          description: >-
            Cursor for the next page, present only when more results follow and
            null on the last page. Pass it back unmodified to continue; it is
            opaque and short-lived, so do not store it.
      additionalProperties: false
  securitySchemes:
    X-Auth-Token:
      type: apiKey
      description: FlowPayroll JWT (raw token, no Bearer prefix)
      name: X-Auth-Token
      in: header

````

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