Agent C Asc Studio API

The asc-studio API from Agent C — 13 operation(s) for asc-studio.

GitHub OpenAPI

Operations 13

POST /v1/apps/{listing_id}/studio/scene Studio Scene #
POST /v1/apps/{listing_id}/studio/sprite Studio Sprite #
POST /v1/apps/{listing_id}/studio/direct Studio Direct #
GET /v1/apps/{listing_id}/studio/asset Studio Asset #
POST /v1/apps/{listing_id}/studio/photo Studio Photo #
GET /v1/studio/offer Studio Offer #
POST /v1/studio/offer/start Studio Offer Start #
GET /v1/apps/{listing_id}/studio/access Studio Access #
POST /v1/apps/{listing_id}/studio/unlock Studio Unlock #
POST /v1/apps/{listing_id}/studio/charge-export Studio Charge Export #
POST /v1/apps/{listing_id}/studio/resign Studio Resign #
POST /v1/apps/{listing_id}/studio/sets Studio Save Set #
GET /v1/apps/{listing_id}/studio/agent-sets/{set_key} Studio Agent Set #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/theagentc-io:theagentc-io-asc-studio-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

theagentc-io-asc-studio-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Agent C Asc Studio API
  description: AI COO platform — Jarvis Jr. manages your social media content.
  version: 0.1.0
