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

# Create an export

> Packages the dataset's accepted videos and annotations into a training
format and delivers them. Exports run asynchronously: poll
`GET /exports/{export_id}` or listen for the `export.ready` webhook.




## OpenAPI

````yaml /openapi.yaml post /datasets/{dataset_id}/exports
openapi: 3.1.0
info:
  title: Capibo API
  version: '1.0'
  description: |
    Plan data-collection missions, track quality review, and pull accepted
    egocentric videos into your robot-training pipeline.
  contact:
    name: Capibo support
    email: support@capibo.work
servers:
  - url: https://api.capibo.work/v1
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Missions
    description: Create and manage data-collection missions.
  - name: Planning
    description: Price a mission before you launch it.
  - name: Datasets
    description: Accepted videos, grouped per mission.
  - name: Videos
    description: Individual submissions and their quality-review results.
  - name: Exports
    description: Package a dataset into a training format and deliver it.
  - name: Billing
    description: Prepaid credits, transactions and promo codes.
  - name: Usage
    description: Collection volume and spend over time.
  - name: Webhooks
    description: Get notified when videos are accepted, missions finish and more.
paths:
  /datasets/{dataset_id}/exports:
    parameters:
      - $ref: '#/components/parameters/DatasetId'
    post:
      tags:
        - Exports
      summary: Create an export
      description: |
        Packages the dataset's accepted videos and annotations into a training
        format and delivers them. Exports run asynchronously: poll
        `GET /exports/{export_id}` or listen for the `export.ready` webhook.
      operationId: createExport
      parameters:
        - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExportCreate'
      responses:
        '202':
          description: The export was queued.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Export'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    DatasetId:
      name: dataset_id
      in: path
      required: true
      schema:
        type: string
        example: DS-301
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      description: >-
        A unique key (e.g. a UUID). Retrying with the same key returns the
        original response instead of doing the work twice.
      schema:
        type: string
        format: uuid
  schemas:
    ExportCreate:
      type: object
      required:
        - format
        - destination
      properties:
        format:
          type: string
          enum:
            - lerobot
            - rlds
            - webdataset
            - mp4-json
          description: >-
            `lerobot` (Hugging Face LeRobot), `rlds` (RLDS / TFRecord),
            `webdataset` (.tar shards) or `mp4-json` (MP4 + JSON annotations).
        destination:
          type: string
          enum:
            - s3
            - gcs
            - hf
            - link
          description: A connected integration, or `link` for a signed download link (24h).
        task_ids:
          type: array
          description: Only export these tasks. All tasks by default.
          items:
            type: string
        created_after:
          type: string
          format: date-time
          description: >-
            Only export videos accepted after this time, for incremental
            exports.
        include_rejected:
          type: boolean
          default: false
        blur_faces:
          type: boolean
          default: true
          description: Blur any faces or screens detected in frame.
    Export:
      type: object
      properties:
        id:
          type: string
          example: EXP-20931
        dataset_id:
          type: string
          example: DS-301
        status:
          type: string
          enum:
            - queued
            - packaging
            - ready
            - failed
        format:
          type: string
          example: lerobot
        destination:
          type: string
          example: s3
        videos:
          type: integer
          example: 7339
        url:
          type:
            - string
            - 'null'
          description: Where the export was delivered, once `ready`.
          example: s3://timefactories/datasets/DS-301/v1.2
        created_at:
          type: string
          format: date-time
        completed_at:
          type:
            - string
            - 'null'
          format: date-time
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - type
            - code
            - message
          properties:
            type:
              type: string
              enum:
                - invalid_request
                - authentication_error
                - permission_denied
                - not_found
                - conflict
                - payment_required
                - rate_limited
                - api_error
            code:
              type: string
              description: Machine-readable reason.
            message:
              type: string
              description: Human-readable explanation.
            param:
              type: string
              description: The parameter that caused the error
              if any.: null
  responses:
    BadRequest:
      description: The request is invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              type: invalid_request
              code: parameter_invalid
              message: tasks[0].videos must be at least 1.
              param: tasks[0].videos
    Unauthorized:
      description: The API key is missing, invalid or revoked.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              type: authentication_error
              code: api_key_invalid
              message: Invalid API key.
    NotFound:
      description: The resource doesn't exist or isn't visible to this key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              type: not_found
              code: resource_missing
              message: No mission with id MSN-9999.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        An API key from **Settings → API keys**, e.g. `cpb_live_…` or
        `cpb_test_…`.

````

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