ClipOnIt Clips API

Edit state per orientation (layout, keyframes, cuts, subtitles, B-roll, music, emojis), transcript, exports.

GitHub OpenAPI

Operations 12

POST /api/videos/{id}/export-all Render every clip of a video (one export per clip) #
GET /api/clips/{id} Clip, its video and the edit state for an orientation #
PATCH /api/clips/{id} Move the clip bounds (start_s / end_s) #
DELETE /api/clips/{id} Delete a clip (edits, exports, files); running exports are canceled #
PUT /api/clips/{id}/edit Patch the edit state for an orientation #
POST /api/clips/{id}/export Render the clip (MP4) with its current edit #
GET /api/exports/{id} Export status, progress, eta_s and download URL #
DELETE /api/exports/{id} Cancel a queued or running export #
GET /api/exports/{id}/frame One JPEG frame of a finished export #
GET /api/clips/{id}/transcript Transcript segments overlapping the clip #
GET /api/clips/{id}/filmstrip Dense thumbnail sheet of the clip (~160 frames) #
GET /api/clips/{id}/premiere.xml Premiere Pro / FCP7 XMEML sequence of the clip #

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/cliponit-app:cliponit-app-clips-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

cliponit-app-clips-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cliponit App Clips API
  version: 1.0.0
  contact:
    name: ClipOnIt
    url: https://cliponit.app
  license:
    name: Proprietary
    url: https://cliponit.app
  description: 'Operations tagged clips across 2 of this provider''s published API definitions: cliponit-app-openapi.json, cliponit-app-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://cliponit.app
  description: Production
- url: http://localhost:3000
  description: Local dev (cargo run)
security:
- ApiKey: []
- SessionCookie: []
- OAuth2:
  - clips
tags:
- name: Clips
  description: Edit state per orientation (layout, keyframes, cuts, subtitles, B-roll, music, emojis), transcript, exports.
