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

# Bulk Import Freepik Assets



## OpenAPI

````yaml https://dev-api.cattix.com/openapi.json post /api/v1/media/integrations/freepik/import
openapi: 3.1.0
info:
  title: CATTIX API
  description: CATTIX Backend API
  version: 0.107.0
servers:
  - url: http://localhost:8000
    description: Local
  - url: https://dev-api.cattix.com
    description: Development
  - url: https://staging-api.cattix.com
    description: Staging
  - url: https://api.cattix.com
    description: Production
security: []
paths:
  /api/v1/media/integrations/freepik/import:
    post:
      tags:
        - Media
      summary: Bulk Import Freepik Assets
      operationId: bulk_import_freepik_assets_api_v1_media_integrations_freepik_import_post
      parameters:
        - name: company_id
          in: query
          required: true
          schema:
            type: integer
            description: Company ID
            title: Company Id
          description: Company ID
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FreepikImportRequestSchema'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FreepikBatchImportResponseSchema'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - OAuth2PasswordBearer: []
components:
  schemas:
    FreepikImportRequestSchema:
      properties:
        asset_ids:
          items:
            type: string
          type: array
          minItems: 1
          title: Asset Ids
          description: Freepik asset IDs to import
        tags:
          items:
            type: string
          type: array
          title: Tags
          description: Optional tags for the imported assets
      type: object
      required:
        - asset_ids
      title: FreepikImportRequestSchema
    FreepikBatchImportResponseSchema:
      properties:
        imported:
          items:
            $ref: '#/components/schemas/MediaUploadResponseSchema'
          type: array
          title: Imported
        skipped:
          items:
            $ref: '#/components/schemas/ImportSkippedSchema'
          type: array
          title: Skipped
        failed:
          items:
            $ref: '#/components/schemas/ImportFailedSchema'
          type: array
          title: Failed
      type: object
      required:
        - imported
        - skipped
        - failed
      title: FreepikBatchImportResponseSchema
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    MediaUploadResponseSchema:
      properties:
        id:
          type: integer
          title: Id
        filename:
          type: string
          title: Filename
        url:
          type: string
          title: Url
        file_size:
          type: integer
          title: File Size
        mime_type:
          type: string
          title: Mime Type
        width:
          anyOf:
            - type: integer
            - type: 'null'
          title: Width
        height:
          anyOf:
            - type: integer
            - type: 'null'
          title: Height
        source_type:
          $ref: '#/components/schemas/MediaSourceType'
        external_id:
          anyOf:
            - type: string
            - type: 'null'
          title: External Id
        external_metadata:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: External Metadata
        tags:
          items:
            type: string
          type: array
          title: Tags
        alt_text:
          anyOf:
            - type: string
            - type: 'null'
          title: Alt Text
        date_added:
          type: string
          format: date-time
          title: Date Added
        date_updated:
          type: string
          format: date-time
          title: Date Updated
      type: object
      required:
        - id
        - filename
        - url
        - file_size
        - mime_type
        - source_type
        - date_added
        - date_updated
      title: MediaUploadResponseSchema
    ImportSkippedSchema:
      properties:
        asset_id:
          type: string
          title: Asset Id
        reason:
          type: string
          title: Reason
      type: object
      required:
        - asset_id
        - reason
      title: ImportSkippedSchema
    ImportFailedSchema:
      properties:
        asset_id:
          type: string
          title: Asset Id
        error:
          type: string
          title: Error
      type: object
      required:
        - asset_id
        - error
      title: ImportFailedSchema
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    MediaSourceType:
      type: string
      enum:
        - upload
        - stock
        - ai_generated
      title: MediaSourceType
  securitySchemes:
    OAuth2PasswordBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: api/v1/users/authorization/token

````