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

# Top up via InfinitePay

> Creates an InfinitePay checkout link (no fee). Credited only on confirmed payment (verified server-side).



## OpenAPI

````yaml /openapi.json post /v1/accounts/me/deposit/infinitepay
openapi: 3.1.0
info:
  title: clipping API
  version: 1.0.0
  description: >-
    The clipping API — one API under /v1, two credentials:


    - **API key** (`Authorization: Bearer ck_live_…`): for integrators. Each
    call draws a flat platform fee from the key's account balance, plus the real
    cost of external calls (pass-through). No balance → HTTP 402. Create a key
    at https://clipping.cc/account.

    - **Session JWT** (`Authorization: Bearer <jwt>` from /v1/auth/login): used
    by the web app. No platform fee (only external-call pass-through).


    Either credential hits the same endpoints. Routes marked *admin only*
    require an admin role.
servers:
  - url: https://api.clipping.cc
    description: production
security:
  - ApiKeyAuth: []
  - BearerAuth: []
tags:
  - name: auth
    description: session auth, profile and API key management
  - name: accounts
    description: balance, ledger, deposits and withdrawals
  - name: items
    description: monitored sources (channels, videos, etc.)
  - name: collections
    description: collections of monitored sources
  - name: videos
    description: catalogued videos
  - name: tools
    description: tool catalog, transcripts and documents
  - name: search
    description: semantic search and tag cloud over your library
  - name: discover
    description: public catalog (collections, reporters, users)
  - name: reporters
    description: 'reporters: CRUD, clone, collections, subscriptions, run'
  - name: workflows
    description: a reporter's workflows and their steps
  - name: schedules
    description: a reporter's schedules and runs
  - name: executions
    description: workflow execution tracking
  - name: events
    description: the user's event feed
  - name: logs
    description: 'external call audit: OpenAI, YouTube, transcriber'
  - name: realtime
    description: WebSocket hub for live notifications
  - name: admin
    description: 'admin only: other users'' accounts and economy stats'
  - name: treasury
    description: 'admin only: platform cash desk'
paths:
  /v1/accounts/me/deposit/infinitepay:
    post:
      tags:
        - accounts
      summary: Top up via InfinitePay
      description: >-
        Creates an InfinitePay checkout link (no fee). Credited only on
        confirmed payment (verified server-side).
      operationId: depositInfinitepay
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DepositInfinitepay'
      responses:
        '201':
          description: Checkout link created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DepositLinkResult'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '502':
          description: Payment provider unavailable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: Method temporarily disabled.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    DepositInfinitepay:
      type: object
      required:
        - amount_coins
      properties:
        amount_coins:
          type: number
          minimum: 1
    DepositLinkResult:
      type: object
      additionalProperties: true
      properties:
        deposit_id:
          type: string
        provider:
          type: string
        amount_coins:
          type: number
        fee_brl:
          type: number
        total_brl:
          type: number
        status:
          type: string
        redirect_url:
          type: string
    Error:
      type: object
      properties:
        erro:
          type: string
      required:
        - erro
  responses:
    BadRequest:
      description: Invalid request.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: ck_live_…
      description: 'API key: Authorization: Bearer ck_live_…'
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Session JWT from /v1/auth/login: Authorization: Bearer <jwt>'

````