paths:
  /api/videos/{id}/export-all:
    parameters:
    - $ref: '#/components/parameters/VideoId'
    - $ref: '#/components/parameters/Orientation'
    post:
      tags:
      - Clips
      operationId: exportAllClips
      summary: Render every clip of a video (one export per clip)
      description: 'Same rules as `exportClip` for each clip, in chronological order; untouched clips get the account subtitle preset. Exports render one at a time: poll `getExport` on each id. 400 if the video has no clips yet.'
      responses:
        '200':
          description: Created exports
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExportBatch'
        '400':
          $ref: '#/components/responses/BadRequest'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
    servers:
    - url: https://cliponit.app
      description: Production
    - url: http://localhost:3000
      description: Local dev (cargo run)
  /api/clips/{id}:
    parameters:
    - $ref: '#/components/parameters/ClipId'
    get:
      tags:
      - Clips
      operationId: getClip
      summary: Clip, its video and the edit state for an orientation
      description: Creates the default edit for the orientation if missing (layout = orientation, one full-frame keyframe, subtitles = account preset). `updateClipEdit` is a partial patch, so reading first is optional.
      parameters:
      - $ref: '#/components/parameters/Orientation'
      responses:
        '200':
          description: Clip + video + edit
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClipDetail'
        '404':
          $ref: '#/components/responses/NotFound'
    patch:
      tags:
      - Clips
      operationId: updateClipBounds
      summary: Move the clip bounds (start_s / end_s)
      description: Absolute seconds within the video, duration ≥ 3 s. Keyframes are shifted, cuts/B-roll/emojis outside the new range are dropped, the clip filmstrip is invalidated.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                start_s:
                  type: number
                  minimum: 0
                end_s:
                  type: number
            example:
              start_s: 120.5
              end_s: 165
      responses:
        '200':
          description: Updated clip
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClipBase'
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          $ref: '#/components/responses/NotFound'
    delete:
      tags:
      - Clips
      operationId: deleteClip
      summary: Delete a clip (edits, exports, files); running exports are canceled
      responses:
        '200':
          $ref: '#/components/responses/Ok'
        '404':
          $ref: '#/components/responses/NotFound'
    servers:
    - url: https://cliponit.app
      description: Production
    - url: http://localhost:3000
      description: Local dev (cargo run)
  /api/clips/{id}/edit:
    put:
      tags:
      - Clips
      operationId: updateClipEdit
      summary: Patch the edit state for an orientation
      description: 'Partial update: only the given fields change (`subtitles` merged field by field, lists replaced, `music: null` = removed); the edit row is created with the account subtitle preset if missing. Plan gating (403): `subtitles.overrides` non-empty needs `edit_captions`; `subtitles.lang != "original"` needs `translate`; non-empty `broll`/`music` needs `broll_music`. Validation (400, the message names the field): zones inside 0..1, keyframe zone count must match the layout (vertical/spotlight/centered 1, split 2, trio 3, horizontal 0), cuts `end > start`, B-roll/emojis inside the clip bounds. Returns the full stored edit. B-roll id/path pairs must be registered for this clip and account, independently of the active edit list. Removed segments can be restored by Undo or another orientation. Client-supplied paths alone are not proof of ownership; render validates the same registry.'
      parameters:
      - $ref: '#/components/parameters/ClipId'
      - $ref: '#/components/parameters/Orientation'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EditInput'
      responses:
        '200':
          description: Stored edit
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Edit'
        '400':
          $ref: '#/components/responses/BadRequest'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
    servers:
    - url: https://cliponit.app
      description: Production
    - url: http://localhost:3000
      description: Local dev (cargo run)
  /api/clips/{id}/export:
    post:
      tags:
      - Clips
      operationId: exportClip
      summary: Render the clip (MP4) with its current edit
      description: 'The edit row is created with the account subtitle preset if the clip was never edited; the export carries `eta_s`. Enqueues a render job and returns the export with `status: queued`. Poll `getExport` every ~5 s until `done` (then `url`) or `failed` (`error`). A 60 s clip renders in ~30-90 s. 403 on the free plan for the demo video. Required subtitle/watermark filters missing from FFmpeg cause an explicit failed export. Overlapping cuts are merged when computing duration and progress. At most 512 retained audio ranges are allowed after merging cuts; a larger fragmented edit fails explicitly before FFmpeg starts. Export creation and render-job enqueue commit atomically.'
      parameters:
      - $ref: '#/components/parameters/ClipId'
      - $ref: '#/components/parameters/Orientation'
      responses:
        '200':
          description: Export (queued)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Export'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
    servers:
    - url: https://cliponit.app
      description: Production
    - url: http://localhost:3000
      description: Local dev (cargo run)
  /api/exports/{id}:
    get:
      tags:
      - Clips
      operationId: getExport
      summary: Export status, progress, eta_s and download URL
      parameters:
      - name: id
        in: path
        required: true
        description: Export id returned by `exportClip`
        schema:
          $ref: '#/components/schemas/Uuid'
      responses:
        '200':
          description: Export
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Export'
        '404':
          $ref: '#/components/responses/NotFound'
    delete:
      tags:
      - Clips
      operationId: cancelExport
      summary: Cancel a queued or running export
      description: 'Queued: removed from the render queue. Running: the ffmpeg process is killed within ~2 s and the partial file deleted. Either way the export stays readable with `status: canceled`. 400 if already done/failed/canceled. Cancellation committed before final render publication wins; retries and worker restart do not resurrect canceled exports. If completion commits first, the finished export remains available.'
      parameters:
      - name: id
        in: path
        required: true
        description: Export id returned by `exportClip`
        schema:
          $ref: '#/components/schemas/Uuid'
      responses:
        '200':
          description: Canceled export
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Export'
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          $ref: '#/components/responses/NotFound'
    servers:
    - url: https://cliponit.app
      description: Production
    - url: http://localhost:3000
      description: Local dev (cargo run)
  /api/exports/{id}/frame:
    get:
      tags:
      - Clips
      operationId: getExportFrame
      summary: One JPEG frame of a finished export
      description: Extracts the frame at `t` seconds from the start of the rendered clip (longest side 360 px) so an agent can check framing and subtitles. 400 if the export is not `done` or `t` is past the end.
      parameters:
      - name: id
        in: path
        required: true
        description: Export id returned by `exportClip`
        schema:
          $ref: '#/components/schemas/Uuid'
      - name: t
        in: query
        required: false
        description: Seconds from the start of the export
        schema:
          type: number
          minimum: 0
          default: 0
      responses:
        '200':
          description: JPEG
          content:
            image/jpeg:
              schema:
                type: string
                format: binary
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          $ref: '#/components/responses/NotFound'
    servers:
    - url: https://cliponit.app
      description: Production
    - url: http://localhost:3000
      description: Local dev (cargo run)
  /api/clips/{id}/transcript:
    get:
      tags:
      - Clips
      operationId: getClipTranscript
      summary: Transcript segments overlapping the clip
      description: Absolute source seconds. `words` carries word-level timings when available (used for karaoke subtitles).
      parameters:
      - $ref: '#/components/parameters/ClipId'
      responses:
        '200':
          description: Segments
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Segment'
        '404':
          $ref: '#/components/responses/NotFound'
    servers:
    - url: https://cliponit.app
      description: Production
    - url: http://localhost:3000
      description: Local dev (cargo run)
  /api/clips/{id}/filmstrip:
    get:
      tags:
      - Clips
      operationId: getClipFilmstrip
      summary: Dense thumbnail sheet of the clip (~160 frames)
      description: Frame n is at time `start_s + n * interval_s`. Cached per (clip, bounds).
      parameters:
      - $ref: '#/components/parameters/ClipId'
      responses:
        '200':
          description: Filmstrip
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/Filmstrip'
                - type: object
                  properties:
                    start_s:
                      type: number
                      description: Absolute time of frame 0
        '404':
          $ref: '#/components/responses/NotFound'
    servers:
    - url: https://cliponit.app
      description: Production
    - url: http://localhost:3000
      description: Local dev (cargo run)
  /api/clips/{id}/premiere.xml:
    get:
      tags:
      - Clips
      operationId: getPremiereXml
      summary: Premiere Pro / FCP7 XMEML sequence of the clip
      description: Source path plus in/out points (cuts become segments). Requires `premiere_xml` in the plan (Pro) → 403 otherwise.
      parameters:
      - $ref: '#/components/parameters/ClipId'
      - $ref: '#/components/parameters/Orientation'
      responses:
        '200':
          description: XML file
          content:
            application/xml:
              schema:
                type: string
        '403':
          $ref: '#/components/responses/Forbidden'
    servers:
    - url: https://cliponit.app
      description: Production
    - url: http://localhost:3000
      description: Local dev (cargo run)
