API
GenFarmer API Documentation
Welcome to the GenFarmer API documentation. This guide helps you understand how to interact with the GenFarmer automation system via RESTful APIs.
๐ง Overview
GenFarmer provides endpoints to manage Automation Apps, Tasks, and Runs that can be assigned to devices for automation scenarios.
๐ฆ Base URL
๐ Automation APIs
๐ List Apps
Method:
GET
Endpoint:
/automation/apps
cURL Example:
๐ Get App Details
Method:
GET
Endpoint:
/automation/apps/:id
cURL Example:
๐ง Update App
Method:
PUT
Endpoint:
/automation/apps
cURL Example:
โ Delete App
Method:
DELETE
Endpoint:
/automation/apps
cURL Example:
๐งพ Task APIs
โ Create Task
Method:
POST
Endpoint:
/automation/tasks
cURL Example:
๐ List Tasks
Method:
GET
Endpoint:
/automation/runs
cURL Example:
๐ Update Task
Method:
PUT
Endpoint:
/automation/tasks/:id
cURL Example:
๐ Assign Devices to Task
Method:
PUT
Endpoint:
/automation/tasks/:id/add-devices
cURL Example:
๐ Remove Devices from Task
Method:
PUT
Endpoint:
/automation/tasks/:id/remove-devices
๐ Delete Task
Method:
DELETE
Endpoint:
/automation/tasks
cURL Example:
๐ Run APIs
โถ๏ธ Create Run
Method:
POST
Endpoint:
/automation/runs
cURL Example:
โถ๏ธ Execute Run
Method:
PUT
Endpoint:
/automation/runs/:id/run
cURL Example:
๐ Get Run Output
Method:
GET
Endpoint:
/automation/runs/:id/storages
cURL Example:
๐ค Me API
๐โโ๏ธ Get Current User
Method:
GET
Endpoint:
/backend/auth/me
cURL Example:
๐ Notes
Replace all
:id
placeholders with the actualid
of your app, task, or run.The
script.flow
field in Update App allows defining an automation logic visually using nodes and edges.
๐ฅ Download Postman Collection
๐ Support
For further help, please contact the GenFarmer support team.
Last updated