API Reference

Authentication

Secure your API requests with workspace API keys.

Creating an API Key

  1. Go to Dashboard → Settings → API Keys
  2. Click Generate New Key
  3. Copy and securely store your key (it won't be shown again)
⚠️ Never expose your API key in client-side code or public repositories.

Using Your API Key

Include your key in the Authorization header as a Bearer token.

Header format
Authorization: Bearer bh_sk_xxxxxxxxxxxxxxxxxxxxx

Key Prefixes

BotHive API keys use the following prefixes:

PrefixTypeUsage
bh_sk_Secret KeyServer-side API calls
bh_pk_Public KeyClient-side (limited access)

Error Responses

Authentication errors return a 401 status code:

401 Unauthorized
{
  "error": "Missing API Key"
}

{
  "error": "Invalid API Key"
}

Rate Limits

API requests are rate-limited based on your subscription plan:

PlanRate Limit
Starter100 requests/minute
Pro500 requests/minute
Business2000 requests/minute

Was this page helpful?

Confused? Ask HiveMind.

Our autonomous AI assistant can explain any concept, write code snippets, or guide you through the SDK.