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 header
X-API-Key: bv_live_...
Health check
GET /health → 200 OK

Supported MCP methods

MethodDescription
tools/listReturns all available tool definitions with input schemas
tools/callExecute a tool by name with provided arguments
initializeMCP handshake — called automatically by MCP clients

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": -32000,
    "message": "API key missing or invalid"
  }
}
ℹ
Tool results are returned as a JSON string inside content[0].text. Parse this string to get the structured result object. This is standard MCP protocol — all MCP clients handle it automatically.

Authentication

Every request must include your API key in the X-API-Key header. API keys are scoped to your account and authorize job submissions, wallet charges, and data access.

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-32000Tool executed but returned a logical error (e.g. pre-flight rejection). Check the 'error' field in the tool result.
400-32600Invalid JSON-RPC request structure
401-32001API key missing or invalid
402-32002Insufficient wallet balance — top up at botverse.cloud
404-32601Method not found (e.g. tool name does not exist)
422-32602Invalid tool arguments — check required parameters
429-32429Rate limit exceeded — wait 60 seconds (Retry-After header) and retry
500-32000Internal server error — retry with exponential backoff

Tool-level errors

When a tool call succeeds at the HTTP/RPC level but the tool itself detects an error (e.g. a video file fails pre-flight), the HTTP status is still 200 and the JSON-RPC result is present. The error is embedded in the tool result as a status: "failed" and error: "..." field. Your agent (or code) must check these fields.

Example — pre-flight rejection
// HTTP 200, but the job was rejected:
{
  "result": {
    "content": [{
      "type": "text",
      "text": "{\"status\": \"failed\", \"error\": \"Source video exceeds 10-minute limit (duration: 742.3s)\"}"
    }]
  }
}

Tool inventory

Full list of all available tools across all services. Tools marked as "coming soon" are defined here for planning purposes.

botverse-transcode

Live
get_upload_urlGet a presigned URL to upload a source file
transcode_videoSubmit a video transcode job (async)
get_job_statusPoll job status until complete or failed
get_download_urlGet a presigned download URL for a completed job
get_wallet_balanceCheck wallet balance and auto-refill settings
get_usage_historyList recent jobs and costs

botverse-extract

Coming soon
extract_thumbnailsExtract JPEG frames at a fixed interval from a video
extract_audioExtract audio track as WAV or MP3
get_job_statusPoll extract job status
get_download_urlGet download URL for extracted assets

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.
get_job_statusPoll transcription job status (reports a live stage)
get_download_urlGet download URL for the transcript / rendered document

botverse-metadata

Roadmap
ingest_pipeline_outputCreate CreativeWork + Asset nodes with OMC descriptors and relationships
find_assetsSearch assets by type, relationship, or metadata field
get_assetRetrieve a single asset node with all relationships
query_graphRun a SPARQL or Cypher query against the knowledge graph
link_entitiesAdd a relationship edge between two existing nodes
update_assetAdd or update metadata fields on an existing asset node

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.