farmbot v6.4.1 Farmbot.BotState.Transport.HTTP View Source

RESTful API for accessing internal Farmbot state.

Accessing the API

A developer should be able to access the REST API at http://<my_farmbot_id>:27347/api/v1/. The calls will require an authentication token. See the API docs for information about generating a token. Access to the local api should be the same as accessing the cloud API. You will need to have an HTTP header: Authorization:Bearer <long encrypted token>

Each of the routes will be described below.

  • GET /api/v1/bot/state - returns the bot’s current state.
  • POST /api/v1/celery_script - execute celery script node.

Link to this section Summary

Link to this section Functions

Link to this function handle_call(atom, arg2, state) View Source
Link to this function handle_events(events, arg, state) View Source

Subscribe to events.

Unsubscribe.