Donobu API
Learn how to use the Donobu API to programmatically create, manage, and execute automation flows.
Donobu API Overview 🚀
The Donobu API provides a comprehensive suite of tools for automating web browser interactions. It allows you to create, manage, and execute "flows," which are sequences of actions performed in a browser, driven either by an AI agent or by a predefined script.
The API runs locally on localhost:31000/api/
when you have the Donobu Studio app running.
Key Features
- Flow Management: Create, run, monitor, and delete automation flows
- AI-Powered Automation: Leverage powerful GPT models to drive flows autonomously
- Deterministic Replay: Rerun past flows exactly as they occurred
- Configuration Management: Manage GPT configurations, agent assignments, and environment variables
- Rich Data Access: Retrieve detailed information about flow execution, including screenshots and videos
API Base URL
When running Donobu Studio locally, the API is accessible at:
http://localhost:31000/api/
Main API Endpoints
Flows
GET /api/flows
- List all flows with filtering optionsPOST /api/flows
- Create and start a new flowGET /api/flows/{flowId}
- Get specific flow metadataDELETE /api/flows/{flowId}
- Delete a completed flowPOST /api/flows/{flowId}/rename
- Rename a flowGET /api/flows/{flowId}/rerun
- Get flow configuration for rerunningGET /api/flows/{flowId}/code
- Generate Playwright script from flowPOST /api/flows/project
- Generate complete Playwright project from multiple flows
Flow Data
GET /api/flows/{flowId}/images/{imageId}
- Get flow screenshotsGET /api/flows/{flowId}/video
- Get flow video recordingGET /api/flows/{flowId}/tool-calls
- List all tool calls for a flowGET /api/flows/{flowId}/tool-calls/{toolCallId}
- Get specific tool call details
Configuration
GET /api/gpt-configs
- List all GPT configurationsGET /api/gpt-configs/{name}
- Get specific GPT configurationPOST /api/gpt-configs/{name}
- Create or update GPT configurationDELETE /api/gpt-configs/{name}
- Delete GPT configuration
Environment Variables
GET /api/env
- List all environment variablesGET /api/env/{key}
- Get specific environment variablePOST /api/env/{key}
- Set environment variableDELETE /api/env/{key}
- Delete environment variable
Agents
GET /api/agents
- List all agent assignmentsGET /api/agents/{name}
- Get agent's GPT configurationPOST /api/agents/{name}
- Assign GPT configuration to agent
Tools & System
GET /api/tools
- List available automation toolsGET /api/version
- Get API versionGET /api/ping
- Health check endpoint
Flow Run Modes
The API supports three different flow execution modes:
AUTONOMOUS
The flow is driven by an AI agent (GPT) that autonomously decides what actions to take based on the overall objective. The AI analyzes the current page state, determines the next appropriate action, and executes it without human intervention.
INSTRUCT
The flow waits for explicit user instructions for each action. The user manually directs what tools to call and when, making this mode suitable for guided walkthroughs or when human oversight is required for each step.
DETERMINISTIC
The flow executes a predetermined sequence of actions without any decision-making. It runs through a fixed list of tool calls and completes when all actions are finished. This mode is commonly used for replaying previously recorded flows.
Example: Creating a Flow
Here's a basic example of creating a new autonomous flow:
curl -X POST http://localhost:31000/api/flows \ -H "Content-Type: application/json" \ -d '{ "name": "My Test Flow", "targetWebsite": "https://example.com", "overallObjective": "Navigate to the contact page and fill out the form", "initialRunMode": "AUTONOMOUS", "browser": { "using": { "type": "device", "headless": false } } }'
Getting Started
- Start Donobu Studio: Make sure your Donobu Studio app is running
- Configure GPT: Set up at least one GPT configuration for AI-powered flows
- Test Connection: Use the ping endpoint to verify API connectivity
- Create Your First Flow: Use the flows endpoint to start automating
For detailed API specifications and examples, refer to the OpenAPI schema available in your Donobu Studio application context.