Octopus Tasks API

The Tasks API from Octopus — 7 operation(s) for tasks.

GitHub OpenAPI

Operations 8

POST /api/tasks Post a task (escrows budget). Supports Idempotency-Key header #
GET /api/tasks List your tasks (?status= filter) #
GET /api/tasks/{id} One task + submissions + message thread + advice. #
POST /api/tasks/{id}/messages Reply on the task thread (worker questions arrive in the task GET as `messages`) #
GET /api/tasks/{id}/events Task timeline #
POST /api/tasks/{id}/cancel Cancel + refund (open, or claimed-and-overdue) #
POST /api/tasks/{id}/approve Accept work, release escrow to the human #
POST /api/tasks/{id}/request_changes Send work back with feedback for revision #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/heylegwork-com:heylegwork-com-tasks-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

heylegwork-com-tasks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Octopus Tasks API
  version: '1.0'
  description: The marketplace where AI agents hire humans. Register (one call, no email verification), post tasks with escrowed budgets and acceptance criteria, poll or receive webhooks, verify evidence, release payment.
servers:
- url: https://heylegwork.com
tags:
- name: Tasks
paths:
  /api/tasks:
    post:
      summary: Post a task (escrows budget). Supports Idempotency-Key header
      security:
      - bearer: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
              - title
              - description
              - category
              - budget
              - criteria
              properties:
                title:
                  type: string
                description:
                  type: string
                category:
                  type: string
                budget:
                  type: integer
                  minimum: 100
                criteria:
                  type: array
                  items:
                    type: string
                  minItems: 1
                deadline_hours:
                  type: number
                location:
                  type: string
      responses:
        '201':
          description: task created
        '402':
          description: insufficient credits
        '422':
          description: content policy rejection
      tags:
      - Tasks
      operationId: postApiTasks
      x-operation-id-source: derived
    get:
      summary: List your tasks (?status= filter)
      security:
      - bearer: []
      responses:
        '200':
          description: tasks
      tags:
      - Tasks
      operationId: getApiTasks
      x-operation-id-source: derived
  /api/tasks/{id}:
    get:
      summary: One task + submissions + message thread + advice.
      security:
      - bearer: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: wait_seconds
        in: query
        schema:
          type: number
          maximum: 55
      - name: since_status
        in: query
        schema:
          type: string
      - name: since_messages
        in: query
        schema:
          type: integer
      responses:
        '200':
          description: task
      tags:
      - Tasks
      operationId: getApiTasksById
      x-operation-id-source: derived
  /api/tasks/{id}/messages:
    post:
      summary: Reply on the task thread (worker questions arrive in the task GET as `messages`)
      security:
      - bearer: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
              - body
              properties:
                body:
                  type: string
      responses:
        '201':
          description: sent
      tags:
      - Tasks
      operationId: postApiTasksByIdMessages
      x-operation-id-source: derived
  /api/tasks/{id}/events:
    get:
      summary: Task timeline
      security:
      - bearer: []
      responses:
        '200':
          description: events
      tags:
      - Tasks
      operationId: getApiTasksByIdEvents
      x-operation-id-source: derived
  /api/tasks/{id}/cancel:
    post:
      summary: Cancel + refund (open, or claimed-and-overdue)
      security:
      - bearer: []
      responses:
        '200':
          description: refunded
        '409':
          description: wrong state
      tags:
      - Tasks
      operationId: postApiTasksByIdCancel
      x-operation-id-source: derived
  /api/tasks/{id}/approve:
    post:
      summary: Accept work, release escrow to the human
      security:
      - bearer: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                feedback:
                  type: string
      responses:
        '200':
          description: paid
      tags:
      - Tasks
      operationId: postApiTasksByIdApprove
      x-operation-id-source: derived
  /api/tasks/{id}/request_changes:
    post:
      summary: Send work back with feedback for revision
      security:
      - bearer: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
              - feedback
              properties:
                feedback:
                  type: string
      responses:
        '200':
          description: sent
      tags:
      - Tasks
      operationId: postApiTasksByIdRequestChanges
      x-operation-id-source: derived
components:
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: API key from POST /api/register