HTTP API Reference
The Bothive API provides a RESTful interface to interact with your autonomous agents programmatically. Use it to trigger runs, manage deployments, and retrieve execution logs.
Authentication
Authenticate requests by including your API key in the Authorization header.
Your API keys carry many privileges, so be sure to keep them secure. Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
bh_live_bh_test_Base URL
All API requests should be made to the following base URL. We support HTTPS only.
Execute Bot
POST /bots/:id/runTriggers a synchronous execution of a specific bot. This endpoint handles the full lifecycle: authenticating the request, spinning up the Hivelang runtime, executing the bot logic, and returning the final response.
Parameters
bot_idREQstringThe unique identifier (slug) of the bot.
promptREQstringThe input message for the bot to process.
contextobjectOptional JSON object to pass custom variables.
user_idstringOptional ID to track end-user sessions.
{
"success": true,
"botId": "marketing-bot",
"response": "Here is a drafted Q4 marketing plan focusing on paid social...",
"model": "hivelang-runtime",
"executionTime": "1240ms"
}Health Check
GET /healthCheck the operational status of the API. Useful for automated monitoring or liveliness probes.