components:
  schemas:
    Filmstrip:
      type: object
      required:
      - url
      - cols
      - rows
      - interval_s
      - frame_w
      - frame_h
      properties:
        url:
          type: string
          description: JPEG sheet under /files/thumbs/
        cols:
          type: integer
        rows:
          type: integer
        interval_s:
          type: number
          description: Seconds between two frames
        frame_w:
          type: integer
        frame_h:
          type: integer
    Broll:
      type: object
      required:
      - id
      - start
      - end
      - src
      - path
      description: Stock/uploaded footage replacing the picture between `start` and `end` (absolute seconds inside the clip); source audio is kept.
      properties:
        id:
          type: string
        start:
          type: number
        end:
          type: number
        src:
          type: string
          enum:
          - pexels
          - upload
        path:
          type: string
          description: Server path under data/broll/ (send back unchanged)
        preview_url:
          type:
          - string
          - 'null'
        query:
          type:
          - string
          - 'null'
    Uuid:
      type: string
      format: uuid
      example: 6f1c2d6e-3b1a-4c0f-9a0e-2f5d1c7b8e90
    ClipVideo:
      type: object
      description: Source video summary attached to a clip
      properties:
        id:
          $ref: '#/components/schemas/Uuid'
        title:
          type: string
        duration_s:
          type:
          - number
          - 'null'
        width:
          type:
          - integer
          - 'null'
        height:
          type:
          - integer
          - 'null'
        is_demo:
          type: integer
        language:
          type:
          - string
          - 'null'
          description: ISO code detected by the transcription (e.g. `fr`)
        url:
          type: string
    Layout:
      type: string
      enum:
      - vertical
      - horizontal
      - split
      - trio
      - spotlight
      - centered
      description: 'How source zones fill the output frame. `vertical`: 1 zone cropped to 9:16. `horizontal`: full frame (0 zones). `split`: 2 zones stacked (top, bottom). `trio`: 3 zones stacked. `spotlight`: 1 zone over a blurred full-frame background. `centered`: 1 square zone on a blue (#1e3a8a) background.'
    Music:
      type:
      - object
      - 'null'
      required:
      - music_id
      description: Background music from the user's library (`listMusic`), looped, faded, ducked under the voice.
      properties:
        music_id:
          $ref: '#/components/schemas/Uuid'
        volume:
          type: number
          minimum: 0
          maximum: 1
          default: 0.25
        ducking:
          type: boolean
          default: true
          description: Lower the music while someone speaks
        fade_s:
          type: number
          minimum: 0
          maximum: 10
          default: 1.5
          description: Fade in/out in seconds
    Word:
      type: object
      required:
      - start
      - end
      - word
      properties:
        start:
          type: number
        end:
          type: number
        word:
          type: string
    Zone:
      type: object
      required:
      - x
      - y
      - w
      - h
      description: Rectangle of the SOURCE frame, fractions 0..1 (x+w ≤ 1, y+h ≤ 1). Its aspect should match the cell it fills (9:16 for vertical, 9:8 per cell in split, 1:1 for centered).
      properties:
        x:
          type: number
          minimum: 0
          maximum: 1
        y:
          type: number
          minimum: 0
          maximum: 1
        w:
          type: number
          exclusiveMinimum: 0
          maximum: 1
        h:
          type: number
          exclusiveMinimum: 0
          maximum: 1
      example:
        x: 0.3
        y: 0
        w: 0.4
        h: 1
    SubtitlesPatch:
      type: object
      description: 'Partial subtitles patch: every field optional, merged field by field over the current values (or over the built-in defaults for the account preset). Same enums as `Subtitles`.'
      properties:
        enabled:
          type: boolean
        color:
          type: string
          enum:
          - yellow
          - white
          - green
          - cyan
          - pink
          - orange
          - rainbow
        case:
          type: string
          enum:
          - normal
          - upper
          - lower
        lang:
          type: string
        overrides:
          type: array
          items:
            $ref: '#/components/schemas/SubtitleOverride'
        style:
          type: string
          enum:
          - karaoke
          - boxed
          - outline
          - glow
          - minimal
        font:
          type: string
          enum:
          - Inter
          - Montserrat
          - Bangers
          - Poppins
          - Arial
        position:
          type: string
          enum:
          - bottom
          - middle
          - top
        size:
          type: integer
          enum:
          - 1
          - 2
          - 3
        words_per_line:
          type: integer
          minimum: 3
          maximum: 8
        animate:
          type: boolean
        hook:
          $ref: '#/components/schemas/Hook'
    Orientation:
      type: string
      enum:
      - vertical
      - horizontal
      - square
      - portrait45
      default: vertical
      description: vertical = 9:16 1080x1920 (TikTok/Reels/Shorts), horizontal = 16:9 1920x1080 (YouTube), square = 1:1 1080x1080 (feed), portrait45 = 4:5 1080x1350 (Instagram feed). auto-reframe supports vertical|horizontal only.
    Segment:
      type: object
      required:
      - start
      - end
      - text
      description: Transcript segment, absolute source seconds
      properties:
        start:
          type: number
        end:
          type: number
        text:
          type: string
        words:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/Word'
    Export:
      type: object
      required:
      - id
      - clip_id
      - orientation
      - status
      - progress
      - created_at
      properties:
        id:
          $ref: '#/components/schemas/Uuid'
        clip_id:
          $ref: '#/components/schemas/Uuid'
        user_id:
          $ref: '#/components/schemas/Uuid'
        orientation:
          $ref: '#/components/schemas/Orientation'
        status:
          type: string
          enum:
          - queued
          - running
          - done
          - failed
          - canceled
        progress:
          type: integer
          minimum: 0
          maximum: 100
          description: Render progress in %
        eta_s:
          type:
          - number
          - 'null'
          description: 'Estimated seconds left while `queued`/`running`: moving-average render ratio of the last 10 finished exports × (remaining clip seconds + clips ahead in the queue); null otherwise'
        started_at:
          type:
          - string
          - 'null'
        finished_at:
          type:
          - string
          - 'null'
        url:
          type:
          - string
          - 'null'
          description: '`/files/exports/<id>.mp4` once `done` (relative to the server base URL)'
        output_path:
          type:
          - string
          - 'null'
        error:
          type:
          - string
          - 'null'
        created_at:
          type: string
    Hook:
      type: object
      description: Title card burned at the top of the frame during the first `duration_s` seconds.
      properties:
        enabled:
          type: boolean
          default: false
        text:
          type:
          - string
          - 'null'
          maxLength: 120
          description: null = the clip title
        duration_s:
          type: number
          minimum: 0.5
          maximum: 10
          default: 2.5
        style:
          type: string
          enum:
          - card
          - plain
          default: card
    Emoji:
      type: object
      required:
      - start
      - end
      - emoji
      description: Twemoji overlay. `start`/`end` absolute seconds inside the clip; `x`/`y` = centre as fractions 0..1 of the OUTPUT frame.
      properties:
        start:
          type: number
        end:
          type: number
        emoji:
          type: string
          minLength: 1
          maxLength: 2
          example: 🔥
        x:
          type: number
          minimum: 0
          maximum: 1
          default: 0.5
        y:
          type: number
          minimum: 0
          maximum: 1
          default: 0.58
          description: 0.58 = just above the subtitles
        size:
          type: integer
          enum:
          - 1
          - 2
          - 3
          default: 2
          description: 10/14/18 % of the output width
    ExportBatch:
      type: object
      required:
      - exports
      properties:
        exports:
          type: array
          items:
            type: object
            required:
            - clip_id
            - export_id
            properties:
              clip_id:
                $ref: '#/components/schemas/Uuid'
              export_id:
                $ref: '#/components/schemas/Uuid'
    Cut:
      type: object
      required:
      - start
      - end
      description: Range removed from the clip, absolute source seconds (end > start)
      properties:
        start:
          type: number
        end:
          type: number
    ClipBase:
      type: object
      required:
      - id
      - video_id
      - position
      - title
      - start_s
      - end_s
      - created_at
      properties:
        id:
          $ref: '#/components/schemas/Uuid'
        video_id:
          $ref: '#/components/schemas/Uuid'
        position:
          type: integer
          description: Chronological order
        title:
          type: string
        start_s:
          type: number
          description: Absolute start in the source video (seconds)
        end_s:
          type: number
          description: Absolute end (seconds)
        created_at:
          type: string
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: string
          description: Human-readable message (French or English)
    Keyframe:
      type: object
      required:
      - t
      - layout
      - zones
      description: Framing from time `t` (seconds **relative to the clip start**, before cuts) until the next keyframe. The first keyframe should be at t = 0. The number of zones must match the layout (vertical/spotlight/centered 1, split 2, trio 3, horizontal 0).
      properties:
        t:
          type: number
          minimum: 0
        layout:
          $ref: '#/components/schemas/Layout'
        zones:
          type: array
          items:
            $ref: '#/components/schemas/Zone'
        ease:
          type: string
          enum:
          - cut
          - smooth
          - ''
          default: cut
          description: '`cut` = hard switch; `smooth` = zones glide from the previous keyframe over the 0.6 s before `t` (same layout only)'
      example:
        t: 0
        layout: vertical
        zones:
        - x: 0.3
          y: 0
          w: 0.4
          h: 1
        ease: cut
    EditInput:
      type: object
      description: 'Body of `updateClipEdit`: a PATCH-like merge. Every field optional (absent = unchanged); `subtitles` is merged field by field; `keyframes`/`cuts`/`broll`/`emojis` replace their list; `music: null` removes it.'
      properties:
        layout:
          $ref: '#/components/schemas/Layout'
        keyframes:
          type: array
          items:
            $ref: '#/components/schemas/Keyframe'
        cuts:
          type: array
          items:
            $ref: '#/components/schemas/Cut'
        subtitles:
          $ref: '#/components/schemas/SubtitlesPatch'
        broll:
          type: array
          items:
            $ref: '#/components/schemas/Broll'
        music:
          $ref: '#/components/schemas/Music'
        emojis:
          type: array
          items:
            $ref: '#/components/schemas/Emoji'
      example:
        subtitles:
          style: boxed
          color: yellow
        cuts:
        - start: 130.2
          end: 131.0
    Edit:
      type: object
      required:
      - layout
      - keyframes
      - cuts
      - subtitles
      - broll
      - music
      - emojis
      description: Complete edit state of a clip for one orientation, as returned by `getClip` / `updateClipEdit`.
      properties:
        layout:
          $ref: '#/components/schemas/Layout'
        keyframes:
          type: array
          items:
            $ref: '#/components/schemas/Keyframe'
        cuts:
          type: array
          items:
            $ref: '#/components/schemas/Cut'
        subtitles:
          $ref: '#/components/schemas/Subtitles'
        broll:
          type: array
          items:
            $ref: '#/components/schemas/Broll'
        music:
          $ref: '#/components/schemas/Music'
        emojis:
          type: array
          items:
            $ref: '#/components/schemas/Emoji'
    SubtitleOverride:
      type: object
      required:
      - start
      - end
      - text
      description: Replaces the transcript text for a range (absolute seconds). Requires `edit_captions`.
      properties:
        start:
          type: number
        end:
          type: number
        text:
          type: string
    Subtitles:
      type: object
      required:
      - enabled
      - color
      - case
      - lang
      description: Burned-in subtitles. All fields except the required ones have defaults and are always returned by `getClip`.
      properties:
        enabled:
          type: boolean
        color:
          type: string
          enum:
          - yellow
          - white
          - green
          - cyan
          - pink
          - orange
          - rainbow
          description: Accent colour (current word in karaoke, text otherwise)
        case:
          type: string
          enum:
          - normal
          - upper
          - lower
        lang:
          type: string
          default: original
          description: '`original` or an ISO 639-1 code (`en`, `es`…) to translate — requires `translate` in the plan'
        overrides:
          type: array
          items:
            $ref: '#/components/schemas/SubtitleOverride'
          default: []
        style:
          type: string
          enum:
          - karaoke
          - boxed
          - outline
          - glow
          - minimal
          default: karaoke
        font:
          type: string
          enum:
          - Inter
          - Montserrat
          - Bangers
          - Poppins
          - Arial
          default: Inter
        position:
          type: string
          enum:
          - bottom
          - middle
          - top
          default: bottom
        size:
          type: integer
          enum:
          - 1
          - 2
          - 3
          default: 2
          description: 52/64/80 px in 9:16 (×7/8 in 16:9)
        words_per_line:
          type: integer
          minimum: 3
          maximum: 8
          default: 5
        animate:
          type: boolean
          default: false
          description: Pop ×1.10 on the current word
        hook:
          $ref: '#/components/schemas/Hook'
      example:
        enabled: true
        color: yellow
        case: normal
        lang: original
        overrides: []
        style: karaoke
        font: Inter
        position: bottom
        size: 2
        words_per_line: 5
        animate: true
    ClipDetail:
      type: object
      required:
      - clip
      - video
      - edit
      properties:
        clip:
          $ref: '#/components/schemas/ClipBase'
        video:
          $ref: '#/components/schemas/ClipVideo'
        edit:
          $ref: '#/components/schemas/Edit'
  parameters:
    Orientation:
      name: orientation
      in: query
      required: false
      description: 'Which edit/export: `vertical` (9:16, default), `horizontal` (16:9), `square` (1:1) or `portrait45` (4:5). Each clip has one independent edit per orientation.'
      schema:
        $ref: '#/components/schemas/Orientation'
    ClipId:
      name: id
      in: path
      required: true
      description: Clip id (UUID)
      schema:
        $ref: '#/components/schemas/Uuid'
    VideoId:
      name: id
      in: path
      required: true
      description: Video id (UUID)
      schema:
        $ref: '#/components/schemas/Uuid'
  responses:
    Forbidden:
      description: Feature not included in the user's plan (upgrade at /billing)
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: L'API & MCP nécessitent le plan Starter
    NotFound:
      description: Resource not found or not owned by the user
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: clip 6f1c2d6e-… introuvable (ou n'appartient pas à ce compte)
    Ok:
      description: Done
      content:
        application/json:
          schema:
            type: object
            properties:
              ok:
                type: boolean
                const: true
    BadRequest:
      description: 'Validation error — the message names the field, e.g. `champ subtitles.size invalide : attendu 1..3`'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    ApiKey:
      type: http
      scheme: bearer
      bearerFormat: ck_<64 hex>
      description: 'Personal API key from `POST /api/me/api-key` (Starter plan and above). Also accepted: the session `token` returned by `login`/`register`. Send `Authorization: Bearer ck_…`.'
    SessionCookie:
      type: apiKey
      in: cookie
      name: session
      description: HttpOnly cookie set by `register`/`login` (browser clients).
    OAuth2:
      type: oauth2
      description: 'OAuth 2.1 for MCP connectors (Claude.ai / Claude Desktop / Claude Code / ChatGPT): discovery at `/.well-known/oauth-protected-resource` and `/.well-known/oauth-authorization-server`, dynamic client registration (RFC 7591) at `/oauth/register`, PKCE S256 required, public clients only. Access tokens (`cko_…`, 1 h) are accepted everywhere a `ck_…` key is; refresh tokens (`ckr_…`, 90 days) rotate on use.'
      flows:
        authorizationCode:
          authorizationUrl: https://cliponit.app/oauth/authorize
          tokenUrl: https://cliponit.app/oauth/token
          refreshUrl: https://cliponit.app/oauth/token
          scopes:
            clips: Import videos, read/edit clips, run exports (everything the API key allows)
externalDocs:
  description: Agent guide (llms-api.txt)
  url: https://cliponit.app/llms-api.txt
x-refined-from:
- cliponit-app-openapi.json
- cliponit-app-openapi.yml