Workflows API

To execute workflows using the Bytebot API, you will need to make a POST request to /v1/executions.

Details:

  • Endpoint: /v1/executions
  • Method: POST
  • Headers:
    • Authorization: Bearer <your-api-key>
  • Body Parameters:
    • workflowId: The ID of the workflow you want to execute (required)
    • url: The URL of the route (optional)
    • parameters: An array of objects with name and value fields for optional input parameters (optional)

Example Request:

$POST /v1/executions HTTP/1.1
>Host: api.bytebot.com
>Authorization: Bearer <your-api-key>
>Content-Type: application/json
>
>{
> "workflowId": "your-workflow-id",
> "url": "https://example.com/optional-route", # optional
> "parameters": [
> { "name": "param1", "value": "value1" },
> { "name": "param2", "value": "value2" }
> ]
>}