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

# Create an asset



## OpenAPI

````yaml /openapi.yaml post /assets
openapi: 3.1.0
info:
  title: Pixwel Platform
  description: >-
    The Pixwel Platform REST API. Authenticate with HTTP Basic (email +
    password) or a personal access token (`Authorization: Bearer pat_…`).
    Responses are decorated by proxy middleware (Fields, Links, Permissions,
    etc.). Use `?fields=` to request specific fields.
  version: '2.8'
  contact:
    email: jeff@pixwel.com
  license:
    name: UNLICENSED
    identifier: LicenseRef-Pixwel-Proprietary
servers:
  - url: https://api-staging.pixwel.com/api
    description: Staging
  - url: https://app.pixwel.com/api
    description: Production
security:
  - BasicAuth: []
  - BearerAuth: []
paths:
  /assets:
    post:
      tags:
        - Assets
      summary: Create an asset
      operationId: createAsset
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AssetsResponse'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssetsResponse'
        '401':
          description: Not authenticated
components:
  schemas:
    AssetsResponse:
      type: object
      properties:
        _id:
          type: string
          example: 507f1f77bcf86cd799439011
        studio:
          type: string
          example: 507f1f77bcf86cd799439011
        project:
          type: string
          example: 507f1f77bcf86cd799439011
        name:
          type: string
        usage:
          type: object
          properties:
            broadcast:
              type: boolean
            online:
              type: boolean
            dcp:
              type: boolean
            film35:
              type: boolean
            film70:
              type: boolean
            dcp4k:
              type: boolean
            imax:
              type: boolean
            atmos:
              type: boolean
        importName:
          type: string
        slug:
          type: string
        type:
          type: string
        thumbnail:
          type: string
          example: 507f1f77bcf86cd799439011
        verified:
          type: boolean
        previews:
          type: array
          items:
            type: object
            properties:
              _id:
                type: string
                example: 507f1f77bcf86cd799439011
              asset:
                type: string
                example: 507f1f77bcf86cd799439011
              created:
                type: integer
              label:
                type: string
              language:
                type: string
              project:
                type: string
                example: 507f1f77bcf86cd799439011
              revision:
                type: string
              studio:
                type: string
                example: 507f1f77bcf86cd799439011
              type:
                type: string
              cdn:
                type: object
                properties:
                  domain:
                    type: string
                  path:
                    type: string
                  key:
                    type: string
        created:
          type: integer
        mediaType:
          type: string
        creative:
          type: boolean
        $links:
          type: object
          properties:
            self:
              type: string
              format: uri-reference
              example: //example.com/path/to/object
            thumbnail:
              type: string
              format: uri-reference
              example: //example.com/path/to/object
            project:
              type: string
              format: uri-reference
              example: //example.com/path/to/object
            studio:
              type: string
              format: uri-reference
              example: //example.com/path/to/object
            type:
              type: string
              format: uri-reference
              example: //example.com/path/to/object
            transcription:
              type: string
              format: uri-reference
              example: //example.com/path/to/object
        $flags:
          description: Shape not inferred — the sampled response had no entries
        $permissions:
          type: object
          properties:
            canAutosub:
              type: boolean
            sources:
              type: object
              properties:
                requests:
                  type: object
                  properties:
                    languages:
                      description: Shape not inferred — the sampled response had no entries
                    countries:
                      description: Shape not inferred — the sampled response had no entries
                autosubs:
                  type: object
                  properties:
                    languages:
                      description: Shape not inferred — the sampled response had no entries
                    countries:
                      description: Shape not inferred — the sampled response had no entries
            access:
              type: array
              items:
                type: string
            tags:
              type: object
              properties:
                online:
                  type: boolean
                broadcast:
                  type: boolean
                dcp:
                  type: boolean
                cmyk:
                  type: boolean
                rgb:
                  type: boolean
            ingest:
              type: array
              items:
                type: string
        $embargo:
          type: boolean
        $feedback:
          type: object
          properties:
            share:
              description: Null in every sampled response — shape not inferred
            vote:
              description: Null in every sampled response — shape not inferred
            summary:
              description: Shape not inferred — the sampled response had no entries
        transcription:
          type: object
          properties:
            script:
              type: string
              example: 507f1f77bcf86cd799439011
            _id:
              type: string
              example: 507f1f77bcf86cd799439011
            graphics:
              type: string
              example: 507f1f77bcf86cd799439011
        creator:
          type: string
          example: 507f1f77bcf86cd799439011
        private:
          type: boolean
        unorderable:
          type: boolean
        aspectRatio:
          type: string
        autosubIngest:
          type: string
          example: 507f1f77bcf86cd799439011
        notifyUrl:
          type: string
          format: uri
          example: https://example.com/path/to/object
        embargo:
          type: integer
  securitySchemes:
    BasicAuth:
      type: http
      scheme: basic
      description: >-
        Email address and password. A personal access token (`pat_…`) or session
        token (`token-…`) may also be sent in the password field, with any
        non-empty value as the username — a blank username short-circuits to a
        401 before the token is read.
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: pat_<64 hex characters>
      description: >-
        A personal access token: `Authorization: Bearer pat_…`. Create one under
        Preferences → API Tokens, or with `POST /personal-access-tokens`. The
        token acts as its owner, with their full permissions.

````