API reference

All Botverse services share the same MCP endpoint and authentication model. This page documents the protocol, authentication, error codes, and a full tool inventory.

MCP protocol

Botverse implements the Model Context Protocol (MCP) with Streamable HTTP transport. Requests are JSON-RPC 2.0 POST requests to a single endpoint.

Base URL
https://botverse.cloud/mcp
Protocol
JSON-RPC 2.0 over HTTP POST
Content-Type
application/json
Auth
OAuth 2.1 access token, API key, or connector token (see below)
Health check
GET /mcp → 200 with service info and tool names

Supported MCP methods

MethodDescription
initializeMCP handshake — called automatically by MCP clients. No auth required.
tools/listReturns all available tool definitions with input and output schemas. No auth required.
tools/callExecute a tool by name with provided arguments. Requires auth.
resources/list, prompts/listAnswered with empty lists. No auth required.

Request structure

{
  "jsonrpc": "2.0",
  "id": 1,                    // any integer or string — echoed back in response
  "method": "tools/call",
  "params": {
    "name": "tool_name",
    "arguments": { ... }      // tool-specific parameters
  }
}

Response structure

// Success
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{ ... JSON string of tool result ... }"
      }
    ]
  }
}

// Error
{
  "jsonrpc": "2.0",
  "id": 1,
  "error": {
    "code": -32603,
    "message": "CONCURRENCY_LIMIT: This account already has 2 jobs in progress ...",
    "data": { "code": "CONCURRENCY_LIMIT" }
  }
}
ℹ
Tool results are returned as a JSON string inside content[0].text, and the same object instructuredContent. This is standard MCP protocol — all MCP clients handle it automatically.

Authentication

Every tools/call needs one of three credentials. All are scoped to your account and authorize job submissions, wallet charges, and data access.

  • OAuth 2.1 (MCP clients that support it): dynamic client registration + PKCE. An unauthenticated call returns 401 with a WWW-Authenticate challenge; the client then sends Authorization: Bearer bv_at_….
  • API key (CLI, custom agents, server-to-server): Authorization: Bearer bv_live_… or X-API-Key: bv_live_….
  • Connector token (clients that only take a URL): https://botverse.cloud/mcp?token=bv_sess_…, valid 90 days.
Authorization: Bearer bv_live_••••••••••••••••
# or
X-API-Key: bv_live_••••••••••••••••

API key format

All live keys begin with bv_live_ followed by 32 hex characters. Test keys (sandbox environment, coming soon) begin with bv_test_.

Key security

  • Never embed your API key in client-side JavaScript, mobile apps, or public repositories
  • Use environment variables or secrets managers to store keys server-side
  • Rotate keys from the dashboard if you suspect they have been exposed
  • Keys can be scoped to specific IP ranges (coming soon)

Error codes

HTTP statusJSON-RPC codeMeaning
200-32603The tool rejected the call or failed (invalid arguments, insufficient balance, too many jobs in progress, temporary internal error). Read error.message; structured codes are in error.data.code (see below).
200-32601Unknown tool or method — call tools/list
200-32602Missing params.name on tools/call
200-32700Body is not valid JSON
401 or 200-32001Credentials missing, malformed, invalid, expired or revoked. A 401 carries a WWW-Authenticate challenge for OAuth clients.
413-32700Request body over 4 MB — pass a public URL instead of inline content
429-32429Rate limit exceeded — wait 60 seconds (Retry-After header) and retry

Tool-level errors

A rejected submission comes back as a JSON-RPC error with HTTP 200, and nothing is charged. A job that was accepted but fails while it runs is reported by get_job_status with status: "failed" and anerror message; its hold is refunded. Your agent (or code) must check both.

Example — a job that failed while running
// get_job_status result:
{
  "job_id": "job_7f3a1b9c",
  "status": "failed",
  "error": "Source is 12:22. Standard tier limit is 10:00. Extended duration support is on the roadmap.",
  "job_cost": null
}

