Skip to main content

POST /v1/bots/:id/deploy

The Deploy API uploads a HiveLang file to a bot and redeploys it. All connected channels immediately use the new agent definition. Use this to:
  • Build CI/CD pipelines for your agents
  • Deploy agents from your build system
  • Automate version management

Request

Headers

Request body

Response

Response fields

TypeScript / CI example

GitHub Actions CI/CD example

Rollback

To roll back to a previous deployment, deploy the old HiveLang source:

Environment variables

Pass secrets and config your HiveLang bot needs at runtime:
Reference them in HiveLang with env.VARIABLE_NAME.
Never hardcode API keys or secrets directly in your HiveLang source. Always use environment variables so secrets don’t appear in deployment logs or version history.

Next reads

Chat API

Execute API

HiveLang v5