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

# Import an asset

> **Beta** — this endpoint may change before general availability.



## OpenAPI

````yaml /api-reference/openapi.json post /assets/import
openapi: 3.1.0
info:
  title: Replo Public API
  version: '2026-06-27'
servers:
  - url: https://public-api.replo.app/api/v1/public
security: []
paths:
  /assets/import:
    post:
      tags:
        - Assets
      summary: Import an asset
      description: '**Beta** — this endpoint may change before general availability.'
      operationId: assets.import
      parameters:
        - name: Replo-Api-Version
          in: header
          required: true
          schema:
            type: string
            enum:
              - '2026-06-27'
          description: The public API version to use for this request.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                projectId:
                  type: string
                  format: uuid
                url:
                  type: string
                  format: uri
                assetFile:
                  type: object
                  properties:
                    download_url:
                      type: string
                      format: uri
                    file_id:
                      type: string
                      minLength: 1
                    mime_type:
                      type: string
                      minLength: 1
                    file_name:
                      type: string
                      minLength: 1
                  required:
                    - download_url
                    - file_id
                  additionalProperties: false
                name:
                  type: string
                  minLength: 1
                  maxLength: 255
                altText:
                  type: string
                  maxLength: 255
                tags:
                  type: array
                  items:
                    type: string
                    minLength: 1
                  maxItems: 32
                generateEmbedding:
                  type: boolean
              required:
                - projectId
              additionalProperties: false
      responses:
        '200':
          description: Import an asset
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  total:
                    type: number
                  successCount:
                    type: number
                  failureCount:
                    type: number
                  results:
                    type: array
                    items:
                      oneOf:
                        - type: object
                          properties:
                            success:
                              type: boolean
                              enum:
                                - true
                            index:
                              type: number
                            assetId:
                              type: string
                            objectKey:
                              type: string
                            isIndexed:
                              type: boolean
                            kind:
                              type: string
                              enum:
                                - image
                                - video
                                - font
                                - document
                                - audio
                              description: AssetType
                            name:
                              type: string
                            url:
                              type: string
                            mimeType:
                              type: string
                            sizeBytes:
                              type: number
                            tags:
                              type: array
                              items:
                                type: string
                            altText:
                              type: string
                            embeddingText:
                              type: string
                            label:
                              type: string
                            embeddingGenerated:
                              type: boolean
                          required:
                            - success
                            - index
                            - objectKey
                            - isIndexed
                            - kind
                            - name
                            - url
                            - mimeType
                            - sizeBytes
                        - type: object
                          properties:
                            success:
                              type: boolean
                              enum:
                                - false
                            index:
                              type: number
                            error:
                              type: string
                          required:
                            - success
                            - index
                            - error
                required:
                  - success
                  - total
                  - successCount
                  - failureCount
                  - results
        '400':
          description: Invalid request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiError'
        '401':
          description: Missing or invalid Replo Public API token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiError'
        '403':
          description: You are not authorized to access this resource.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiError'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiError'
        '500':
          description: An internal error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiError'
        '503':
          description: Service temporarily unavailable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiError'
      security:
        - bearerAuth: []
components:
  schemas:
    PublicApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            doc_url:
              type: string
          required:
            - code
            - message
            - doc_url
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````