> ## 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.

# Add background

> Register an uploaded Podcast background in the shared Web library.

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


## OpenAPI

````yaml api-reference/openapi.json POST /open/podcast/v1/backgrounds
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/backgrounds:
    post:
      tags:
        - Podcast
      summary: add background
      description: Register an uploaded Podcast background in the shared Web library.
      operationId: podcast_add_background
      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.AddUserPodcastBackgroundReq'
        description: 请求体
        required: true
        x-originalParamName: req
      responses:
        '200':
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/echo.JSON'
                  - properties:
                      data:
                        $ref: '#/components/schemas/vo.UserPodcastBackgroundItem'
                    type: object
          description: OK
      security:
        - ApiKey: []
components:
  schemas:
    dto.AddUserPodcastBackgroundReq:
      properties:
        aspect_ratio:
          description: 指针字段确保 aspect_ratio=0、typ=0 不会被 binding 的 required 误判为空值。
          enum:
            - 0
            - 1
          type: integer
        avatar_type:
          description: 数字人类型：default/cartoon/pet
          enum:
            - default
            - cartoon
            - pet
          type: string
        origin_url:
          description: user_id、space_id、真实宽高及时间字段均由服务端生成，禁止通过请求体透传。
          maxLength: 512
          type: string
        preview_url:
          description: 可选预览图 URL，为空时使用原图
          maxLength: 512
          type: string
        typ:
          description: 背景类型：0=Speaker Focus，2=Alternating shots
          enum:
            - 0
            - 2
          type: integer
      required:
        - aspect_ratio
        - avatar_type
        - origin_url
        - typ
      type: object
    echo.JSON:
      properties:
        cause:
          type: string
        code:
          type: integer
        data: {}
        details: {}
        msg:
          type: string
        rid:
          type: string
      type: object
    vo.UserPodcastBackgroundItem:
      properties:
        aspect_ratio:
          description: 宽高比：0=9:16，1=16:9
          type: integer
        avatar_type:
          description: 数字人类型
          type: string
        height:
          description: 图片高度
          type: integer
        id:
          description: 用户背景记录 ID
          type: integer
        is_show:
          description: 固定为 1
          type: integer
        label:
          description: 用户背景不参与主题匹配，固定为空
          type: string
        origin_url:
          description: 背景原图 URL
          type: string
        preview_url:
          description: 背景预览图 URL
          type: string
        source:
          description: 固定为 user_upload
          type: string
        typ:
          description: 背景类型：0=Speaker Focus，2=Alternating shots
          type: integer
        width:
          description: 图片宽度
          type: integer
      type: object
  securitySchemes:
    ApiKey:
      in: header
      name: X-Api-Key
      type: apiKey

````