tags:
- name: asc-studio
paths:
  /v1/apps/{listing_id}/studio/scene:
    post:
      tags:
      - asc-studio
      summary: Studio Scene
      description: 'AI themed-background scene for the Studio''s Backdrop > AI scene tab

        (SPEC §3.4.4). Generates ONE low-res preview-quality image (capped at

        studio_gen.SCENE_MAX_W, matching creative_preview''s preview-panorama

        cap), blends the active theme''s hexes into the prompt, and caches by

        content hash under studio-scenes/{workspace_id}/ — a repeat call with the

        identical (prompt, w, h, theme) never re-pays for generation.


        Not credit-gated (composing is free; export is where credits get

        charged, see studio_charge_export) — bounded only by a dedicated fal

        sub-limiter (studio_gen.FAL_STUDIO_RATE_LIMIT_PER_MIN/_DAY) shared with

        the sprite endpoint below.'
      operationId: studio_scene_v1_apps__listing_id__studio_scene_post
      security:
      - HTTPBearer: []
      parameters:
      - name: listing_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Listing Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StudioSceneRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StudioSceneResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/apps/{listing_id}/studio/sprite:
    post:
      tags:
      - asc-studio
      summary: Studio Sprite
      description: 'AI sprite/character for the Studio''s Sprites tab (SPEC §3.5). Requests

        a plain background the client can key/composite freely, caches by

        content hash under studio-sprites/{workspace_id}/. Not credit-gated —

        same dedicated fal sub-limiter as studio_scene.'
      operationId: studio_sprite_v1_apps__listing_id__studio_sprite_post
      security:
      - HTTPBearer: []
      parameters:
      - name: listing_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Listing Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StudioSpriteRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StudioSpriteResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/apps/{listing_id}/studio/direct:
    post:
      tags:
      - asc-studio
      summary: Studio Direct
      description: 'Auto-Direct: read the app''s raw screens + store metadata in ONE vision

        call and return an art-directed plan (order, claim headlines with an

        accent span, specific sublines, pop-out regions, palette, font, trust

        chips) that the client turns into ordinary editable Studio elements.


        Free like every other compose action (export is where credits are

        charged), bounded by its own per-workspace limiter. SECURITY: the server

        only fetches URLs that resolve to this listing''s own uploaded screenshots

        (matched by GCS object key), so it can''t be pointed at arbitrary hosts or

        another workspace''s files.'
      operationId: studio_direct_v1_apps__listing_id__studio_direct_post
      security:
      - HTTPBearer: []
      parameters:
      - name: listing_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Listing Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StudioDirectRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StudioDirectResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/apps/{listing_id}/studio/asset:
    get:
      tags:
      - asc-studio
      summary: Studio Asset
      description: 'Serve one of this workspace''s Studio images through the API so the

        export canvas can read its pixels. The browser can''t: the assets bucket

        sends no CORS headers, and a cross-origin image taints the canvas. The

        API already has CORS for the dashboard.


        SECURITY: only this listing''s uploaded screenshots and this workspace''s

        own studio-scenes|studio-sprites|studio-sets objects. Anything else 404s,

        so it can''t be used to read another workspace''s files.'
      operationId: studio_asset_v1_apps__listing_id__studio_asset_get
      security:
      - HTTPBearer: []
      parameters:
      - name: listing_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Listing Id
      - name: u
        in: query
        required: true
        schema:
          type: string
          title: U
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/apps/{listing_id}/studio/photo:
    post:
      tags:
      - asc-studio
      summary: Studio Photo
      description: 'Auto-Direct lifestyle hero photo. Optionally crops the app''s mascot

        from one of the listing''s own screenshots and passes it as a reference so

        the character appears in the photo. Free; shares the studio fal limiter.'
      operationId: studio_photo_v1_apps__listing_id__studio_photo_post
      security:
      - HTTPBearer: []
      parameters:
      - name: listing_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Listing Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StudioPhotoRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StudioPhotoResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/studio/offer:
    get:
      tags:
      - asc-studio
      summary: Studio Offer
      description: 'This workspace''s first-set offer: {state, expires_at?, price_cents, regular_cents}.'
      operationId: studio_offer_v1_studio_offer_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                title: Response Studio Offer V1 Studio Offer Get
      security:
      - HTTPBearer: []
  /v1/studio/offer/start:
    post:
      tags:
      - asc-studio
      summary: Studio Offer Start
      description: 'Start the 10-minute clock (idempotent while it''s running). 409 once the

        offer is expired, redeemed, or the workspace is ineligible.'
      operationId: studio_offer_start_v1_studio_offer_start_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OfferStartRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                title: Response Studio Offer Start V1 Studio Offer Start Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /v1/apps/{listing_id}/studio/access:
    get:
      tags:
      - asc-studio
      summary: Studio Access
      description: 'What this workspace may do with a set: Studio (everything), this set

        unlocked (clean download + Quick Edit), and free unlocks remaining.'
      operationId: studio_access_v1_apps__listing_id__studio_access_get
      security:
      - HTTPBearer: []
      parameters:
      - name: listing_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Listing Id
      - name: set_key
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Set Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StudioAccessResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/apps/{listing_id}/studio/unlock:
    post:
      tags:
      - asc-studio
      summary: Studio Unlock
      description: 'Unlock one set for clean download. Order: Studio (nothing to do) →

        already unlocked → a free unlock (consumed atomically) → $9.99 Stripe

        Checkout, whose webhook records the unlock (billing.handle_set_unlock_completed).

        With offer=true the Checkout is the one-time $4.99 first-set offer — 409

        unless that offer is active right now.'
      operationId: studio_unlock_v1_apps__listing_id__studio_unlock_post
      security:
      - HTTPBearer: []
      parameters:
      - name: listing_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Listing Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StudioUnlockRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StudioUnlockResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/apps/{listing_id}/studio/charge-export:
    post:
      tags:
      - asc-studio
      summary: Studio Charge Export
      description: 'The export gate (pay-per-set model, 2026-10-03): clean PNGs are allowed

        when the workspace is on Studio or this set is unlocked. Nothing is

        charged here any more — the $9.99 unlock or the subscription already paid.

        402 {needs: ''unlock''} otherwise, which the client turns into the unlock

        dialog.'
      operationId: studio_charge_export_v1_apps__listing_id__studio_charge_export_post
      security:
      - HTTPBearer: []
      parameters:
      - name: listing_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Listing Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StudioChargeExportRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StudioChargeExportResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/apps/{listing_id}/studio/resign:
    post:
      tags:
      - asc-studio
      summary: Studio Resign
      description: 'Re-sign expired Studio asset URLs (AI scenes, sprites, archived set

        slides). Returns a {old_url: fresh_url} map; unknown or foreign URLs are

        silently omitted rather than erroring, so a partial refresh still helps.


        GCS v4 signed URLs cap at 7 days and the Studio persists them in

        localStorage forever — without this, generated backdrops and sprites go

        permanently broken a week after creation (uploaded screenshots are covered

        separately: get_app/list_apps re-sign uploaded_screenshots on every read).


        SECURITY: only re-signs objects under this workspace''s own prefixes

        (studio-scenes|studio-sprites|studio-sets/{workspace_id}/…), so a caller

        can never mint a URL for another workspace''s assets.'
      operationId: studio_resign_v1_apps__listing_id__studio_resign_post
      security:
      - HTTPBearer: []
      parameters:
      - name: listing_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Listing Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StudioResignRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/apps/{listing_id}/studio/sets:
    post:
      tags:
      - asc-studio
      summary: Studio Save Set
      description: 'Persist a just-exported Studio set so it shows in the dashboard gallery.


        Called by the client AFTER charge-export + local downloads succeed — this

        endpoint is free (the export already paid) and non-critical: a failure

        here never claws back a successful export, the set just isn''t archived.


        Creates CreativeBatch(kind=''studio_set'', status=''completed'') + one ready

        CreativeAsset(kind=''screenshot'') per slide, uploaded to GCS under

        studio-sets/{workspace}/{batch}/ — the existing per-app gallery endpoint

        (apps.py list_app_assets) then returns them with zero query changes.

        Each slide also gets the engine''s small webp thumbnail (meta[''thumb_path''])

        so gallery tiles + Home covers fetch ~30KB, not the multi-MB PNG.'
      operationId: studio_save_set_v1_apps__listing_id__studio_sets_post
      security:
      - HTTPBearer: []
      parameters:
      - name: listing_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Listing Id
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Body_studio_save_set_v1_apps__listing_id__studio_sets_post'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/apps/{listing_id}/studio/agent-sets/{set_key}:
    get:
      tags:
      - asc-studio
      summary: Studio Agent Set
      description: 'Open a set an agent designed (MCP) in the studio: the plan plus fresh

        URLs for its screenshots and photo, so the client composes it exactly

        like one of its own Auto-Direct sets.'
      operationId: studio_agent_set_v1_apps__listing_id__studio_agent_sets__set_key__get
      security:
      - HTTPBearer: []
      parameters:
      - name: listing_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Listing Id
      - name: set_key
        in: path
        required: true
        schema:
          type: string
          title: Set Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    StudioThemeHex:
      properties:
        bg:
          anyOf:
          - type: string
            maxLength: 9
          - type: 'null'
          title: Bg
        accent:
          anyOf:
          - type: string
            maxLength: 9
          - type: 'null'
          title: Accent
        accent2:
          anyOf:
          - type: string
            maxLength: 9
          - type: 'null'
          title: Accent2
      type: object
      title: StudioThemeHex
      description: 'A subset of the Studio''s Theme palette (src/lib/studio/types.ts) — just

        the hexes worth blending into an AI scene prompt so a generated

        background harmonizes with the active palette (SPEC §3.4.4).'
    OfferStartRequest:
      properties:
        trigger:
          type: string
          pattern: ^(declined|idle|returning)$
          title: Trigger
      type: object
      required:
      - trigger
      title: OfferStartRequest
    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
    StudioPhotoResponse:
      properties:
        url:
          type: string
          title: Url
        cached:
          type: boolean
          title: Cached
      type: object
      required:
      - url
      - cached
      title: StudioPhotoResponse
    StudioDirectResponse:
      properties:
        project_name:
          type: string
          title: Project Name
        font:
          type: string
          title: Font
        palette:
          $ref: '#/components/schemas/StudioDirectPalette'
        slides:
          items:
            $ref: '#/components/schemas/StudioDirectSlide'
          type: array
          title: Slides
        chips:
          items:
            type: string
          type: array
          title: Chips
        rating:
          anyOf:
          - type: object
          - type: 'null'
          title: Rating
        hero:
          $ref: '#/components/schemas/StudioDirectHero'
        accent_style:
          type: string
          title: Accent Style
          default: color
        header:
          anyOf:
          - type: object
          - type: 'null'
          title: Header
      type: object
      required:
      - project_name
      - font
      - palette
      - slides
      - chips
      - hero
      title: StudioDirectResponse
    StudioDirectRequest:
      properties:
        screens:
          items:
            type: string
          type: array
          maxItems: 10
          minItems: 1
          title: Screens
        focus:
          anyOf:
          - type: string
            maxLength: 300
          - type: 'null'
          title: Focus
        avoid:
          anyOf:
          - items:
              type: string
            type: array
            maxItems: 12
          - type: 'null'
          title: Avoid
        hero:
          anyOf:
          - type: string
            enum:
            - hand
            - icon
            - lifestyle
            - phone
          - type: 'null'
          title: Hero
      type: object
      required:
      - screens
      title: StudioDirectRequest
      description: 'POST /v1/apps/{listing_id}/studio/direct — Auto-Direct. `screens` are

        the Studio''s screen-asset URLs in library order (the plan''s slide.screen

        indexes into this list). Only this listing''s own uploaded screenshots are

        accepted; anything else is ignored server-side.'
    StudioChargeExportResponse:
      properties:
        charged:
          type: integer
          title: Charged
        new_balance:
          type: integer
          title: New Balance
      type: object
      required:
      - charged
      - new_balance
      title: StudioChargeExportResponse
    StudioSpriteRequest:
      properties:
        prompt:
          type: string
          maxLength: 400
          minLength: 1
          title: Prompt
      type: object
      required:
      - prompt
      title: StudioSpriteRequest
      description: 'POST /v1/apps/{listing_id}/studio/sprite — SPEC §3.5''s ''Generate

        sprite'' hook (window.ASCStudio.registerSpriteGenerator). Not credit-gated.'
    StudioUnlockResponse:
      properties:
        unlocked:
          type: boolean
          title: Unlocked
        used_free:
          type: boolean
          title: Used Free
          default: false
        checkout_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Checkout Url
      type: object
      required:
      - unlocked
      title: StudioUnlockResponse
    Body_studio_save_set_v1_apps__listing_id__studio_sets_post:
      properties:
        files:
          items:
            type: string
            format: binary
          type: array
          title: Files
        project_name:
          type: string
          title: Project Name
          default: Untitled set
        device_key:
          type: string
          title: Device Key
          default: '69'
        width:
          type: integer
          title: Width
          default: 0
        height:
          type: integer
          title: Height
          default: 0
      type: object
      required:
      - files
      title: Body_studio_save_set_v1_apps__listing_id__studio_sets_post
    StudioChargeExportRequest:
      properties:
        slots:
          type: integer
          maximum: 12.0
          minimum: 1.0
          title: Slots
        set_key:
          anyOf:
          - type: string
            maxLength: 64
          - type: 'null'
          title: Set Key
      type: object
      required:
      - slots
      title: StudioChargeExportRequest
      description: 'POST /v1/apps/{listing_id}/studio/charge-export — the export gate,

        called right before the client renders the clean PNGs. Pay-per-set model

        (2026-10-03): allowed when the workspace is on Studio or the set

        (set_key) is unlocked; otherwise 402 {needs: ''unlock''}. No credits.'
    StudioSpriteResponse:
      properties:
        url:
          type: string
          title: Url
        cached:
          type: boolean
          title: Cached
      type: object
      required:
      - url
      - cached
      title: StudioSpriteResponse
    StudioAccessResponse:
      properties:
        studio:
          type: boolean
          title: Studio
        unlocked:
          type: boolean
          title: Unlocked
        free_unlocks:
          type: integer
          title: Free Unlocks
      type: object
      required:
      - studio
      - unlocked
      - free_unlocks
      title: StudioAccessResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    StudioDirectHero:
      properties:
        type:
          type: string
          title: Type
        pills:
          items:
            type: string
          type: array
          title: Pills
          default: []
        scene:
          type: string
          title: Scene
          default: ''
        mascot:
          anyOf:
          - items:
              type: number
            type: array
          - type: 'null'
          title: Mascot
      type: object
      required:
      - type
      title: StudioDirectHero
    StudioDirectSticker:
      properties:
        text:
          type: string
          title: Text
        y:
          type: number
          title: Y
      type: object
      required:
      - text
      - y
      title: StudioDirectSticker
    StudioSceneResponse:
      properties:
        url:
          type: string
          title: Url
        cached:
          type: boolean
          title: Cached
      type: object
      required:
      - url
      - cached
      title: StudioSceneResponse
    StudioUnlockRequest:
      properties:
        set_key:
          type: string
          maxLength: 64
          minLength: 8
          title: Set Key
        offer:
          type: boolean
          title: Offer
          default: false
      type: object
      required:
      - set_key
      title: StudioUnlockRequest
      description: 'POST /v1/apps/{listing_id}/studio/unlock — unlock one set for clean

        download: free if on Studio or a free unlock remains, else a Stripe

        Checkout ($9.99) URL.'
    StudioDirectPalette:
      properties:
        bg:
          type: string
          title: Bg
        surface:
          type: string
          title: Surface
        ink:
          type: string
          title: Ink
        accent:
          type: string
          title: Accent
        accent2:
          type: string
          title: Accent2
        highlight:
          anyOf:
          - type: string
          - type: 'null'
          title: Highlight
      type: object
      required:
      - bg
      - surface
      - ink
      - accent
      - accent2
      title: StudioDirectPalette
    StudioDirectSlide:
      properties:
        screen:
          type: integer
          title: Screen
        headline:
          type: string
          title: Headline
        subline:
          type: string
          title: Subline
        popouts:
          items:
            items:
              type: number
            type: array
          type: array
          title: Popouts
        layout:
          type: string
          title: Layout
          default: standard
        stickers:
          items:
            $ref: '#/components/schemas/StudioDirectSticker'
          type: array
          title: Stickers
          default: []
      type: object
      required:
      - screen
      - headline
      - subline
      - popouts
      title: StudioDirectSlide
    StudioSceneRequest:
      properties:
        prompt:
          type: string
          maxLength: 600
          minLength: 1
          title: Prompt
        width:
          type: integer
          maximum: 4096.0
          minimum: 64.0
          title: Width
        height:
          type: integer
          maximum: 4096.0
          minimum: 64.0
          title: Height
        theme:
          anyOf:
          - $ref: '#/components/schemas/StudioThemeHex'
          - type: 'null'
      type: object
      required:
      - prompt
      - width
      - height
      title: StudioSceneRequest
      description: 'POST /v1/apps/{listing_id}/studio/scene — SPEC §3.4.4''s ''Paint scene''

        hook (window.ASCStudio.registerSceneGenerator). Generates ONE low-res

        preview-quality background at up to studio_gen.SCENE_MAX_W, cached by

        content hash under studio-scenes/{workspace_id}/. Not credit-gated —

        composing is free; only export charges credits (see StudioChargeExportRequest).'
    StudioResignRequest:
      properties:
        urls:
          items:
            type: string
          type: array
          maxItems: 80
          minItems: 1
          title: Urls
      type: object
      required:
      - urls
      title: StudioResignRequest
      description: 'POST /v1/apps/{listing_id}/studio/resign — swap expired studio asset

        URLs for freshly-signed ones. GCS v4 signed URLs are capped at 7 days, but

        the Studio persists asset/background URLs in localStorage indefinitely, so

        AI scenes + sprites rot after a week with no recovery path.'
    StudioPhotoRequest:
      properties:
        scene:
          type: string
          maxLength: 400
          minLength: 3
          title: Scene
        mascot_screen:
          anyOf:
          - type: string
          - type: 'null'
          title: Mascot Screen
        mascot_box:
          anyOf:
          - items:
              type: number
            type: array
            maxItems: 4
            minItems: 4
          - type: 'null'
          title: Mascot Box
        wide:
          type: boolean
          title: Wide
          default: false
      type: object
      required:
      - scene
      title: StudioPhotoRequest
      description: 'POST /v1/apps/{listing_id}/studio/photo — Auto-Direct lifestyle hero.

        `mascot` optionally names one of the listing''s own uploaded screenshots +

        a box to crop a character from, so it can appear in the photo.'
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer