TaScan Workers API
The workers API from TaScan — 7 operation(s) for workers.
The workers API from TaScan — 7 operation(s) for workers.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/tascan-io:tascan-io-workers-api"
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.
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: 3.2.0
info:
title: TaScan Workers 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: Workers
paths:
/workers:
get:
summary: List workers
tags:
- Workers
responses:
'200':
description: Workers
operationId: get_workers
x-mcp-tools:
- tascan_list_workers
description: 'Workers of the organization; every row carries actor_kind. 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 r7: for a caller that is not owner/admin and not unrestricted (an agent key, a delegated key, a device) last_active_at and every other stored global aggregate (total_points, streaks, integrity) are OMITTED from each worker; counts are recomputed from the rows it may see. ?active_since (a filter on last_active_at) is refused to such a caller: 400 active_since_unavailable.'
parameters:
- name: actor_kind
in: query
required: false
schema:
type: string
description: One kind or a comma list of person, agent, admin, device
- name: query
in: query
required: false
schema:
type: string
description: Substring of name, email or phone
- name: include_inactive
in: query
required: false
schema:
type: string
description: true = include tombstones
post:
summary: Create worker
tags:
- Workers
requestBody:
content:
application/json:
schema:
type: object
properties:
name:
type: string
phone:
type: string
email:
type: string
actor_kind:
type: string
enum:
- person
- agent
- admin
- device
description: 'workers.actor_kind (291). To or from agent / admin: an owner or admin session only (403 actor_kind_requires_admin).'
required:
- name
responses:
'201':
description: Created
operationId: post_workers
x-mcp-tools:
- tascan_create_worker
description: 'Create a worker. 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 r7: for a caller that is not owner/admin and not unrestricted (an agent key, a delegated key, a device) last_active_at and every other stored global aggregate (total_points, streaks, integrity) are OMITTED from each worker; counts are recomputed from the rows it may see.'
/workers/duplicates:
get:
summary: Find duplicate workers
description: 'Phone-hash match + name + GPS-centroid correlation, per-signal detail. SR-S2 r7: for a caller that is not owner/admin and not unrestricted (an agent key, a delegated key, a device) last_active_at and every other stored global aggregate (total_points, streaks, integrity) are OMITTED from each worker; counts are recomputed from the rows it may see.'
tags:
- Workers
responses:
'200':
description: Duplicate candidates
operationId: get_worker_duplicates
x-mcp-tools:
- tascan_find_duplicate_workers
/workers/merge:
post:
summary: Merge Workers
description: Merge duplicate worker records into one canonical identity (Patent 4 identity consolidation). Reassigns every reference (completions, timer events, points, payments, rosters — 31 columns across 31 tables), backfills missing phone/email on the primary, sums points, and tombstones the duplicates (merged_into + is_active=false — NEVER hard-deletes). ALWAYS run with dry_run=true first and show Mike the counts; pass dry_run=false only after explicit confirmation.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
primary_worker_id:
type: string
description: The canonical worker that survives (usually the one with a phone)
duplicate_worker_ids:
type: array
items:
type: string
description: Worker IDs to fold into the primary (max 20)
dry_run:
type: boolean
description: true (default) = report reassignment counts only, change nothing. false = execute atomically.
required:
- primary_worker_id
- duplicate_worker_ids
responses:
'200':
description: 'Success. JSON body: { data: ... } or an error object { error, message }.'
4XX:
description: Client error (validation, auth, scope, rate limit).
operationId: post_worker_merge
tags:
- Workers
x-mcp-tools:
- tascan_merge_workers
/workers/{id}:
get:
summary: Get worker
tags:
- Workers
parameters:
- $ref: '#/components/parameters/id'
responses:
'200':
description: Worker
operationId: get_worker
x-mcp-tools:
- tascan_get_worker
description: 'SR-S2 r7: for a caller that is not owner/admin and not unrestricted (an agent key, a delegated key, a device) last_active_at and every other stored global aggregate (total_points, streaks, integrity) are OMITTED from each worker; counts are recomputed from the rows it may see.'
put:
summary: Update worker
tags:
- Workers
parameters:
- $ref: '#/components/parameters/id'
responses:
'200':
description: Updated
operationId: put_worker
x-mcp-tools:
- tascan_update_worker
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
phone:
type: string
email:
type: string
actor_kind:
type: string
enum:
- person
- agent
- admin
- device
description: 'workers.actor_kind (291). To or from agent / admin: an owner or admin session only (403 actor_kind_requires_admin).'
active:
type: boolean
reason:
type: string
description: At most 500 characters
description: 'Update a worker (PUT and PATCH are the same). 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-API3: { active: false | true, reason? } deactivates or reactivates the worker (is_active; never a delete), receipted first by a worker_active_changed ledger event (actor, worker, before / after, reason; 503 audit_write_failed and no change when it fails). A merged record (merged_into) is never reactivated (409 worker_merged). SR-S2 r7: for a caller that is not owner/admin and not unrestricted (an agent key, a delegated key, a device) last_active_at and every other stored global aggregate (total_points, streaks, integrity) are OMITTED from each worker; counts are recomputed from the rows it may see.'
delete:
summary: Delete Worker
description: Tombstone a worker record (is_active=false). REFUSES if the worker has any task/subtask completions or payments — merge those into the real worker with tascan_merge_workers instead. Never hard-deletes.
parameters:
- name: id
in: path
required: true
schema:
type: string
- name: worker_id
in: query
required: true
schema:
type: string
description: Worker ID to delete
responses:
'200':
description: 'Success. JSON body: { data: ... } or an error object { error, message }.'
4XX:
description: Client error (validation, auth, scope, rate limit).
operationId: delete_worker
tags:
- Workers
x-mcp-tools:
- tascan_delete_worker
patch:
responses:
'200':
description: 'Success. JSON body: { data: ... } or an error object { error, message }.'
4XX:
description: Client error (validation, auth, scope, rate limit).
tags:
- Workers
summary: Update worker
operationId: patch_worker
description: 'Update a worker (PUT and PATCH are the same). 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-API3: { active: false | true, reason? } deactivates or reactivates the worker (is_active; never a delete), receipted first by a worker_active_changed ledger event (actor, worker, before / after, reason; 503 audit_write_failed and no change when it fails). A merged record (merged_into) is never reactivated (409 worker_merged). SR-S2 r7: for a caller that is not owner/admin and not unrestricted (an agent key, a delegated key, a device) last_active_at and every other stored global aggregate (total_points, streaks, integrity) are OMITTED from each worker; counts are recomputed from the rows it may see.'
parameters:
- $ref: '#/components/parameters/id'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
phone:
type: string
email:
type: string
actor_kind:
type: string
enum:
- person
- agent
- admin
- device
description: 'workers.actor_kind (291). To or from agent / admin: an owner or admin session only (403 actor_kind_requires_admin).'
active:
type: boolean
reason:
type: string
description: At most 500 characters
x-mcp-tools:
- tascan_update_worker
/workers/{id}/passkeys:
get:
summary: Worker passkeys
parameters:
- name: 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_worker_passkeys
tags:
- Workers
/workers/{id}/passkeys/{passkey_id}/revoke:
post:
summary: Worker passkey revoke
parameters:
- name: id
in: path
required: true
schema:
type: string
- name: passkey_id
in: path
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
responses:
'200':
description: 'Success. JSON body: { data: ... } or an error object { error, message }.'
4XX:
description: Client error (validation, auth, scope, rate limit).
operationId: post_worker_passkey_revoke
tags:
- Workers
/workers/{id}/passport:
get:
summary: Worker passport
description: 'Server-computed portable reputation: verified completion stats, badges, inferred skills with civilian equivalents (Patent 4). 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, r7 list level only): work on a list assigned to another agent adds nothing (completions, photos, hours, issues). r7: for a caller that is not owner/admin and not unrestricted (an agent key, the assignee included, a delegated key, a device) total_points, current_streak, longest_streak, integrity and skills are OMITTED (stored aggregates over all of the worker''s work) and last_active is the latest row it may see; an owner/admin-tier key, an admin session and an agent:dispatch key without agent_id get them as stored.'
tags:
- Workers
parameters:
- $ref: '#/components/parameters/id'
responses:
'200':
description: Passport
operationId: get_worker_passport
x-mcp-tools:
- tascan_get_worker_passport
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