> ## 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.export.detail

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

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

<Tip>
  **Polling:** Call this every few seconds after [enterprise.export.create](/enterprise/v2/enterprise.export.create) until `record.status` is `EXPORT_STATUS_COMPLETED` or `EXPORT_STATUS_FAILED`.

  **Failures:** When status is `EXPORT_STATUS_FAILED`, `record.error_message` describes the cause. `EXPORT_STATUS_CANCELLED` indicates the export was cancelled before completion.

  **Completed records carry the URL:** When `record.status` is `EXPORT_STATUS_COMPLETED`, `record.file_url` already contains a pre-signed download URL with `record.url_expires_at`. Call [enterprise.export.downloadUrl](/enterprise/v2/enterprise.export.downloadUrl) only when that URL has expired.

  **File retention:** Completed exports are retained for 30 days; after that the underlying file is purged and `enterprise.export.downloadUrl` will fail.

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


## OpenAPI

````yaml GET /v2/enterprise.export.detail
openapi: 3.1.0
info:
  title: Manus Enterprise Data Export OpenAPI v2
  description: >-
    API for enterprise administrators to export user data for compliance
    purposes (legal hold, internal audits). 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 `/dataexport.v2.EnterpriseDataExportV2Service/<Method>`.
  version: 2.0.0
servers:
  - url: https://api.manus.im
security:
  - ApiKeyAuth: []
paths:
  /v2/enterprise.export.detail:
    get:
      summary: GetExport
      description: >-
        Retrieves the status and metadata of an export task. Poll this endpoint
        after
        [enterprise.export.create](/enterprise/v2/enterprise.export.create)
        until `record.status` is `EXPORT_STATUS_COMPLETED`.
      operationId: dataexport.v2.EnterpriseDataExportV2Service.GetExport
      parameters:
        - name: uid
          in: query
          required: true
          schema:
            type: string
            example: 5YX76pz7Dga3yztNVw97Dh
          description: >-
            Export task UID returned by
            [enterprise.export.create](/enterprise/v2/enterprise.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/ExportRecord'
                    description: >-
                      Export task record with current status, file metadata, and
                      download expiry.
        4XX:
          description: Error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ExportRecord:
      type: object
      description: An export task record.
      properties:
        uid:
          type: string
          description: Export task UID.
        user_id:
          type: string
          description: Target user ID.
          format: uuid
          example: 123e4567-e89b-12d3-a456-426614174000
        status:
          $ref: '#/components/schemas/ExportStatus'
          description: Current export status.
        file_url:
          type: string
          description: >-
            Pre-signed download URL for the export archive. Only present when
            `status` is `EXPORT_STATUS_COMPLETED`. See `url_expires_at` for the
            expiry. To mint a fresh URL after expiry, call
            [enterprise.export.downloadUrl](/enterprise/v2/enterprise.export.downloadUrl).
        file_size:
          type: integer
          format: int64
          description: >-
            Export archive size in bytes. Serialized as a JSON string per proto3
            int64 conventions.
        file_size_human:
          type: string
          description: Human-readable file size (e.g., "1.82 MB").
        url_expires_at:
          type: string
          format: date-time
          description: >-
            Expiration time of `file_url`. Only present when `status` is
            `EXPORT_STATUS_COMPLETED`. The underlying file is retained for 30
            days; mint a fresh URL via
            [enterprise.export.downloadUrl](/enterprise/v2/enterprise.export.downloadUrl)
            if this URL has expired.
        completed_at:
          type: string
          format: date-time
          description: >-
            When the export finished. Only present when status is
            `EXPORT_STATUS_COMPLETED`.
        created_at:
          type: string
          format: date-time
          description: Task creation time.
        error_message:
          type: string
          description: Failure reason. Only present when status is `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`, `not_found`,
                `permission_denied`, `failed_precondition`, or `internal`.
            message:
              type: string
              description: Human-readable error description explaining what went wrong.
    ExportStatus:
      type: string
      description: >-
        Lifecycle status of an export task. Flow: `PENDING` → `PROCESSING` →
        `COMPLETED` (or `FAILED` / `CANCELLED`).
      enum:
        - EXPORT_STATUS_PENDING
        - EXPORT_STATUS_PROCESSING
        - EXPORT_STATUS_COMPLETED
        - EXPORT_STATUS_FAILED
        - EXPORT_STATUS_CANCELLED
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````