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

# Partner audit log (paginated)



## OpenAPI

````yaml /api-reference/openapi.json get /api/v2/admin/partners/{partner_id}/audit
openapi: 3.1.0
info:
  title: crewpass-api-v2
  description: >-
    CrewPass V2 Partner API — a scope-gated, consent-intersected, multi-tenant
    front door onto existing CrewPass crew/vessel/compliance data.
  version: 0.1.0
servers: []
security: []
paths:
  /api/v2/admin/partners/{partner_id}/audit:
    get:
      tags:
        - admin
      summary: Partner audit log (paginated)
      operationId: partner_audit_api_v2_admin_partners__partner_id__audit_get
      parameters:
        - name: partner_id
          in: path
          required: true
          schema:
            type: string
            title: Partner Id
        - name: endpoint
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Endpoint
        - name: status_code
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            title: Status Code
        - name: include_console
          in: query
          required: false
          schema:
            type: boolean
            description: Include Super Admin console preview/playground traffic.
            default: false
            title: Include Console
          description: Include Super Admin console preview/playground traffic.
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 500
            minimum: 1
            default: 50
            title: Limit
        - name: X-Internal-Auth
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Internal-Auth
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuditLogResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AuditLogResponse:
      properties:
        partner_id:
          type: string
          title: Partner Id
        items:
          items:
            $ref: '#/components/schemas/AuditLogItem'
          type: array
          title: Items
      type: object
      required:
        - partner_id
        - items
      title: AuditLogResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AuditLogItem:
      properties:
        ts:
          type: string
          format: date-time
          title: Ts
        endpoint:
          type: string
          title: Endpoint
        method:
          type: string
          title: Method
        scope_used:
          anyOf:
            - type: string
            - type: 'null'
          title: Scope Used
        crew_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Crew Id
        status_code:
          type: integer
          title: Status Code
        request_id:
          type: string
          title: Request Id
      type: object
      required:
        - ts
        - endpoint
        - method
        - status_code
        - request_id
      title: AuditLogItem
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````