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

# Create an export

> Queue a private CSV or Parquet export.



## OpenAPI

````yaml https://api.soriaanalytics.com/v1/openapi.json POST /datasets/{dataset}/exports
openapi: 3.1.0
info:
  title: Soria Data API
  description: >-
    Governed data query API. `GET /catalog` is the canonical dataset
    documentation: its schemas, grain, methodology, refresh cadence, and source
    provenance are generated from dbt on every relevant change. `POST
    /search/documents` searches the public source-document corpus behind those
    datasets. For larger result sets, create a private CSV (default) or Parquet
    export, poll its status URL, and use the short-lived download URL once it is
    ready.
  version: 1.0.0
servers:
  - url: /v1
security: []
paths:
  /datasets/{dataset}/exports:
    post:
      tags:
        - data
      summary: Create Dataset Export
      description: >-
        Queue a private CSV or Parquet export using the structured-query
        contract.


        Export generation is asynchronous. Files are capped at 2 GB and expire

        after 24 hours; at most two exports may be queued or running per user.
      operationId: create_dataset_export_datasets__dataset__exports_post
      parameters:
        - name: dataset
          in: path
          required: true
          schema:
            type: string
            title: Dataset
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DatasetExportRequest'
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DatasetExportStatus'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    DatasetExportRequest:
      properties:
        columns:
          items:
            type: string
          type: array
          title: Columns
          description: Columns to export. Empty means every customer-visible column.
        filters:
          items:
            $ref: '#/components/schemas/DatasetFilter'
          type: array
          maxItems: 20
          title: Filters
          description: Structured filters combined with AND.
        order_by:
          items:
            $ref: '#/components/schemas/DatasetSort'
          type: array
          maxItems: 10
          title: Order By
          description: Optional sort keys. Exports are unordered when omitted.
        format:
          type: string
          enum:
            - csv
            - parquet
          title: Format
          description: Generated file format.
          default: csv
      type: object
      title: DatasetExportRequest
    DatasetExportStatus:
      properties:
        id:
          type: string
          title: Id
        dataset:
          type: string
          title: Dataset
        format:
          type: string
          enum:
            - csv
            - parquet
          title: Format
        status:
          type: string
          enum:
            - queued
            - running
            - ready
            - failed
            - expired
          title: Status
        row_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Row Count
        size_bytes:
          anyOf:
            - type: integer
            - type: 'null'
          title: Size Bytes
        created_at:
          type: string
          format: date-time
          title: Created At
        completed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Completed At
        expires_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Expires At
        status_url:
          type: string
          title: Status Url
        download_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Download Url
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
      type: object
      required:
        - id
        - dataset
        - format
        - status
        - created_at
        - status_url
      title: DatasetExportStatus
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    DatasetFilter:
      properties:
        column:
          type: string
          title: Column
          description: Customer-visible dataset column.
        operator:
          type: string
          enum:
            - eq
            - ne
            - gt
            - gte
            - lt
            - lte
            - in
            - contains
            - is_null
          title: Operator
          description: Structured comparison operator.
        value:
          anyOf:
            - {}
            - type: 'null'
          title: Value
          description: Comparison value. Use an array with `in`; omit it with `is_null`.
      type: object
      required:
        - column
        - operator
      title: DatasetFilter
    DatasetSort:
      properties:
        column:
          type: string
          title: Column
          description: Customer-visible dataset column.
        direction:
          type: string
          enum:
            - asc
            - desc
          title: Direction
          description: Sort direction.
          default: asc
      type: object
      required:
        - column
      title: DatasetSort
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````