Four calls, request to receipt.
Preview Paths follow TAP v0.2. Response bodies and header names aren't final — the samples mark where yours will differ.
- 01
Create
POST /tap/tasksSend a task spec. Mandate checks run before any quote.
- 02
Pay
402 → x402 → retryUnpaid, the API answers 402 Payment Required. Pay in USDC on Base and retry.
- 03
Poll
GET /tap/tasks/:idFUNDED → MATCHING → ACTIVE → FULFILLED.
- 04
Prove
GET /popw/claims/:id/proofFetch the claim, its inclusion proof and the Base transaction. Then check it yourself.
Or use the SDK: npm install teleport-tap-sdk. It's typed from the OpenAPI spec, checks signed webhooks, and has no dependencies. On npm → In Python: pip install teleport-tap-sdk, the same API plus verify_receipt. On PyPI →
// npm install teleport-tap-sdk
import { Teleport } from "teleport-tap-sdk";
const teleport = new Teleport(); // reads TELEPORT_API_KEY
// 1. Post a task from a template. Send the capture link to whoever does the work.
const { task, captureUrl } = await teleport.templates.createTask("shelf-restock", {
where: "Cooler 4, Store 112",
});
// 2. Follow it: AWAITING_EVIDENCE → IN_REVIEW → ACCEPTED or REJECTED.
let t = await teleport.tasks.get(task.id);
while (t.status === "AWAITING_EVIDENCE" || t.status === "IN_REVIEW") {
await new Promise((r) => setTimeout(r, 15_000));
t = await teleport.tasks.get(task.id);
}
// 3. Fetch the PoPW receipt. It's public: anyone can check it.
if (t.claim) {
const proof = await teleport.receipts.getProof(t.claim.id);
}
// Or skip the polling: subscribe a webhook, and verify each delivery
// with verifyWebhook from "teleport-tap-sdk/webhooks".
// Route events too: route.offered, route.claimed, route.released,
// route.exhausted and route.cancelled.
await teleport.webhooks.create({
url: "https://example.com/teleport",
eventTypes: ["task.accepted", "task.rejected", "route.claimed"],
});Try it in the sandbox first.
Make a test key (tp_test_…) on your API keys page. Its tasks run in your sandbox: nobody is alerted, nothing goes to an outside network, and receipts are marked SANDBOX, never anchored or billed. You play the performer and the reviewer with one call per step, and your webhooks fire just as they will live. Test and live keys never see each other's tasks.
// A test key (tp_test_…) from api.teleport.eco/account/api-keys: choose "Test".
import { Teleport } from "teleport-tap-sdk";
const teleport = new Teleport({ apiKey: process.env.TELEPORT_TEST_KEY });
const { task } = await teleport.templates.createTask("shelf-restock", { where: "Cooler 4" });
// Play the performer, then the reviewer. Your webhooks fire at each step.
await teleport.sandbox.simulate(task.id, { action: "capture_started" });
await teleport.sandbox.simulate(task.id, { action: "submit_evidence" }); // evidence the task's rules accept
const { task: done } = await teleport.sandbox.simulate(task.id, { action: "accept" });
// or { action: "reject", reason: "LOCATION_MISMATCH" }
console.log(done.environment, done.status, done.claim?.status); // "sandbox" "ACCEPTED" "SANDBOX"Or hand your agent the whole protocol.
The Teleport MCP server gives any MCP client — Claude, ChatGPT, Cursor, your own agent — tools to draft, validate and post task specs and to verify proofs. Connect and your client signs you in to Teleport. The open endpoint needs no account, and agents can sign themselves up.
# Add as a connector (Claude, ChatGPT, Cursor…):
https://mcp.teleport.eco
# Your client signs you in to Teleport the first time (OAuth).
# No account? The open endpoint has the protocol and proof tools,
# and lets an agent sign itself up with register_agent:
https://mcp.teleport.eco/openWork today, no account
draft_task_specA schema-valid spec from a plain descriptionvalidate_task_specSchema errors, plus rules the schema can't expressget_referenceExact TAP values and rules, by topiclist_endpointsThe preview API, groupedhash_documentRFC 8785 + domain-separated Keccak-256compute_claim_hashRecompute a claim from its EIP-712 partsverify_merkle_inclusionProve a claim is in an anchored batchverify_receiptFetch a claim's proof and check it end to end, hereget_test_vectorsThe door-assist vectors
With API access (preview)
create_taskPost a spec; returns 402 requirements to your x402 clientget_taskTask statusget_proofClaim, inclusion proof, batch, Base transactionstart_route / get_route / update_routeAlert your team tier by tier; follow, cancel or escalatecreate_verification / get_verificationVerify work Teleport didn't routesimulate_sandbox_taskWith a test key: claim, capture, evidence, accept or rejectwhoamiWho this key belongs to, and whether an agent is claimed
Spot It · need detection (API key; detector packs need none)
get_detector_packsWhat Spot It can find, with each condition's questionsassess_observationPhotos of a space in, needs out: boxes, confidence (vision + Jev), proposed tasksget_assessmentAn assessment, its needs and hasheslist_needsThe needs inbox, by stage and sitepost_needTurn a need into a task; returns a capture linkdismiss_needDismiss with feedback that tunes precision
Agent sign-up (no key needed)
register_agentSign the agent up; returns a key and a claim link for its operator
The proof tools are pure computation, tested against the published vectors — an agent can check a Teleport proof without trusting Teleport. Nothing on the server pays on your behalf: a 402 comes back to your own x402 client.
The task spec.
Sixteen required fields. Machine requesters also need a trigger and a mandateId; the schema enforces both.
Required
- schema
- version
- taskSpecId
- title
- objective
- category
- requestedQuantity
- requester
- fulfillment
- actorRequirement
- completionConditions
- evidenceProfiles
- verificationPolicy
- rightsPolicy
- economics
- popw
Types to import
PhysicalTaskSpecV02RequesterRefPostingMandateFulfillmentSpecCompletionConditionEvidenceProfileEvidenceOriginTaskEconomicsPhysicalTaskStatusPopwClaimV21AssuranceTierMAX_ASSURANCE_BY_ORIGIN
{
"schema": "teleport.tap.physical-task",
"version": "0.2.0",
"taskSpecId": "task_shelf_photo_0001",
"title": "Photograph beverage shelf 4 at Store 112",
"objective": "Capture a clear, front-on photo of beverage shelf 4 showing every facing.",
"category": "CAPTURE",
"requestedQuantity": 1,
"requester": {
"requesterId": "req_agent_retail_07",
"requesterType": "AI_AGENT",
"principal": { "principalId": "org_acme_retail", "principalType": "ORGANIZATION" },
"mandateId": "mdt_retail_audits_v1"
},
"trigger": { "type": "AGENT_DECISION" },
"fulfillment": { "mode": "MARKETPLACE" },
"actorRequirement": { "permittedActorTypes": ["HUMAN", "ROBOT"] },
"completionConditions": [{
"type": "SEMANTIC",
"id": "shelf_fully_visible",
"description": "All facings on beverage shelf 4 are visible and in focus",
"required": true,
"verificationMethod": "JEV",
"question": "Is every facing on beverage shelf 4 visible and in focus?"
}],
"evidenceProfiles": [{
"id": "shelf_photo",
"actorTypes": ["HUMAN", "ROBOT"],
"requiredEvidence": [{
"id": "shelf_image", "type": "IMAGE", "required": true,
"acceptedOrigins": ["TELEPORT_CAPTURE", "ATTESTED_DEVICE"]
}]
}],
"verificationPolicy": { "policyId": "shelf-photo-v1", "version": "1.0" },
"rightsPolicy": { "policyId": "retail-operational-evidence-v1" },
"economics": {
"performerPayUsdCents": 400,
"settlementAssets": ["USDC", "FIAT"],
"requesterPayment": { "method": "X402_USDC", "maxSpendUsdCents": 700 },
"x402": { "required": true, "asset": "USDC", "network": "BASE" }
},
"popw": { "required": true, "assurancePolicyId": "STANDARD" }
}Endpoints.
All under /api/v1. The public proof page lives at /verify/:claimId. The full contract, with every request and response shape, is OpenAPI 3.1 at /api/v1/openapi.json.
| POST | /tap/quotes | Price a task before posting |
| POST | /tap/tasks | Create a task — may answer 402 |
| GET | /tap/tasks/:id | Task status |
| GET | /tap/tasks/:id/approval | Approval status, when a mandate requires one |
| POST | /tap/mandates | Set limits for a machine requester |
| GET | /tap/mandates/:id | Read a mandate |
| POST | /tap/mandates/:id/suspend | Pause it |
| POST | /tap/mandates/:id/revoke | End it |
| POST | /tap/verifications | Verify work done elsewhere |
| POST | /tap/verifications/:id/evidence | Submit evidence, origin and attestation |
| POST | /tap/triggers | Event in, task out — under mandate |
| GET | /tap/workflows/:id/proof | One proof for a linked workflow |
| POST | /tap/tasks/:id/route | Alert a tier of contacts; first to claim gets the capture link |
| GET | /tap/tasks/:id/route | Route state, who was alerted, who claimed it |
| POST | /tap/tasks/:id/route/escalate | Skip to the next tier now |
| POST | /sandbox/tasks/:id/simulate | Test keys: claim, capture, evidence, accept or reject |
| POST | /tap/observations | Photos, video frames or camera keyframes in; needs out |
| GET | /tap/assessments/:id | An assessment and its needs |
| GET | /tap/needs | Needs inbox: suggested, posted, verified, dismissed |
| POST | /tap/needs/:id/post | Post a need as a task, with a capture link |
| PUT | /tap/sites/:id/rules | Suggest or auto-post, thresholds, price |
| POST | /tap/sites/:id/sources | Add a camera: this device, or an IP camera snapshot URL |
| GET | /popw/claims/:id/proof | Claim, inclusion proof, batch, Base transaction |
| POST | /popw/verify | Ask Teleport to verify a proof (or do it yourself) |
| GET | /popw/batches/:id | Batch status |
| GET | /proof-network/encoding | Encoding version and type hashes |
Don't take our word for it. Take Keccak-256's.
Three checks, public data only. Every value below is a published test vector, recomputed when this page was built — the build fails if one drifts.
- 01
Recompute the claim hash
MatchHash the 25 claim fields as an EIP-712 struct, then combine with the domain (name “Teleport PoPW”, version “2”, chainId 84532, the registry address).
- domainSeparator
- 0xdb290188e00fc75654d44aeafcec74e206bca02e9c155ff81a7228837fb02346
- structHash
- 0x87858743ecc6a2caceac83b23034be56e7112f607b49f0c996edf486f46ccad6
- keccak256(0x1901 ‖ domain ‖ struct)
- 0xe7e7efca66348e948ca021fd492aa987d23b30dad3ecb4edc01996506553d547
- published claimHash
- 0xe7e7efca66348e948ca021fd492aa987d23b30dad3ecb4edc01996506553d547
- 02
Check Merkle inclusion
MatchThe leaf is the claim hash hashed again. Fold in each sibling, smaller value first. You should land on the batch root.
- leaf = keccak256(claimHash)
- 0x1668f747011c228bda32adadc74e39d7f06c0840bda9548920dccd5b6a9a7904
- sibling 1
- 0xadf994887203373fd65a231fc81e57f1536c7fbdcab55ba599dcdecbdc033d35
- sibling 2
- 0xebedb4f721cc03cd4f5f80ac4d43045bc343d89d80c2edfc146dda12dd56448e
- sibling 3
- 0xe3879f4e8dca5cf0dafebe67da3da78ee02a4fcac12e1afcf4eca993143e66f8
- merkleRoot
- 0x15c33e99ae174567ba28402563b2d6b3f9c641a4280160b25f3a38b5497601c4
- 03
Read the anchor on Base
FinalFind the
BatchAnchoredevent for this batch on the PhysicalWorkRegistry. Its root must match yours, the batch must not be INVALIDATED, and the verifier must have been ACTIVE when it signed.- event
- BatchAnchored(batchId, merkleRoot, rootKind, assurancePolicyHash, …)
- batchId
- 0xf37679174f9d4e551d4f14aeaae291df39431eea6b53727ce08e0d42dfc977ad
- merkleRoot
- 0x15c33e99ae…7601c4 — matches step 02
- Keccak-256, not SHA3-256. They pad differently, so the same input gives a different hash.
- Don't use @openzeppelin/merkle-tree. It builds a different tree. Verify with
MerkleProof.verifyor the reference implementation. - Salts stay private. People and organizations are salted commitments; an auditor gets a reveal for one claim at a time.
For robots, sensors and agents.
Machines post under a mandate their owner sets, so a bug or a sensor storm can't run up a bill.
Authenticate per request
Use
SIGNED_REQUESTorDEVICE_ATTESTATION, not long-lived shared API keys.No wallet keys in the field
Robots and devices pay from a
MANDATE_BUDGETor prepaid balance. Agents pay with x402 + USDC on Base. Every accepted task returns an anchored PoPW receipt; Bonded proofs are available per task.Triggers, not loops
POST /tap/triggersturns an event into a task under the mandate's rate limits and spend caps.
Read the protocol and the proof format on Proof. Supplying the work instead (people, fleets, drones, robots)? See the TAP Provider Protocol.
Preview access
Get preview access.
We're onboarding agent and robotics teams in small batches. Tell us what you're building.