> ## 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 security audit events

> Requires `audit:read`. Returns the authenticated user's visible sign-in, session, security settings, and OAuth authorization events, newest first. Available on Free, Plus, and Pro.



## OpenAPI

````yaml /openapi/portfobit-openapi.yaml get /audit/security-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/security-events:
    get:
      tags:
        - Audit
      summary: List security audit events
      description: >-
        Requires `audit:read`. Returns the authenticated user's visible sign-in,
        session, security settings, and OAuth authorization events, newest
        first. Available on Free, Plus, and Pro.
      operationId: listSecurityAuditEvents
      parameters:
        - $ref: '#/components/parameters/CursorLimit'
        - $ref: '#/components/parameters/AuditCursor'
      responses:
        '200':
          $ref: '#/components/responses/SecurityAuditEventsResponse'
        '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:
    SecurityAuditEventsResponse:
      description: Security audit page.
      headers:
        Cache-Control:
          schema:
            type: string
            const: no-store
      content:
        application/json:
          schema:
            type: object
            required:
              - data
              - meta
            properties:
              data:
                type: array
                items:
                  $ref: '#/components/schemas/SecurityAuditEvent'
              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:
    SecurityAuditEvent:
      type: object
      additionalProperties: false
      required:
        - id
        - time
        - event_type
        - summary
        - actor
        - result
      properties:
        id:
          type: string
        time:
          type: string
          format: date-time
        event_type:
          type: string
          description: Stable event code. Clients should accept newly added event codes.
        summary:
          type: string
        actor:
          type: object
          additionalProperties: false
          required:
            - type
          properties:
            type:
              type: string
        result:
          type: string
    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'
    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.