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

# Post datasets

> Create a dataset. The response shows the API-key representation.



## OpenAPI

````yaml /api-reference/openapi.json post /datasets/
openapi: 3.0.0
info:
  title: Avala API
  description: >

    # Authentication


    ## Generating an API Key


    The Avala SDK uses API keys to authenticate requests. You can create and
    manage your API keys from the

    Settings page of Mission Control.


    Follow these steps to generate a new API key:


    1. Open your settings page by clicking on your user avatar located at the
    top right-hand corner of any
        Mission Control screen, and select `Settings`.
    2. From the left-hand sub-menu, select `Security & Identity`.

    3. Click on `New API Key`, enter a name for the key, and then click `Create
    key`.


    The new key will be automatically copied to your clipboard. Please note, for
    security reasons, the key

    will not be accessible once you close the window. Ensure you store it in a
    safe location before closing

    the pop-up modal.


    ### Video walkthrough of API key generation


    <iframe class="embedly-embed"
    src="//cdn.embedly.com/widgets/media.html?src=https%3A%2F%2F
        www.youtube.com%2Fembed%2FTYdLhkAAbLA%3Ffeature%3Doembed&display_name=YouTube&url=https%3A%2F%2F
        www.youtube.com%2Fwatch%3Fv%3DTYdLhkAAbLA&image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FTYdLhkAAbLA%2F
        hqdefault.jpg&key=7788cb384c9f4d5dbbdbeffd9fe4b92f&type=text%2Fhtml&schema=youtube" width="854"
        height="480" scrolling="no" title="YouTube embed" frameborder="0" allow="autoplay;
        fullscreen; encrypted-media; picture-in-picture;" allowfullscreen="true"></iframe>


    ## Authenticating with an API Key


    This is the easiest part! Just add a header named `X-Avala-Api-Key` to your
    requests and set the

    previously generated API Key as the value.
  termsOfService: https://avala.ai/legal/terms
  contact:
    email: support@avala.ai
  version: v1
servers:
  - url: https://api.avala.ai/api/v1
security:
  - API_Key: []
  - JWT: []
tags:
  - name: datasets
    description: To be completed...
  - name: projects
    description: To be completed...
  - name: tasks
    description: List and retrieve annotation tasks.
  - name: exports
    description: To be completed...
