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

# Upload asset

> Get sign_url and asset_url using filename, content_type and file_size in bytes (up to 512 MiB by default). PUT the bytes with matching Content-Type and Content-Length. The URL expires after 10 minutes.

MCP tool: `podcast_upload_asset`. OAuth scope: `asset.write`.


## OpenAPI

````yaml api-reference/openapi.json POST /open/podcast/v1/upload/asset
openapi: 3.0.3
info:
  description: >-
    Atomic Podcast capabilities. Credits, tasks and assets are shared with the
    Web account and Space.
  title: Podcastor API
  version: 1.0.0
servers:
  - url: https://api-services.podcastor.ai
    description: Podcastor API
security: []
paths:
  /open/podcast/v1/upload/asset:
    post:
      tags:
        - Podcast
      summary: upload asset
      description: >-
        Get sign_url and asset_url using filename, content_type and file_size in
        bytes (up to 512 MiB by default). PUT the bytes with matching
        Content-Type and Content-Length. The URL expires after 10 minutes.
      operationId: podcast_upload_asset
      parameters:
        - description: Replay a completed identical request without repeating side effects.
          in: header
          name: Idempotency-Key
          schema:
            maxLength: 128
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/dto.PodcastUploadAssetReq'
        description: Filename, Content-Type and exact file size in bytes
        required: true
        x-originalParamName: req
      responses:
        '200':
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/echo.JSON'
                  - properties:
                      data:
                        $ref: '#/components/schemas/openapiv2.UploadAssetResponse'
                    type: object
          description: OK
        '429':
          content:
            application/json:
              schema:
                properties:
                  code:
                    type: integer
                  msg:
                    type: string
                  retry_after:
                    minimum: 1
                    type: integer
                required:
                  - code
                  - msg
                  - retry_after
                type: object
          description: >-
            Shared user and Space rate limit exceeded. Retry after the indicated
            number of seconds.
          headers:
            Retry-After:
              description: Seconds until the request can be retried.
              schema:
                type: integer
        '503':
          description: Rate limiter unavailable; the business operation was not executed.
      security:
        - ApiKey: []
components:
  schemas:
    dto.PodcastUploadAssetReq:
      properties:
        content_type:
          description: MIME type, also required on the signed PUT request.
          type: string
        file_size:
          description: >-
            Exact size in bytes; defaults to a 512 MiB server limit. Send the
            same Content-Length on PUT.
          type: integer
        filename:
          description: File name, including its extension.
          type: string
      required:
        - content_type
        - file_size
        - filename
      type: object
    echo.JSON:
      properties:
        cause:
          type: string
        code:
          type: integer
        data: {}
        details: {}
        msg:
          type: string
        rid:
          type: string
      type: object
    openapiv2.UploadAssetResponse:
      properties:
        asset_url:
          type: string
        sign_url:
          type: string
      type: object
  securitySchemes:
    ApiKey:
      in: header
      name: X-Api-Key
      type: apiKey

````