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

# List protected action audit events

> Requires `audit:read`. Returns the authenticated user's single protected actions and complete batches, newest first. Each single action or entire batch counts as one page item. Available on Free, Plus, and Pro.



## OpenAPI

````yaml /openapi/portfobit-openapi.yaml get /audit/protected-action-events
openapi: 3.1.0
info:
  title: Portfobit Open API
  version: 0.1.0
  description: >
    Public REST API for direct API clients, CI, scripts, service accounts,
    third-party agents, and developer integrations.

    Examples use "<source>" as a placeholder for the opaque source identifier.
    The source_venue field identifies the exchange.

    Public REST requests use scoped Portfobit Open API keys. OAuth access tokens
    issued for the Portfobit MCP resource are not accepted by `/api/v1/*`
    endpoints.

    Portfobit is crypto-CEX-only. Financial values are decimal strings and
    timestamps are RFC 3339 UTC strings.

    The API never supports withdrawals, external-address transfers,
    cross-exchange transfers, or P2P transfers.
servers:
  - url: https://api.portfobit.com/api/v1
security:
  - bearerAuth: []
tags:
  - name: Context
  - name: Accounts
  - name: Portfolios
  - name: Valuation
  - name: Activity
  - name: Trading
  - name: Audit
  - name: Market data
  - name: Support
paths:
  /audit/protected-action-events:
    get:
      tags:
        - Audit
      summary: List protected action audit events
      description: >-
        Requires `audit:read`. Returns the authenticated user's single protected
        actions and complete batches, newest first. Each single action or entire
        batch counts as one page item. Available on Free, Plus, and Pro.
      operationId: listProtectedActionAuditEvents
      parameters:
        - $ref: '#/components/parameters/CursorLimit'
        - $ref: '#/components/parameters/AuditCursor'
      responses:
        '200':
          $ref: '#/components/responses/ProtectedActionAuditEventsResponse'
        '400':
          $ref: '#/components/responses/AuditQueryInvalidResponse'
        '401':
          $ref: '#/components/responses/ErrorResponse'
        '403':
          $ref: '#/components/responses/AuditScopeRequiredResponse'
        default:
          $ref: '#/components/responses/ErrorResponse'
components:
  parameters:
    CursorLimit:
      name: limit
      in: query
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 50
    AuditCursor:
      name: cursor
      in: query
      schema:
        type: string
        minLength: 1
      description: >-
        Use `meta.next_cursor` from a prior page with the same user, endpoint,
        and limit. Omit for a new browsing window.
  responses:
    ProtectedActionAuditEventsResponse:
      description: >-
        Protected action audit page containing single actions and complete
        batches.
      headers:
        Cache-Control:
          schema:
            type: string
            const: no-store
      content:
        application/json:
          schema:
            type: object
            required:
              - data
              - meta
            properties:
              data:
                type: array
                items:
                  oneOf:
                    - $ref: '#/components/schemas/ProtectedAuditSingle'
                    - $ref: '#/components/schemas/ProtectedAuditBatch'
              meta:
                $ref: '#/components/schemas/AuditPageMeta'
    AuditQueryInvalidResponse:
      description: Invalid audit limit or cursor (`invalid_request`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    ErrorResponse:
      description: Error response
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    AuditScopeRequiredResponse:
      description: The key lacks audit:read (`insufficient_scope`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
  schemas:
    ProtectedAuditSingle:
      allOf:
        - $ref: '#/components/schemas/ProtectedAuditEntry'
        - $ref: '#/components/schemas/ProtectedAuditAction'
        - type: object
          required:
            - kind
          properties:
            kind:
              type: string
              const: single
    ProtectedAuditBatch:
      allOf:
        - $ref: '#/components/schemas/ProtectedAuditEntry'
        - type: object
          required:
            - kind
            - batch_size
            - result_counts
            - items
          properties:
            kind:
              type: string
              const: batch
            batch_size:
              type: integer
              minimum: 1
              maximum: 5
            result_counts:
              type: object
              description: >-
                Counts by action status. Counts are positive and their sum
                equals batch_size.
              additionalProperties:
                type: integer
                minimum: 1
            items:
              type: array
              minItems: 1
              maxItems: 5
              description: All actions in the batch in original request order.
              items:
                allOf:
                  - $ref: '#/components/schemas/ProtectedAuditAction'
                  - type: object
                    required:
                      - id
                      - position
                    properties:
                      id:
                        type: string
                      position:
                        type: integer
                        minimum: 1
                        maximum: 5
    AuditPageMeta:
      allOf:
        - $ref: '#/components/schemas/Meta'
        - type: object
          required:
            - limit
            - next_cursor
            - has_next
          properties:
            limit:
              type: integer
              minimum: 1
              maximum: 100
            next_cursor:
              type:
                - string
                - 'null'
            has_next:
              type: boolean
    ErrorEnvelope:
      type: object
      required:
        - error
        - meta
      properties:
        error:
          $ref: '#/components/schemas/Error'
        meta:
          $ref: '#/components/schemas/Meta'
    ProtectedAuditEntry:
      type: object
      required:
        - id
        - time
        - actor
      properties:
        id:
          type: string
          description: Action audit ID for a single action or batch audit ID for a batch.
        time:
          type: string
          format: date-time
        actor:
          type: object
          additionalProperties: false
          required:
            - type
          properties:
            type:
              type: string
              enum:
                - open_api_key
                - mcp_oauth
    ProtectedAuditAction:
      type: object
      required:
        - action_type
        - status
        - account
        - summary
        - provider_reference_id
        - failure_code
        - failure_message
        - stop_reason
      properties:
        action_type:
          type: string
          enum:
            - order_create
            - order_cancel
            - order_cancel_all
            - order_amend
            - internal_transfer
        status:
          type: string
          enum:
            - pending
            - running
            - succeeded
            - failed
            - rejected
            - unknown
            - not_executed
        account:
          type:
            - object
            - 'null'
          additionalProperties: false
          required:
            - id
            - name
            - venue
          properties:
            id:
              type: string
            name:
              type: string
            venue:
              type: string
        summary:
          type:
            - object
            - 'null'
          additionalProperties: false
          properties:
            symbol:
              type: string
            asset:
              type: string
            side:
              type: string
            type:
              type: string
            amount:
              type: string
              description: Decimal string.
            price:
              type: string
              description: Decimal string.
            from_account_type:
              type: string
            to_account_type:
              type: string
            venue_order_id:
              type: string
            scope:
              type: string
            reduce_only:
              type: boolean
        provider_reference_id:
          type:
            - string
            - 'null'
        failure_code:
          type:
            - string
            - 'null'
        failure_message:
          type:
            - string
            - 'null'
        stop_reason:
          type:
            - string
            - 'null'
    Meta:
      type: object
      required:
        - request_id
        - generated_at
      properties:
        request_id:
          type: string
        generated_at:
          type: string
          format: date-time
    Error:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
        message:
          type: string
        details:
          type: object
          additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Portfobit Open API key

````

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