Virlo Account API

Account balance and credit management (v1)

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 3

GET /v1/account/balance Get your credit balance #
POST /v1/account/top-up Get a checkout link to add balance #
POST /v1/account/auto-top-up Turn auto top-up off, or ask the owner to turn it on #

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/virlo-ai:virlo-ai-account-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

virlo-ai-account-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Virlo Public Account API
  description: 'Short-form social intelligence across TikTok, YouTube Shorts, Instagram Reels and Meta ads: Content Research Agents, Topic Trends (`/v1/topic-trends`: what people are talking about, by region, each topic with a category), Content Trends (`/v1/content-trends`: video formats creators are copying), hashtags, sounds, hooks, creator lookups and tracking. Send your API key as `Authorization: Bearer virlo_tkn_...`. Guides and pricing: https://dev.virlo.ai/docs'
  version: 1.0.0
  contact: {}
servers:
- url: https://api.virlo.ai
  description: Production
tags:
- name: Account
  description: Account balance and credit management (v1)
paths:
  /v1/account/balance:
    get:
      description: Returns the current credit balance for the authenticated API key.
      operationId: V1AccountController_getBalance
      parameters: []
      responses:
        '200':
          description: Credit balance retrieved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountBalanceResponseDto'
        '401':
          description: Unauthorized - missing or invalid API key
        '429':
          description: Rate limit exceeded (`rate_limit_exceeded`); see the Retry-After header
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RateLimitErrorResponse'
      security:
      - api-key: []
      summary: Get your credit balance
      tags:
      - Account
  /v1/account/top-up:
    post:
      description: 'Returns a Stripe checkout link that adds amount_usd to the key''s team balance. Nothing is charged by this call: the person opens checkout_url and pays there, and the balance updates within seconds. For the team owner while auto top-up is off, the checkout page also asks "Refill automatically when low?"; auto_top_up true pre-selects Yes (send it only when the user asked for automatic refills). Bigger top-ups add bonus credits, returned as bonus_credits. Free.'
      operationId: V1AccountController_topUp
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/V1TopUpDto'
      responses:
        '200':
          description: Checkout link created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountTopUpResponseDto'
        '401':
          description: Missing or invalid API key (`missing_api_key` / `invalid_api_key`)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: The key has no team to add balance to
        '429':
          description: Rate limit exceeded (`rate_limit_exceeded`); see the Retry-After header
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RateLimitErrorResponse'
      security:
      - api-key: []
      summary: Get a checkout link to add balance
      tags:
      - Account
  /v1/account/auto-top-up:
    post:
      description: 'Turning auto top-up off, or a smaller refill or lower threshold, applies at once. Turning it on or making refills bigger returns confirm_url: the team owner signs in on dev.virlo.ai and confirms, and nothing changes until they do. Team owner only (403 owner_only otherwise). Free.'
      operationId: V1AccountController_setAutoTopUp
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/V1AutoTopUpDto'
      responses:
        '200':
          description: Applied, unchanged, or a confirm link
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountAutoTopUpChangeResponseDto'
        '401':
          description: Missing or invalid API key (`missing_api_key` / `invalid_api_key`)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Only the team owner can change auto top-up
        '429':
          description: Rate limit exceeded (`rate_limit_exceeded`); see the Retry-After header
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RateLimitErrorResponse'
      security:
      - api-key: []
      summary: Turn auto top-up off, or ask the owner to turn it on
      tags:
      - Account
