Skip to main content
Version: v2

RobFlow API

The RobFlow API allows communication with RobFlow, the main interface for users. It can be utilized via HTTP requests that contain JSON formatted text.

There are three messages that are required in the context of trajectory streaming:

  • Request control: obtains the control token every motion request, including Start streaming, must carry.
  • Start streaming: Commands the controller to switch to streaming mode. The payload contains settings that configure the type and appearance of streaming messages to be sent.
  • Set streaming feedback properties: Allows the user to configure which feedback on the current Robot state (e.g. the Cartesian pose) is required.

Both are beta endpoints: they are only available while the Robot is on the "Beta" update channel (see Enable beta features).

Control token​

Only one client can control the Robot at a time. Both streaming messages, and the stop request PUT /api/v3.0/stop, require the caller to hold control. To take control, send

POST http://{robot ip}/api/v3.0/control/request

The response contains a token. Send it in the X-Robflow-Control-Token header of every streaming request. Without a valid token, RobFlow answers with 409 Conflict and names the current owner.

warning

Requesting control takes it away from the current owner, e.g. a RobFlow browser session, and stops any motion that owner started. While Profinet control is enabled, the request is rejected.

To hand control back, send PUT http://{robot ip}/api/v3.0/control/release with the token in the X-Robflow-Control-Token header.