Skip to main content

GET /api/tasks

List all tasks for the authenticated user.

Response


POST /api/tasks

Create a new bidding task. Returns 409 if a task already exists for this collection.

Request body

See all fields in the Task Config reference below.

Response

Returns the created task object.

Errors


GET /api/tasks/:id

Get a single task by ID. Returns 404 if task doesn’t belong to the user.

PUT /api/tasks/:id

Update a task’s config. If the task is running, it is restarted automatically with the new config.

Request body

Any subset of task config fields. Only provided fields are updated.

DELETE /api/tasks/:id

Delete a task. If running, the worker is stopped first.

POST /api/tasks/:id/start

Start the task worker.

POST /api/tasks/:id/stop

Stop the task worker. The task’s DB state is persisted as is_running: false.

GET /api/tasks/:id/bids

Get the currently active bids for this task (fetched from Satflow, not local DB).

GET /api/tasks/floor

Fetch the current floor price for a collection (used for task config preview). Query params: slug (required), type (default: ordinals)

Response


GET /api/tasks/rune-market

Fetch floor price + VWAP data for a Rune ticker. Query params: ticker (required), depth (sats of order book depth, default: 1000000)

Response


Task Config Fields

All fields and their defaults: