API Reference
API Integration Documentation
Use this reference when your application or agent already has a Hive key and needs the exact MCP, REST, discovery, and auth contracts. If you have not made a first request yet, start with Get Started or Quick Start.
Before you start
- Create an API key at /dashboard/keys.
- Send new requests with
Authorization: Bearer YOUR_HIVE_API_KEY. - Use root MCP for general-purpose agents, category MCP for focused agents, and REST for backends or jobs.
- Verify tool names through
tools/list,hive://tools, or authenticatedGET /api/v1/toolsbefore hard-coding them.
Overview
Hive exposes three primary integration surfaces:
| Interface | Endpoint | Purpose |
|---|---|---|
| Root MCP | https://mcp.hiveintelligence.xyz/mcp | Recommended entry point for LLM and agent workflows |
| Category-scoped MCP | https://mcp.hiveintelligence.xyz/hive_*/mcp | Smaller direct tool surfaces by category |
| REST API | https://mcp.hiveintelligence.xyz/api/v1 | Direct HTTP access for listing and executing tools |
| B2B readiness | https://mcp.hiveintelligence.xyz/api/v1/b2b/readiness | Check whether a server-side key is ready for signed downstream subject isolation |
Current catalog shape
- 10 category-scoped MCP endpoints
- 351 categorized provider tools across those endpoints
- 18 Hive-native stateful monitoring, memory, alert, report, and B2B subject tools
- 369 callable tools in the full live catalog
- 13 root MCP discovery tools that route into the provider catalog
- 9 active provider integrations reflected in
hive://providers
Authentication
Use Authorization: Bearer YOUR_HIVE_API_KEY. The legacy x-api-key header is still accepted for older integrations but is no longer recommended. New code should use Bearer.
Root MCP
Endpoint: POST https://mcp.hiveintelligence.xyz/mcp
The root endpoint is designed for discovery-heavy AI workflows.
What to use on root MCP
tools/listfor the compact 13-tool root discovery layerhive://toolsfor the full live tool inventoryhive://categoriesfor the 10 scoped endpointshive://providersfor provider statushive://toolsets,hive://skills, andhive://statusfor task routing, agent skills, and runtime status semanticsget_api_endpoint_schemafor exact input parametersinvoke_api_endpointto execute any exact callable tool from root/mcp
Example tool call
curl -X POST https://mcp.hiveintelligence.xyz/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "Authorization: Bearer YOUR_HIVE_API_KEY" \
-d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "invoke_api_endpoint",
"arguments": {
"endpoint_name": "get_price",
"args": {
"ids": "bitcoin",
"vs_currencies": "usd"
}
}
},
"id": 1
}'Category-scoped MCP endpoints
These endpoints expose direct tools/list results for one slice of the catalog.
| Category | Endpoint |
|---|---|
| Market Data | /hive_market_data/mcp |
| DEX Analytics | /hive_onchain_dex/mcp |
| Portfolio & Wallet | /hive_portfolio_wallet/mcp |
| Token & Contract | /hive_token_contract/mcp |
| DeFi Protocols | /hive_defi_protocol/mcp |
| NFT Analytics | /hive_nft_analytics/mcp |
| Security & Risk | /hive_security_risk/mcp |
| Network & Infrastructure | /hive_network_infrastructure/mcp |
| Search & Discovery | /hive_search_discovery/mcp |
| Prediction Markets | /hive_prediction_markets/mcp |
REST API
Base URL: https://mcp.hiveintelligence.xyz/api/v1
List tools
curl -X GET "https://mcp.hiveintelligence.xyz/api/v1/tools?search=price&limit=10" \
-H "Authorization: Bearer YOUR_HIVE_API_KEY"This endpoint lists the full live callable catalog, not just the categorized provider tools.
Useful query params:
searchlimitcursorsort=nameorder=asc|descfields=name,title,description,inputSchema
Execute a tool
curl -X POST https://mcp.hiveintelligence.xyz/api/v1/execute \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_HIVE_API_KEY" \
-d '{
"tool": "get_price",
"args": {
"ids": "bitcoin",
"vs_currencies": "usd"
}
}'The current REST payload keys are
toolandargs. OldertoolName/argumentsexamples are legacy.
B2B readiness
Partner products that serve many downstream customers should use one server-side Hive key and signed subject context. Check whether that key is B2B-ready before you write subject-scoped monitor, memory, alert, or report state:
curl https://mcp.hiveintelligence.xyz/api/v1/b2b/readiness \
-H "Authorization: Bearer YOUR_HIVE_API_KEY"The endpoint reports whether the authenticated key is configured for B2B subjects and whether the subject-signing secret is present. It does not return the secret. See B2B Partner Adapter for the signed header contract.
Key and usage endpoints
Dashboard and CLI auth use the same API host:
| Endpoint | Method | Auth | Purpose |
|---|---|---|---|
/auth/signup | POST | email/password body | Create a Supabase-backed account and first key |
/auth/login | POST | email/password body | Create a session token |
/auth/me | GET | Supabase bearer token | Read profile and plan |
/api/v1/keys | GET | Supabase bearer token | List API keys |
/api/v1/keys | POST | Supabase bearer token + optional Idempotency-Key | Create a one-time-revealed key; set b2b_subjects_enabled: true to issue a B2B key |
/api/v1/keys/:id | DELETE | Supabase bearer token | Disable a key |
/api/v1/usage | GET | Supabase bearer token or Hive API key | Read plan, credit wallet, and key summary |
When POST /api/v1/keys receives b2b_subjects_enabled: true, the one-time response can include subject_signing_secret. Store it server-side with the API key; it is required for the signed subject headers described in B2B Partner Adapter.
Health and metadata endpoints
| Endpoint | Purpose |
|---|---|
/api/openapi.json | OpenAPI document for REST clients |
/docs | Hosted OpenAPI UI |
/api/health, /api/health/quick | General health checks |
/api/health/apis, /api/health/:apiName | Provider health checks |
/api/health/toolsets, /api/health/toolsets/:toolsetId | Task toolset canaries |
/api/health/toolsets/quick, /api/health/toolsets/history | Fast canary status and history |
/api/health/workflows, /api/health/workflows/quick, /api/health/workflows/history | Workflow regression routing and schema checks |
/status | Full server status snapshot |
/live, /ready, /startup | Runtime lifecycle probes |
/ping, /health | Compatibility health probes |
Discovery resources
Use these from the root MCP endpoint:
hive://providershive://categorieshive://toolshive://toolsetshive://task-canarieshive://skillshive://status
Prompts currently exposed by the server:
analyze_token- requirestoken; accepts optionalchain.compare_protocols- requiresprotocols, a comma-separated protocol list.portfolio_audit- requiresaddress, the wallet address to audit.