TaScan Tasks API

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

GitHub OpenAPI

Operations 13

GET /tasks/{id} Get task (includes subtasks + completions) #
PUT /tasks/{id} Update task #
DELETE /tasks/{id} Delete task #
GET /tasks/{id}/access Get the task access level #
PATCH /tasks/{id}/access Set the task access level #
PUT /tasks/{id}/access Set the task access level (PUT = PATCH) #
POST /tasks/{id}/complete Complete a task #
PUT /tasks/{id}/signature-doc Attach the document to sign #
GET /tasks/{task_id}/messages Task messages #
POST /tasks/{task_id}/messages Post Trail Message #
GET /tasks/{task_id}/subtasks List Subtasks #
POST /tasks/{task_id}/subtasks Add Subtasks #
POST /completions/{id}/void Void a completion #

Specifications

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/tascan-io:tascan-io-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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

tascan-io-tasks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: TaScan Tasks API
  version: 1.1.0
  description: 'TaScan: Task. Scan. Done. Verified Work for humans, AI agents and devices. Create and dispatch work, collect evidence (photos, GPS, NFC/QR/RFID scans, device readings, agent output), verify it under pinned policies, and get a signed Action Receipt anyone can check without trusting TaScan. Covers projects and task lists, workers and payments, zones, tags and assets, evidence ingestion, verifications, receipts, agent coordination (cycles, builds, fan-outs, runs), keys, budgets and delegations. MCP clients should use the native MCP server instead: https://app.tascan.io/mcp (npm: tascan-mcp), which exposes the same capabilities as tools. Protocol spec: https://app.tascan.io/docs/protocol/TASCAN-PROTOCOL-v0.1.md. Independent receipt verifier: npx tascan-verify.'
  contact:
    name: TaScan
    url: https://tascan.io
  termsOfService: https://tascan.io/terms
