TaScan Delegations API

The delegations API from TaScan — 2 operation(s) for delegations.

GitHub OpenAPI

Operations 3

GET /delegations List Delegations #
POST /delegations Delegate To Agent #
DELETE /delegations/{id} Revoke Delegation #

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-delegations-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-delegations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: TaScan Delegations 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: Delegations
paths:
  /delegations:
    get:
      summary: List Delegations
      description: 'List delegated child keys (GET /delegations): this key''s own direct children (id, label, scopes, active/revoked, depth, expires_at) — never the raw credential. An admin session sees every delegated key in the org. Read tier.'
      responses:
        '200':
          description: 'Success. JSON body: { data: ... } or an error object { error, message }.'
        4XX:
          description: Client error (validation, auth, scope, rate limit).
      operationId: get_delegations
      tags:
      - Delegations
      x-mcp-tools:
      - tascan_list_delegations
    post:
      summary: Delegate To Agent
      description: 'Mint a time-limited, NARROWER child API key (POST /delegations, roadmap #11) — only read/write scopes may be requested; full, agent:dispatch, agent:dispatch:code, device:admin, delegate and webhooks:manage are always refused by name (I-6). TTL defaults to 1 hour (3600s), clamps to [60 seconds, 24 hours], and clamps further to THIS key''s own expiry if it has one — a delegated key can never outlive its grantor. The child''s tier is always a SUBSET of this key''s own effective tier, never wider or lateral. Requires the delegate permission (owner-only to grant, requires full). The returned raw key is shown to you exactly ONCE — it is never stored server-side and cannot be retrieved again (I-10). Revoking this key (or any ancestor) cascades immediately to every key it delegated.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                scopes:
                  type: array
                  items:
                    type: string
                    enum:
                    - read
                    - write
                  description: Scopes to request for the child key — read and/or write only.
                ttl_seconds:
                  type: number
                  description: How long the child key lives, in seconds (default 3600 = 1h; clamped to [60, 86400] and to this key's own expiry).
                resource_constraints:
                  type: object
                  description: Optional free-form narrowing (e.g. project/list ids) recorded on the child key as metadata.
              required:
              - scopes
      responses:
        '200':
          description: 'Success. JSON body: { data: ... } or an error object { error, message }.'
        4XX:
          description: Client error (validation, auth, scope, rate limit).
      operationId: post_delegations
      tags:
      - Delegations
      x-mcp-tools:
      - tascan_delegate_to_agent
  /delegations/{id}:
    delete:
      summary: Revoke Delegation
      description: 'Revoke a delegated child key immediately (DELETE /delegations/:key_id) — self-revoke, revoke by an ancestor key, or by an admin session of the org; any other caller is refused. Revoking cascades to every key IT delegated, in turn (the database trigger, not application code). Idempotent: revoking an already-revoked key reports already_revoked, no error.'
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: key_id
        in: query
        required: true
        schema:
          type: string
        description: The delegated key id to revoke (from tascan_list_delegations)
      responses:
        '200':
          description: 'Success. JSON body: { data: ... } or an error object { error, message }.'
        4XX:
          description: Client error (validation, auth, scope, rate limit).
      operationId: delete_delegation
      tags:
      - Delegations
      x-mcp-tools:
      - tascan_revoke_delegation
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