paths:
  /datasets/:
    parameters: []
    post:
      tags:
        - datasets
      description: Create a dataset. The response shows the API-key representation.
      operationId: datasets_create
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DatasetCreateRequest'
        required: true
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DatasetApiKeyResponse'
components:
  schemas:
    DatasetCreateRequest:
      required:
        - name
        - slug
        - provider_config
      type: object
      properties:
        name:
          title: Name
          type: string
          maxLength: 100
          minLength: 1
        data_type:
          title: Data type
          type: string
          enum:
            - image
            - lidar
            - video
            - mcap
            - rrd
            - splat
        slug:
          title: Slug
          type: string
          maxLength: 100
          minLength: 1
        content_watermark_enabled:
          title: Content watermark enabled
          description: >-
            Watermark this dataset's viewers with the viewing session (traceable
            screenshots).
          type: boolean
          nullable: true
        organization_id:
          title: Organization id
          type: integer
          nullable: true
        organization_uid:
          title: Organization uid
          type: string
          minLength: 1
          nullable: true
        visibility:
          title: Visibility
          type: string
          enum:
            - public
            - private
            - unlisted
        industry:
          title: Industry
          type: integer
          nullable: true
        provider_config:
          $ref: '#/components/schemas/DatasetProviderConfig'
        license:
          title: License
          type: integer
          nullable: true
        citation:
          title: Citation
          type: string
          maxLength: 255
          nullable: true
        creator:
          title: Creator
          type: string
          maxLength: 100
          nullable: true
        description:
          title: Description
          type: string
          maxLength: 1024
          nullable: true
        readme:
          title: Readme
          type: string
          maxLength: 65536
          nullable: true
        tags:
          description: 'Ordered discovery topics: lowercase letters, numbers, and hyphens.'
          type: array
          items:
            type: string
            maxLength: 50
            minLength: 1
          maxItems: 20
          nullable: true
        create_metadata:
          title: Create metadata
          type: boolean
          default: false
        metadata:
          title: Metadata
          type: object
        gpu_texture_format:
          title: Gpu texture format
          type: string
          enum:
            - ktx
            - ktx2
          nullable: true
    DatasetApiKeyResponse:
      required:
        - name
        - slug
      type: object
      properties:
        storage_provider:
          title: Storage provider
          description: >-
            Current configured dataset storage connector, not every revision
            origin or replica. Null when no recognized connector is configured.
          type: string
          enum:
            - aws_s3
            - gc_storage
            - cloudflare_r2
            - huggingface_bucket
          readOnly: true
          nullable: true
        uid:
          title: Uid
          type: string
          format: uuid
          readOnly: true
        name:
          title: Name
          type: string
          maxLength: 100
          minLength: 1
        data_type:
          title: Data type
          type: string
          enum:
            - image
            - lidar
            - video
            - mcap
            - rrd
            - splat
        is_sequence:
          title: Is sequence
          description: If dataset data type is a sequence, for example video
          type: boolean
          readOnly: true
        slug:
          title: Slug
          type: string
          maxLength: 100
          minLength: 1
        featured_items_url:
          description: List of the first 4 found dataset items' URL
          type: array
          items:
            type: string
            nullable: true
          readOnly: true
        item_count:
          title: Item count
          type: integer
          readOnly: true
          nullable: true
        semantic_search_enabled:
          title: Semantic search enabled
          description: >-
            Enable semantic (?search=) ranking for this dataset. Only turn on
            after an async backfill and `backfill_embeddings <dataset_id>
            --coverage-only` reports exact-current coverage.
          type: boolean
          readOnly: true
        content_watermark_enabled:
          title: Content watermark enabled
          description: >-
            Watermark this dataset's viewers with the viewing session (traceable
            screenshots).
          type: boolean
          nullable: true
        customer_issue_count:
          title: Customer issue count
          type: integer
          readOnly: true
          nullable: true
        staff_issue_count:
          title: Staff issue count
          type: integer
          readOnly: true
          nullable: true
        status:
          title: Status
          type: string
          readOnly: true
        owner_name:
          title: Owner name
          description: The name of the dataset owner
          type: string
          readOnly: true
          minLength: 1
        owner_summary:
          $ref: '#/components/schemas/OwnerSummary'
        organization:
          required:
            - name
          type: object
          properties:
            uid:
              title: Uid
              type: string
              format: uuid
              readOnly: true
            name:
              title: Name
              type: string
              maxLength: 1024
              minLength: 1
            slug:
              title: Slug
              type: string
              format: slug
              pattern: ^[-a-zA-Z0-9_]+$
              readOnly: true
              minLength: 1
            description:
              title: Description
              type: string
              maxLength: 1024
            logo:
              title: Logo
              type: string
              readOnly: true
              format: uri
              nullable: true
            website:
              title: Website
              type: string
              format: uri
            public_slug:
              title: Public slug
              description: >-
                Canonical slug for URL rendering. Coworker viewers receive the
                organization's codename; others receive the real slug.
              type: string
              readOnly: true
          readOnly: true
          nullable: true
        created_at:
          title: Created at
          type: string
          format: date-time
          readOnly: true
        updated_at:
          title: Updated at
          type: string
          format: date-time
          readOnly: true
        visibility:
          title: Visibility
          type: string
          enum:
            - public
            - private
            - unlisted
        projects:
          type: array
          items:
            $ref: '#/components/schemas/ProjectBase'
          readOnly: true
        project_count:
          title: Project count
          type: integer
          readOnly: true
        liked:
          title: Liked
          description: True if current user likes this dataset
          type: boolean
          readOnly: true
        industry:
          title: Industry
          type: integer
          nullable: true
        industry_uid:
          title: Industry uid
          type: string
          format: uuid
          readOnly: true
        industry_name:
          title: Industry name
          type: string
          readOnly: true
          minLength: 1
        license:
          title: License
          type: integer
          nullable: true
        license_uid:
          title: License uid
          type: string
          format: uuid
          readOnly: true
        license_name:
          title: License name
          type: string
          readOnly: true
          minLength: 1
        license_key:
          title: License key
          type: string
          readOnly: true
          minLength: 1
        citation:
          title: Citation
          type: string
          maxLength: 255
          nullable: true
        creator:
          title: Creator
          type: string
          maxLength: 100
          nullable: true
        description:
          title: Description
          type: string
          maxLength: 1024
          nullable: true
        readme:
          title: Readme
          type: string
          maxLength: 65536
          nullable: true
        tags:
          description: 'Ordered discovery topics: lowercase letters, numbers, and hyphens.'
          type: array
          items:
            type: string
            maxLength: 50
            minLength: 1
          maxItems: 20
          nullable: true
        unique_subjects:
          type: array
          items:
            type: string
            minLength: 1
          readOnly: true
        unique_classify_tags:
          type: array
          items:
            type: string
            minLength: 1
          readOnly: true
        annotations_count:
          title: Annotations count
          type: integer
          readOnly: true
        size_bytes:
          title: Size bytes
          type: integer
          readOnly: true
          nullable: true
        predefined_labels:
          type: array
          items:
            $ref: '#/components/schemas/DatasetPredefinedLabel'
          readOnly: true
        indexable_metadata:
          type: array
          items:
            $ref: '#/components/schemas/DatasetIndexableMetadata'
          readOnly: true
        related_datasets:
          type: array
          items:
            $ref: '#/components/schemas/RelatedDataset'
          readOnly: true
        create_metadata:
          title: Create metadata
          type: boolean
          default: false
        metadata:
          title: Metadata
          type: object
        sync:
          title: Sync
          description: >-
            Live-dataset sync state; null when the dataset has no periodic
            bucket sync
          type: object
          readOnly: true
          nullable: true
        gpu_texture_format:
          title: Gpu texture format
          type: string
          enum:
            - ktx
            - ktx2
          nullable: true
        download_count:
          title: Download count
          type: integer
          readOnly: true
          nullable: true
        like_count:
          title: Like count
          type: integer
          readOnly: true
          nullable: true
        star_count:
          title: Star count
          type: integer
          readOnly: true
          nullable: true
        fork_count:
          title: Fork count
          type: integer
          readOnly: true
          nullable: true
        view_count:
          title: View count
          type: integer
          readOnly: true
        popularity_score:
          title: Popularity score
          type: number
          readOnly: true
        paper_count:
          title: Paper count
          type: integer
          readOnly: true
          nullable: true
        source_name:
          title: Source name
          type: string
          readOnly: true
          minLength: 1
          nullable: true
        source_type:
          title: Source type
          type: string
          readOnly: true
          minLength: 1
          nullable: true
        source_url:
          title: Source url
          type: string
          readOnly: true
          minLength: 1
          nullable: true
        homepage_url:
          title: Homepage url
          type: string
          readOnly: true
          minLength: 1
          nullable: true
        paper_url:
          title: Paper url
          type: string
          readOnly: true
          minLength: 1
          nullable: true
        code_url:
          title: Code url
          type: string
          readOnly: true
          minLength: 1
          nullable: true
        download_url:
          title: Download url
          type: string
          readOnly: true
          minLength: 1
          nullable: true
        num_episodes:
          title: Num episodes
          type: integer
          readOnly: true
          nullable: true
        num_hours:
          title: Num hours
          type: number
          readOnly: true
          nullable: true
        num_tasks:
          title: Num tasks
          type: integer
          readOnly: true
          nullable: true
        motion_type:
          title: Motion type
          type: string
          readOnly: true
          minLength: 1
          nullable: true
        viewpoint:
          title: Viewpoint
          type: string
          readOnly: true
          minLength: 1
          nullable: true
        realness:
          title: Realness
          type: string
          readOnly: true
          minLength: 1
          nullable: true
        embodiment:
          type: array
          items:
            type: string
            minLength: 1
          readOnly: true
        environment:
          type: array
          items:
            type: string
            minLength: 1
          readOnly: true
        modality:
          type: array
          items:
            type: string
            minLength: 1
          readOnly: true
        outcome:
          type: array
          items:
            type: string
            minLength: 1
          readOnly: true
        format:
          type: array
          items:
            type: string
            minLength: 1
          readOnly: true
        hosting_status:
          title: Hosting status
          type: string
          enum:
            - links
            - in_progress
            - rehosted
          readOnly: true
        usage_snippet:
          title: Usage snippet
          type: string
          readOnly: true
          minLength: 1
          nullable: true
        can_manage:
          title: Can manage
          description: Whether the requesting user may edit this dataset's settings.
          type: boolean
          readOnly: true
        can_archive:
          title: Can archive
          description: Whether the requesting user may archive (hide) this dataset.
          type: boolean
          readOnly: true
    DatasetProviderConfig:
      required:
        - provider
      type: object
      properties:
        provider:
          title: Provider
          type: string
          enum:
            - aws_s3
            - gc_storage
            - cloudflare_r2
            - huggingface_bucket
        s3_bucket_name:
          title: S3 bucket name
          type: string
          pattern: ^[a-zA-Z0-9.\-_]{1,255}$
          maxLength: 255
          minLength: 1
          nullable: true
        s3_bucket_region:
          title: S3 bucket region
          type: string
          maxLength: 50
          minLength: 1
          nullable: true
        s3_bucket_prefix:
          title: S3 bucket prefix
          type: string
          maxLength: 255
          nullable: true
        s3_access_key_id:
          title: S3 access key id
          type: string
          pattern: ^[A-Z0-9]{20}$
          maxLength: 20
          minLength: 1
          nullable: true
        s3_secret_access_key:
          title: S3 secret access key
          type: string
          pattern: ^[A-Za-z0-9/+=]{40}$
          maxLength: 40
          minLength: 1
          nullable: true
        s3_is_accelerated:
          title: S3 is accelerated
          type: boolean
          nullable: true
        s3_auth_method:
          title: S3 auth method
          type: string
          enum:
            - access_key
            - iam_role
            - default_chain
        s3_role_arn:
          title: S3 role arn
          type: string
          nullable: true
        r2_account_id:
          title: R2 account id
          description: >-
            Cloudflare account ID (32 hex chars). The S3-compatible endpoint is
            derived from it.
          type: string
          pattern: ^[0-9a-f]{32}$
          maxLength: 32
          nullable: true
        r2_access_key_id:
          title: R2 access key id
          type: string
          nullable: true
        r2_secret_access_key:
          title: R2 secret access key
          type: string
          nullable: true
        r2_public_base_url:
          title: R2 public base url
          description: >-
            Public read base URL for a PUBLIC R2 bucket. Blank for private
            buckets.
          type: string
          maxLength: 2048
          nullable: true
        s3_cloudfront_domain:
          title: S3 cloudfront domain
          description: CloudFront domain for S3 bucket if exists
          type: string
          maxLength: 255
          nullable: true
        s3_cloudfront_public_key_id:
          title: S3 cloudfront public key id
          description: Avala's CloudFront public key ID for signing URLs if exists
          type: string
          maxLength: 100
          nullable: true
        gc_storage_bucket_name:
          title: Gc storage bucket name
          type: string
          pattern: ^[a-zA-Z0-9.\-_]{1,255}$
          maxLength: 255
          minLength: 1
          nullable: true
        gc_storage_prefix:
          title: Gc storage prefix
          type: string
          maxLength: 255
          nullable: true
        gc_storage_auth_json_content:
          title: Gc storage auth json content
          type: string
          minLength: 1
          nullable: true
        included_extensions:
          title: Included extensions
          description: Comma separated list of extensions to include
          type: string
          nullable: true
        ignored_paths:
          title: Ignored paths
          description: >-
            Comma separated list of fnmatch-style glob patterns matched against
            the full object key, case-sensitive. Objects matching any pattern
            are skipped during indexing. Note: '*' matches across directory
            separators (unlike POSIX glob), so '*/frames/*' skips frames/ at any
            depth. Provider-agnostic: applies to S3 and GCS alike.
          type: string
          nullable: true
        is_private_source:
          title: Is private source
          type: boolean
          nullable: true
        sync_enabled:
          title: Sync enabled
          type: boolean
          nullable: true
        sync_interval_minutes:
          title: Sync interval minutes
          type: integer
          minimum: 15
          nullable: true
        hf_namespace:
          title: Hf namespace
          type: string
          maxLength: 96
          nullable: true
        hf_bucket_name:
          title: Hf bucket name
          type: string
          maxLength: 96
          nullable: true
        hf_prefix:
          title: Hf prefix
          type: string
          maxLength: 1024
          nullable: true
        hf_token:
          title: Hf token
          type: string
          maxLength: 4096
          nullable: true
        hf_storage_config_uid:
          title: Hf storage config uid
          type: string
          format: uuid
          nullable: true
        source_read_only:
          title: Source read only
          type: boolean
          readOnly: true
    OwnerSummary:
      description: Typed logical owner identity for avatar rendering and profile routing.
      required:
        - uid
        - entity_type
        - route_name
        - display_name
        - avatar_url
      type: object
      properties:
        uid:
          title: Uid
          type: string
          format: uuid
        entity_type:
          title: Entity type
          type: string
          enum:
            - user
            - organization
        route_name:
          title: Route name
          type: string
          minLength: 1
        display_name:
          title: Display name
          type: string
          minLength: 1
        avatar_url:
          title: Avatar url
          type: string
          format: uri
          minLength: 1
          nullable: true
    ProjectBase:
      required:
        - name
      type: object
      properties:
        uid:
          title: Uid
          type: string
          format: uuid
          readOnly: true
        name:
          title: Name
          type: string
          maxLength: 100
          minLength: 1
        task_type:
          title: Task type
          type: string
          enum:
            - image-annotation
            - video-annotation
            - point-cloud-annotation
            - point-cloud-objects
            - data-collection
        status:
          title: Status
          type: string
          enum:
            - pending-approval
            - active
            - paused
            - canceled
            - archived
            - completed
          readOnly: true
        is_active:
          title: Is active
          type: boolean
          readOnly: true
        visibility:
          title: Visibility
          type: string
          enum:
            - public
            - private
        is_imported:
          title: Is imported
          type: boolean
          readOnly: true
        owner_name:
          title: Owner name
          description: The name of the project owner
          type: string
          readOnly: true
        short_description:
          title: Short description
          type: string
          readOnly: true
          minLength: 1
        industry_icon:
          title: Industry icon
          type: string
          readOnly: true
          nullable: true
        task_time_cap_seconds:
          title: Task time cap seconds
          description: >-
            Max time allowed per task in seconds. Overrides default task earning
            time.
          type: integer
          maximum: 2147483647
          minimum: 0
          nullable: true
    DatasetPredefinedLabel:
      required:
        - label_code
      type: object
      properties:
        label_code:
          title: Label code
          type: integer
          maximum: 32767
          minimum: 0
        locked:
          title: Locked
          type: boolean
        name:
          title: Name
          type: string
          readOnly: true
        color:
          title: Color
          type: string
          readOnly: true
          nullable: true
        icon_name:
          title: Icon name
          type: string
          minLength: 1
        article_uid:
          title: Article uid
          type: string
          minLength: 1
        is_countable:
          title: Is countable
          type: boolean
        tool_availability:
          description: Annotation tools that may use this label. Empty means all tools.
          type: array
          items:
            title: Tool availability
            type: string
            enum:
              - crop
              - box
              - cuboid
              - classification
              - polygon
              - point cloud segmentation
              - point cloud polyline
              - image segmentation
              - cuboid 3d
              - object mask
              - polyline 3d
    DatasetIndexableMetadata:
      required:
        - key
        - values
      type: object
      properties:
        key:
          title: Key
          type: string
          minLength: 1
        values:
          type: array
          items:
            type: string
            minLength: 1
    RelatedDataset:
      required:
        - slug
      type: object
      properties:
        storage_provider:
          title: Storage provider
          description: >-
            Current configured dataset storage connector, not every revision
            origin or replica. Null when no recognized connector is configured.
          type: string
          enum:
            - aws_s3
            - gc_storage
            - cloudflare_r2
            - huggingface_bucket
          readOnly: true
          nullable: true
        uid:
          title: Uid
          type: string
          format: uuid
          readOnly: true
        slug:
          title: Slug
          type: string
          maxLength: 100
          minLength: 1
        owner_name:
          title: Owner name
          description: The name of the dataset owner
          type: string
          readOnly: true
          minLength: 1
        data_type:
          title: Data type
          type: string
          readOnly: true
          minLength: 1
        relation_status:
          title: Relation status
          type: string
          readOnly: true
          minLength: 1
          nullable: true
        camera_regexes:
          type: array
          items:
            type: string
            minLength: 1
          readOnly: true
        sensor_ids:
          type: array
          items:
            type: string
            minLength: 1
          readOnly: true
  securitySchemes:
    API_Key:
      type: apiKey
      name: X-Avala-Api-Key
      in: header
      description: >-
        API key for authentication. Generate one in Mission Control Settings >
        Security & Identity.
    JWT:
      type: apiKey
      name: Authorization
      in: header
      description: JWT token with 'JWT' prefix, e.g., 'JWT eyJhbGciOiJIUzI1NiIsInR...'

````