servers:
- url: https://app.tascan.io/api/v1
security:
- apiKey: []
tags:
- name: Tasks
paths:
  /tasks/{id}:
    get:
      summary: Get task (includes subtasks + completions)
      tags:
      - Tasks
      parameters:
      - $ref: '#/components/parameters/id'
      responses:
        '200':
          description: Task
      operationId: get_task
      x-mcp-tools:
      - tascan_get_task
      description: 'SR-S2 (296): + access_level (r7: no task-level agent_assignee; the list''s is in GET /tasks/{id}/access). SR-S2 (296): the agent gate applies (see get_task_access).'
    put:
      summary: Update task
      tags:
      - Tasks
      parameters:
      - $ref: '#/components/parameters/id'
      responses:
        '200':
          description: Updated
      operationId: put_task
      x-mcp-tools:
      - tascan_update_task
      - tascan_apply_qr_style
      description: 'SR-API3 (297): qr_style_id (a saved QR look of the org, or null) is readable and settable on a task; another org''s look is 400. SR-S2 (296): access_level follows patch_task_access''s rules (r7: an agent_assignee is 400 task_agent_assignee_unsupported and nothing is written) and goes through the same one transaction (apply_access_change), which also writes the other fields when an access change applies: a refused or failed change answers its error and nothing at all is changed (the access change, its receipt, the assignments and the other fields commit together or not at all). SR-S2 (296): the agent gate applies (see get_task_access).'
    delete:
      summary: Delete task
      tags:
      - Tasks
      parameters:
      - $ref: '#/components/parameters/id'
      responses:
        '200':
          description: Deleted
      operationId: delete_task
      x-mcp-tools:
      - tascan_delete_task
  /tasks/{id}/access:
    get:
      summary: Get the task access level
      description: 'The access object of a task: access_level, effective_access_level, agent_assignee, effective_agent_assignee, human_assignees (the list''s), inherited, floor. Read tier. SR-S2 (296): an item (or its list) with an agent_assignee answers only the key carrying that agent_id; any other key gets exactly the missing-item answer (a project sandbox key: 403 project_scope_denied). Supervisors (an owner-tier key, an admin session, an agent:dispatch key without agent_id) read it (one supervisor_read ledger note per key per item per hour, written by log_supervisor_reads before the answer; if it cannot be written the read is 503 supervisor_read_unlogged with no assigned data) and post on its trail, never complete it (403 assigned_to_agent). r7 (list level only): the agent gate is the LIST''s agent_assignee and every task follows its list (a task has no agent_assignee of its own; its access object shows the list''s, inherited). access_level (a task-level value wins for the effective level) is 254''s worker-page level and is not part of the agent gate.'
      tags:
      - Tasks
      operationId: get_task_access
      parameters:
      - $ref: '#/components/parameters/id'
      responses:
        '200':
          description: '{ data: access object }'
        4XX:
          description: Client error (validation, auth, scope, lower_requires_admin, access_floor, unknown_agent, access_conflict).
      x-mcp-tools:
      - tascan_get_access
    patch:
      summary: Set the task access level
      description: 'SR-S2 (296): set access_level (r7: agent_assignee is list level only, 400 task_agent_assignee_unsupported; human_assignees: 400, set them on the list). Raising (open -> assigned -> secured, adding an assignee) needs any write key in scope that can see the item. Lowering, or removing / replacing an assignee, needs an owner/admin-tier key or an owner/admin session (403 lower_requires_admin), so an assigned agent never widens its own item. A Decisions list, a task on one and a human_binding = passkey card never go below assigned, for any role (403 access_floor). The change, ONE access_changed ledger event (actor, before, after) and a task''s trail note are one transaction (apply_access_change, 296): all or nothing (503 access_change_failed: nothing changed or recorded); 409 access_conflict when the item changed while the request was being decided. Write tier.'
      tags:
      - Tasks
      operationId: patch_task_access
      parameters:
      - $ref: '#/components/parameters/id'
      responses:
        '200':
          description: '{ data: access object, changed, before, access_receipt }'
        4XX:
          description: Client error (validation, auth, scope, lower_requires_admin, access_floor, unknown_agent, access_conflict).
      x-mcp-tools:
      - tascan_set_access
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              properties:
                access_level:
                  type:
                  - string
                  - 'null'
                  enum:
                  - open
                  - assigned
                  - secured
                  - null
    put:
      summary: Set the task access level (PUT = PATCH)
      description: 'SR-S2 (296): the same as patch_task_access (the MCP transports send a body on PUT).'
      tags:
      - Tasks
      operationId: put_task_access
      parameters:
      - $ref: '#/components/parameters/id'
      responses:
        '200':
          description: '{ data: access object, changed, before, access_receipt }'
        4XX:
          description: Client error (validation, auth, scope, lower_requires_admin, access_floor, unknown_agent, access_conflict).
      x-mcp-tools:
      - tascan_set_access
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              properties:
                access_level:
                  type:
                  - string
                  - 'null'
                  enum:
                  - open
                  - assigned
                  - secured
                  - null
  /tasks/{id}/complete:
    post:
      summary: Complete a task
      description: 'Record a completion on behalf of a worker. SR-API3 (SR-S2 rules, implemented here because SR-S2 has not deployed): a key with an agent_id (its own api_keys row, never the body) completes only as its own agent_registry worker (any other worker_id / on_behalf_of: 403 worker_not_key_owner); a key without one completes on behalf of the named worker (on_behalf_of, or worker_id) only when it is an owner/admin-tier root key or the service key (a delegated key: 403 on_behalf_requires_owner_key); an owner/admin portal session completes as the admin''s own linked worker (admin_users.worker_id; none: 409 admin_worker_unlinked, never a name match or a new worker) for on_behalf_of or itself. Every on-behalf completion records { actor, for_worker } in a completion_on_behalf ledger event written before the row (required for a session or the service key: 503 on_behalf_record_failed, nothing written) and, for a tsk_ key, in the receipt itself (source api:key: + worker_id). Coordination-cycle and signature tasks stay refused (403). Also accepts an admin portal session (the Supabase JWT of an admin_users row) as the bearer: any admin role may read; every other method needs an owner or admin session. SR-S2 (296): another agent''s task answers the missing-task 404; a supervisor gets 403 assigned_to_agent.'
      tags:
      - Tasks
      parameters:
      - $ref: '#/components/parameters/id'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                worker_id:
                  type: string
                response_value:
                  type: string
                notes:
                  type: string
                on_behalf_of:
                  type: string
                  description: Worker id the completion is done on behalf of (recorded)
      responses:
        '200':
          description: 'Success. JSON body: { data: ... } or an error object { error, message }.'
        4XX:
          description: Client error (validation, auth, scope, rate limit).
      operationId: post_task_complete
      x-mcp-tools:
      - tascan_complete_task
  /tasks/{id}/signature-doc:
    put:
      summary: Attach the document to sign
      description: Attach (or replace, before anyone signs) the document a response_type "signature" task asks the worker to read and sign with their passkey. The server stores the bytes privately and records their SHA-256; that hash is inside every signature challenge, so a signature proves which exact document was signed. Replacing bumps version; a document is frozen once a signature lands. Write tier (API key or an owner/admin session).
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - doc_base64
              - mime
              properties:
                doc_base64:
                  type: string
                  description: The document bytes, base64 (at most 10 MB).
                mime:
                  type: string
                  enum:
                  - application/pdf
                  - image/png
                  - image/jpeg
                signer_scope:
                  type: string
                  enum:
                  - any_list_worker
                  - assigned_worker
                  description: 'Who may sign: any worker on the list (default) or only the assigned worker.'
                consent_text_id:
                  type: string
                  description: Consent text shown before signing (default esign-v1).
      responses:
        '200':
          description: '{ data: { doc_sha256, version, mime, bytes, signer_scope, consent_text_id } } (the storage path is never returned)'
        '403':
          description: Not write tier, or not an owner/admin session
        '409':
          description: 'signature_doc_frozen: a signature already landed on this task'
      tags:
      - Tasks
      operationId: put_task_signature_doc
      x-mcp-tools:
      - tascan_add_tasks
  /tasks/{task_id}/messages:
    get:
      summary: Task messages
      parameters:
      - name: task_id
        in: path
        required: true
        schema:
          type: string
      - name: since
        in: query
        required: false
        schema:
          type: string
          format: date-time
        description: 'Return only messages created after this time: pass the created_at of the last message you saw to read only new ones.'
      responses:
        '200':
          description: 'Success. JSON body: { data: ... } or an error object { error, message }.'
        4XX:
          description: Client error (validation, auth, scope, rate limit).
      operationId: get_task_messages
      tags:
      - Tasks
      x-mcp-tools:
      - tascan_get_task_trail
    post:
      summary: Post Trail Message
      description: 'Post a message on a task trail (protocol v0.2 trail_messages): kind question, answer, handoff or discussion. A message never completes a task, never satisfies a gate and never pages anyone. The actor is stamped from your credential (key:, actor_type "key" — a credential, never a human), never from the body; the executor and the reviewer consume a key''s answers only when the key holds agent:dispatch. On an ordinary task this is write tier. On a CYCLE task (one with coord) it needs agent:dispatch (agent:dispatch:code when the task, or the asker a question task stands for, is CODE:/SHELL:) because the text can become executor prompt or reviewer input. kind=answer on a dispatcher-addressed question task answers it through coord_answer_question and releases the blocked asker; a human-addressed question is answered only on the worker page (403 here). finding (reviewer runner) and decision (human completion) cannot be posted. Body ≤ 8000 chars; idempotency_key makes a replay return the same message.'
      parameters:
      - name: task_id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                kind:
                  type: string
                  enum:
                  - question
                  - answer
                  - handoff
                  - discussion
                  description: question = a question for the record (does not block anything); answer = answers a dispatcher question task and releases the asker; handoff = hand work or context to the next agent; discussion = a note.
                body:
                  type: string
                  description: The message text (1-8000 chars). Treated as DATA by every reader; on a cycle task it may be prepended to the executor prompt as TRAIL INPUT.
                reply_to:
                  type: string
                  description: Optional message id this replies to.
                build_ref:
                  type: string
                  description: Optional sha256:<64 hex> the message is about (defaults to the cycle task's bound build).
                addressee:
                  type: string
                  enum:
                  - human
                  - dispatcher
                  description: 'Optional, kind=question only: who the question is for (recorded; nobody is paged).'
                idempotency_key:
                  type: string
                  description: 'Optional replay key (≤ 200 chars): the same key on the same task returns the same message id.'
              required:
              - kind
              - body
      responses:
        '200':
          description: 'Success. JSON body: { data: ... } or an error object { error, message }.'
        4XX:
          description: Client error (validation, auth, scope, rate limit).
      operationId: post_task_messages
      tags:
      - Tasks
      x-mcp-tools:
      - tascan_post_message
  /tasks/{task_id}/subtasks:
    get:
      summary: List Subtasks
      description: List the subtasks of a task, including completion state, stored response values, and completion timestamps (per-set timing).
      parameters:
      - name: task_id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: 'Success. JSON body: { data: ... } or an error object { error, message }.'
        4XX:
          description: Client error (validation, auth, scope, rate limit).
      operationId: get_task_subtasks
      tags:
      - Tasks
      x-mcp-tools:
      - tascan_list_subtasks
    post:
      summary: Add Subtasks
      description: 'Add one or more subtasks to a task (bulk). Subtasks support typed responses: "number" for per-set data (reps, weight, distance), "text" for notes, "choice" for options, "checkbox" for simple steps. Set-logging example: task "Bench Press" with subtasks Set 1/Set 2/Set 3 each response_type "number" — each completed set stores its value and timestamp, giving per-set timing for progression tracking.'
      parameters:
      - name: task_id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                subtasks:
                  type: array
                  items:
                    type: object
                    properties:
                      title:
                        type: string
                        description: Subtask title (e.g. "Set 1")
                      description:
                        type: string
                        description: Optional detail
                      response_type:
                        type: string
                        enum:
                        - checkbox
                        - number
                        - text
                        - choice
                        - link
                        - url
                        - file
                        description: Default checkbox. "number" for per-set values. "choice" needs response_config.options. "link" = the worker submits a URL. "url" = the worker visits a preset URL and confirms. "file" = the worker uploads a file.
                      response_config:
                        type: object
                        description: 'For "choice": {options: [...]}. For "number"/"text": {placeholder}.'
                      requires_photo:
                        type: boolean
                        description: Require photo on completion
                      sort_order:
                        type: number
                        description: Explicit position (defaults to end, in array order)
                    required:
                    - title
                  description: Array of subtasks to create
              required:
              - subtasks
      responses:
        '200':
          description: 'Success. JSON body: { data: ... } or an error object { error, message }.'
        4XX:
          description: Client error (validation, auth, scope, rate limit).
      operationId: post_task_subtasks
      tags:
      - Tasks
      x-mcp-tools:
      - tascan_add_subtasks
  /completions/{id}/void:
    post:
      summary: Void a completion
      description: 'SR-API3: marks a completion wrong without touching it. One refuted verdict (completion_verifications via record_completion_verification, method void, policy completion_void v1, the reason in the finding, idempotency key void:) preceded by a receipted completion_voided ledger event (actor, target, before / after, reason; 503 audit_write_failed and nothing else when it fails). The completion row, its receipt snapshot and both hash chains are unchanged; the task reads open again (GET /lists/:id/tasks?status=, GET /tasks/:id is_complete and completions[].voided). A second void: 409 already_voided; a cycle task''s completion: 403. Full tier. Also accepts an admin portal session (the Supabase JWT of an admin_users row) as the bearer: any admin role may read; every other method needs an owner or admin session.'
      tags:
      - Tasks
      operationId: post_completion_void
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: task_completions.id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                reason:
                  type: string
                  description: 1-500 characters (required)
              required:
              - reason
      responses:
        '200':
          description: 'Success. JSON body: { data: ... } or an error object { error, message }.'
        4XX:
          description: Client error (validation, auth, scope, rate limit).
      x-mcp-tools:
      - tascan_void_completion
components:
  parameters:
    id:
      name: id
      in: path
      required: true
      schema:
        type: string
        format: uuid
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: 'API key from the TaScan admin Team page.  Format: tsk_live_...  Send as: Authorization: Bearer tsk_live_xxx.  Rate limit 60 requests/min.'
x-generated:
  by: live-event/scripts/gen-agent-docs.js
  from:
  - api-v1-helpers.js ROUTES
  - api-v1.js handler switch
  - coord-*-lib.js matchers
  - receipt.js
  - tascan-mcp/tools.cjs
  operations: 218
  mcp_tools: 141