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

# Export selected CSVs into one private workbook

> Also requires datasets:read and current download permission for every file. Creates one data tab per source and an Index with provenance and supplied metrics. Requires Google consent. Reuse the same request_id, IDs and title for an identical retry. Workbook limits are 200,000 data cells and 4 MB of values.



## OpenAPI

````yaml /docs/api/openapi.json post /v1/csv-exports/sheets
openapi: 3.1.0
info:
  title: Quantura API
  version: 1.0.0
  description: >-
    Search markets and public datasets, download historical observations, create
    forecasts and inspect screener quantiles.
  contact:
    name: Quantura
    url: https://quantura.studio/contact
  license:
    name: Quantura API Terms
    url: https://quantura.studio/terms
servers:
  - url: https://quantura.studio/api
security:
  - bearerAuth: []
  - clerkOAuth:
      - openid
      - profile
      - email
tags:
  - name: Access
  - name: Forecast
  - name: Screener
  - name: Admin Canvas
  - name: CSV library
  - name: Privacy
  - name: Search
  - name: Download
  - name: Scout
paths:
  /v1/csv-exports/sheets:
    post:
      tags:
        - CSV library
      summary: Export selected CSVs into one private workbook
      description: >-
        Also requires datasets:read and current download permission for every
        file. Creates one data tab per source and an Index with provenance and
        supplied metrics. Requires Google consent. Reuse the same request_id,
        IDs and title for an identical retry. Workbook limits are 200,000 data
        cells and 4 MB of values.
      operationId: exportSelectedCsvToGoogleSheets
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - ids
                - request_id
              properties:
                ids:
                  type: array
                  minItems: 1
                  maxItems: 12
                  uniqueItems: true
                  items:
                    type: string
                    pattern: ^(?:[a-f0-9]{64}|(?:csv_|legacy_)[A-Za-z0-9_-]+)$
                request_id:
                  type: string
                  minLength: 16
                  maxLength: 100
                title:
                  type: string
                  maxLength: 120
      responses:
        '200':
          description: Private Google spreadsheet URL and ID
          content:
            application/json:
              schema:
                type: object
              example:
                data:
                  spreadsheet_id: example_workbook_id
                  url: >-
                    https://docs.google.com/spreadsheets/d/example_workbook_id/edit
                  reused: false
        '401':
          description: Sign-in required
          content:
            application/json:
              schema:
                type: object
        '403':
          description: Scope, current membership or CSV permission denied
          content:
            application/json:
              schema:
                type: object
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                type: object
        '409':
          description: >-
            Conflicting request ID or an unconfirmed write; do not blindly retry
            with a new ID
          content:
            application/json:
              schema:
                type: object
        '412':
          description: Connect Google and grant drive.file
          content:
            application/json:
              schema:
                type: object
        '413':
          description: Decoded CSV or Sheets export limit exceeded
          content:
            application/json:
              schema:
                type: object
        '422':
          description: CSV, type, mapping, metrics or metadata invalid
          content:
            application/json:
              schema:
                type: object
        '503':
          description: Provider unavailable; source data is retained
          content:
            application/json:
              schema:
                type: object
      security:
        - bearerAuth: []
        - clerkOAuth:
            - openid
            - profile
            - email
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Clerk personal API key or legacy Quantura key
    clerkOAuth:
      type: oauth2
      description: >-
        Clerk authorization code with PKCE S256. Pass
        resource=https://quantura.studio on authorization and token requests.
        Paid Pro, enterprise or verified administrator API access is required.
      flows:
        authorizationCode:
          authorizationUrl: https://clerk.quantura.studio/oauth/authorize
          tokenUrl: https://clerk.quantura.studio/oauth/token
          refreshUrl: https://clerk.quantura.studio/oauth/token
          scopes:
            openid: Identify the Quantura account
            profile: Resolve the account profile
            email: Verify account email
            offline_access: Refresh access after expiry

````

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