VAP AI Deposits API

Fund your agent balance to enable task execution

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 4

POST /v3/deposits/init Initialize Deposit #
GET /v3/deposits/{deposit_id} Get Deposit #
DELETE /v3/deposits/{deposit_id} Cancel Deposit #
GET /v3/deposits List Deposits #

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/vapagent-com:vapagent-com-deposits-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

vapagent-com-deposits-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: VAP - Execution Control Layer for AI Agents Deposits API
  description: '## Execution Control Layer for AI Agents


    VAP enforces cost control, retry limits, and execution ownership between AI agents and paid external APIs.


    *"VAP is where nondeterminism stops."*


    ### The Problem


    If your agents call paid APIs directly, you don''t have:

    - **Cost control** - No budget limits, no spending caps

    - **Retry limits** - Failed calls can loop indefinitely

    - **Failure ownership** - No clear accountability when things go wrong


    ### The Solution: Reserve → Burn → Refund


    1. **Reserve**: Budget is locked before task execution

    2. **Execute**: Task runs with reserved funds

    3. **Burn/Refund**: Pay actual cost on success, full refund on failure


    ### Pricing


    | Type | Price |

    |------|-------|

    | Image | $0.18 |

    | Video | $1.96 |

    | Music | $0.68 |

    | AI Edit | $0.15 |


    ### Integration Options


    - **REST API**: Direct HTTP integration

    - **MCP**: Model Context Protocol for Claude Desktop

    - **A2A**: Agent-to-Agent Protocol for inter-agent communication


    ### Quick Links


    - Developer Hub - API docs, keys, and usage guidance

    - API Keys - How to get your API key

    - Error Codes - Complete error reference

    - Rate Limits - Understand tier limits

    - Webhooks - Real-time task notifications

    - Agent Card - A2A Protocol discovery


    ### Authentication


    All endpoints require Bearer token authentication:


    ```bash

    curl -H "Authorization: Bearer vap_xxxx" \

    https://api.vapagent.com/v3/agents/me

    ```


    Get your API key by registering an agent: `POST /v3/agents`


    **Important**: API keys are shown only once during registration. Save it securely!


    ### Base URL


    ```

    https://api.vapagent.com

    ```


    ### Versioning


    Current API version: **v1.20.6**


    All endpoints are under the `/v3/` namespace.'
  contact:
    name: VAP Support
    url: https://vapagent.com/
    email: support@vapagent.com
  license:
    name: Proprietary
    url: https://vapagent.com/
  version: 1.20.6
servers:
- url: https://api.vapagent.com
  description: Production server
tags:
- name: Deposits
  description: Fund your agent balance to enable task execution
