> ## 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 recent administration activity

> The latest administration actions in your account, newest first: organisations added, people invited or removed, access changed, and API tokens issued, rotated, renamed, rescoped or revoked. Each event's `action` is one of a closed PascalCase set, published as an enum on the field.

Paginated: `pageSize` defaults to 10 and is at most 50, and `paginationToken` walks further back. Follow the token until it is absent rather than raising `pageSize`. Events are kept for 90 days.



## OpenAPI

````yaml /api-reference/specs/administration.json get /activity
openapi: 3.0.1
info:
  title: Administration API
  description: >-
    Manage your Flow Payroll account: the organisations it owns, the people who
    can sign in to it, the API tokens it holds, its brand, and a feed of recent
    administration activity. Every resource is scoped to the account your
    credentials belong to, so no request ever names a customer and the
    `X-Org-Id` header is not used.
  version: v1
servers:
  - url: https://api.sandbox.flowpayroll.ai/v1/administration
security:
  - X-Auth-Token: []
tags:
  - name: Customer
    description: >-
      Your account: the customer every other resource on this API belongs to.
      Read it and rename it.
  - name: Organisations
    description: >-
      The organisations your account owns: list them with headcounts and your
      access to each, get one in full, and add one or several at a time.
  - name: Users
    description: >-
      The people who can sign in to your account: list, invite (one or many),
      resend invitations, and manage each person's direct grants and
      account-wide access.
  - name: API tokens
    description: >-
      The client credentials your integrations authenticate with: create (the
      secret is shown once), rename, rotate, revoke, and manage which
      organisations each token reaches.
  - name: Activity
    description: Recent administration actions in your account, newest first.
paths:
  /activity:
    get:
      tags:
        - Activity
      summary: List recent administration activity
      description: >-
        The latest administration actions in your account, newest first:
        organisations added, people invited or removed, access changed, and API
        tokens issued, rotated, renamed, rescoped or revoked. Each event's
        `action` is one of a closed PascalCase set, published as an enum on the
        field.


        Paginated: `pageSize` defaults to 10 and is at most 50, and
        `paginationToken` walks further back. Follow the token until it is
        absent rather than raising `pageSize`. Events are kept for 90 days.
      operationId: GetActivity
      parameters:
        - name: pageSize
          in: query
          schema:
            type: string
        - name: paginationToken
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActivityListResponseResponseBody'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ObjectResponseBody'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ObjectResponseBody'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ObjectResponseBody'
components:
  schemas:
    ActivityListResponseResponseBody:
      type: object
      properties:
        message:
          $ref: '#/components/schemas/MessageWithTokenResponse'
        content:
          $ref: '#/components/schemas/ActivityListResponseContentResponse'
        validationIssues:
          type: array
          items:
            $ref: '#/components/schemas/ValidationIssue'
          nullable: true
      additionalProperties: false
    ObjectResponseBody:
      type: object
      properties:
        message:
          $ref: '#/components/schemas/MessageWithTokenResponse'
        content:
          $ref: '#/components/schemas/ObjectContentResponse'
        validationIssues:
          type: array
          items:
            $ref: '#/components/schemas/ValidationIssue'
          nullable: true
      additionalProperties: false
    MessageWithTokenResponse:
      type: object
      properties:
        text:
          type: string
        token:
          type: string
        tokenArguments:
          type: array
          items:
            $ref: '#/components/schemas/ValidationIssueArgument'
          nullable: true
      additionalProperties: false
    ActivityListResponseContentResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/ActivityListResponse'
        metadata:
          $ref: '#/components/schemas/ContentMetadataResponse'
      additionalProperties: false
    ValidationIssue:
      type: object
      properties:
        field:
          type: string
        reason:
          type: string
        reasonToken:
          type: string
        reasonTokenArguments:
          type: array
          items:
            $ref: '#/components/schemas/ValidationIssueArgument'
          nullable: true
      additionalProperties: false
    ObjectContentResponse:
      type: object
      properties:
        data:
          nullable: true
        metadata:
          $ref: '#/components/schemas/ContentMetadataResponse'
      additionalProperties: false
    ValidationIssueArgument:
      type: object
      properties:
        name:
          type: string
        value:
          nullable: true
      additionalProperties: false
    ActivityListResponse:
      type: object
      properties:
        events:
          type: array
          items:
            $ref: '#/components/schemas/ActivityEventResponse'
          description: The page.
        paginationToken:
          type: string
          description: >-
            Null on the last page. Follow it until it is absent. Also published
            at

            `content.metadata.paginationToken`, which is the location to prefer.
          nullable: true
      additionalProperties: false
      description: A page of events, newest first.
    ContentMetadataResponse:
      type: object
      properties:
        dateFormat:
          type: string
        dateTimeFormat:
          type: string
        paginationToken:
          type: string
          nullable: true
      additionalProperties: false
    ActivityEventResponse:
      type: object
      properties:
        activityId:
          type: string
          description: The event's identifier.
        action:
          enum:
            - CustomerRenamed
            - OwnershipTransferred
            - OrganisationAdded
            - OrganisationsAdded
            - UserInvited
            - UsersInvited
            - UserRevoked
            - UserAccessChanged
            - InvitationResent
            - TokenIssued
            - TokenRotated
            - TokenRenamed
            - TokenRescoped
            - TokenRevoked
            - BrandingDraftSaved
            - BrandingDraftDiscarded
            - BrandingPublished
            - BrandingUnpublished
            - CompanyLogoChanged
            - AccountOfRecordSet
            - AccountOfRecordCleared
            - PartnerDomainAdded
            - PartnerDomainActive
            - PartnerDomainFailed
            - PartnerDomainLapsed
            - PartnerDomainRemoved
            - SendingDomainAdded
            - SendingDomainVerified
            - SendingDomainFailed
            - SendingDomainRemoved
          type: string
          description: >-
            What happened, as one of a closed PascalCase vocabulary published as
            an enum on this field. Not to

            be confused with the snake_case reason tokens in `message.token`.
        actor:
          type: string
          description: >-
            Who did it: the email address of a person, or the client id of an
            API token.
        subject:
          type: string
          description: >-
            What was acted on, by its display name at the time. Null on bulk
            events.
          nullable: true
        subjectId:
          type: string
          description: The identifier of what was acted on. Null on bulk events.
          nullable: true
        subjectCount:
          type: integer
          description: How many things a bulk action touched. Null on single events.
          format: int32
          nullable: true
        occurredDate:
          type: string
          description: When it happened, in ISO 8601 UTC.
      additionalProperties: false
      description: 'One recent administration action: who did what to whom, and when.'
  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.