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

# Upload Media

> Generate a signed URL for file upload. Use the `sign_url` obtained here to upload your file.



## OpenAPI

````yaml POST /upload/asset
openapi: 3.0.1
info:
  title: OpenAPI Render API
  description: A sample API that demonstrates features in the OpenAPI specification
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.jogg.ai/v1
security:
  - apiKeyAuth: []
tags:
  - name: Create Video from URL
    description: |-



      Product video generation workflow:



        1. First call POST /product to crawl product information



        2. Optionally call PUT /product to modify product details using the product_id from step 1



        3. Finally call POST /create_video_from_url to generate video using the product_id from step 1
  - name: Webhook
    description: Webhook configuration and management
paths:
  /upload/asset:
    post:
      tags:
        - Upload File
      summary: Get Signed URL
      description: >-
        Generate a signed URL for file upload. Use the `sign_url` obtained here
        to upload your file.
      requestBody:
        description: Data required for file upload
        content:
          application/json:
            schema:
              type: object
              properties:
                filename:
                  type: string
                  example: 1.jpg
              required:
                - filename
        required: true
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/BaseResponse'
                  - type: object
                    properties:
                      data:
                        type: object
                        properties:
                          sign_url:
                            type: string
                            description: >-
                              Use the sign_url to upload your file with a PUT
                              request, including the file data in the request
                              body. This is a direct upload to the signed URL.
                          asset_id:
                            type: string
                            description: URL after file upload
components:
  schemas:
    BaseResponse:
      type: object
      required:
        - code
        - msg
      properties:
        code:
          type: integer
          description: |



            Business status code:



            * 0 - Success



            * 10104 - Record not found



            * 10105 - Invalid API key



            * 18020 - Insufficient credit



            * 18025 - No permission to call APIs.



            * 40000 - Parameter error



            * 50000 - System error
        msg:
          type: string
          description: Response message
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````

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