paths:
  /v3/deposits/init:
    post:
      tags:
      - Deposits
      summary: Initialize Deposit
      description: 'Initialize a deposit to fund your agent balance.


        ## Deposit Flow


        1. **Initialize** deposit with desired amount and provider

        2. **Complete payment** using provided instructions

        3. **Wait for confirmation** (automatic for crypto, manual for wire transfer)

        4. **Balance credited** and tier promotion checked automatically


        ## Available Providers


        ### manual (Default)

        Bank wire transfer or manual payment. Requires admin approval.

        - **Processing time**: 1-2 business days

        - **Best for**: Large deposits ($1000+), enterprise users

        - **Instructions**: Bank details and reference code provided


        ### crypto

        Cryptocurrency payment via NOWPayments. Automatic confirmation.

        - **Processing time**: 10-30 minutes (blockchain confirmation)

        - **Best for**: Fast deposits, any amount

        - **Supported**: USDT, USDC, BTC, ETH, and 150+ cryptocurrencies

        - **Instructions**: Payment address and checkout URL provided


        ### stripe (Coming Soon)

        Credit/debit card payment. Instant confirmation.

        - **Processing time**: Instant

        - **Best for**: Small to medium deposits ($1-500)


        ## Minimum Deposits


        - **Tier 0 → Tier 1**: $1.00 (enables image generation)

        - **Tier 1 → Tier 2**: $100.00 cumulative (unlocks video generation)

        - **Tier 2 → Tier 3**: $1,000.00 cumulative (priority queue, higher limits)


        ## Tier Promotion


        After each deposit confirmation, the system automatically checks if you qualify for tier promotion:

        - Tier based on **lifetime deposits** + **task completion rate**

        - Promotion is immediate upon meeting criteria

        - Check your tier: `GET /v3/agents/me`


        ## Checking Deposit Status


        Poll `GET /v3/deposits/{deposit_id}` to check status:

        - **pending**: Waiting for payment

        - **confirming**: Payment received, awaiting confirmation

        - **confirmed**: Balance credited, deposit complete

        - **cancelled**: Deposit cancelled or expired

        - **failed**: Payment failed


        ## Webhooks (Crypto Only)


        For automatic deposits, you don''t need to poll. The system receives webhooks from the payment provider and credits your balance automatically.


        ## Security


        - All payment processing happens via trusted external providers

        - VAP never stores card numbers or sensitive payment data

        - Deposits are non-refundable (convert to task executions only)'
      operationId: init_deposit_v3_deposits_init_post
      parameters:
      - name: authorization
        in: header
        required: true
        schema:
          type: string
          description: Bearer <api_key>
          title: Authorization
        description: Bearer <api_key>
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InitDepositRequest'
      responses:
        '201':
          description: Deposit initialized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DepositResponse'
              examples:
                manual:
                  summary: Manual deposit (admin approval)
                  value:
                    deposit_id: 550e8400-e29b-41d4-a716-446655440000
                    status: pending
                    provider: manual
                    amount: '50.0000'
                    currency: USD
                    payment_reference: DEP-2026-ABC123
                    instructions: 'Send $50.00 via wire transfer to [bank details]. Include reference: DEP-2026-ABC123'
                    expires_at: '2026-01-16T10:00:00Z'
                crypto:
                  summary: Crypto deposit (automatic)
                  value:
                    deposit_id: 550e8400-e29b-41d4-a716-446655440000
                    status: pending
                    provider: crypto
                    amount: '50.0000'
                    currency: USD
                    payment_reference: NP-2026-XYZ789
                    payment_address: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb'
                    payment_url: https://nowpayments.io/payment/XYZ789
                    instructions: Send USDT to the address above. Payment will be credited automatically upon confirmation.
                    expires_at: '2026-01-09T11:00:00Z'
        '400':
          description: Invalid provider or configuration
          content:
            application/json:
              example:
                detail: 'Unknown provider: invalid. Available: [''manual'', ''crypto'']'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      x-codeSamples:
      - lang: cURL
        source: "curl -X POST https://api.vapagent.com/v3/deposits/init \\\n  -H \"Authorization: Bearer vap_xxxx\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"amount\": 50.00,\n    \"currency\": \"USD\",\n    \"provider\": \"manual\"\n  }'"
      - lang: Python
        source: "import httpx\n\nresponse = httpx.post(\n    \"https://api.vapagent.com/v3/deposits/init\",\n    headers={\n        \"Authorization\": \"Bearer vap_xxxx\",\n        \"Content-Type\": \"application/json\"\n    },\n    json={\n        \"amount\": 50.00,\n        \"currency\": \"USD\",\n        \"provider\": \"manual\"  # or \"crypto\" for automatic\n    }\n)\n\ndeposit = response.json()\nprint(f\"Deposit ID: {deposit['deposit_id']}\")\nprint(f\"Instructions: {deposit['instructions']}\")\nif deposit.get('payment_url'):\n    print(f\"Pay at: {deposit['payment_url']}\")"
      - lang: JavaScript
        source: "const response = await fetch('https://api.vapagent.com/v3/deposits/init', {\n  method: 'POST',\n  headers: {\n    'Authorization': 'Bearer vap_xxxx',\n    'Content-Type': 'application/json'\n  },\n  body: JSON.stringify({\n    amount: 50.00,\n    currency: 'USD',\n    provider: 'manual'  // or 'crypto' for automatic\n  })\n});\n\nconst deposit = await response.json();\nconsole.log(`Deposit ID: ${deposit.deposit_id}`);\nconsole.log(`Instructions: ${deposit.instructions}`);\nif (deposit.payment_url) {\n  console.log(`Pay at: ${deposit.payment_url}`);\n}"
  /v3/deposits/{deposit_id}:
    get:
      tags:
      - Deposits
      summary: Get Deposit
      description: Get deposit status.
      operationId: get_deposit_v3_deposits__deposit_id__get
      parameters:
      - name: deposit_id
        in: path
        required: true
        schema:
          type: string
          title: Deposit Id
      - name: authorization
        in: header
        required: true
        schema:
          type: string
          description: Bearer <api_key>
          title: Authorization
        description: Bearer <api_key>
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DepositResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Deposits
      summary: Cancel Deposit
      description: Cancel a pending deposit.
      operationId: cancel_deposit_v3_deposits__deposit_id__delete
      parameters:
      - name: deposit_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Deposit Id
      - name: authorization
        in: header
        required: true
        schema:
          type: string
          description: Bearer <api_key>
          title: Authorization
        description: Bearer <api_key>
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v3/deposits:
    get:
      tags:
      - Deposits
      summary: List Deposits
      description: List agent's deposits.
      operationId: list_deposits_v3_deposits_get
      parameters:
      - name: status
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Status
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 20
          title: Limit
      - name: authorization
        in: header
        required: true
        schema:
          type: string
          description: Bearer <api_key>
          title: Authorization
        description: Bearer <api_key>
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    InitDepositRequest:
      properties:
        amount:
          type: number
          exclusiveMinimum: 0.0
          title: Amount
          description: Amount to deposit
        currency:
          type: string
          title: Currency
          description: Currency code
          default: USD
        provider:
          type: string
          title: Provider
          description: 'Payment provider: manual, crypto, stripe'
          default: manual
        metadata:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Metadata
          description: 'Optional additive package metadata: plan_code, billing_mode, tenant, redirects'
      type: object
      required:
      - amount
      title: InitDepositRequest
      description: Request to initialize a deposit.
      example:
        amount: 50.0
        currency: USD
        provider: manual
    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
    DepositResponse:
      properties:
        deposit_id:
          type: string
          title: Deposit Id
        status:
          type: string
          title: Status
        provider:
          type: string
          title: Provider
        amount:
          type: string
          title: Amount
        currency:
          type: string
          title: Currency
        credited_agent_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Credited Agent Id
        credited_agent_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Credited Agent Name
        payment_reference:
          anyOf:
          - type: string
          - type: 'null'
          title: Payment Reference
        payment_address:
          anyOf:
          - type: string
          - type: 'null'
          title: Payment Address
        payment_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Payment Url
        instructions:
          anyOf:
          - type: string
          - type: 'null'
          title: Instructions
        expires_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Expires At
        metadata:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Metadata
        display_status:
          anyOf:
          - type: string
          - type: 'null'
          title: Display Status
        redirect_urls:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Redirect Urls
      type: object
      required:
      - deposit_id
      - status
      - provider
      - amount
      - currency
      title: DepositResponse
      description: Deposit details response.