Endpoints for task creation, monitoring, retrieval
Endpoints for Task Creation, Monitoring, Retrieval
Opus exposes a RESTful API for dApps, bots, and external platforms to programmatically interact with its automation engine.
POST /tasks – Create a new automation task
{
"owner": "0xabc...",
"condition": {
"type": "priceBelow",
"token": "ETH",
"value": 2400
},
"action": {
"type": "swap",
"tokenIn": "USDC",
"tokenOut": "ETH",
"amount": 100
}
}
GET /tasks/:wallet – Retrieve all tasks for a wallet
curl https://api.tryopus.io/tasks/0xabc123
GET /tasks/status/:taskId – Check latest status
{
"taskId": 11,
"status": "executed",
"timestamp": 1717231234
}
Last updated