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

# enterprise.compliance.export.detail

> Retrieves the status and metadata of an export task. Poll this endpoint after [enterprise.compliance.export.create](/enterprise/v2/enterprise.compliance.export.create) until `record.status` is `COMPLIANCE_EXPORT_STATUS_COMPLETED` (or `COMPLIANCE_EXPORT_STATUS_FAILED`).

<sup>Questions or issues? Contact us at [api-support@manus.ai](mailto:api-support@manus.ai).</sup>

<Tip>
  **Auth:** Requires a **SIEM** enterprise API key (`X-API-Key`).

  **Polling:** Call this every few seconds after [enterprise.compliance.export.create](/enterprise/v2/enterprise.compliance.export.create) until `record.status` is `COMPLIANCE_EXPORT_STATUS_COMPLETED` or `COMPLIANCE_EXPORT_STATUS_FAILED`.

  **Completed:** `record.event_count` and `record.file_size` report the archive contents. Fetch the archive with [enterprise.compliance.export.downloadUrl](/enterprise/v2/enterprise.compliance.export.downloadUrl).

  **Failures:** When status is `COMPLIANCE_EXPORT_STATUS_FAILED`, `record.error_message` describes the cause.

  **Protocols:** Also callable via Connect RPC. See [Protocols](/enterprise/v2/protocols).
</Tip>


## OpenAPI

````yaml GET /v2/enterprise.compliance.export.detail
openapi: 3.1.0
info:
  title: Manus Enterprise SIEM Integrations OpenAPI v2
  description: >-
    API for enterprise administrators to export audit events (agent chat, tool
    calls, and results) for compliance and SIEM workflows. Exports run
    asynchronously and produce a ZIP archive of newline-delimited JSON (NDJSON).
    All responses are wrapped with `{"ok": true, "request_id": "...", ...}` for
    success and `{"ok": false, "request_id": "...", "error": {"code": "...",
    "message": "..."}}` for errors. Every operation is callable via REST (paths
    below) or via Connect RPC at
    `/observability.v2.EnterpriseComplianceV2Service/<Method>`.
  version: 2.0.0
servers:
  - url: https://api.manus.im
security:
  - ApiKeyAuth: []
paths:
  /v2/enterprise.compliance.export.detail:
    get:
      summary: GetExport
      description: >-
        Retrieves the status and metadata of an export task. Poll this endpoint
        after
        [enterprise.compliance.export.create](/enterprise/v2/enterprise.compliance.export.create)
        until `record.status` is `COMPLIANCE_EXPORT_STATUS_COMPLETED` (or
        `COMPLIANCE_EXPORT_STATUS_FAILED`).
      operationId: observability.v2.EnterpriseComplianceV2Service.GetExport
      parameters:
        - name: uid
          in: query
          required: true
          schema:
            type: string
            example: 5YX76pz7Dga3yztNVw97Dh
          description: >-
            Export task UID returned by
            [enterprise.compliance.export.create](/enterprise/v2/enterprise.compliance.export.create).
      responses:
        '200':
          description: Export task retrieved successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    example: true
                    description: Whether the request was successful.
                  request_id:
                    type: string
                    description: Unique identifier for this API request.
                  record:
                    $ref: '#/components/schemas/ComplianceExportRecord'
                    description: >-
                      Export task record with current status, event count, and
                      file size.
        4XX:
          description: Error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ComplianceExportRecord:
      type: object
      description: An export task record.
      properties:
        uid:
          type: string
          description: Export task UID.
        status:
          $ref: '#/components/schemas/ComplianceExportStatus'
          description: Current export status.
        created_at:
          type: string
          format: date-time
          description: Task creation time (RFC3339).
        completed_at:
          type: string
          format: date-time
          description: >-
            When the export finished. Only present when `status` is
            `COMPLIANCE_EXPORT_STATUS_COMPLETED`.
        event_count:
          type: integer
          format: int64
          description: >-
            Number of events written to the archive. Only present when `status`
            is `COMPLIANCE_EXPORT_STATUS_COMPLETED`. Serialized as a JSON string
            per proto3 int64 conventions.
        file_size:
          type: integer
          format: int64
          description: >-
            Archive size in bytes. Only present when `status` is
            `COMPLIANCE_EXPORT_STATUS_COMPLETED`. Serialized as a JSON string
            per proto3 int64 conventions.
        error_message:
          type: string
          description: >-
            Failure reason. Only present when `status` is
            `COMPLIANCE_EXPORT_STATUS_FAILED`.
    ErrorResponse:
      type: object
      description: Standard error response format returned when a request fails.
      properties:
        ok:
          type: boolean
          example: false
          description: Always false for error responses.
        request_id:
          type: string
          description: >-
            Unique identifier for this API request, useful for debugging with
            support.
        error:
          type: object
          description: Error details.
          properties:
            code:
              type: string
              description: >-
                Machine-readable error code: `invalid_argument`,
                `unauthenticated`, `not_found`, `failed_precondition` (an export
                is already in progress, or the export is not yet complete), or
                `internal`.
            message:
              type: string
              description: Human-readable error description explaining what went wrong.
    ComplianceExportStatus:
      type: string
      description: >-
        Lifecycle status of an export task. Flow: `PENDING` → `PROCESSING` →
        `COMPLETED` (or `FAILED`).
      enum:
        - COMPLIANCE_EXPORT_STATUS_UNSPECIFIED
        - COMPLIANCE_EXPORT_STATUS_PENDING
        - COMPLIANCE_EXPORT_STATUS_PROCESSING
        - COMPLIANCE_EXPORT_STATUS_COMPLETED
        - COMPLIANCE_EXPORT_STATUS_FAILED
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````