TaScan Sites API
The sites API from TaScan — 4 operation(s) for sites.
The sites API from TaScan — 4 operation(s) for sites.
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-sites-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 Sites 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: Sites
paths:
/sites:
get:
responses:
'200':
description: 'Success. JSON body: { data: ... } or an error object { error, message }.'
4XX:
description: Client error (validation, auth, scope, rate limit).
tags:
- Sites
summary: List Sites
operationId: get_sites
description: 'The organization''s sites (migration 267). Read 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.'
parameters:
- name: active
in: query
required: false
schema:
type: string
enum:
- 'true'
- 'false'
- all
description: true (default), false or all
- name: q
in: query
required: false
schema:
type: string
description: Substring of the name, address or client company
- name: project_id
in: query
required: false
schema:
type: string
description: Only sites linked to this project (project_sites)
x-mcp-tools:
- tascan_list_sites
post:
responses:
'200':
description: 'Success. JSON body: { data: ... } or an error object { error, message }.'
4XX:
description: Client error (validation, auth, scope, rate limit).
tags:
- Sites
summary: Create Site
operationId: post_sites
description: 'Create a site in the caller''s organization (the org always comes from the credential). Write 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.'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: 1-200 characters
address:
type: string
lat:
type: number
description: -90 to 90, sent with lng
lng:
type: number
description: -180 to 180, sent with lat
client_company:
type: string
external_key:
type: string
description: Unique per organization (409 external_key_taken)
is_active:
type: boolean
required:
- name
x-mcp-tools:
- tascan_create_site
/sites/{id}:
get:
responses:
'200':
description: 'Success. JSON body: { data: ... } or an error object { error, message }.'
4XX:
description: Client error (validation, auth, scope, rate limit).
tags:
- Sites
summary: Get Site
operationId: get_site
description: 'One site with its linked projects and task lists. Another organization''s site is 404. Read 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.'
parameters:
- name: id
in: path
required: true
schema:
type: string
x-mcp-tools:
- tascan_get_site
put:
responses:
'200':
description: 'Success. JSON body: { data: ... } or an error object { error, message }.'
4XX:
description: Client error (validation, auth, scope, rate limit).
tags:
- Sites
summary: Update Site
operationId: put_site
description: 'Partial update (PUT and PATCH are the same). Write 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. SR-API3 (297): qr_style_id (a saved QR look of the org, or null) is readable and settable on a site; another org''s look is 400.'
parameters:
- name: id
in: path
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: 1-200 characters
address:
type: string
lat:
type: number
description: -90 to 90, sent with lng
lng:
type: number
description: -180 to 180, sent with lat
client_company:
type: string
external_key:
type: string
description: Unique per organization (409 external_key_taken)
is_active:
type: boolean
qr_style_id:
type: string
nullable: true
x-mcp-tools:
- tascan_update_site
- tascan_apply_qr_style
patch:
responses:
'200':
description: 'Success. JSON body: { data: ... } or an error object { error, message }.'
4XX:
description: Client error (validation, auth, scope, rate limit).
tags:
- Sites
summary: Update Site
operationId: patch_site
description: 'Partial update (PUT and PATCH are the same). Write 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. SR-API3 (297): qr_style_id (a saved QR look of the org, or null) is readable and settable on a site; another org''s look is 400.'
parameters:
- name: id
in: path
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: 1-200 characters
address:
type: string
lat:
type: number
description: -90 to 90, sent with lng
lng:
type: number
description: -180 to 180, sent with lat
client_company:
type: string
external_key:
type: string
description: Unique per organization (409 external_key_taken)
is_active:
type: boolean
qr_style_id:
type: string
nullable: true
x-mcp-tools:
- tascan_apply_qr_style
delete:
responses:
'200':
description: 'Success. JSON body: { data: ... } or an error object { error, message }.'
4XX:
description: Client error (validation, auth, scope, rate limit).
tags:
- Sites
summary: Delete Site
operationId: delete_site
description: 'Soft delete by default (is_active false; links, work orders and visits stay). ?hard=true deletes the row, refused 409 site_has_history while work orders or visits point at it. Write 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.'
parameters:
- name: id
in: path
required: true
schema:
type: string
- name: hard
in: query
required: false
schema:
type: string
enum:
- 'true'
- 'false'
description: true = hard delete
/sites/{id}/lists/{list_id}:
post:
responses:
'200':
description: 'Success. JSON body: { data: ... } or an error object { error, message }.'
4XX:
description: Client error (validation, auth, scope, rate limit).
tags:
- Sites
summary: Link Site to a list
operationId: post_site_list
description: 'Link the site to a list (site_task_lists); both must be in the caller''s organization (else 404). Linking twice answers 200 already_linked. Write 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.'
parameters:
- name: id
in: path
required: true
schema:
type: string
- name: list_id
in: path
required: true
schema:
type: string
x-mcp-tools:
- tascan_link_site
delete:
responses:
'200':
description: 'Success. JSON body: { data: ... } or an error object { error, message }.'
4XX:
description: Client error (validation, auth, scope, rate limit).
tags:
- Sites
summary: Unlink Site from a list
operationId: delete_site_list
description: 'Remove the site_task_lists link (was_linked says whether one existed). Write 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.'
parameters:
- name: id
in: path
required: true
schema:
type: string
- name: list_id
in: path
required: true
schema:
type: string
x-mcp-tools:
- tascan_unlink_site
/sites/{id}/projects/{project_id}:
post:
responses:
'200':
description: 'Success. JSON body: { data: ... } or an error object { error, message }.'
4XX:
description: Client error (validation, auth, scope, rate limit).
tags:
- Sites
summary: Link Site to a project
operationId: post_site_project
description: 'Link the site to a project (project_sites); both must be in the caller''s organization (else 404). Linking twice answers 200 already_linked. Write 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.'
parameters:
- name: id
in: path
required: true
schema:
type: string
- name: project_id
in: path
required: true
schema:
type: string
x-mcp-tools:
- tascan_link_site
delete:
responses:
'200':
description: 'Success. JSON body: { data: ... } or an error object { error, message }.'
4XX:
description: Client error (validation, auth, scope, rate limit).
tags:
- Sites
summary: Unlink Site from a project
operationId: delete_site_project
description: 'Remove the project_sites link (was_linked says whether one existed). Write 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.'
parameters:
- name: id
in: path
required: true
schema:
type: string
- name: project_id
in: path
required: true
schema:
type: string
x-mcp-tools:
- tascan_unlink_site
components:
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