REST API for Open-Automator - Execute workflows programmatically with async support and webhooks.
737
RESTful API for executing and managing Open-Automator workflows programmatically.
Open-Automator API provides a FastAPI-based REST interface for workflow automation. Execute workflows via HTTP requests, manage credentials securely, monitor execution status, and integrate automation into your applications and services.
docker run -d \
-p 8000:8000 \
--name open-automator-fastapi \
lordraw/open-automator-fastapi:latest
Access API at http://localhost:8000
API Docs at http://localhost:8000/docs
docker run -d \
-p 8000:8000 \
-v $(pwd)/workflows:/app/workflows \
-v $(pwd)/data:/app/data \
-v $(pwd)/logs:/app/logs \
--name open-automator-fastapi \
lordraw/open-automator-fastapi:latest
docker run -d \
-p 8000:8000 \
-v $(pwd)/workflows:/app/workflows \
-e API_KEY=your_secure_api_key_here \
-e OA_WALLET_FILE=/app/data/wallet.enc \
-e OA_WALLET_PASSWORD=wallet_password \
--name open-automator-fastapi \
lordraw/open-automator-fastapi:latest
docker run -d \
-p 3000:8000 \
-v $(pwd)/workflows:/app/workflows \
--name open-automator-fastapi \
lordraw/open-automator-fastapi:latest
Access at http://localhost:3000
| Variable | Description | Default |
|---|---|---|
FASTAPI_PORT | API server port | 8000 |
FASTAPI_HOST | Server bind address | 0.0.0.0 |
API_KEY | API authentication key | - |
JWT_SECRET | JWT token secret | - |
OA_WALLET_FILE | Path to wallet file | - |
OA_WALLET_PASSWORD | Wallet encryption password | - |
OA_LOG_LEVEL | Logging level | INFO |
OA_WORKFLOWS_DIR | Workflows directory | /app/workflows |
OA_DATA_DIR | Data directory | /app/data |
OA_LOGS_DIR | Logs directory | /app/logs |
MAX_CONCURRENT_JOBS | Max concurrent executions | 5 |
JOB_TIMEOUT_SECONDS | Job timeout | 3600 |
ENABLE_CORS | Enable CORS | true |
CORS_ORIGINS | Allowed CORS origins | * |
| Container Path | Purpose | Recommended |
|---|---|---|
/app/workflows | YAML workflow files | ✅ Yes |
/app/data | Persistent data (wallets, state) | ✅ Yes |
/app/logs | Execution and API logs | ✅ Yes |
/app/results | Workflow execution results | Optional |
version: '3.8'
services:
api:
image: lordraw/open-automator-fastapi:latest
container_name: open-automator-fastapi
ports:
- "8000:8000"
volumes:
- ./workflows:/app/workflows
- ./data:/app/data
- ./logs:/app/logs
environment:
- API_KEY=your_secure_api_key
- OA_LOG_LEVEL=INFO
restart: unless-stopped
| Variable | Description | Default |
|---|---|---|
FASTAPI_PORT | API server port | 8000 |
FASTAPI_HOST | Server bind address | 0.0.0.0 |
API_KEY | API authentication key | - |
JWT_SECRET | JWT token secret | - |
OA_WALLET_FILE | Path to wallet file | - |
OA_WALLET_PASSWORD | Wallet encryption password | - |
OA_LOG_LEVEL | Logging level | INFO |
OA_WORKFLOWS_DIR | Workflows directory | /app/workflows |
OA_DATA_DIR | Data directory | /app/data |
OA_LOGS_DIR | Logs directory | /app/logs |
MAX_CONCURRENT_JOBS | Max concurrent executions | 5 |
JOB_TIMEOUT_SECONDS | Job timeout | 3600 |
ENABLE_CORS | Enable CORS | true |
CORS_ORIGINS | Allowed CORS origins | * |
| Container Path | Purpose | Recommended |
|---|---|---|
/app/workflows | YAML workflow files | ✅ Yes |
/app/data | Persistent data (wallets, state) | ✅ Yes |
/app/logs | Execution and API logs | ✅ Yes |
/app/results | Workflow execution results | Optional |
| Method | Endpoint | Description |
|---|---|---|
GET | / | Root endpoint with API info |
GET | /health | Health check |
GET | /docs | Swagger UI documentation |
GET | /redoc | ReDoc documentation |
| Method | Endpoint | Description |
|---|---|---|
POST | /api/v1/execute | Execute workflow |
POST | /api/v1/execute-sync | Execute workflow (synchronous) |
GET | /api/v1/status/{job_id} | Get execution status |
GET | /api/v1/result/{job_id} | Get execution result |
DELETE | /api/v1/cancel/{job_id} | Cancel running job |
| Method | Endpoint | Description |
|---|---|---|
GET | /api/v1/workflows | List workflows |
GET | /api/v1/workflows/{name} | Get workflow details |
POST | /api/v1/workflows | Upload new workflow |
PUT | /api/v1/workflows/{name} | Update workflow |
DELETE | /api/v1/workflows/{name} | Delete workflow |
| Method | Endpoint | Description |
|---|---|---|
POST | /api/v1/webhooks | Register webhook |
GET | /api/v1/webhooks | List webhooks |
DELETE | /api/v1/webhooks/{name} | Delete webhook |
POST | /webhooks/{name} | Trigger webhook |
| Method | Endpoint | Description |
|---|---|---|
GET | /api/v1/jobs | List recent jobs |
GET | /api/v1/jobs/{job_id} | Get job details |
GET | /api/v1/jobs/{job_id}/logs | Get job logs |
python:3.12-slimlinux/amd64, linux/arm648000/approot (can be changed)Built with ❤️ by the Open-Automator team
Content type
Image
Digest
sha256:edd2b930a…
Size
300.5 MB
Last updated
7 months ago
docker pull lordraw/open-automator-fastapi