Tool inventory

All 21 live tools, as returned by tools/list. Planned services are listed after them.

Shared

Live
get_upload_urlGet a presigned upload form (multipart POST) for a video, audio or document file
get_job_statusPoll any job until complete or failed
get_download_urlGet a presigned download URL (24 hours) for a completed job
get_output_contentReturn a completed job's output inline as base64 (up to 4 MB, sandbox-safe)
get_wallet_balanceCheck balance, held funds, jobs in progress and auto-refill settings

botverse-transcode

Live
transcode_from_urlTranscode video/audio from a public URL or cloud share link
transcode_videoTranscode an uploaded file (object_key)
transcode_contentTranscode a short clip passed inline as base64 (request under 4 MB)
assemble_sequenceAssemble ordered image frames (PNG/JPG URLs) into mp4, webm or gif

botverse-conform

Live
conform_from_urlMux a separate video and audio URL into one output, reconciling frame rate and duration
conform_mediaSame, for uploaded files
conform_splice_from_urlConcatenate video/image segment URLs (slates, end cards, inserts, joined clips)
conform_splice_mediaSame, for uploaded segments

botverse-convert

Live
convert_from_urlConvert a document from a public URL or cloud share link
convert_fileConvert an uploaded document (object_key)
convert_contentConvert document content passed inline (up to 4 MB)

botverse-workflows

Live
submit_workflowSubmit a multi-step BWDL workflow
get_workflow_statusPoll a workflow and its steps
cancel_workflowCancel an in-progress workflow

botverse-transcribe

Live
transcribe_from_urlTranscribe a video/audio file from a URL into a speaker-named transcript (txt/json/srt/vtt/docx/pdf). AI speaker-naming from an attendee list.
transcribe_mediaTranscribe an already-uploaded video/audio file (object_key). Same options as transcribe_from_url.

botverse-extract

Coming soon
extract_thumbnailsExtract JPEG frames at a fixed interval from a video (planned)
extract_audioExtract audio track as WAV or MP3 (planned; transcode to mp3 works today)

xinsere

Roadmap
register_assetsRegister asset IDs with access permissions, optionally anchored to blockchain
check_permissionVerify whether a user or agent has read/write access to an asset
revoke_accessRevoke a previously granted permission
get_audit_logGet a tamper-evident log of all access events for an asset

Rate limits

LimitValue
Requests per minute120 per account (all tool calls, including status polls)
Requests per minute300 per IP address
Jobs in progress at once2 on free-trial credit, 10 after a top-up
tools/list, initializeNot rate-limited

Space status polls at least 5 seconds apart. A job counts as in progress from submission until it completes or fails; a submit over the limit returns CONCURRENCY_LIMIT and nothing is charged, so wait for a running job to finish and submit again.

Billing holds

When you submit a job, its estimated cost (or the tool's minimum, when the size isn't known up front) is held from your wallet. When the job completes, the hold is settled to the actual cost and any difference is refunded; if the job fails, the whole hold is refunded. get_wallet_balance returns balance_usd(free to spend now), held_usd and jobs_in_progress. A hold whose job never reports back is refunded automatically within about 13 hours.

Structured error codes

Tool errors that need a specific response start with a code your agent can match on. It is also returned in error.data.code.

INSUFFICIENT_BALANCEThe wallet can't cover the job's minimum. Top up, or enable auto-refill.
COST_EXCEEDS_BALANCEThe job's estimated cost is more than the available balance. Nothing was charged. Top up or process a shorter segment.
CONCURRENCY_LIMITToo many jobs in progress for this account. Nothing was charged. Wait for one to finish, then resubmit.
PAYMENT_REQUIREDThe job finished but its final cost is more than the balance. Top up, then call the same tool again; output stays available.
BILLING_RETRYPayment for a finished job couldn't be confirmed just now. Nothing extra was charged. Retry in a few seconds.

If you hit rate limits for high-volume automated workloads, contact us for enterprise limits.