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.
openapi: 3.2.0
info:
title: TaScan Zones 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: Zones
paths:
/zones:
get:
summary: List geofence zones
tags:
- Zones
parameters:
- name: project_id
in: query
schema:
type: string
responses:
'200':
description: Zones
operationId: get_zones
post:
summary: Create geofence zone
description: 'Circle zone with per-zone behavior toggles: zone-lock, manager alerts on enter/exit, auto clock-in/out.'
tags:
- Zones
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Zone'
responses:
'201':
description: Created — includes Site Gate URL
operationId: post_zones
x-mcp-tools:
- tascan_create_zone
/zones/compliance:
get:
summary: Zone Compliance Audit
description: 'Hazard-zone compliance audit (OSHA / insurance): every zone crossing, PPE checkpoint verdict (complied / failed with what was missing / skipped), and breach, plus injury reports cross-referenced with the worker''s last PPE checkpoint before the injury. Scope by project or zone, optionally by worker and date range. Same rows the printable Evidence Pack shows. SR-S2 r7 (list level only): zone events and injury reports on lists assigned to another agent are left out (the events in the query, before its limit); the summary counts only what is returned.'
parameters:
- name: project_id
in: query
required: false
schema:
type: string
- name: zone_id
in: query
required: false
schema:
type: string
- name: worker_id
in: query
required: false
schema:
type: string
- name: since
in: query
required: false
schema:
type: string
description: ISO date/time lower bound
- name: until
in: query
required: false
schema:
type: string
description: ISO date/time upper bound
responses:
'200':
description: 'Success. JSON body: { data: ... } or an error object { error, message }.'
4XX:
description: Client error (validation, auth, scope, rate limit).
operationId: get_zone_compliance
tags:
- Zones
x-mcp-tools:
- tascan_zone_compliance
/zones/{id}:
get:
summary: Get zone
description: 'SR-S2 (296): a zone that routes to a list (task_list_id or task_list_on_enter) the key may not reach answers 404 Zone not found on GET, PUT and DELETE, and is left out of GET /zones; the same holds for invoices, tags, scheduled texts, insights, signatures, project reports and work orders tied to such a list or task, and for list / task ids in a request body or query.'
tags:
- Zones
parameters:
- $ref: '#/components/parameters/id'
responses:
'200':
description: Zone
operationId: get_zone
put:
summary: Update zone
tags:
- Zones
parameters:
- $ref: '#/components/parameters/id'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Zone'
responses:
'200':
description: Updated
operationId: put_zone
x-mcp-tools:
- tascan_update_zone
delete:
summary: Deactivate zone
tags:
- Zones
parameters:
- $ref: '#/components/parameters/id'
responses:
'200':
description: Deactivated
operationId: delete_zone
/zones/{id}/events:
get:
summary: Zone crossing audit trail
description: 'enter / exit / gate_scan / blocked events with GPS, worker, and distance. SR-S2 r7 (list level only): rows of lists assigned to another agent are left out IN THE QUERY, before the limit / offset is applied, so a page is never short and never counts them.'
tags:
- Zones
parameters:
- $ref: '#/components/parameters/id'
- name: event_type
in: query
schema:
type: string
enum:
- enter
- exit
- gate_scan
- blocked
- $ref: '#/components/parameters/since'
- $ref: '#/components/parameters/limit'
responses:
'200':
description: Events
operationId: get_zone_events
components:
parameters:
id:
name: id
in: path
required: true
schema:
type: string
format: uuid
since:
name: since
in: query
schema:
type: string
format: date-time
description: Only records after this ISO timestamp
limit:
name: limit
in: query
schema:
type: integer
default: 50
maximum: 200
schemas:
Zone:
type: object
properties:
name:
type: string
lat:
type: number
lng:
type: number
radius_m:
type: integer
minimum: 10
maximum: 100000
default: 150
project_id:
type: string
format: uuid
task_list_id:
type: string
format: uuid
description: List the Site Gate routes workers to inside this zone
enforce_on_list:
type: boolean
description: 'Zone-lock: the list cannot be started outside the radius'
notify_on_enter:
type: boolean
description: Email the manager when a worker enters (danger areas)
notify_on_exit:
type: boolean
description: Email the manager when a worker leaves (accountability)
auto_clock_in:
type: boolean
description: Entering writes a shift_start event
auto_clock_out:
type: boolean
description: Leaving writes a shift_end event
notify_email:
type: string
description: Alert recipient override; defaults to all org admins
required:
- name
- lat
- lng
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