components:
  schemas:
    AccountAutoTopUpChangeResponseDto:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/AccountAutoTopUpChangeDataDto'
      required:
      - data
    AccountAutoTopUpDto:
      type: object
      properties:
        enabled:
          type: boolean
          example: true
        amount_credits:
          type:
          - number
          - 'null'
          example: 2500
          description: Credits added (and cents charged) per refill.
        when_below_credits:
          type:
          - number
          - 'null'
          example: 500
          description: A refill runs when the balance drops to this many credits or less.
        last_refill_at:
          type:
          - string
          - 'null'
          example: '2026-10-29T15:04:05.000Z'
          description: Most recent automatic refill.
      required:
      - enabled
      - amount_credits
      - when_below_credits
      - last_refill_at
    AccountBalanceResponseDto:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/AccountBalanceDataDto'
      required:
      - data
    ErrorResponse:
      type: object
      required:
      - statusCode
      - code
      - error
      - message
      properties:
        statusCode:
          type: integer
          example: 401
        code:
          type: string
          description: Stable machine-readable error code. Branch on this, never on `message`.
          enum:
          - validation_error
          - invalid_date_range
          - unknown_region
          - unknown_event_type
          - unsupported_platform
          - invalid_cursor
          - cursor_too_long
          - creator_login_required
          - creator_not_found
          - missing_api_key
          - invalid_api_key
          - insufficient_credits
          - forbidden
          - owner_only
          - not_found
          - conflict
          - no_team
          - rate_limit_exceeded
          - library_quota
          - internal_error
          - upstream_error
          - service_unavailable
          - top_up_unavailable
          - request_timeout
          example: invalid_api_key
        error:
          type: string
          example: Unauthorized
        message:
          description: Human-readable explanation (an array of messages for validation errors). Wording may change.
          oneOf:
          - type: string
          - type: array
            items:
              type: string
          example: Invalid or inactive API key
    AccountTopUpResponseDto:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/AccountTopUpDataDto'
      required:
      - data
    RateLimitErrorResponse:
      allOf:
      - $ref: '#/components/schemas/ErrorResponse'
      - type: object
        properties:
          limit:
            type: integer
            description: Requests allowed in the window.
          remaining:
            type: integer
            description: Requests left in the window.
          reset_at:
            type: integer
            description: Unix time (seconds) the window resets.
          reset_at_formatted:
            type: string
            description: reset_at as a readable UTC time.
          retry_after:
            type: integer
            description: Seconds to wait before retrying.
          resetAt:
            type: integer
            deprecated: true
            description: Deprecated alias of reset_at.
          resetAtFormatted:
            type: string
            deprecated: true
            description: Deprecated alias of reset_at_formatted.
          retryAfter:
            type: integer
            deprecated: true
            description: Deprecated alias of retry_after.
    V1AutoTopUpDto:
      type: object
      properties:
        enabled:
          type: boolean
          description: false turns auto top-up off at once; true turns it on or changes its terms.
          example: false
        amount_usd:
          type: number
          description: Dollars added per refill, $10 to $500.
          example: 25
        when_below_usd:
          type: number
          description: Refill when the balance drops to this many dollars or less.
          example: 5
      required:
      - enabled
    AccountAutoTopUpChangeDataDto:
      type: object
      properties:
        status:
          type: string
          enum:
          - 'on'
          - 'off'
          description: State after this call.
        applied:
          type: boolean
          description: true when the change is live now.
        terms:
          type: string
          example: add $25.00 when your balance drops to $5.00 or less
        confirm_url:
          type: string
          description: 'Turning on or making refills bigger: the team owner confirms here. Nothing changes until they do.'
        confirm_expires_at:
          type: string
        needs_payment_method:
          type: boolean
          description: No saved card yet.
        message:
          type: string
      required:
      - status
      - applied
    AccountTopUpDataDto:
      type: object
      properties:
        checkout_url:
          type: string
          example: https://checkout.stripe.com/c/pay/cs_live_...
          description: Stripe checkout page the person opens to pay. Nothing is charged until they do.
        amount:
          type: string
          example: $25.00
        credits:
          type: number
          example: 2500
        bonus_credits:
          type: number
          example: 0
          description: Bonus credits this top-up adds once paid, on top of `credits` (bigger top-ups earn more; milestones at dev.virlo.ai/docs/credits#bonus-credits). 0 below the first milestone.
        expires_at:
          type: string
          example: '2026-10-30T15:04:05.000Z'
        auto_top_up:
          type: object
          additionalProperties: true
          description: 'status: already_on (terms), offered_on_checkout_page (terms, preselected), or owner_only (the opt-in is shown only to the team owner).'
      required:
      - checkout_url
      - amount
      - credits
      - bonus_credits
      - expires_at
      - auto_top_up
    V1TopUpDto:
      type: object
      properties:
        amount_usd:
          type: number
          description: Dollars to add to the API balance, $10 to $1,000 (1 credit = $0.01).
          example: 25
          minimum: 10
          maximum: 1000
        auto_top_up:
          type: boolean
          description: True only when the user asked for automatic refills. Pre-selects Yes on the checkout page's "Refill automatically when low?" choice; the payer can still pick No. Offered only to the team owner while auto top-up is off.
          example: false
        auto_top_up_amount_usd:
          type: number
          description: Refill size if auto top-up is turned on, $10 to $500. Defaults to amount_usd.
          example: 25
        auto_top_up_when_below_usd:
          type: number
          description: Refill when the balance drops to this many dollars or less. Defaults to $5.
          example: 5
      required:
      - amount_usd
    AccountBalanceDataDto:
      type: object
      properties:
        balance:
          type: string
          example: $74.05
          description: Dollar balance as a display string (1 credit = $0.01).
        credits_remaining:
          type: number
          example: 7405
        status:
          type: string
          enum:
          - active
          - zero_balance
        auto_top_up:
          description: Auto top-up for the key's team; null for keys without a team.
          allOf:
          - $ref: '#/components/schemas/AccountAutoTopUpDto'
      required:
      - balance
      - credits_remaining
      - status
      - auto_top_up
  securitySchemes:
    api-key:
      scheme: bearer
      bearerFormat: API Key
      type: http
      name: Authorization
      description: 'Enter your customer API key (format: virlo_tkn_xxxxx)'
      in: header