{"openapi":"3.1.0","info":{"title":"Teleport API","version":"1.0.0","summary":"Post physical work, route it, verify it and get a Proof of Physical Work (PoPW) receipt.","description":"The Teleport TAP API. Authenticate with `Authorization: Bearer <key>`: an API key (`tp_live_…`) or an OAuth access token (`tpo_…`). Every operation is labelled `x-teleport-stability`: `stable` operations change only additively within v1; `beta` ones may change with notice in the changelog. Breaking changes ship as /api/v2, and v1 keeps working for at least 12 months after, with Deprecation and Sunset headers. Errors always look like `{ error: { code, message, details? } }`.","contact":{"name":"Teleport","url":"https://teleport.eco/developers"},"termsOfService":"https://teleport.eco/terms"},"servers":[{"url":"https://api.teleport.eco/api/v1"}],"security":[{"bearer":[]}],"tags":[{"name":"Tasks","description":"Physical tasks (TAP): post work, follow it, add evidence."},{"name":"Routing","description":"Send a task to your team's contacts, tier by tier, and follow the route."},{"name":"Verifications","description":"Verify-only: evidence of work Teleport didn't route, checked and proven."},{"name":"Templates","description":"Reusable task templates."},{"name":"Proofs","description":"Proof of Physical Work (PoPW) receipts: claims, inclusion proofs and anchored batches."},{"name":"Proof network","description":"The published encoding, assurance and verification policies receipts are checked against."},{"name":"Webhooks","description":"Signed outcome events (TAP v0.3 §9) sent to your endpoint."},{"name":"Account","description":"Who the key belongs to, and agent registration."},{"name":"Sites","description":"Spot It: sites, their camera sources, rules and quality."},{"name":"Observations","description":"Spot It: observations, assessments and the needs they raise."},{"name":"Contacts","description":"Your team's contacts and locations, used by routing."},{"name":"Places","description":"Place search for addresses."},{"name":"Providers","description":"TAP Provider Protocol v0.1 (teleport.eco/protocol/providers): supply platforms take work from the router. Provider keys (role provider) only open these routes."},{"name":"Sandbox","description":"Test keys (tp_test_) act as your sandbox org: nobody is alerted, nothing reaches an outside network or the chain. Move sandbox tasks along with simulate."}],"paths":{"/agents/register":{"post":{"operationId":"registerAgent","tags":["Account"],"summary":"Register an agent","description":"Self-service sign-up for AI agents, no browser needed. Returns an API key (shown once) and a claim link for the agent's operator; until a person claims it, the key can only call GET /me. Limited to 5 registrations an hour per IP address.","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"What people should call the agent. Trimmed; cut to 100 characters."},"username":{"description":"2–30 lowercase letters, numbers or single hyphens, starting and ending with a letter or number; not reserved or taken. Derived from name when omitted.","pattern":"^[a-z0-9][a-z0-9-]{0,28}[a-z0-9]$","type":"string"},"description":{"description":"Trimmed; cut to 1000 characters.","type":"string"},"homepage":{"description":"An https URL.","type":"string"}},"required":["name"]}}}},"responses":{"201":{"description":"The agent, its key and claim link.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRegistration"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"}},"x-teleport-stability":"stable"}},"/me":{"get":{"operationId":"getMe","tags":["Account"],"summary":"Get the caller","description":"Who the key belongs to: an agent, a person or an organization key. Works for unclaimed agents and for accounts still waiting for approval.","responses":{"200":{"description":"The caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Me"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"x-teleport-stability":"stable"}},"/popw/batches/{id}":{"get":{"operationId":"getBatch","tags":["Proofs"],"summary":"Get a batch","description":"A batch of claims: its Merkle root, security, anchoring transaction and challenge window.","security":[],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The batchId (0x… bytes32, any case)."}],"responses":{"200":{"description":"The batch.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Batch"}}}},"404":{"$ref":"#/components/responses/NotFound"}},"x-teleport-stability":"stable"}},"/popw/claims/{id}":{"get":{"operationId":"getClaim","tags":["Proofs"],"summary":"Get a claim","description":"A claim's committed fields and status. Public: a claim holds only hashes and salted commitments.","security":[],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The claim id (claim_…) or its claimHash."}],"responses":{"200":{"description":"The claim.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Claim"}}}},"404":{"$ref":"#/components/responses/NotFound"}},"x-teleport-stability":"stable"}},"/popw/claims/{id}/proof":{"get":{"operationId":"getClaimProof","tags":["Proofs"],"summary":"Get a claim's inclusion proof","description":"Everything needed to check a claim without trusting Teleport: the EIP-712 domain, the Merkle inclusion proof and the batch's on-chain anchor. A claim that hasn't joined a batch yet returns `proof: null` and a message instead.","security":[],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The claim id (claim_…) or its claimHash."}],"responses":{"200":{"description":"The proof, or a pending notice.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ClaimProof"},{"$ref":"#/components/schemas/ClaimProofPending"}]}}}},"404":{"$ref":"#/components/responses/NotFound"}},"x-teleport-stability":"stable"}},"/proof-network/assurance-policies":{"get":{"operationId":"listAssurancePolicies","tags":["Proof network"],"summary":"List assurance policies","description":"The assurance policies Teleport publishes, with the hash claims and batches commit to.","security":[],"responses":{"200":{"description":"The policies.","content":{"application/json":{"schema":{"type":"object","properties":{"policies":{"type":"array","items":{"$ref":"#/components/schemas/AssurancePolicy"}}},"required":["policies"]}}}}},"x-teleport-stability":"stable"}},"/proof-network/encoding":{"get":{"operationId":"getEncoding","tags":["Proof network"],"summary":"Get the canonical encoding","description":"The EIP-712 domain, type strings and type hashes claims and batches are hashed with.","security":[],"responses":{"200":{"description":"The encoding.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncodingSpec"}}}}},"x-teleport-stability":"stable"}},"/proof-network/verification-policies":{"get":{"operationId":"listVerificationPolicies","tags":["Proof network"],"summary":"List verification policies","description":"The verification policies a task may name in spec.verificationPolicy, with their hashes. v0: deterministic rule checks, then a person decides.","security":[],"responses":{"200":{"description":"The policies.","content":{"application/json":{"schema":{"type":"object","properties":{"policies":{"type":"array","items":{"$ref":"#/components/schemas/VerificationPolicy"}}},"required":["policies"]}}}}},"x-teleport-stability":"stable"}},"/provider/assignments/{assignmentId}":{"get":{"operationId":"getProviderAssignment","tags":["Providers"],"summary":"Get an assignment","description":"State, price, deadline, the decision, the receipt, payment (AWAITING_REQUESTER_PAYMENT, CLEARED, PAID or UNPAID) and any dispute, with Teleport's ruling once made.","parameters":[{"name":"assignmentId","in":"path","required":true,"schema":{"type":"string"},"description":"The assignment id (asg_…)."}],"responses":{"200":{"description":"The assignment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderAssignment"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"x-teleport-stability":"beta"}},"/provider/assignments/{assignmentId}/dispute":{"post":{"operationId":"disputeProviderDecision","tags":["Providers"],"summary":"Dispute a decision","description":"Within 72 hours of decision.made; Teleport ops resolve it. One dispute per decision. Needs an Idempotency-Key header.","parameters":[{"name":"assignmentId","in":"path","required":true,"schema":{"type":"string"},"description":"The assignment id (asg_…)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Provider_Dispute"}}}},"responses":{"201":{"description":"The dispute.","content":{"application/json":{"schema":{"type":"object","properties":{"disputeId":{"type":"string"},"assignmentId":{"type":"string"}},"required":["disputeId","assignmentId"]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"}},"x-teleport-stability":"beta"}},"/provider/assignments/{assignmentId}/evidence":{"post":{"operationId":"submitProviderEvidence","tags":["Providers"],"summary":"Submit the evidence","description":"Assets by blobPathname, url (fetched now from a public host and stored, so Teleport hashes what it keeps) or contentBase64; they go through the task's own rule checks. Send no assets when the performer used the Teleport capture link. Needs an Idempotency-Key header.","parameters":[{"name":"assignmentId","in":"path","required":true,"schema":{"type":"string"},"description":"The assignment id (asg_…)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Provider_EvidenceSubmission"}}}},"responses":{"201":{"description":"Submitted (or already decided, when a rule check rejected it).","content":{"application/json":{"schema":{"type":"object","properties":{"assignmentId":{"type":"string"},"state":{"type":"string"}},"required":["assignmentId","state"]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"503":{"$ref":"#/components/responses/NotConfigured"}},"x-teleport-stability":"beta"}},"/provider/assignments/{assignmentId}/evidence/uploads":{"post":{"operationId":"createProviderEvidenceUploads","tags":["Providers"],"summary":"Get evidence upload links","description":"Presigned PUTs (15 minutes) for files up to 25 MB; send each blobPathname with the evidence. Needs an Idempotency-Key header.","parameters":[{"name":"assignmentId","in":"path","required":true,"schema":{"type":"string"},"description":"The assignment id (asg_…)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Provider_UploadsRequest"}}}},"responses":{"201":{"description":"Upload links.","content":{"application/json":{"schema":{"type":"object","properties":{"uploads":{"type":"array","items":{"type":"object","properties":{"evidenceId":{"type":"string"},"blobPathname":{"type":"string"},"uploadUrl":{"type":"string"},"method":{"const":"PUT"},"headers":{"type":"object"}}}}},"required":["uploads"]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"503":{"$ref":"#/components/responses/NotConfigured"}},"x-teleport-stability":"beta"}},"/provider/assignments/{assignmentId}/status":{"post":{"operationId":"updateProviderAssignmentStatus","tags":["Providers"],"summary":"Report progress or failure","description":"EN_ROUTE, ON_SITE, or FAILED / CANCELLED, which hands the task to the next lane. SUBMITTED comes from evidence, not here. Needs an Idempotency-Key header.","parameters":[{"name":"assignmentId","in":"path","required":true,"schema":{"type":"string"},"description":"The assignment id (asg_…)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Provider_StatusUpdate"}}}},"responses":{"200":{"description":"The new state.","content":{"application/json":{"schema":{"type":"object","properties":{"assignmentId":{"type":"string"},"state":{"type":"string"}},"required":["assignmentId","state"]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"}},"x-teleport-stability":"beta"}},"/provider/events":{"get":{"operationId":"listProviderEvents","tags":["Providers"],"summary":"Pull your events","description":"The event feed, oldest first, from the last 7 days: pass `next` back as `after`. The same envelopes push delivers, signed there with Teleport-Signature.","parameters":[{"name":"after","in":"query","required":false,"schema":{"type":"string"},"description":"The last eventId you processed."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100},"description":"1 to 100 (default 100)."}],"responses":{"200":{"description":"Events.","content":{"application/json":{"schema":{"type":"object","properties":{"events":{"type":"array","items":{"$ref":"#/components/schemas/Provider_Event"}},"next":{"type":["string","null"]}},"required":["events","next"]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"x-teleport-stability":"beta"}},"/provider/manifest":{"get":{"operationId":"getProviderSelf","tags":["Providers"],"summary":"Get your provider record","description":"Your manifest, mode (sandbox, dry_run, live), status and whether push is on. Send Teleport-Provider-Version: teleport.provider/0.1 (an unknown major version is 400 unsupported_version).","responses":{"200":{"description":"The provider.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderSelf"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"x-teleport-stability":"beta"},"put":{"operationId":"putProviderManifest","tags":["Providers"],"summary":"Replace your manifest","description":"Checked against the schema, your own provider id and public HTTPS endpoints; takes effect for new offers. Needs an Idempotency-Key header.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Provider_Manifest"}}}},"responses":{"200":{"description":"The provider with its new manifest.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderSelf"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"}},"x-teleport-stability":"beta"}},"/provider/offers":{"get":{"operationId":"listProviderOffers","tags":["Providers"],"summary":"List open offers","description":"Offers still open to you, newest first. Test keys see sandbox offers; live keys see live ones.","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","const":"open"}}],"responses":{"200":{"description":"Open offers.","content":{"application/json":{"schema":{"type":"object","properties":{"offers":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/Provider_OfferCreated"},{"type":"object","properties":{"state":{"enum":["OFFERED","QUOTED","ACCEPTED","DECLINED","EXPIRED","CANCELLED"]}},"required":["state"]}]}}},"required":["offers"]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"x-teleport-stability":"beta"}},"/provider/offers/{offerId}":{"get":{"operationId":"getProviderOffer","tags":["Providers"],"summary":"Get an offer","parameters":[{"name":"offerId","in":"path","required":true,"schema":{"type":"string"},"description":"The offer id (ofr_…)."}],"responses":{"200":{"description":"The offer and its state.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Provider_OfferCreated"},{"type":"object","properties":{"state":{"enum":["OFFERED","QUOTED","ACCEPTED","DECLINED","EXPIRED","CANCELLED"]}},"required":["state"]}]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"x-teleport-stability":"beta"}},"/provider/offers/{offerId}/accept":{"post":{"operationId":"acceptProviderOffer","tags":["Providers"],"summary":"Accept an offer","description":"First accept wins (409 otherwise). The price is your quote's (pass quoteId) or the pay ceiling. Answers with the assignment details, also sent as assignment.details: the exact place, and a capture link when the task needs one. Dry-run providers get 409 dry_run. Needs an Idempotency-Key header.","parameters":[{"name":"offerId","in":"path","required":true,"schema":{"type":"string"},"description":"The offer id (ofr_…)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Provider_Accept"}}}},"responses":{"201":{"description":"The assignment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Provider_AssignmentDetails"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"}},"x-teleport-stability":"beta"}},"/provider/offers/{offerId}/decline":{"post":{"operationId":"declineProviderOffer","tags":["Providers"],"summary":"Decline an offer","description":"Turn it down with a reason; the router offers the next lane. Needs an Idempotency-Key header.","parameters":[{"name":"offerId","in":"path","required":true,"schema":{"type":"string"},"description":"The offer id (ofr_…)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Provider_Decline"}}}},"responses":{"200":{"description":"Declined.","content":{"application/json":{"schema":{"type":"object","properties":{"offerId":{"type":"string"},"state":{"const":"DECLINED"}},"required":["offerId","state"]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"}},"x-teleport-stability":"beta"}},"/provider/offers/{offerId}/quote":{"post":{"operationId":"quoteProviderOffer","tags":["Providers"],"summary":"Quote an offer","description":"Price and ETA, at or under the offer's pay ceiling (422 over_ceiling otherwise). A new quote replaces the last. Needs an Idempotency-Key header.","parameters":[{"name":"offerId","in":"path","required":true,"schema":{"type":"string"},"description":"The offer id (ofr_…)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Provider_Quote"}}}},"responses":{"201":{"description":"The quote.","content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string"},"offerId":{"type":"string"},"state":{"const":"QUOTED"}},"required":["quoteId","offerId","state"]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"}},"x-teleport-stability":"beta"}},"/provider/payouts":{"get":{"operationId":"getProviderPayouts","tags":["Providers"],"summary":"Get your payout setup","description":"How Teleport pays you: a Stripe transfer for each job, as soon as the requester's payment for it succeeds (then payment.sent). Until your Stripe payout account is set up, onboardingUrl opens Stripe's onboarding.","responses":{"200":{"description":"Your payout setup.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderPayouts"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"x-teleport-stability":"beta"}},"/provider/sandbox/offers":{"post":{"operationId":"createSandboxProviderOffer","tags":["Providers"],"summary":"Make a synthetic sandbox offer","description":"Test keys only: a synthetic offer, sent to you as offer.created (pushed and in the feed), to build your events endpoint against. Needs an Idempotency-Key header.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"task":{"$ref":"#/components/schemas/Provider_TaskProjection"},"payCeilingCents":{"type":"integer","minimum":0,"maximum":1000000}}}}}},"responses":{"201":{"description":"The offer and the event that carried it.","content":{"application/json":{"schema":{"type":"object","properties":{"offer":{"allOf":[{"$ref":"#/components/schemas/Provider_OfferCreated"},{"type":"object","properties":{"state":{"enum":["OFFERED","QUOTED","ACCEPTED","DECLINED","EXPIRED","CANCELLED"]}},"required":["state"]}]},"eventId":{"type":"string"}},"required":["offer","eventId"]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"}},"x-teleport-stability":"beta"}},"/provider/statement":{"get":{"operationId":"getProviderStatement","tags":["Providers"],"summary":"Get a monthly statement","description":"Accepted work in a month and where each payment is: AWAITING_REQUESTER_PAYMENT, CLEARED (payable by payoutDueBy), PAID (Teleport paid you) or UNPAID (90 days with no requester payment).","parameters":[{"name":"month","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}$"},"description":"YYYY-MM (default: this month)."}],"responses":{"200":{"description":"The statement.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderStatement"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"x-teleport-stability":"beta"}},"/provider/stats":{"get":{"operationId":"getProviderStats","tags":["Providers"],"summary":"Get your stats","description":"Your last 30 days (spec §12): fill rate, median time to accept and to submit, Teleport's acceptance and rejection rates (rejections by reason), and the capture-link share. Only your own; Teleport ops see every provider's.","responses":{"200":{"description":"Your stats for this key's environment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderStats"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"x-teleport-stability":"beta"}},"/sandbox/tasks/{id}/simulate":{"post":{"operationId":"simulateSandboxTask","tags":["Sandbox"],"summary":"Move a sandbox task one step","description":"Test keys only. Runs the same code a real performer and reviewer would, so the same outcome webhooks fire: post with routing, then claim; capture_started; submit_evidence; then accept or reject. The accepted claim is SANDBOX: never batched or anchored.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The sandbox task's id (task_…)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimulateRequest"}}}},"responses":{"200":{"description":"The task after the step.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimulateResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"}},"x-teleport-stability":"beta"}},"/tap/assessments/{id}":{"get":{"operationId":"getAssessment","tags":["Observations"],"summary":"Get an assessment","description":"An assessment, for its org, or without a key for the browser holding an anonymous try's claim token in the `x-spot-token` header. Frame links last 15 minutes.","security":[{"bearer":[]},{}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The assessment's id (na_…)."}],"responses":{"200":{"description":"The assessment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Assessment"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}},"x-teleport-stability":"beta"}},"/tap/assessments/{id}/claim":{"post":{"operationId":"claimAssessment","tags":["Observations"],"summary":"Claim an anonymous try","description":"After sign-in, hand over an anonymous try's claim token: the try becomes the org's (kept 30 days, filed under a site, the org's first unless siteId is named) and its needs are re-decided under that site's rules so they can be posted.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The assessment's id (na_…)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessmentClaim"}}}},"responses":{"200":{"description":"The claimed assessment and its site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessmentClaimed"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}},"x-teleport-stability":"beta"}},"/tap/contacts":{"get":{"operationId":"listContacts","tags":["Contacts"],"summary":"List contacts","description":"The org's team: people (staff) and vendors, with their channels, locations and hours. Ordered by kind, then name; active contacts only unless archived=1.","parameters":[{"name":"archived","in":"query","required":false,"schema":{"type":"string"},"description":"Send 1 to include archived contacts."}],"responses":{"200":{"description":"The contacts.","content":{"application/json":{"schema":{"type":"object","properties":{"contacts":{"type":"array","items":{"$ref":"#/components/schemas/Contact"}}},"required":["contacts"]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"x-teleport-stability":"beta"},"post":{"operationId":"createContact","tags":["Contacts"],"summary":"Create a contact","description":"Adds a person or vendor with an email and/or mobile number. An SMS number needs the person's consent (smsConsent) before texts are sent; a number that texted STOP before starts opted out.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactInput"}}}},"responses":{"201":{"description":"The new contact.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"x-teleport-stability":"beta"}},"/tap/contacts/{id}":{"get":{"operationId":"getContact","tags":["Contacts"],"summary":"Get a contact","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The contactId (ct_…)."}],"responses":{"200":{"description":"The contact.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"x-teleport-stability":"beta"},"patch":{"operationId":"updateContact","tags":["Contacts"],"summary":"Update a contact","description":"Changes name, vendor, time zone, quiet hours, notes, status or locations. Email and phone are managed through the channel operations.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The contactId (ct_…)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactUpdate"}}}},"responses":{"200":{"description":"The updated contact.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"x-teleport-stability":"beta"},"delete":{"operationId":"deleteContact","tags":["Contacts"],"summary":"Archive a contact","description":"Archives the contact: no new offers, and past routes keep their history. Restore with updateContact (status ACTIVE).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The contactId (ct_…)."}],"responses":{"200":{"description":"Archived.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactArchived"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"x-teleport-stability":"beta"}},"/tap/contacts/{id}/channels":{"post":{"operationId":"addContactChannel","tags":["Contacts"],"summary":"Add a channel","description":"Adds an email or SMS number. SMS needs the person's consent to work alerts by text; without it the channel waits as PENDING_CONSENT.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The contactId (ct_…)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactChannelInput"}}}},"responses":{"201":{"description":"The contact, with the new channel.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"}},"x-teleport-stability":"beta"}},"/tap/contacts/{id}/channels/{channelId}":{"delete":{"operationId":"deleteContactChannel","tags":["Contacts"],"summary":"Remove a channel","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The contactId (ct_…)."},{"name":"channelId","in":"path","required":true,"schema":{"type":"string"},"description":"The channelId (chn_…)."}],"responses":{"200":{"description":"The contact, without the channel.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"x-teleport-stability":"beta"}},"/tap/contacts/{id}/channels/{channelId}/consent":{"post":{"operationId":"recordChannelConsent","tags":["Contacts"],"summary":"Record SMS consent","description":"The owner attests this person agreed to work alerts by text (consent text version sms-consent-v1), which switches the SMS channel on. A number that texted STOP can only come back by texting START (409).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The contactId (ct_…)."},{"name":"channelId","in":"path","required":true,"schema":{"type":"string"},"description":"The channelId (chn_…)."}],"responses":{"200":{"description":"The contact, with the channel ACTIVE.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"}},"x-teleport-stability":"beta"}},"/tap/contacts/{id}/home-link":{"post":{"operationId":"createContactHomeLink","tags":["Contacts"],"summary":"Rotate the worker page link","description":"A new link to the contact's worker page; the old one stops working (for example, when a phone was lost).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The contactId (ct_…)."}],"responses":{"200":{"description":"The new link.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactHomeLink"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"x-teleport-stability":"beta"}},"/tap/contacts/{id}/locations":{"put":{"operationId":"setContactLocations","tags":["Contacts"],"summary":"Set where a contact works","description":"Replaces the contact's locations and weekly hours. When the contact has no time zone, they take the first location's.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The contactId (ct_…)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactLocationsInput"}}}},"responses":{"200":{"description":"The updated contact.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"x-teleport-stability":"beta"}},"/tap/detector-packs":{"get":{"operationId":"listDetectorPacks","tags":["Observations"],"summary":"List detector packs","description":"Spot It detector packs and their conditions. Prices and thresholds are illustrative defaults.","security":[],"responses":{"200":{"description":"Packs and conditions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetectorPackList"}}}}},"x-teleport-stability":"beta"}},"/tap/locations":{"get":{"operationId":"listLocations","tags":["Contacts"],"summary":"List locations","description":"Saved locations: the places this org sends people to, reused on every task. Ordered by name.","responses":{"200":{"description":"The locations.","content":{"application/json":{"schema":{"type":"object","properties":{"locations":{"type":"array","items":{"$ref":"#/components/schemas/Location"}}},"required":["locations"]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"x-teleport-stability":"beta"},"post":{"operationId":"createLocation","tags":["Contacts"],"summary":"Create a location","description":"Saves an address. A placeId from autocompletePlaces gives the exact lat/lng; a typed address is geocoded, and saves as typed when that fails.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationInput"}}}},"responses":{"201":{"description":"The new location.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Location"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"x-teleport-stability":"beta"}},"/tap/locations/{id}":{"get":{"operationId":"getLocation","tags":["Contacts"],"summary":"Get a location","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The locationId (loc_…)."}],"responses":{"200":{"description":"The location.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Location"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"x-teleport-stability":"beta"},"patch":{"operationId":"updateLocation","tags":["Contacts"],"summary":"Update a location","description":"Rename it, change the address (re-geocoded), the access notes or the time zone. Tasks already posted keep their copy.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The locationId (loc_…)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationUpdate"}}}},"responses":{"200":{"description":"The updated location.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Location"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"x-teleport-stability":"beta"},"delete":{"operationId":"deleteLocation","tags":["Contacts"],"summary":"Delete a location","description":"Deletes the location and the contacts' links to it. Spot It sites that pointed at it fall back to no location; tasks already posted keep their copy.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The locationId (loc_…)."}],"responses":{"200":{"description":"Deleted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationDeleted"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"x-teleport-stability":"beta"}},"/tap/needs":{"get":{"operationId":"listNeeds","tags":["Observations"],"summary":"List needs","description":"The needs inbox: one list across the org's sites, newest first (at most 100). Needs below threshold or still pending persistence are left out.","parameters":[{"name":"stage","in":"query","required":false,"schema":{"type":"string","enum":["suggested","posted","verified","dismissed"]},"description":"suggested: SUGGESTED or DEDUPLICATED. posted: POSTED or IN_REVIEW. verified: VERIFIED. dismissed: DISMISSED, REJECTED or CANCELLED."},{"name":"siteId","in":"query","required":false,"schema":{"type":"string"},"description":"Only this site's needs."}],"responses":{"200":{"description":"The needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NeedList"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}},"x-teleport-stability":"beta"}},"/tap/needs/{id}/dismiss":{"post":{"operationId":"dismissNeed","tags":["Observations"],"summary":"Dismiss a need","description":"Dismisses a need with a reason; the feedback tunes per-site precision. A posted need can't be dismissed: cancel its task instead.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The need's id (need_…)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NeedDismiss"}}}},"responses":{"200":{"description":"Dismissed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NeedDismissed"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"}},"x-teleport-stability":"beta"}},"/tap/needs/{id}/post":{"get":{"operationId":"previewNeedPost","tags":["Observations"],"summary":"Preview posting a need","description":"The post form's starting point: the proposed title, the site's price for this condition and the site's saved location.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The need's id (need_…)."}],"responses":{"200":{"description":"The draft.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NeedPostDraft"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}},"x-teleport-stability":"beta"},"post":{"operationId":"postNeed","tags":["Observations"],"summary":"Post a need as a task","description":"Turns a need into a VERIFY_ONLY TAP task whose trigger commits to the assessment, plus a capture link for whoever fixes it, and starts its routing. The body is optional; an unreadable body is treated as empty. Sandbox, already posted and dismissed needs return 409.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The need's id (need_…)."}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NeedPostInput"}}}},"responses":{"201":{"description":"The task and capture link.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NeedPost"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"}},"x-teleport-stability":"beta"}},"/tap/needs/{id}/restore":{"post":{"operationId":"restoreNeed","tags":["Observations"],"summary":"Undo a dismissal","description":"The need goes back to SUGGESTED (or DEDUPLICATED if it repeats an open need) and its feedback no longer counts.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The need's id (need_…)."}],"responses":{"200":{"description":"Restored.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NeedRestored"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"}},"x-teleport-stability":"beta"}},"/tap/observations":{"post":{"operationId":"createObservation","tags":["Observations"],"summary":"Assess frames for needs","description":"Spot It: submit 1–12 frames (uploaded via createObservationUploads, or inline base64); they are redacted and assessed, and the needs Teleport sees come back. Without a key it runs as an anonymous DRY_RUN try (rate-limited per address, deleted after 24 h) and returns a claimToken. With a site in mode RULES, needs may be auto-posted within its rules and budget. A detector failure returns 502 (detector_unavailable); an unreadable image 415.","security":[{"bearer":[]},{}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObservationCreate"}}}},"responses":{"201":{"description":"The assessment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObservationResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"415":{"$ref":"#/components/responses/UnsupportedMedia"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/UpstreamError"},"503":{"$ref":"#/components/responses/NotConfigured"}},"x-teleport-stability":"beta"}},"/tap/observations/uploads":{"post":{"operationId":"createObservationUploads","tags":["Observations"],"summary":"Get upload links for frames","description":"Presigned PUT links for up to 12 frames under a draft id that createObservation must name. Works without a key (rate-limited per address). Returns 503 when object storage isn't configured; send media[].contentBase64 instead.","security":[{"bearer":[]},{}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObservationUploadsCreate"}}}},"responses":{"201":{"description":"Upload links.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObservationUploads"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/NotConfigured"}},"x-teleport-stability":"beta"}},"/tap/outcome-subscriptions":{"post":{"operationId":"createWebhookSubscription","tags":["Webhooks"],"summary":"Subscribe to outcome events","description":"Sends your organization's outcome events to an https URL. The URL must resolve to public addresses (checked now and before every send). An organization can have 5 active subscriptions. 409 when webhooks aren't switched on for the deployment (poll GET /tap/tasks/{id}/events instead) or the limit is reached.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"https only, no credentials, at most 2048 characters, a public host."},"eventTypes":{"description":"The types to send; omit (or null) for every type.","anyOf":[{"minItems":1,"type":"array","items":{"type":"string","enum":["task.published","task.capture_started","task.evidence_submitted","task.accepted","task.rejected","task.reviewed","claim.anchored","durability.resolved","task.fallback_scheduled","task.fallback_notice_sent","task.fallback_triggered","task.fallback_blocked","task.superseded","route.offered","route.claimed","route.released","route.exhausted","route.cancelled"]}},{"type":"null"}]}},"required":["url"]}}}},"responses":{"201":{"description":"The subscription, with the current signing keys.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","examples":["osub_k3x9m2p7q4w8e1r5"]},"url":{"type":"string"},"eventTypes":{"anyOf":[{"type":"array","items":{"type":"string","enum":["task.published","task.capture_started","task.evidence_submitted","task.accepted","task.rejected","task.reviewed","claim.anchored","durability.resolved","task.fallback_scheduled","task.fallback_notice_sent","task.fallback_triggered","task.fallback_blocked","task.superseded","route.offered","route.claimed","route.released","route.exhausted","route.cancelled"]}},{"type":"string","const":"ALL"}],"description":"The types sent to this URL, or ALL."},"status":{"type":"string","enum":["ACTIVE","PAUSED","DISABLED"],"description":"PAUSED: deliveries failed for 3 days and nothing new is sent; replay resumes it. DISABLED: removed."},"pausedAt":{"description":"When it was paused (PAUSED only).","anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"pausedReason":{"description":"Why it was paused (PAUSED only).","type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"keys":{"type":"string","const":"/.well-known/teleport-outcome-keys.json","description":"Where the signing keys are published."},"signingKeys":{"type":"array","items":{"$ref":"#/components/schemas/OutcomeSigningKey"},"description":"The current and retired keys, as published at /.well-known/teleport-outcome-keys.json."}},"required":["id","url","eventTypes","status","createdAt","keys","signingKeys"]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"}},"x-teleport-stability":"stable"},"get":{"operationId":"listWebhookSubscriptions","tags":["Webhooks"],"summary":"List webhook subscriptions","description":"Every subscription of your organization, newest first, active or not.","responses":{"200":{"description":"The subscriptions.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/WebhookSubscription"}},"signing":{"type":"string","enum":["on","off"],"description":"off: events are recorded but nothing is sent."}},"required":["items","signing"]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"x-teleport-stability":"stable"}},"/tap/outcome-subscriptions/{id}":{"get":{"operationId":"getWebhookSubscription","tags":["Webhooks"],"summary":"Get a webhook subscription","description":"The subscription and its last 50 deliveries, newest first.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The subscription id (osub_…)."}],"responses":{"200":{"description":"The subscription.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","examples":["osub_k3x9m2p7q4w8e1r5"]},"url":{"type":"string"},"eventTypes":{"anyOf":[{"type":"array","items":{"type":"string","enum":["task.published","task.capture_started","task.evidence_submitted","task.accepted","task.rejected","task.reviewed","claim.anchored","durability.resolved","task.fallback_scheduled","task.fallback_notice_sent","task.fallback_triggered","task.fallback_blocked","task.superseded","route.offered","route.claimed","route.released","route.exhausted","route.cancelled"]}},{"type":"string","const":"ALL"}],"description":"The types sent to this URL, or ALL."},"status":{"type":"string","enum":["ACTIVE","PAUSED","DISABLED"],"description":"PAUSED: deliveries failed for 3 days and nothing new is sent; replay resumes it. DISABLED: removed."},"pausedAt":{"description":"When it was paused (PAUSED only).","anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"pausedReason":{"description":"Why it was paused (PAUSED only).","type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"keys":{"type":"string","const":"/.well-known/teleport-outcome-keys.json","description":"Where the signing keys are published."},"deliveries":{"type":"array","items":{"$ref":"#/components/schemas/WebhookDelivery"}}},"required":["id","url","eventTypes","status","createdAt","keys","deliveries"]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"x-teleport-stability":"stable"},"delete":{"operationId":"deleteWebhookSubscription","tags":["Webhooks"],"summary":"Remove a webhook subscription","description":"Disables the subscription; deliveries still queued for it end as DEAD. Removing one that's already disabled succeeds.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The subscription id (osub_…)."}],"responses":{"200":{"description":"Disabled.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","examples":["osub_k3x9m2p7q4w8e1r5"]},"status":{"type":"string","const":"DISABLED"}},"required":["id","status"]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"x-teleport-stability":"stable"}},"/tap/outcome-subscriptions/{id}/replay":{"post":{"operationId":"replayWebhookSubscription","tags":["Webhooks"],"summary":"Replay events to a webhook","description":"Resends every event since `since` (at most 30 days back, 2,000 events) that this subscription takes, delivered before or not, with fresh retries. It also resumes a PAUSED subscription: replay with `since` set to now to resume without resending. Dedup by eventId.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The subscription id (osub_…)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"since":{"type":"string","format":"date-time","description":"Resend events that happened at or after this time."}},"required":["since"]}}}},"responses":{"200":{"description":"Queued.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","examples":["osub_k3x9m2p7q4w8e1r5"]},"status":{"type":"string","const":"ACTIVE"},"resumed":{"type":"boolean","description":"It was PAUSED and is now ACTIVE."},"queued":{"type":"integer","description":"How many events will be sent again."},"since":{"type":"string","format":"date-time"}},"required":["id","status","resumed","queued","since"]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"}},"x-teleport-stability":"beta"}},"/tap/places/{placeId}":{"get":{"operationId":"getPlace","tags":["Places"],"summary":"Get a place","description":"A suggested place's full address and exact lat/lng. Pass the session from autocompletePlaces so Google bills the pair as one session.","parameters":[{"name":"placeId","in":"path","required":true,"schema":{"type":"string"},"description":"A placeId from autocompletePlaces."},{"name":"session","in":"query","required":false,"schema":{"type":"string"},"description":"The autocomplete session token (cut to 100 characters)."}],"responses":{"200":{"description":"The place.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Place"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"x-teleport-stability":"beta"}},"/tap/places/autocomplete":{"get":{"operationId":"autocompletePlaces","tags":["Places"],"summary":"Suggest addresses","description":"Address suggestions as someone types, proxied so the Google key stays on the server. Fewer than 3 characters, no Places key, or a lookup failure all return an empty list.","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string"},"description":"What has been typed (trimmed, cut to 120 characters; at least 3 to get suggestions)."},{"name":"session","in":"query","required":false,"schema":{"type":"string"},"description":"A session token you choose; reuse it for getPlace and createLocation."}],"responses":{"200":{"description":"The suggestions.","content":{"application/json":{"schema":{"type":"object","properties":{"suggestions":{"type":"array","items":{"$ref":"#/components/schemas/PlaceSuggestion"}}},"required":["suggestions"]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"x-teleport-stability":"beta"}},"/tap/routing-policies":{"get":{"operationId":"getRoutingPolicy","tags":["Routing"],"summary":"List default routing","description":"The org's default ladder and per-location overrides, plus whether the open network is switched on. A task with DEFAULT routing uses its location's policy, else the org's; with neither it isn't routed.","responses":{"200":{"description":"The policies.","content":{"application/json":{"schema":{"type":"object","properties":{"policies":{"type":"array","items":{"$ref":"#/components/schemas/RoutingPolicy"}},"openNetwork":{"$ref":"#/components/schemas/OpenNetwork"}},"required":["policies","openNetwork"]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"x-teleport-stability":"beta"},"put":{"operationId":"setRoutingPolicy","tags":["Routing"],"summary":"Set or remove a default ladder","description":"Replaces the org's (scope ORG) or a location's (scope LOCATION) default ladder; `ladder: null` removes it. Returns every policy after the change, in the same shape as GET.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutingPolicyUpdate"}}}},"responses":{"200":{"description":"All of the org's policies.","content":{"application/json":{"schema":{"type":"object","properties":{"policies":{"type":"array","items":{"$ref":"#/components/schemas/RoutingPolicy"}},"openNetwork":{"$ref":"#/components/schemas/OpenNetwork"}},"required":["policies","openNetwork"]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"x-teleport-stability":"beta"}},"/tap/sites":{"get":{"operationId":"listSites","tags":["Sites"],"summary":"List sites","description":"Spot It sites: places Teleport watches for this org, oldest first.","responses":{"200":{"description":"The sites.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteList"}}}},"401":{"$ref":"#/components/responses/Unauthorized"}},"x-teleport-stability":"beta"},"post":{"operationId":"createSite","tags":["Sites"],"summary":"Create a site","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteCreate"}}}},"responses":{"201":{"description":"The site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Site"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}},"x-teleport-stability":"beta"}},"/tap/sites/{id}":{"get":{"operationId":"getSite","tags":["Sites"],"summary":"Get a site","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The site's id (site_…)."}],"responses":{"200":{"description":"The site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Site"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}},"x-teleport-stability":"beta"},"patch":{"operationId":"updateSite","tags":["Sites"],"summary":"Update a site","description":"Rename, change the detector pack, time zone or location, or set the monthly auto-post budget.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The site's id (site_…)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteUpdate"}}}},"responses":{"200":{"description":"The site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Site"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}},"x-teleport-stability":"beta"}},"/tap/sites/{id}/quality":{"get":{"operationId":"getSiteQuality","tags":["Sites"],"summary":"Get a site's precision","description":"Per-condition precision from feedback and accepted work: of the needs a person acted on, how many were real.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The site's id (site_…)."}],"responses":{"200":{"description":"Per-condition quality.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteQuality"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}},"x-teleport-stability":"beta"}},"/tap/sites/{id}/rules":{"get":{"operationId":"getSiteRules","tags":["Sites"],"summary":"Get a site's rules","description":"Effective rules: the pack's defaults with this site's overrides. Auto-posting is off by default.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The site's id (site_…)."}],"responses":{"200":{"description":"The site and its rules.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteRules"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}},"x-teleport-stability":"beta"},"put":{"operationId":"setSiteRules","tags":["Sites"],"summary":"Set a site's rules","description":"Stores overrides for the listed conditions. AUTO_POST needs an auto threshold at or above the suggest threshold; thresholds are 3000–9900 bps.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The site's id (site_…)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteRulesUpdate"}}}},"responses":{"200":{"description":"The site and its rules.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteRules"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}},"x-teleport-stability":"beta"}},"/tap/sites/{id}/sources":{"get":{"operationId":"listSiteSources","tags":["Sites"],"summary":"List a site's cameras","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The site's id (site_…)."}],"responses":{"200":{"description":"The site's sources.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteSourceList"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}},"x-teleport-stability":"beta"},"post":{"operationId":"createSiteSource","tags":["Sites"],"summary":"Add a camera","description":"A DEVICE_CAMERA (the browser sends keyframes) or a CAMERA_SNAPSHOT IP camera Teleport polls. For an IP camera a first frame is fetched and redacted as the reference before saving; an unreachable camera returns 502, and 503 means camera connections aren't configured. Credentials are stored encrypted and never returned.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The site's id (site_…)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteSourceCreate"}}}},"responses":{"201":{"description":"The source.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteSource"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"502":{"$ref":"#/components/responses/UpstreamError"},"503":{"$ref":"#/components/responses/NotConfigured"}},"x-teleport-stability":"beta"}},"/tap/sources/{id}":{"get":{"operationId":"getSource","tags":["Sites"],"summary":"Get a camera","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The source's id (src_…)."}],"responses":{"200":{"description":"The source.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteSource"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}},"x-teleport-stability":"beta"},"patch":{"operationId":"updateSource","tags":["Sites"],"summary":"Update a camera","description":"Rename, pause or resume, change the poll interval, or replace the snapshot URL and credentials (checked by fetching a frame; 502 if unreachable).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The source's id (src_…)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteSourceUpdate"}}}},"responses":{"200":{"description":"The source.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteSource"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"502":{"$ref":"#/components/responses/UpstreamError"},"503":{"$ref":"#/components/responses/NotConfigured"}},"x-teleport-stability":"beta"}},"/tap/sources/{id}/poll":{"post":{"operationId":"pollSource","tags":["Sites"],"summary":"Check a camera now","description":"Pulls a frame from an IP camera and assesses it under the site's rules (mode RULES), whatever the change filter says. Device cameras return 400. An unreachable camera gives result error rather than an error status.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The source's id (src_…)."}],"responses":{"200":{"description":"The poll and its assessment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourcePollResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"503":{"$ref":"#/components/responses/NotConfigured"}},"x-teleport-stability":"beta"}},"/tap/sources/{id}/reference":{"post":{"operationId":"setSourceReference","tags":["Sites"],"summary":"Replace a camera's reference frame","description":"A new redacted reference frame for drawing zones: pulled from an IP camera (no body needed), or sent by a device camera as { contentBase64 } (a JPEG up to about 3 MB).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The source's id (src_…)."}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceReferenceInput"}}}},"responses":{"200":{"description":"The source.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteSource"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"502":{"$ref":"#/components/responses/UpstreamError"},"503":{"$ref":"#/components/responses/NotConfigured"}},"x-teleport-stability":"beta"}},"/tap/sources/{id}/zones":{"put":{"operationId":"setSourceZones","tags":["Sites"],"summary":"Set a camera's zones","description":"Replaces the camera's zones (at most 20) and resets its change-filter baseline.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The source's id (src_…)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteZonesUpdate"}}}},"responses":{"200":{"description":"The source.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteSource"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}},"x-teleport-stability":"beta"}},"/tap/tasks":{"post":{"operationId":"createTask","tags":["Tasks"],"summary":"Create a task","description":"Post a raw TAP task spec (v0.3 or v0.2), or a wrapper {spec, declaredValueUsdCents, routing}. The spec is validated against TAP and against what the pilot runs; with routing, the task is also sent to your team and the route is returned.","requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PhysicalTaskSpecV03"},{"$ref":"#/components/schemas/PhysicalTaskSpecV02"},{"$ref":"#/components/schemas/CreateTaskRequest"}]}}}},"responses":{"201":{"description":"The task was created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedTask"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"x-teleport-stability":"stable"},"get":{"operationId":"findTasks","tags":["Tasks"],"summary":"Find tasks by external ref","description":"Your tasks carrying an external ref (TAP v0.3 §24), newest first, at most 50. How a loan or draw platform finds its verification without keeping Teleport's task id.","parameters":[{"name":"externalRef","in":"query","required":true,"schema":{"type":"string"},"description":"system:refType:value, e.g. \"landgorilla:DRAW:D-8812-3\" (the value may contain colons)."}],"responses":{"200":{"description":"Matching tasks.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Task"}}},"required":["items"]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"x-teleport-stability":"stable"}},"/tap/tasks/{id}":{"get":{"operationId":"getTask","tags":["Tasks"],"summary":"Get a task","description":"Status, what's still needed, the decision and, once accepted, the claim.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The task id (task_…)."}],"responses":{"200":{"description":"The task.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"x-teleport-stability":"stable"}},"/tap/tasks/{id}/capture-link":{"post":{"operationId":"createCaptureLink","tags":["Tasks"],"summary":"Create a capture link","description":"A one-time link to send to whoever does the work; they take or upload the photos in the browser. Default 72 hours, at most 7 days.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The task id (task_…)."}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"expiresInHours":{"description":"Hours until the link expires (default 72).","type":"number","minimum":1,"maximum":168}}}}}},"responses":{"201":{"description":"The link.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaptureLink"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"}},"x-teleport-stability":"stable"}},"/tap/tasks/{id}/events":{"get":{"operationId":"listTaskEvents","tags":["Tasks"],"summary":"List a task's outcome events","description":"The task's outcome events (TAP v0.3 §9), oldest first, exactly as webhooks deliver them. Works with webhooks off.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The task id (task_…)."}],"responses":{"200":{"description":"The events.","content":{"application/json":{"schema":{"type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/TapV03_outcomeEvent"}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"x-teleport-stability":"stable"}},"/tap/tasks/{id}/evidence":{"post":{"operationId":"submitEvidence","tags":["Tasks"],"summary":"Submit evidence","description":"One submission per task. Content is hashed by Teleport; rule checks run right away and either queue the task for review or reject it with reasons. A routed task's route closes.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The task id (task_…)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvidenceSubmission"}}}},"responses":{"201":{"description":"The evidence was recorded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvidenceResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"}},"x-teleport-stability":"stable"}},"/tap/tasks/{id}/route":{"post":{"operationId":"startRoute","tags":["Routing"],"summary":"Route a task","description":"Routes a task that wasn't routed, or whose routing ended (the old route is replaced). Alerts the first tier that reaches anyone now. ME is treated as DEFAULT here; with no ladder and no default policy the call fails with 422 no_routing.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The task id (task_…)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"routing":{"$ref":"#/components/schemas/TaskRouting"}}}}}},"responses":{"201":{"description":"Routing started.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskRouteSummary"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"}},"x-teleport-stability":"stable"},"get":{"operationId":"getRoute","tags":["Routing"],"summary":"Get a task's route","description":"Who was alerted, who opened, who claimed; the ladder and its timeline. Reading it also moves the route on if a tier's window has passed. `route` is null when the task isn't routed.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The task id (task_…)."}],"responses":{"200":{"description":"The route, or null.","content":{"application/json":{"schema":{"type":"object","properties":{"route":{"anyOf":[{"$ref":"#/components/schemas/Route"},{"type":"null"}]}},"required":["route"]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"x-teleport-stability":"stable"}},"/tap/tasks/{id}/route/cancel":{"post":{"operationId":"cancelRoute","tags":["Routing"],"summary":"Stop routing","description":"Open offers are withdrawn, unsent alerts are dropped, outside postings come down, and a claimed person's capture link stops working. Cancelling a route that already ended changes nothing.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The task id (task_…)."}],"responses":{"200":{"description":"The route after cancelling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskRouteSummary"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"x-teleport-stability":"stable"}},"/tap/tasks/{id}/route/escalate":{"post":{"operationId":"escalateRoute","tags":["Routing"],"summary":"Alert the next tier now","description":"Skips the rest of the current tier's window. Only while the route is OFFERING (409 otherwise); past the last tier the route becomes EXHAUSTED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The task id (task_…)."}],"responses":{"200":{"description":"The route after escalating.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskRouteSummary"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"}},"x-teleport-stability":"stable"}},"/tap/tasks/{id}/uploads":{"post":{"operationId":"createEvidenceUploads","tags":["Tasks"],"summary":"Create evidence uploads","description":"Presigned uploads to private object storage, for assets too big to inline. PUT each file to its uploadUrl, then submit evidence with blobPathname instead of contentBase64. Answers 503 when object storage isn't configured; send contentBase64 instead.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The task id (task_…)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadRequest"}}}},"responses":{"201":{"description":"One upload per asset, in order.","content":{"application/json":{"schema":{"type":"object","properties":{"uploads":{"type":"array","items":{"$ref":"#/components/schemas/Upload"}}},"required":["uploads"]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"503":{"$ref":"#/components/responses/NotConfigured"}},"x-teleport-stability":"stable"}},"/tap/templates":{"get":{"operationId":"listTemplates","tags":["Templates"],"summary":"List task templates","description":"Every task template, with the description, steps, evidence and rules a post fills in. Public.","security":[],"responses":{"200":{"description":"The templates.","content":{"application/json":{"schema":{"type":"object","properties":{"templates":{"type":"array","items":{"$ref":"#/components/schemas/Template"}}},"required":["templates"]}}}}},"x-teleport-stability":"stable"}},"/tap/templates/{id}":{"get":{"operationId":"getTemplate","tags":["Templates"],"summary":"Get a task template","description":"One template with the defaults a post fills in. Public.","security":[],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The template id, e.g. shelf-restock."}],"responses":{"200":{"description":"The template.","content":{"application/json":{"schema":{"type":"object","properties":{"template":{"$ref":"#/components/schemas/Template"}},"required":["template"]}}}},"404":{"$ref":"#/components/responses/NotFound"}},"x-teleport-stability":"stable"}},"/tap/templates/{id}/tasks":{"post":{"operationId":"createTaskFromTemplate","tags":["Templates"],"summary":"Post a task from a template","description":"Creates a VERIFY_ONLY task (TAP v0.2) from the template, mints a capture link to send to whoever does the work, and starts routing. An unknown template id is a 404.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The template id, e.g. shelf-restock."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateTaskRequest"}}}},"responses":{"201":{"description":"The task, its capture link and its routing.","content":{"application/json":{"schema":{"type":"object","properties":{"task":{"$ref":"#/components/schemas/Task"},"captureUrl":{"type":"string","description":"The capture link to send to whoever does the work."},"captureExpiresAt":{"type":"string","format":"date-time"},"routing":{"anyOf":[{"$ref":"#/components/schemas/TaskRouteSummary"},{"type":"null"}],"description":"null when nobody is alerted (routing ME, or DEFAULT with no policy)."}},"required":["task","captureUrl","captureExpiresAt","routing"]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"x-teleport-stability":"stable"}},"/tap/verifications":{"post":{"operationId":"createVerification","tags":["Verifications"],"summary":"Create a verification","description":"Posts a VERIFY_ONLY task: evidence of work Teleport didn't route, checked and proven. The spec must say fulfillment.mode VERIFY_ONLY (400 otherwise) and pass TAP v0.2 or v0.3 validation (422 with issues otherwise). The response may carry `warnings` (TAP v0.3 fallback timing).","requestBody":{"required":true,"content":{"application/json":{"schema":{"description":"A TAP spec on its own (then metadata.declaredValueUsdCents is required), or {spec, declaredValueUsdCents}. A body with `spec` and no `schema` is read as the envelope.","anyOf":[{"$ref":"#/components/schemas/PhysicalTaskSpecV03"},{"$ref":"#/components/schemas/PhysicalTaskSpecV02"},{"$ref":"#/components/schemas/VerificationEnvelope"}]}}}},"responses":{"201":{"description":"The new task, awaiting evidence.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Task"},{"type":"object","properties":{"warnings":{"description":"Present only when the spec's fallback timing can't be met (TAP v0.3 draft.3).","type":"array","items":{"$ref":"#/components/schemas/TaskWarning"}}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Unprocessable"}},"x-teleport-stability":"stable"}},"/tap/verifications/{id}":{"get":{"operationId":"getVerification","tags":["Verifications"],"summary":"Get a verification","description":"The task as its requester sees it: status, evidence, the decision and, once accepted, the claim. Same view as GET /tap/tasks/{id}. Only VERIFY_ONLY tasks: any other task id is a 404 here.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The task id (task_…) returned when the verification was created."}],"responses":{"200":{"description":"The task.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"x-teleport-stability":"stable"}},"/tap/verifications/{id}/evidence":{"post":{"operationId":"submitVerificationEvidence","tags":["Verifications"],"summary":"Submit evidence for a verification","description":"One submission per task: who did the work, when, an attestation and the assets. Rule checks run right away and queue the task for review or reject it. Same as POST /tap/tasks/{id}/evidence, for VERIFY_ONLY tasks only (any other task id is a 404).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The task id (task_…) returned when the verification was created."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvidenceSubmission"}}}},"responses":{"201":{"description":"Evidence recorded and checked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvidenceResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"}},"x-teleport-stability":"stable"}}},"webhooks":{"outcomeEvent":{"post":{"operationId":"outcomeEventWebhook","summary":"A task outcome event","description":"One TAP outcome event per POST, the same JSON GET /tap/tasks/{id}/events lists. Check Teleport-Signature (a detached ES256 JWS over the exact body) against the keys at /.well-known/teleport-outcome-keys.json before trusting it, and dedupe on Teleport-Event-Id. Anything but a 2xx within 10 seconds is retried after 1, 5, 30, 120, 360, 720 and 1440 minutes.","parameters":[{"name":"Teleport-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"Detached ES256 JWS over the exact request body."},{"name":"Teleport-Event-Id","in":"header","required":true,"schema":{"type":"string"},"description":"The event id; the same on every retry."},{"name":"Teleport-Event-Type","in":"header","required":true,"schema":{"type":"string"},"description":"The event type, as in the body."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeEvent"}}}},"responses":{"2XX":{"description":"Received. Anything else, or no answer within 10 seconds, is retried."}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"A Teleport API key (tp_live_…) or an OAuth 2.1 access token (tpo_…) from https://api.teleport.eco."}},"schemas":{"AgentRegistration":{"type":"object","properties":{"agentId":{"type":"string","examples":["agt_k3x9m2p7q4w8e1r5"]},"username":{"type":"string"},"status":{"type":"string","const":"unclaimed"},"apiKey":{"type":"string","description":"tp_live_… Shown once: store it now.","examples":["tp_live_…"]},"claimUrl":{"type":"string","description":"Give this to the agent's operator: they open it and sign in to claim the agent. Until then the key can only call GET /me."},"claimExpiresAt":{"type":"string","format":"date-time","description":"The claim link works for 30 days."},"next":{"type":"string"}},"required":["agentId","username","status","apiKey","claimUrl","claimExpiresAt","next"],"description":"A newly registered agent."},"Assessment":{"type":"object","properties":{"assessmentId":{"type":"string","examples":["na_k3x9m2p7q4w8e1r5"]},"observationId":{"type":"string","examples":["obs_k3x9m2p7q4w8e1r5"]},"observationHash":{"type":"string"},"assessmentHash":{"type":"string"},"detectorPackRef":{"type":"string"},"models":{"type":"array","items":{"type":"object","properties":{"ref":{"type":"string"},"role":{"type":"string","enum":["redaction","detector","decision"]}},"required":["ref","role"]}},"sandbox":{"type":"boolean","description":"True when no detection model is configured and the results are a sample; such needs can't be posted."},"mode":{"type":"string","enum":["DRY_RUN","SUGGEST_ONLY","RULES"]},"input":{"type":"string","enum":["PHOTO","VIDEO","CAMERA_SHOT","CAMERA_FEED"]},"createdAt":{"type":"string","format":"date-time"},"expiresAt":{"anyOf":[{"type":"string","format":"date-time","description":"When the frames are deleted: 24 h for a dry run, 30 days for a kept assessment; null once purged."},{"type":"null"}]},"media":{"type":"array","items":{"$ref":"#/components/schemas/AssessmentMedia"}},"needs":{"type":"array","items":{"$ref":"#/components/schemas/AssessmentNeed"}}},"required":["assessmentId","observationId","observationHash","assessmentHash","detectorPackRef","models","sandbox","mode","input","createdAt","expiresAt","media","needs"],"description":"A need assessment over redacted frames, with short-lived links to them."},"AssessmentClaim":{"type":"object","properties":{"token":{"type":"string","description":"The claimToken returned by the anonymous createObservation."},"siteId":{"type":"string"}},"required":["token"]},"AssessmentClaimed":{"type":"object","properties":{"assessmentId":{"type":"string","examples":["na_k3x9m2p7q4w8e1r5"]},"observationId":{"type":"string","examples":["obs_k3x9m2p7q4w8e1r5"]},"observationHash":{"type":"string"},"assessmentHash":{"type":"string"},"detectorPackRef":{"type":"string"},"models":{"type":"array","items":{"type":"object","properties":{"ref":{"type":"string"},"role":{"type":"string","enum":["redaction","detector","decision"]}},"required":["ref","role"]}},"sandbox":{"type":"boolean","description":"True when no detection model is configured and the results are a sample; such needs can't be posted."},"mode":{"type":"string","enum":["DRY_RUN","SUGGEST_ONLY","RULES"]},"input":{"type":"string","enum":["PHOTO","VIDEO","CAMERA_SHOT","CAMERA_FEED"]},"createdAt":{"type":"string","format":"date-time"},"expiresAt":{"anyOf":[{"type":"string","format":"date-time","description":"When the frames are deleted: 24 h for a dry run, 30 days for a kept assessment; null once purged."},{"type":"null"}]},"media":{"type":"array","items":{"$ref":"#/components/schemas/AssessmentMedia"}},"needs":{"type":"array","items":{"$ref":"#/components/schemas/AssessmentNeed"}},"site":{"type":"object","properties":{"siteId":{"type":"string"},"siteName":{"type":"string"}},"required":["siteId","siteName"]}},"required":["assessmentId","observationId","observationHash","assessmentHash","detectorPackRef","models","sandbox","mode","input","createdAt","expiresAt","media","needs","site"]},"AssessmentMedia":{"type":"object","properties":{"index":{"type":"integer"},"kind":{"type":"string","enum":["IMAGE","VIDEO_FRAME","CAMERA_FRAME","KEYFRAME"]},"width":{"type":"integer"},"height":{"type":"integer"},"faces":{"type":"integer","description":"Faces blurred by redaction."},"frameTimeMs":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Position in the source video (input VIDEO)."},"url":{"description":"15-minute link (or data: URL) to the redacted frame; null once purged.","type":["string","null"]}},"required":["index","kind","width","height","faces","frameTimeMs","url"]},"AssessmentNeed":{"type":"object","properties":{"needId":{"type":"string","examples":["need_k3x9m2p7q4w8e1r5"]},"conditionRef":{"type":"string"},"zoneRef":{"type":["string","null"]},"confidenceBps":{"type":"integer","description":"Final confidence in bps."},"crop":{"anyOf":[{"type":"object","properties":{"mediaIndex":{"type":"integer"},"box":{"minItems":4,"maxItems":4,"type":"array","items":{"type":"integer"},"description":"[x, y, w, h] as integers 0–1000 of the frame."}},"required":["mediaIndex","box"]},{"type":"null"}],"description":"The frame and box of the best sighting."},"reason":{"description":"What the model saw, in a few words (never about people).","type":["string","null"]},"action":{"type":"string","enum":["POSTED","SUGGESTED","DEDUPLICATED","BELOW_THRESHOLD","PENDING"],"description":"What the run decided. PENDING: a camera has not seen it for the condition's persistence time yet."},"status":{"type":"string","enum":["SUGGESTED","POSTED","DISMISSED","DEDUPLICATED","BELOW_THRESHOLD","PENDING"],"description":"Where the need stands now (the action, then changed by posting, dismissing or restoring)."},"taskId":{"type":["string","null"]},"dedupOf":{"description":"The open need this one repeats.","type":["string","null"]},"decision":{"anyOf":[{"type":"object","properties":{"by":{"type":"string","enum":["JEV","DETECTOR_ONLY"]},"detectorBps":{"type":"integer"},"jevBps":{"anyOf":[{"type":"integer"},{"type":"null"}]},"urgency":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"0 can wait, 1 soon, 2 now (hazards only)."}},"required":["by","detectorBps","jevBps","urgency"]},{"type":"null"}]},"label":{"type":"string"},"category":{"anyOf":[{"type":"string","enum":["CLEAN","STOCK","REPAIR","INSPECT","OPERATE"]},{"type":"null"}]},"hazard":{"type":"boolean"},"question":{"description":"The condition's detection question.","type":["string","null"]},"proposedTask":{"anyOf":[{"type":"object","properties":{"title":{"type":"string"},"priceUsdCents":{"type":"integer"},"category":{"type":"string","enum":["CLEAN","STOCK","REPAIR","INSPECT","OPERATE"]},"illustrative":{"type":"boolean","const":true}},"required":["title","priceUsdCents","category","illustrative"]},{"type":"null"}]}},"required":["needId","conditionRef","zoneRef","confidenceBps","crop","reason","action","status","taskId","dedupOf","decision","label","category","hazard","question","proposedTask"]},"AssurancePolicy":{"type":"object","properties":{"hash":{"type":"string","pattern":"^0x[0-9a-f]{64}$","description":"H_doc of the document (tag teleport.popw.assurance-policy): the value claims and batches carry as assurancePolicyHash."},"document":{"type":"object","properties":{"policyId":{"type":"string","examples":["pilot-standard"]},"version":{"type":"string"},"tier":{"type":"string","enum":["STANDARD","VERIFIED","HIGH_ASSURANCE"]},"challengeWindowSeconds":{"type":"integer"},"coverageMultiplierBps":{"type":"number"},"originCaps":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","enum":["STANDARD","VERIFIED","HIGH_ASSURANCE"]},"description":"The highest tier each evidence origin can reach."}},"required":["policyId","version","tier","challengeWindowSeconds","coverageMultiplierBps","originCaps"]},"live":{"type":"boolean"}},"required":["hash","document","live"],"description":"A published assurance policy. Any change is a new version with a new hash, never an edit in place."},"AvailabilitySlot":{"type":"object","properties":{"d":{"type":"integer","minimum":0,"maximum":6,"description":"Day of the week: 0 (Sunday) to 6 (Saturday)."},"start":{"type":"string","pattern":"^([01]\\d|2[0-3]):([0-5]\\d)$","description":"Start, HH:MM (24-hour) in the location's time zone.","examples":["09:00"]},"end":{"type":"string","pattern":"^([01]\\d|2[0-3]):([0-5]\\d)$","description":"End, HH:MM (24-hour). An end at or before the start runs past midnight into the next day; it can't equal the start.","examples":["09:00"]}},"required":["d","start","end"],"description":"A weekly window when a contact can be sent work at a location."},"Batch":{"type":"object","properties":{"batchId":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"status":{"type":"string","enum":["SECURITY_AUTHORIZED","PORT_LOCKED","ANCHORED","FINAL","FAILED","INVALIDATED"],"description":"SECURITY_AUTHORIZED → PORT_LOCKED → ANCHORED → FINAL, or FAILED (nothing reached the chain; its claims went back to the queue) / INVALIDATED (a challenge succeeded)."},"chainId":{"type":"integer","description":"8453 (Base) or 84532 (Base Sepolia)."},"registry":{"type":"string","pattern":"^0x[0-9a-f]{40}$","description":"The PhysicalWorkRegistry contract."},"verifier":{"type":"string","pattern":"^0x[0-9a-f]{40}$","description":"The verifier that anchored the batch."},"merkleRoot":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"claimCount":{"type":"integer"},"assurancePolicyHash":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"securityReferenceHash":{"type":"string","pattern":"^0x[0-9a-f]{64}$","description":"EIP-712 digest of the batch's SecurityAuthorization."},"requiredPortAtomic":{"type":"string","description":"PORT locked as security for the batch, in atomic units (a decimal integer string)."},"anchorTx":{"type":["string","null"]},"anchoredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"challengeWindowEndsAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["batchId","status","chainId","registry","verifier","merkleRoot","claimCount","assurancePolicyHash","securityReferenceHash","requiredPortAtomic","anchorTx","anchoredAt","challengeWindowEndsAt"],"description":"An anchored (or anchoring) batch of claims."},"CaptureLink":{"type":"object","properties":{"id":{"type":"string","examples":["cap_k3x9m2p7q4w8e1r5"]},"taskId":{"type":"string","examples":["task_k3x9m2p7q4w8e1r5"]},"url":{"type":"string","format":"uri","description":"The one-time capture page to send to whoever does the work."},"expiresAt":{"type":"string","format":"date-time"}},"required":["id","taskId","url","expiresAt"],"description":"A one-time link a partner sends to whoever does the work."},"Claim":{"type":"object","properties":{"id":{"type":"string","examples":["claim_k3x9m2p7q4w8e1r5"]},"status":{"type":"string","enum":["PENDING_BATCH","BATCHED","ANCHORED","FINAL","INVALIDATED","SANDBOX"],"description":"PENDING_BATCH (accepted, waiting for a batch) → BATCHED (in a batch, PORT not yet anchored) → ANCHORED (root on chain, challenge window open) → FINAL, or INVALIDATED by a successful challenge. SANDBOX: made with a test key, never batched or anchored, not proof of anything."},"claimHash":{"anyOf":[{"type":"string","pattern":"^0x[0-9a-f]{64}$","description":"EIP-712 digest of the claim under the batch's domain; null until the claim joins a batch."},{"type":"null"}]},"batchId":{"anyOf":[{"type":"string","pattern":"^0x[0-9a-f]{64}$"},{"type":"null"}]},"claim":{"$ref":"#/components/schemas/ClaimFields"}},"required":["id","status","claimHash","batchId","claim"],"description":"A claim's committed fields and status. Public: claims hold only hashes and salted commitments."},"ClaimFields":{"type":"object","properties":{"schemaVersion":{"type":"integer","description":"PoPW claim schema version: 0x0201 (513) = v2.1."},"claimIdHash":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"taskSpecHash":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"assignmentIdHash":{"anyOf":[{"type":"string","pattern":"^0x[0-9a-f]{64}$"},{"type":"null"}],"description":"null for DIRECT and VERIFY_ONLY work (no assignment); null hashes encode as zero."},"executionIdHash":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"requesterType":{"type":"string","enum":["HUMAN","ORGANIZATION","AI_AGENT","HUMANOID","ROBOT","AUTONOMOUS_VEHICLE","DRONE","DEVICE"]},"principalCommitment":{"type":"string","pattern":"^0x[0-9a-f]{64}$","description":"Salted commitment to the requester's principal; the salt stays private."},"mandateHash":{"anyOf":[{"type":"string","pattern":"^0x[0-9a-f]{64}$"},{"type":"null"}]},"fulfillmentMode":{"type":"string","enum":["MARKETPLACE","DIRECT","VERIFY_ONLY"]},"triggerHash":{"anyOf":[{"type":"string","pattern":"^0x[0-9a-f]{64}$"},{"type":"null"}]},"actorType":{"type":"string","enum":["HUMAN","HUMANOID","ROBOT","AUTONOMOUS_VEHICLE","DRONE","DEVICE","MULTI_ACTOR"]},"actorCommitment":{"type":"string","pattern":"^0x[0-9a-f]{64}$","description":"Salted commitment to the performer."},"evidenceRoot":{"type":"string","pattern":"^0x[0-9a-f]{64}$","description":"Merkle root of the evidence asset hashes."},"evidenceOriginFloor":{"type":"string","enum":["TELEPORT_CAPTURE","ATTESTED_DEVICE","ACTOR_TELEMETRY","THIRD_PARTY_SUBMITTED","PLATFORM_FETCHED","C2PA_SIGNED"],"description":"The weakest origin among the evidence."},"manifestHash":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"verificationPolicyHash":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"verificationEvidenceHash":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"rightsHash":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"decision":{"type":"string","enum":["ACCEPTED","REJECTED","REVIEWED_ACCEPTED"]},"settlementReferenceHash":{"anyOf":[{"type":"string","pattern":"^0x[0-9a-f]{64}$"},{"type":"null"}]},"assurancePolicyHash":{"anyOf":[{"type":"string","pattern":"^0x[0-9a-f]{64}$"},{"type":"null"}]},"securityReferenceHash":{"description":"Set when the claim joins a batch (Encoding §6.7); absent before.","type":"string","pattern":"^0x[0-9a-f]{64}$"},"workflowIdHash":{"anyOf":[{"type":"string","pattern":"^0x[0-9a-f]{64}$"},{"type":"null"}]},"executedAt":{"type":"integer","description":"Unix seconds."},"verifiedAt":{"type":"integer","description":"Unix seconds."}},"required":["schemaVersion","claimIdHash","taskSpecHash","assignmentIdHash","executionIdHash","requesterType","principalCommitment","mandateHash","fulfillmentMode","triggerHash","actorType","actorCommitment","evidenceRoot","evidenceOriginFloor","manifestHash","verificationPolicyHash","verificationEvidenceHash","rightsHash","decision","settlementReferenceHash","assurancePolicyHash","workflowIdHash","executedAt","verifiedAt"],"description":"The PoPWClaim fields as committed (PoPW Canonical Encoding v0.1 §6.2): only hashes, salted commitments, enums and times."},"ClaimProof":{"type":"object","properties":{"id":{"type":"string","examples":["claim_k3x9m2p7q4w8e1r5"]},"status":{"type":"string","enum":["PENDING_BATCH","BATCHED","ANCHORED","FINAL","INVALIDATED","SANDBOX"],"description":"PENDING_BATCH (accepted, waiting for a batch) → BATCHED (in a batch, PORT not yet anchored) → ANCHORED (root on chain, challenge window open) → FINAL, or INVALIDATED by a successful challenge. SANDBOX: made with a test key, never batched or anchored, not proof of anything."},"claimHash":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"claim":{"$ref":"#/components/schemas/ClaimFields"},"domain":{"type":"object","properties":{"name":{"type":"string","const":"Teleport PoPW"},"version":{"type":"string","examples":["2"]},"chainId":{"type":"integer","description":"8453 (Base) or 84532 (Base Sepolia)."},"verifyingContract":{"type":"string","pattern":"^0x[0-9a-f]{40}$","description":"The PhysicalWorkRegistry address."}},"required":["name","version","chainId","verifyingContract"],"description":"The EIP-712 domain claimHash is computed under."},"inclusion":{"type":"object","properties":{"batchId":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"merkleRoot":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"proof":{"type":"array","items":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"description":"Sibling hashes from the leaf up to the root."},"leaf":{"type":"string","const":"keccak256(claimHash)"},"pairing":{"type":"string","const":"sorted"}},"required":["batchId","merkleRoot","proof","leaf","pairing"]},"batch":{"type":"object","properties":{"status":{"type":"string","enum":["SECURITY_AUTHORIZED","PORT_LOCKED","ANCHORED","FINAL","FAILED","INVALIDATED"],"description":"SECURITY_AUTHORIZED → PORT_LOCKED → ANCHORED → FINAL, or FAILED (nothing reached the chain; its claims went back to the queue) / INVALIDATED (a challenge succeeded)."},"claimCount":{"type":"integer"},"assurancePolicyHash":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"securityReferenceHash":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"anchoredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"challengeWindowEndsAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"anchorTx":{"description":"The anchoring transaction hash, once anchored.","type":["string","null"]},"anchorTxUrl":{"description":"The transaction on Basescan.","type":["string","null"]}},"required":["status","claimCount","assurancePolicyHash","securityReferenceHash","anchoredAt","challengeWindowEndsAt","anchorTx","anchorTxUrl"]},"howToVerify":{"type":"array","items":{"type":"string"},"description":"The three checks, in words."}},"required":["id","status","claimHash","claim","domain","inclusion","batch","howToVerify"],"description":"Everything a third party needs to check a claim without trusting Teleport (Encoding §8): recompute claimHash, fold the Merkle proof to the root, and read the root from the registry on Base."},"ClaimProofPending":{"type":"object","properties":{"id":{"type":"string","examples":["claim_k3x9m2p7q4w8e1r5"]},"status":{"type":"string","enum":["PENDING_BATCH","BATCHED","ANCHORED","FINAL","INVALIDATED","SANDBOX"],"description":"PENDING_BATCH (accepted, waiting for a batch) → BATCHED (in a batch, PORT not yet anchored) → ANCHORED (root on chain, challenge window open) → FINAL, or INVALIDATED by a successful challenge. SANDBOX: made with a test key, never batched or anchored, not proof of anything."},"claim":{"$ref":"#/components/schemas/ClaimFields"},"proof":{"type":"null"},"message":{"type":"string","examples":["This claim is accepted and waiting to join a batch."]}},"required":["id","status","claim","proof","message"],"description":"A claim that hasn't joined a batch yet: no inclusion proof to give."},"Contact":{"type":"object","properties":{"pushDevices":{"type":"integer","description":"Phones with job alerts switched on (Web Push)."},"contactId":{"type":"string","examples":["ct_k3x9m2p7q4w8e1r5"]},"kind":{"type":"string","enum":["PERSON","VENDOR"]},"name":{"type":"string"},"vendorId":{"description":"For a PERSON: the contactId of the vendor they work for.","type":["string","null"]},"timezone":{"description":"IANA zone for quiet hours; set from their first location when not given.","type":["string","null"]},"quietHours":{"anyOf":[{"$ref":"#/components/schemas/QuietHours"},{"type":"null"}],"description":"Null means the default (21:00 to 07:00)."},"status":{"type":"string","enum":["ACTIVE","ARCHIVED"]},"notes":{"type":["string","null"]},"homeUrl":{"description":"Their personal worker page link (/w/<token>). It works as a credential: share it only with them.","type":["string","null"]},"channels":{"type":"array","items":{"$ref":"#/components/schemas/ContactChannel"}},"locations":{"type":"array","items":{"$ref":"#/components/schemas/ContactLocation"}}},"required":["pushDevices","contactId","kind","name","vendorId","timezone","quietHours","status","notes","homeUrl","channels","locations"],"description":"A person (staff) or vendor on the org's team. Contacts need no login."},"ContactArchived":{"type":"object","properties":{"contactId":{"type":"string","examples":["ct_k3x9m2p7q4w8e1r5"]},"status":{"type":"string","const":"ARCHIVED"}},"required":["contactId","status"]},"ContactChannel":{"type":"object","properties":{"channelId":{"type":"string","examples":["chn_k3x9m2p7q4w8e1r5"]},"type":{"type":"string","enum":["EMAIL","SMS"]},"address":{"type":"string","description":"A lower-cased email address, or an E.164 phone number (+15551234567)."},"status":{"type":"string","enum":["PENDING_CONSENT","ACTIVE","OPTED_OUT"],"description":"PENDING_CONSENT: an SMS number without recorded consent (no texts are sent). OPTED_OUT: the address texted STOP or is suppressed."}},"required":["channelId","type","address","status"],"description":"One way to reach a contact."},"ContactChannelInput":{"type":"object","properties":{"type":{"type":"string","enum":["EMAIL","SMS"]},"address":{"type":"string","description":"An email, or a phone number with its country code (ten US digits get +1)."},"consent":{"description":"SMS only: true records the owner's attestation that the person agreed to work alerts by text.","type":"boolean"}},"required":["type","address"]},"ContactHomeLink":{"type":"object","properties":{"contactId":{"type":"string","examples":["ct_k3x9m2p7q4w8e1r5"]},"homeUrl":{"type":"string","description":"The worker page link (/w/<token>)."}},"required":["contactId","homeUrl"]},"ContactInput":{"type":"object","properties":{"kind":{"description":"Default PERSON.","type":"string","enum":["PERSON","VENDOR"]},"name":{"type":"string","description":"Trimmed; cut to 80 characters."},"email":{"description":"An email or a phone is required.","type":"string"},"phone":{"description":"A mobile number with its country code (ten US digits get +1); stored as E.164.","type":"string"},"smsConsent":{"anyOf":[{"type":"boolean"},{"type":"string","enum":["on","true"]}],"description":"The owner attests the person agreed to work alerts by text (consent text version sms-consent-v1). Without it the SMS channel starts as PENDING_CONSENT."},"vendorId":{"description":"For a PERSON: the contactId of a VENDOR contact in this org. Ignored for vendors.","type":["string","null"]},"timezone":{"anyOf":[{"type":"string","description":"IANA time zone name, such as America/Los_Angeles.","examples":["America/Los_Angeles"]},{"type":"null"}]},"quietHours":{"anyOf":[{"$ref":"#/components/schemas/QuietHours"},{"type":"null"}]},"notes":{"description":"Cut to 500 characters.","type":"string"},"locations":{"maxItems":50,"type":"array","items":{"$ref":"#/components/schemas/ContactLocationInput"},"description":"Replaces every location link of the contact."}},"required":["name"],"description":"A new contact. Needs a name and an email or a phone."},"ContactLocation":{"type":"object","properties":{"locationId":{"type":"string","examples":["loc_k3x9m2p7q4w8e1r5"]},"name":{"description":"The saved location's name.","type":["string","null"]},"slots":{"type":"array","items":{"$ref":"#/components/schemas/AvailabilitySlot"}},"onCall":{"type":"boolean","description":"Available at any time, regardless of slots."},"availableNow":{"type":"boolean","description":"On call, or inside one of the slots right now in the location's time zone (UTC when unknown)."}},"required":["locationId","name","slots","onCall","availableNow"],"description":"Where and when a contact works."},"ContactLocationInput":{"type":"object","properties":{"locationId":{"type":"string","examples":["loc_k3x9m2p7q4w8e1r5"],"description":"A saved location of this org."},"slots":{"description":"Weekly windows; omitted or null means none.","maxItems":50,"type":"array","items":{"$ref":"#/components/schemas/AvailabilitySlot"}},"onCall":{"description":"Only true switches it on.","type":"boolean"}},"required":["locationId"]},"ContactLocationsInput":{"type":"object","properties":{"locations":{"maxItems":50,"type":"array","items":{"$ref":"#/components/schemas/ContactLocationInput"},"description":"Replaces every location link of the contact."}},"required":["locations"]},"ContactUpdate":{"type":"object","properties":{"name":{"description":"Can't be blank; cut to 80 characters.","type":"string"},"vendorId":{"description":"For a PERSON: a VENDOR contactId, or null/\"\" to clear. Ignored for vendors.","type":["string","null"]},"timezone":{"description":"IANA zone, or null/\"\" to clear.","anyOf":[{"type":"string","description":"IANA time zone name, such as America/Los_Angeles.","examples":["America/Los_Angeles"]},{"type":"null"}]},"quietHours":{"description":"null/\"\" goes back to the default.","anyOf":[{"$ref":"#/components/schemas/QuietHours"},{"type":"null"}]},"notes":{"description":"Cut to 500 characters; \"\" clears.","type":"string"},"status":{"type":"string","enum":["ACTIVE","ARCHIVED"]},"locations":{"maxItems":50,"type":"array","items":{"$ref":"#/components/schemas/ContactLocationInput"},"description":"Replaces every location link of the contact."}},"description":"Fields to change; omitted fields stay as they are. Channels are changed with the channel operations, not here."},"CreatedTask":{"allOf":[{"$ref":"#/components/schemas/Task"},{"type":"object","properties":{"warnings":{"description":"Present only when the spec raised warnings.","type":"array","items":{"$ref":"#/components/schemas/TaskWarning"}},"routing":{"description":"Present only when the task was routed (routing wasn't ME and a ladder applied).","$ref":"#/components/schemas/TaskRouteSummary"}}}],"description":"The new task, with any spec warnings and, when routed, the route."},"CreateTaskRequest":{"type":"object","properties":{"spec":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"The TAP task spec (v0.3, PhysicalTaskSpecV03, or v0.2, PhysicalTaskSpecV02)."},"declaredValueUsdCents":{"description":"Value that depends on the proof, in cents (0 if none). Required for VERIFY_ONLY tasks unless the spec sets metadata.declaredValueUsdCents.","type":"integer","minimum":0},"routing":{"$ref":"#/components/schemas/TaskRouting"}},"required":["spec"],"description":"A spec with what isn't part of TAP: the declared value and routing. Recognised by a top-level `spec` and no `schema`."},"DetectorCondition":{"type":"object","properties":{"ref":{"type":"string","examples":["floor_liquid_present"]},"pack":{"type":"string","description":"The pack this condition belongs to."},"label":{"type":"string"},"detectionQuestion":{"type":"string","description":"The yes/no question asked of a frame."},"verificationQuestion":{"type":"string","description":"The same question asked after the work."},"category":{"type":"string","enum":["CLEAN","STOCK","REPAIR","INSPECT","OPERATE"]},"task":{"type":"object","properties":{"title":{"type":"string"},"priceUsdCents":{"type":"integer"},"illustrative":{"type":"boolean","const":true,"description":"Prices are illustrative defaults, editable per site rule."}},"required":["title","priceUsdCents","illustrative"]},"autoPostBps":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Default confidence (bps) at or above which a rule may auto-post; null means suggest only."},"suggestBps":{"type":"integer","description":"Default confidence (bps) at or above which a need is suggested."},"hazard":{"type":"boolean","description":"Alert staff at once, before any task routing."},"requiresUnoccupied":{"type":"boolean","description":"Suppressed while someone is in the zone."}},"required":["ref","pack","label","detectionQuestion","verificationQuestion","category","task","autoPostBps","suggestBps","hazard","requiresUnoccupied"],"description":"One condition Spot It can detect, with its default thresholds and illustrative task."},"DetectorPack":{"type":"object","properties":{"ref":{"type":"string","examples":["teleport.detect.hospitality-floor@1.0"]},"name":{"type":"string"},"conditions":{"type":"array","items":{"type":"string"},"description":"Condition refs in this pack."}},"required":["ref","name","conditions"],"description":"A versioned set of conditions for one kind of space."},"DetectorPackList":{"type":"object","properties":{"default":{"type":"string","description":"The pack used when none is named: every condition of every pack.","examples":["teleport.detect.auto@1.0"]},"packs":{"type":"array","items":{"$ref":"#/components/schemas/DetectorPack"}},"conditions":{"type":"array","items":{"$ref":"#/components/schemas/DetectorCondition"}}},"required":["default","packs","conditions"]},"EncodingSpec":{"type":"object","properties":{"encoding":{"type":"string","examples":["PoPW Canonical Encoding & Hashing v0.1"]},"domain":{"type":"object","properties":{"name":{"type":"string","const":"Teleport PoPW"},"version":{"type":"string","examples":["2"]}},"required":["name","version"],"description":"EIP-712 domain name and version; chainId and verifyingContract come from each batch."},"typeStrings":{"type":"object","properties":{"PoPWClaim":{"type":"string"},"BatchAnchor":{"type":"string"},"SecurityAuthorization":{"type":"string"}},"required":["PoPWClaim","BatchAnchor","SecurityAuthorization"],"description":"Exact EIP-712 encodeType strings."},"typeHashes":{"type":"object","properties":{"PoPWClaim":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"BatchAnchor":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"SecurityAuthorization":{"type":"string","pattern":"^0x[0-9a-f]{64}$"}},"required":["PoPWClaim","BatchAnchor","SecurityAuthorization"],"description":"keccak256 of each type string."}},"required":["encoding","domain","typeStrings","typeHashes"],"description":"The canonical encoding claims and batches are hashed with."},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"Machine-readable: invalid_request, unauthenticated, invalid_token, forbidden, pending_approval, not_found, conflict, unprocessable, payment_required, not_configured, rate_limited, internal"},"message":{"type":"string","description":"A sentence a person can read."},"details":{"description":"Extra context, such as validation issues ({path, message}[])."}},"required":["code","message"]}},"required":["error"],"description":"Every error has this shape."},"EvidenceResult":{"description":"The task after submission: IN_REVIEW with its rule checks, or REJECTED when a check failed.","$ref":"#/components/schemas/Task"},"EvidenceSubmission":{"type":"object","properties":{"actor":{"type":"object","properties":{"actorType":{"type":"string","enum":["HUMAN","HUMANOID","ROBOT","AUTONOMOUS_VEHICLE","DRONE","DEVICE","MULTI_ACTOR"]},"actorRef":{"type":"string","minLength":1,"maxLength":128,"description":"Your reference for who or what did the work; kept private (salted in the claim)."}},"required":["actorType","actorRef"]},"executedAt":{"type":"string","format":"date-time","description":"When the work was done (RFC 3339, not in the future)."},"attestation":{"description":"The submitter's attestation; needed when the task requires one. null or left out means none.","anyOf":[{"type":"object","properties":{"statement":{"type":"string","minLength":1,"maxLength":2000},"attestedBy":{"type":"string","minLength":1,"maxLength":256}},"required":["statement","attestedBy"]},{"type":"null"}]},"assets":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"evidenceId":{"type":"string","minLength":1,"maxLength":64,"description":"The spec's evidence requirement id this asset satisfies."},"path":{"type":"string","minLength":1,"maxLength":512,"description":"Unique within the submission; follows the PoPW evidence path rule."},"origin":{"type":"string","enum":["THIRD_PARTY_SUBMITTED","ACTOR_TELEMETRY"],"description":"VERIFY_ONLY tasks take THIRD_PARTY_SUBMITTED; DIRECT tasks also ACTOR_TELEMETRY. Other origins are refused (422)."},"contentType":{"description":"Stored up to 100 characters.","type":"string"},"contentBase64":{"description":"The file inline, up to 3 MiB decoded. Send this or blobPathname.","type":"string"},"blobPathname":{"description":"Instead of contentBase64: a blobPathname from POST …/uploads, after the PUT succeeded (up to 25 MiB).","type":"string"},"sourceMeta":{"description":"When you re-encode a photo before sending it (which drops its metadata): what the original file said about itself. Unverified; it only informs the advisory authenticity check reviewers see, and is never part of the claim. Unknown fields are dropped.","type":"object","properties":{"format":{"type":"string","enum":["jpeg","png","webp","heic","gif","other"]},"type":{"description":"The original file's media type.","type":"string"},"size":{"type":"integer","minimum":0},"lastModified":{"description":"The original file's last-modified time (RFC 3339).","type":"string"},"exif":{"anyOf":[{"type":"object","properties":{"make":{"type":"string"},"model":{"type":"string"},"software":{"type":"string"},"dateTime":{"type":"string"},"dateTimeOriginal":{"type":"string"},"gps":{"type":"boolean"}},"required":["gps"]},{"type":"null"}]},"xmp":{"type":"boolean"},"c2pa":{"type":"boolean"},"aiDeclared":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["GENERATED","EDITED"]},"marker":{"type":"string"},"where":{"type":"string","enum":["c2pa","xmp","exif","png-text"]}},"required":["kind","marker","where"]},{"type":"null"}]}},"required":["format","exif","xmp","c2pa","aiDeclared"]}},"required":["evidenceId","path","origin"]}}},"required":["actor","executedAt","assets"],"description":"One submission per task: who did the work, when, the submitter's attestation and the assets. Teleport hashes the stored bytes itself."},"Location":{"type":"object","properties":{"locationId":{"type":"string","examples":["loc_k3x9m2p7q4w8e1r5"]},"name":{"type":"string"},"address":{"type":"string"},"details":{"description":"Default access notes: which door, who to ask.","type":["string","null"]},"lat":{"type":["number","null"]},"lng":{"type":["number","null"]},"placeId":{"description":"Google place id, when the address was resolved.","type":["string","null"]},"city":{"type":["string","null"]},"region":{"type":["string","null"]},"countryCode":{"type":["string","null"]},"postalCode":{"type":["string","null"]},"timezone":{"description":"IANA zone at the pin, so task times read in local time.","type":["string","null"]},"mapsUrl":{"description":"Opens the spot in Google Maps (coordinates when known, else the address).","type":["string","null"]}},"required":["locationId","name","address","details","lat","lng","placeId","city","region","countryCode","postalCode","timezone","mapsUrl"],"description":"A saved location: a place this org sends people to. Lat/lng are null when the address couldn't be resolved (it saves as typed)."},"LocationDeleted":{"type":"object","properties":{"locationId":{"type":"string","examples":["loc_k3x9m2p7q4w8e1r5"]},"deleted":{"type":"boolean","const":true}},"required":["locationId","deleted"]},"LocationInput":{"type":"object","properties":{"name":{"description":"Cut to 80 characters. Defaults to the first part of the address.","type":"string"},"address":{"description":"Required unless placeId is given; cut to 200 characters. Geocoded when there's no placeId.","type":"string"},"details":{"description":"Access notes (cut to 300 characters); \"\" clears.","type":"string"},"placeId":{"description":"From autocompletePlaces: gives the exact address and lat/lng.","type":"string"},"sessionToken":{"description":"The session used for autocompletePlaces, so the lookup is billed as one session.","type":"string"},"timezone":{"type":"string","description":"IANA zone; wins over the one looked up from the pin. Can't be cleared.","examples":["America/Los_Angeles"]}},"description":"A new location: an address or a placeId."},"LocationUpdate":{"type":"object","properties":{"name":{"description":"Can't be blank; cut to 80 characters.","type":"string"},"address":{"description":"A changed address is re-resolved (lat/lng, city, …).","type":"string"},"details":{"description":"Access notes (cut to 300 characters); \"\" clears.","type":"string"},"placeId":{"description":"From autocompletePlaces: gives the exact address and lat/lng.","type":"string"},"sessionToken":{"description":"The session used for autocompletePlaces, so the lookup is billed as one session.","type":"string"},"timezone":{"type":"string","description":"IANA zone; wins over the one looked up from the pin. Can't be cleared.","examples":["America/Los_Angeles"]}},"description":"Fields to change. Tasks already posted keep their copy of the location."},"Me":{"oneOf":[{"$ref":"#/components/schemas/MeAgent"},{"$ref":"#/components/schemas/MePerson"},{"$ref":"#/components/schemas/MeOrgKey"}],"description":"Who the key belongs to, by kind."},"MeAgent":{"type":"object","properties":{"kind":{"type":"string","const":"agent"},"agent":{"type":"object","properties":{"id":{"type":"string","examples":["agt_k3x9m2p7q4w8e1r5"]},"name":{"type":"string"},"username":{"type":"string"},"status":{"type":"string","enum":["unclaimed","claimed","suspended"]}},"required":["id","name","username","status"]},"orgId":{"description":"null until a person claims the agent.","type":["string","null"]},"canAct":{"type":"boolean","description":"true once claimed; until then only GET /me works."},"next":{"type":["string","null"]}},"required":["kind","agent","orgId","canAct","next"],"description":"An agent's key."},"MeOrgKey":{"type":"object","properties":{"kind":{"type":"string","const":"org_key"},"orgId":{"type":"string"},"role":{"type":"string","enum":["requester","reviewer","admin","agent","agent_unclaimed"]}},"required":["kind","orgId","role"],"description":"An organization key not tied to a person or agent."},"MePerson":{"type":"object","properties":{"kind":{"type":"string","const":"person"},"orgId":{"type":"string"},"role":{"type":"string","enum":["requester","reviewer","admin","agent","agent_unclaimed"]},"user":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"email":{"type":"string"},"image":{"type":["string","null"]},"username":{"type":["string","null"]},"role":{"type":"string","enum":["user","reviewer","admin"]},"accessStatus":{"type":"string","enum":["pending","approved","rejected"]}},"required":["id","name","email","image","username","role","accessStatus"]},{"type":"null"}]},"accessStatus":{"type":"string","enum":["pending","approved","rejected"],"description":"approved for staff (reviewers, admins) whatever the stored status."},"canAct":{"type":"boolean"},"next":{"type":["string","null"]}},"required":["kind","orgId","role","user","accessStatus","canAct","next"],"description":"A person's key, OAuth token or session. Works while the account waits for approval (private beta)."},"Need":{"type":"object","properties":{"needId":{"type":"string","examples":["need_k3x9m2p7q4w8e1r5"]},"assessmentId":{"type":"string"},"conditionRef":{"type":"string"},"label":{"type":"string"},"hazard":{"type":"boolean"},"reason":{"type":["string","null"]},"confidenceBps":{"type":"integer"},"stage":{"type":"string","enum":["SUGGESTED","DEDUPLICATED","POSTED","IN_REVIEW","VERIFIED","REJECTED","CANCELLED","DISMISSED"],"description":"The need's status with its task's folded in."},"feedback":{"anyOf":[{"type":"string","enum":["NOT_A_PROBLEM","WRONG","DUPLICATE","LATER"]},{"type":"null"}],"description":"The dismissal reason."},"dedupOf":{"type":["string","null"]},"siteId":{"type":["string","null"]},"siteName":{"type":["string","null"]},"taskId":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"frame":{"anyOf":[{"type":"object","properties":{"url":{"description":"15-minute link (or data: URL) to the redacted frame.","type":["string","null"]},"box":{"anyOf":[{"minItems":4,"maxItems":4,"type":"array","items":{"type":"integer"},"description":"[x, y, w, h] as integers 0–1000 of the frame."},{"type":"null"}]}},"required":["url","box"]},{"type":"null"}],"description":"The frame it was seen in; null once purged."}},"required":["needId","assessmentId","conditionRef","label","hazard","reason","confidenceBps","stage","feedback","dedupOf","siteId","siteName","taskId","createdAt","frame"],"description":"A need in the inbox."},"NeedDismiss":{"type":"object","properties":{"reason":{"type":"string","enum":["NOT_A_PROBLEM","WRONG","DUPLICATE","LATER"]}},"required":["reason"]},"NeedDismissed":{"type":"object","properties":{"needId":{"type":"string"},"status":{"type":"string","const":"DISMISSED"},"feedback":{"type":"string","enum":["NOT_A_PROBLEM","WRONG","DUPLICATE","LATER"]}},"required":["needId","status","feedback"]},"NeedList":{"type":"object","properties":{"needs":{"type":"array","items":{"$ref":"#/components/schemas/Need"}}},"required":["needs"]},"NeedPost":{"type":"object","properties":{"needId":{"type":"string"},"task":{"type":"object","properties":{"id":{"type":"string","examples":["task_k3x9m2p7q4w8e1r5"]},"title":{"type":"string"},"status":{"type":"string","examples":["AWAITING_EVIDENCE"]}},"required":["id","title","status"]},"captureUrl":{"type":"string","description":"Capture link for whoever fixes it."},"captureExpiresAt":{"type":"string","format":"date-time"},"routing":{"anyOf":[{"type":"object","properties":{"routeId":{"type":"string"},"state":{"type":"string","enum":["OFFERING","CLAIMED","EXHAUSTED","CANCELLED","DONE"]},"tier":{"type":"integer","description":"Current tier index (-1 before the first opens)."},"tiers":{"type":"integer"},"tierEndsAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"alerted":{"type":"integer","description":"Offers sent so far."},"claimedContactId":{"type":["string","null"]}},"required":["routeId","state","tier","tiers","tierEndsAt","alerted","claimedContactId"]},{"type":"null"}],"description":"The route started for the task; null for \"just me\"."}},"required":["needId","task","captureUrl","captureExpiresAt","routing"],"description":"A need posted as a VERIFY_ONLY TAP task."},"NeedPostDraft":{"type":"object","properties":{"needId":{"type":"string"},"status":{"type":"string","enum":["SUGGESTED","POSTED","DISMISSED","DEDUPLICATED","BELOW_THRESHOLD","PENDING"],"description":"Where the need stands now (the action, then changed by posting, dismissing or restoring)."},"sandbox":{"type":"boolean"},"title":{"type":"string","description":"Proposed task title."},"priceUsdCents":{"type":"integer","description":"The site's price for this condition."},"site":{"type":"object","properties":{"siteId":{"type":"string"},"name":{"type":"string"},"locationId":{"type":["string","null"]}},"required":["siteId","name","locationId"]},"verificationQuestion":{"type":"string"}},"required":["needId","status","sandbox","title","priceUsdCents","site","verificationQuestion"],"description":"The post form's starting point."},"NeedPostInput":{"type":"object","properties":{"title":{"description":"Default: the condition's task title and where.","type":"string","maxLength":120},"description":{"description":"Added to the instructions. `notes` is accepted as an older name.","type":"string","maxLength":1000},"priceUsdCents":{"description":"Default: the site rule's price (illustrative unless set here).","type":"integer","minimum":0,"maximum":100000},"deadline":{"format":"date-time","description":"In the future, at most 30 days away; the capture link lasts until then.","type":"string"},"linkHours":{"description":"Capture link lifetime without a deadline, 1–168 (default 72).","type":"number"},"locationId":{"description":"A saved location (default the site's).","type":"string"},"address":{"description":"A one-off address instead of a saved location.","type":"string","maxLength":200},"placeId":{"description":"Place id from place search, with or instead of address.","type":"string"},"sessionToken":{"description":"Place search session token.","type":"string"},"saveLocation":{"description":"Save the one-off address as a location.","anyOf":[{"type":"boolean"},{"type":"string","const":"on"},{"type":"string","const":"true"}]},"locationName":{"description":"Name for the saved location.","type":"string","maxLength":80},"spot":{"description":"Where exactly, e.g. \"by the window\".","type":"string","maxLength":120},"accessNotes":{"type":"string","maxLength":300},"routing":{"description":"Who it goes to: \"ME\", \"DEFAULT\" (the location's or org's routing policy), one tier { audience, contactIds?, vendorIds?, windowMinutes? }, or { ladder: [tier, …] } (1–6 tiers). Audiences: PERSON, LOCATION_STAFF, ALL_STAFF, VENDORS, OPEN_NETWORK."}},"description":"Every field is optional."},"NeedRestored":{"type":"object","properties":{"needId":{"type":"string"},"status":{"type":"string","enum":["SUGGESTED","DEDUPLICATED"]}},"required":["needId","status"]},"ObservationCreate":{"type":"object","properties":{"input":{"description":"Default PHOTO; always CAMERA_FEED with sourceId.","type":"string","enum":["PHOTO","VIDEO","CAMERA_SHOT","CAMERA_FEED"]},"mode":{"description":"Default SUGGEST_ONLY when signed in, DRY_RUN anonymously (the only mode allowed without a key).","type":"string","enum":["DRY_RUN","SUGGEST_ONLY","RULES"]},"detectorPackRef":{"description":"Default: the site's pack, else teleport.detect.auto@1.0.","type":"string","enum":["teleport.detect.auto@1.0","teleport.detect.hospitality-floor@1.0","teleport.detect.retail-shelf@1.0","teleport.detect.office-facilities@1.0"]},"draftId":{"description":"From createObservationUploads; required when media use blobPathname.","type":"string"},"media":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"object","properties":{"blobPathname":{"description":"An upload link's path from this draft.","type":"string"},"contentBase64":{"description":"The frame inline (all inline frames together at most 3 MB).","type":"string"},"capturedAt":{"format":"date-time","description":"Ignored when not a valid date.","type":"string"},"frameTimeMs":{"description":"Position in the video (input VIDEO only).","type":"integer","minimum":0}}},"description":"1–12 frames, each with blobPathname or contentBase64 (JPEG, PNG or WebP)."},"siteId":{"description":"Signed in only: the site whose rules apply (default the org's first).","type":"string"},"sourceId":{"description":"Signed in only: an active DEVICE_CAMERA source sending its keyframes.","type":"string"}},"required":["media"]},"ObservationResult":{"type":"object","properties":{"assessmentId":{"type":"string","examples":["na_k3x9m2p7q4w8e1r5"]},"observationId":{"type":"string","examples":["obs_k3x9m2p7q4w8e1r5"]},"observationHash":{"type":"string"},"assessmentHash":{"type":"string"},"detectorPackRef":{"type":"string"},"models":{"type":"array","items":{"type":"object","properties":{"ref":{"type":"string"},"role":{"type":"string","enum":["redaction","detector","decision"]}},"required":["ref","role"]}},"sandbox":{"type":"boolean","description":"True when no detection model is configured and the results are a sample; such needs can't be posted."},"mode":{"type":"string","enum":["DRY_RUN","SUGGEST_ONLY","RULES"]},"input":{"type":"string","enum":["PHOTO","VIDEO","CAMERA_SHOT","CAMERA_FEED"]},"createdAt":{"type":"string","format":"date-time"},"expiresAt":{"anyOf":[{"type":"string","format":"date-time","description":"When the frames are deleted: 24 h for a dry run, 30 days for a kept assessment; null once purged."},{"type":"null"}]},"media":{"type":"array","items":{"$ref":"#/components/schemas/AssessmentMedia"}},"needs":{"type":"array","items":{"type":"object","properties":{"needId":{"type":"string","examples":["need_k3x9m2p7q4w8e1r5"]},"conditionRef":{"type":"string"},"zoneRef":{"type":["string","null"]},"confidenceBps":{"type":"integer","description":"Final confidence in bps."},"crop":{"anyOf":[{"type":"object","properties":{"mediaIndex":{"type":"integer"},"box":{"minItems":4,"maxItems":4,"type":"array","items":{"type":"integer"},"description":"[x, y, w, h] as integers 0–1000 of the frame."}},"required":["mediaIndex","box"]},{"type":"null"}],"description":"The frame and box of the best sighting."},"reason":{"description":"What the model saw, in a few words (never about people).","type":["string","null"]},"action":{"type":"string","enum":["POSTED","SUGGESTED","DEDUPLICATED","BELOW_THRESHOLD","PENDING"],"description":"What the run decided. PENDING: a camera has not seen it for the condition's persistence time yet."},"status":{"type":"string","enum":["SUGGESTED","POSTED","DISMISSED","DEDUPLICATED","BELOW_THRESHOLD","PENDING"],"description":"Where the need stands now (the action, then changed by posting, dismissing or restoring)."},"taskId":{"type":["string","null"]},"dedupOf":{"description":"The open need this one repeats.","type":["string","null"]},"decision":{"anyOf":[{"type":"object","properties":{"by":{"type":"string","enum":["JEV","DETECTOR_ONLY"]},"detectorBps":{"type":"integer"},"jevBps":{"anyOf":[{"type":"integer"},{"type":"null"}]},"urgency":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"0 can wait, 1 soon, 2 now (hazards only)."}},"required":["by","detectorBps","jevBps","urgency"]},{"type":"null"}]},"label":{"type":"string"},"category":{"anyOf":[{"type":"string","enum":["CLEAN","STOCK","REPAIR","INSPECT","OPERATE"]},{"type":"null"}]},"hazard":{"type":"boolean"},"question":{"description":"The condition's detection question.","type":["string","null"]},"proposedTask":{"anyOf":[{"type":"object","properties":{"title":{"type":"string"},"priceUsdCents":{"type":"integer"},"category":{"type":"string","enum":["CLEAN","STOCK","REPAIR","INSPECT","OPERATE"]},"illustrative":{"type":"boolean","const":true}},"required":["title","priceUsdCents","category","illustrative"]},{"type":"null"}]},"captureUrl":{"description":"Set when this run auto-posted the need: the capture link for whoever fixes it.","type":"string"}},"required":["needId","conditionRef","zoneRef","confidenceBps","crop","reason","action","status","taskId","dedupOf","decision","label","category","hazard","question","proposedTask"]}},"site":{"anyOf":[{"type":"object","properties":{"siteId":{"type":"string"},"name":{"type":"string"}},"required":["siteId","name"]},{"type":"null"}],"description":"The site whose rules applied; null for a dry run."},"latencyMs":{"type":"integer","description":"Detection time."},"pending":{"description":"Camera sources only: conditions held until they persist.","type":"array","items":{"type":"object","properties":{"conditionRef":{"type":"string"},"zoneRef":{"type":["string","null"]},"confirmAfterMs":{"type":"integer"}},"required":["conditionRef","zoneRef","confirmAfterMs"]}},"claimToken":{"description":"Anonymous tries only: send as `x-spot-token` to read the assessment, or to claimAssessment after sign-in.","type":"string"}},"required":["assessmentId","observationId","observationHash","assessmentHash","detectorPackRef","models","sandbox","mode","input","createdAt","expiresAt","media","needs","site","latencyMs"],"description":"The result of one Spot It run."},"ObservationUploads":{"type":"object","properties":{"draftId":{"type":"string","examples":["draft_k3x9m2p7q4w8e1r5"],"description":"Name it in createObservation."},"uploads":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"blobPathname":{"type":"string","description":"Send as media[].blobPathname after uploading."},"uploadUrl":{"type":"string","description":"Presigned URL to PUT the bytes to."},"method":{"type":"string","const":"PUT"},"headers":{"type":"object","properties":{"content-type":{"type":"string"}},"required":["content-type"],"description":"Headers the PUT must send."}},"required":["index","blobPathname","uploadUrl","method","headers"]}}},"required":["draftId","uploads"]},"ObservationUploadsCreate":{"type":"object","properties":{"files":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"object","properties":{"contentType":{"type":"string","enum":["image/jpeg","image/png","image/webp"]},"size":{"type":"integer","minimum":1,"maximum":26214400,"description":"Bytes, at most 25 MB."}},"required":["contentType","size"]}}},"required":["files"]},"OpenNetwork":{"type":"object","properties":{"id":{"type":"string","examples":["rentahuman"]},"label":{"type":"string","examples":["RentAHuman"]},"mode":{"type":"string","enum":["off","dry_run","live"],"description":"off: OPEN_NETWORK tiers are refused. dry_run: projected and quoted only. live: posted and funded."}},"required":["id","label","mode"],"description":"The outside network an OPEN_NETWORK tier uses, and whether it's switched on."},"OutcomeEvent":{"type":"object","properties":{"type":{"type":"string","enum":["task.published","task.capture_started","task.evidence_submitted","task.accepted","task.rejected","task.reviewed","claim.anchored","durability.resolved","task.fallback_scheduled","task.fallback_notice_sent","task.fallback_triggered","task.fallback_blocked","task.superseded","route.offered","route.claimed","route.released","route.exhausted","route.cancelled"]},"eventId":{"type":"string","examples":["evt_k3x9m2p7q4w8e1r5"],"description":"Unique per event: dedup on it, since a delivery can arrive twice if your 2xx is lost."},"occurredAt":{"type":"string","format":"date-time","description":"When it happened (seconds precision, UTC)."},"taskSpecId":{"type":"string","description":"The requester's taskSpecId, or Teleport's task id when the spec has none."},"taskId":{"type":"string","examples":["task_k3x9m2p7q4w8e1r5"],"description":"Teleport's id for the task (the API path)."},"workflowId":{"description":"The task's relations.workflowId, when set.","type":"string"},"claimId":{"description":"task.accepted, claim.anchored, task.reviewed.","type":"string","examples":["claim_k3x9m2p7q4w8e1r5"]},"claimHash":{"description":"claim.anchored, task.reviewed.","type":"string","pattern":"^0x[0-9a-f]{64}$"},"decision":{"type":"string","enum":["ACCEPTED","REJECTED","REVIEWED_ACCEPTED"]},"assuranceTier":{"type":"string","enum":["STANDARD","VERIFIED","HIGH_ASSURANCE"]},"evidenceOriginFloor":{"type":"string","enum":["TELEPORT_CAPTURE","ATTESTED_DEVICE","ACTOR_TELEMETRY","THIRD_PARTY_SUBMITTED","PLATFORM_FETCHED","C2PA_SIGNED"]},"findings":{"type":"object","properties":{"scoreBps":{"type":"number"},"band":{"type":"string"}}},"scope":{"type":"object","properties":{"asserts":{"type":"array","items":{"type":"string"}},"doesNotAssert":{"type":"array","items":{"type":"string"}}},"required":["asserts","doesNotAssert"],"description":"The task's verification scope statement: what an ACCEPT does and doesn't assert. Empty arrays when the task names no scope."},"anchor":{"description":"claim.anchored.","type":"object","properties":{"chainId":{"type":"integer"},"batchId":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"txHash":{"type":"string","pattern":"^0x[0-9a-f]{64}$"}},"required":["chainId","batchId","txHash"]},"externalRefs":{"description":"The task's externalRefs, unchanged (sensitive ones included).","type":"array","items":{"type":"object","properties":{"system":{"type":"string"},"refType":{"type":"string","enum":["LOAN","DRAW","CLAIM","POLICY","WORK_ORDER","ASSET","INSPECTION_ORDER","CUSTOM"]},"value":{"type":"string"},"sensitive":{"type":"boolean"}},"required":["system","refType","value"]}},"rejectionReason":{"description":"task.rejected.","type":"string","enum":["EVIDENCE_INSUFFICIENT","ORIGIN_BELOW_FLOOR","C2PA_ORIGIN_NOT_ACCEPTED","C2PA_PROVENANCE_MISSING","C2PA_EDITED_NOT_PERMITTED","C2PA_SIGNED_OUTSIDE_WINDOW","LOCATION_MISMATCH","TIME_WINDOW","SCOPE_NOT_MET","SAFETY","POLICY"]},"fireAt":{"description":"task.fallback_scheduled.","type":"string","format":"date-time"},"channel":{"description":"task.fallback_notice_sent.","type":"string","enum":["SMS","EMAIL","PUSH","WEBHOOK_ONLY"]},"fallbackTaskSpecId":{"description":"task.fallback_triggered.","type":"string"},"attempt":{"type":"integer"},"reason":{"description":"task.fallback_triggered: the trigger that fired. task.fallback_blocked: why it couldn't fire.","type":"string","enum":["NOT_STARTED","NOT_SUBMITTED","REJECTED","REVIEW_TIMEOUT","SITE_CONSENT","MANDATE","BUDGET","NO_SUPPLY"]},"winnerTaskSpecId":{"description":"task.superseded.","type":"string"},"route":{"description":"route.offered, route.claimed, route.released, route.exhausted, route.cancelled: the task's routing (POST /tap/tasks/{id}/route).","type":"object","properties":{"routeId":{"type":"string","examples":["route_k3x9m2p7q4w8e1r5"]},"tier":{"description":"route.offered: the ladder step now open (0-based).","type":"integer"},"audience":{"description":"route.offered: who it reaches (e.g. TEAM, CONTACTS, OPEN_NETWORK, PROVIDERS).","type":"string"},"alerted":{"description":"route.offered: how many of your contacts were alerted (0 for networks and providers).","type":"integer"},"by":{"description":"route.claimed, route.released: one of your contacts, or an outside network or provider (never named).","type":"string","enum":["CONTACT","NETWORK"]},"contactId":{"description":"route.claimed, route.released: which of your contacts, when by is CONTACT.","type":"string","examples":["ct_k3x9m2p7q4w8e1r5"]},"reason":{"description":"route.cancelled: the reason given, if any.","type":"string"}},"required":["routeId"]}},"required":["type","eventId","occurredAt","taskSpecId","taskId","scope"],"description":"An outcome event (TAP v0.3 §9), the exact JSON body POSTed to your webhook URL and returned by GET /tap/tasks/{id}/events. Headers: Teleport-Event-Id, Teleport-Event-Type and Teleport-Signature (a detached ES256 JWS over the exact body)."},"OutcomeSigningKey":{"type":"object","properties":{"kty":{"type":"string","const":"EC"},"crv":{"type":"string","const":"P-256"},"x":{"type":"string"},"y":{"type":"string"},"kid":{"type":"string","description":"RFC 7638 thumbprint of the key."},"alg":{"type":"string","const":"ES256"},"use":{"type":"string","const":"sig"}},"required":["kty","crv","x","y","kid","alg","use"],"description":"A public JWK that signs outcome events."},"PhysicalTaskSpecV02":{"title":"TAP PhysicalTaskSpec v0.2","type":"object","additionalProperties":false,"required":["schema","version","taskSpecId","title","objective","category","requestedQuantity","requester","fulfillment","actorRequirement","completionConditions","evidenceProfiles","verificationPolicy","rightsPolicy","economics","popw"],"properties":{"schema":{"const":"teleport.tap.physical-task"},"version":{"const":"0.2.0"},"taskSpecId":{"type":"string","minLength":1},"organizationId":{"type":"string","description":"Deprecated in v0.2. Use requester.principal."},"title":{"type":"string","minLength":1},"objective":{"type":"string","minLength":1},"instructions":{"type":"array","items":{"type":"string"}},"category":{"type":"string","enum":["OBSERVE","INSPECT","MEASURE","VERIFY","MOVE","TRANSPORT","DELIVER","PICK","PLACE","MANIPULATE","SORT","LOAD","UNLOAD","STOCK","ASSEMBLE","DISASSEMBLE","CLEAN","MAINTAIN","REPAIR","OPERATE","NAVIGATE","MONITOR","CAPTURE","DEMONSTRATE","CUSTOM"]},"tags":{"type":"array","items":{"type":"string"}},"requestedQuantity":{"type":"integer","minimum":1},"environment":{"type":"object"},"target":{"type":"object"},"requester":{"type":"object","additionalProperties":false,"required":["requesterId","requesterType","principal"],"properties":{"requesterId":{"type":"string","minLength":1},"requesterType":{"$ref":"#/components/schemas/TapV02_requesterType"},"principal":{"type":"object","additionalProperties":false,"required":["principalId","principalType"],"properties":{"principalId":{"type":"string","minLength":1},"principalType":{"type":"string","enum":["HUMAN","ORGANIZATION"]}}},"mandateId":{"type":"string","minLength":1},"onBehalfOf":{"type":"string"},"authentication":{"type":"object","additionalProperties":false,"required":["method"],"properties":{"method":{"type":"string","enum":["SESSION","API_KEY","SIGNED_REQUEST","X402_PAYER","DEVICE_ATTESTATION"]},"keyId":{"type":"string"}}}},"if":{"properties":{"requesterType":{"enum":["AI_AGENT","HUMANOID","ROBOT","AUTONOMOUS_VEHICLE","DRONE","DEVICE"]}}},"then":{"required":["mandateId"]}},"trigger":{"type":"object","additionalProperties":false,"required":["type"],"properties":{"type":{"type":"string","enum":["MANUAL","AGENT_DECISION","SENSOR_EVENT","ROBOT_EXCEPTION","SCHEDULE","TASK_OUTCOME","EXTERNAL_WEBHOOK"]},"sourceRef":{"type":"string"},"eventHash":{"$ref":"#/components/schemas/TapV02_hash"},"occurredAt":{"type":"string","format":"date-time"}}},"relations":{"type":"object","additionalProperties":false,"properties":{"workflowId":{"type":"string"},"parentTaskId":{"type":"string"},"dependsOn":{"type":"array","items":{"type":"string"},"uniqueItems":true},"followUpOf":{"type":"string"},"verifiesTaskId":{"type":"string"},"supersedes":{"type":"string"}}},"fulfillment":{"type":"object","additionalProperties":false,"required":["mode"],"properties":{"mode":{"type":"string","enum":["MARKETPLACE","DIRECT","VERIFY_ONLY"]},"designatedPerformers":{"type":"array","minItems":1,"items":{"type":"object","additionalProperties":false,"required":["actorType"],"properties":{"actorId":{"type":"string"},"fleetId":{"type":"string"},"actorType":{"$ref":"#/components/schemas/TapV02_actorType"}},"anyOf":[{"required":["actorId"]},{"required":["fleetId"]}]}},"verifyOnly":{"type":"object","additionalProperties":false,"required":["submitter","acceptedEvidenceOrigins","attestationRequired"],"properties":{"workWindow":{"type":"object","additionalProperties":false,"properties":{"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"}}},"submitter":{"type":"string","enum":["REQUESTER","PERFORMER","THIRD_PARTY"]},"acceptedEvidenceOrigins":{"type":"array","minItems":1,"uniqueItems":true,"items":{"$ref":"#/components/schemas/TapV02_evidenceOrigin"}},"attestationRequired":{"type":"boolean"}}}},"allOf":[{"if":{"properties":{"mode":{"const":"DIRECT"}}},"then":{"required":["designatedPerformers"]}},{"if":{"properties":{"mode":{"const":"VERIFY_ONLY"}}},"then":{"required":["verifyOnly"]}}]},"actorRequirement":{"type":"object","additionalProperties":true,"required":["permittedActorTypes"],"properties":{"permittedActorTypes":{"type":"array","minItems":1,"uniqueItems":true,"items":{"$ref":"#/components/schemas/TapV02_actorType"}},"requiredCapabilities":{"type":"array","items":{"type":"object","required":["capability"],"properties":{"capability":{"type":"string","minLength":1},"version":{"type":"string"},"attributes":{"type":"object"}}}}}},"completionConditions":{"type":"array","minItems":1,"items":{"type":"object","required":["type","id","description","required","verificationMethod"],"properties":{"type":{"type":"string","enum":["STATE","TRANSITION","PRESENCE","COUNT","LOCATION","MEASUREMENT","SEQUENCE","DURATION","SEMANTIC","CUSTOM"]},"id":{"type":"string","minLength":1},"description":{"type":"string","minLength":1},"required":{"type":"boolean"},"weight":{"type":"integer","minimum":0,"maximum":10000,"description":"Basis points. Non-integer numbers are forbidden in hashed documents (PoPW Canonical Encoding v0.1 §3.2)."},"verificationMethod":{"type":"string","enum":["DETERMINISTIC","PERCEPTION","JEV","HUMAN_REVIEW","COMPOSITE"]},"minimumEvidenceOrigin":{"$ref":"#/components/schemas/TapV02_evidenceOrigin"}},"additionalProperties":true}},"evidenceProfiles":{"type":"array","minItems":1,"items":{"type":"object","required":["id","actorTypes","requiredEvidence"],"properties":{"id":{"type":"string","minLength":1},"actorTypes":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/TapV02_actorType"}},"requiredEvidence":{"type":"array","items":{"type":"object","required":["id","type","required"],"properties":{"id":{"type":"string"},"type":{"type":"string","enum":["VIDEO","IMAGE","AUDIO","DEPTH","IMU","POSE","JOINT_STATE","FORCE_TORQUE","ODOMETRY","LIDAR","TELEMETRY","SENSOR_MEASUREMENT","EVENT_LOG","BARCODE_SCAN","NFC","GPS","MANIFEST","CUSTOM"]},"required":{"type":"boolean"},"acceptedOrigins":{"type":"array","uniqueItems":true,"items":{"$ref":"#/components/schemas/TapV02_evidenceOrigin"}},"constraints":{"type":"object"}},"additionalProperties":false}}},"additionalProperties":true}},"verificationPolicy":{"type":"object","required":["policyId","version"],"properties":{"policyId":{"type":"string"},"version":{"type":"string"}},"additionalProperties":false},"rightsPolicy":{"$ref":"#/components/schemas/TapV02_policyRef"},"economics":{"type":"object","required":["performerPayUsdCents","settlementAssets"],"properties":{"performerPayUsdCents":{"type":"integer","minimum":0},"buyerPriceUsdCents":{"type":"integer","minimum":0},"settlementAssets":{"type":"array","minItems":1,"uniqueItems":true,"items":{"type":"string","enum":["USDC","FIAT"]}},"requesterPayment":{"type":"object","additionalProperties":false,"required":["method"],"properties":{"method":{"type":"string","enum":["X402_USDC","PREPAID_BALANCE","MANDATE_BUDGET","INVOICE","CARD"]},"maxSpendUsdCents":{"type":"integer","minimum":0}}},"x402":{"type":"object","required":["required","asset","network"],"properties":{"required":{"type":"boolean"},"asset":{"const":"USDC"},"network":{"const":"BASE"}},"additionalProperties":false}},"additionalProperties":false},"popw":{"type":"object","required":["required"],"properties":{"required":{"type":"boolean"},"assurancePolicyId":{"type":"string"},"proofTiming":{"type":"string","enum":["PER_EPISODE","BATCH","WORKFLOW"]},"publicVerification":{"type":"boolean"}},"additionalProperties":false},"timing":{"type":"object"},"safety":{"$ref":"#/components/schemas/TapV02_policyRef"},"metadata":{"type":"object"}},"allOf":[{"if":{"properties":{"requester":{"properties":{"requesterType":{"enum":["AI_AGENT","HUMANOID","ROBOT","AUTONOMOUS_VEHICLE","DRONE","DEVICE"]}}}}},"then":{"required":["trigger"]}}]},"PhysicalTaskSpecV03":{"title":"TAP PhysicalTaskSpec v0.3","description":"Root validates a PhysicalTaskSpec v0.3. $defs also define the other v0.3 documents (standingOrder, siteConsent, verificationScope, findingsRecord, teamComposition, custodyEvent, claimContext, outcomeEvent, rightsPolicyV03, and from draft.3 evidenceItem, riskSignal, popwContentAssertion). Source: teleport-tap-v0.3-addendum-standing-orders-sites-findings.md (0.3.0-draft.2), teleport-tap-v0.3-addendum-anchoring-modes.md (§18) and teleport-tap-v0.3-addendum-evidence-interop-fallback-risk.md (0.3.0-draft.3, §19–§25). Cross-field rules that JSON Schema cannot express are in validateTaskSpecV03Semantics() in teleport-tap-physical-task-types-v0.3.ts. Validators MUST enable format assertion for \"date-time\" (RFC 3339); in draft 2020-12 format is otherwise annotation-only.","$ref":"#/components/schemas/TapV03_taskCore","required":["schema","version","taskSpecId","title","objective","category","requestedQuantity","requester","fulfillment","actorRequirement","completionConditions","evidenceProfiles","verificationPolicy","rightsPolicy","economics","popw"],"unevaluatedProperties":false,"allOf":[{"if":{"properties":{"requester":{"properties":{"requesterType":{"$ref":"#/components/schemas/TapV03_delegatedRequesterType"}}}}},"then":{"required":["trigger"]}},{"if":{"properties":{"category":{"enum":["INSPECT","VERIFY","MEASURE"]}},"required":["category"]},"then":{"required":["verificationScope"]}},{"if":{"properties":{"fulfillment":{"properties":{"mode":{"const":"VERIFY_ONLY"}}}},"required":["fulfillment"]},"then":{"required":["verificationScope"]}},{"if":{"properties":{"completionConditions":{"contains":{"properties":{"type":{"const":"CUSTODY"}},"required":["type"]}}},"required":["completionConditions"]},"then":{"required":["custody"]}},{"$comment":"draft.3 §25.3: specs using draft.3 features declare draft >= 3 (FEATURE_REQUIRES_DRAFT3). The new evidence origins inside evidence profiles are checked by validateDraft3().","if":{"anyOf":[{"required":["extraction"]},{"required":["riskSignals"]},{"required":["externalRefs"]},{"required":["timing"],"properties":{"timing":{"required":["decisionBy"]}}},{"required":["fulfillment"],"properties":{"fulfillment":{"required":["fallback"]}}},{"required":["relations"],"properties":{"relations":{"required":["fallbackOf"]}}},{"required":["popw"],"properties":{"popw":{"required":["contentCredentials"]}}},{"required":["economics"],"properties":{"economics":{"required":["cancellationPayUsdCents"]}}},{"required":["completionConditions"],"properties":{"completionConditions":{"contains":{"properties":{"type":{"const":"EXTRACTION"}},"required":["type"]}}}}]},"then":{"required":["draft"],"properties":{"draft":{"minimum":3}}}},{"$comment":"draft.3 §21.2: an EXTRACTION condition needs task.extraction.","if":{"properties":{"completionConditions":{"contains":{"properties":{"type":{"const":"EXTRACTION"}},"required":["type"]}}},"required":["completionConditions"]},"then":{"required":["extraction"]}}]},"Place":{"type":"object","properties":{"address":{"type":"string","description":"The formatted address."},"lat":{"type":"number"},"lng":{"type":"number"},"placeId":{"type":["string","null"]},"city":{"type":["string","null"]},"region":{"description":"Short form, such as CA.","type":["string","null"]},"countryCode":{"description":"Short form, such as US.","type":["string","null"]},"postalCode":{"type":["string","null"]}},"required":["address","lat","lng","placeId","city","region","countryCode","postalCode"],"description":"A place's full address and exact coordinates."},"PlaceSuggestion":{"type":"object","properties":{"placeId":{"type":"string","description":"Pass to getPlace or createLocation."},"text":{"type":"string","description":"The full suggestion text."},"main":{"type":"string","description":"The main part (for example, the street address)."},"secondary":{"type":"string","description":"The rest (for example, city and state)."}},"required":["placeId","text","main","secondary"]},"Provider_Accept":{"type":"object","properties":{"quoteId":{"type":"string","pattern":"^qte_[A-Za-z0-9]{8,40}$"},"performerRef":{"type":"string","minLength":1,"maxLength":128}},"required":["performerRef"]},"Provider_AssignmentCancelled":{"type":"object","properties":{"assignmentId":{"type":"string","pattern":"^asg_[A-Za-z0-9]{8,40}$"},"reason":{"enum":["REQUESTER_CANCELLED","SAFETY","POLICY"]},"at":{"type":"string","format":"date-time","pattern":"Z$"}},"required":["assignmentId","reason","at"]},"Provider_AssignmentDetails":{"type":"object","properties":{"assignmentId":{"type":"string","pattern":"^asg_[A-Za-z0-9]{8,40}$"},"offerId":{"type":"string","pattern":"^ofr_[A-Za-z0-9]{8,40}$"},"price":{"$ref":"#/components/schemas/Provider_Money"},"place":{"type":"object","properties":{"address":{"type":"string"},"lat":{"type":"number"},"lng":{"type":"number"},"spot":{"type":["string","null"]},"accessNotes":{"type":["string","null"]}},"required":["address","lat","lng","spot","accessNotes"]},"deadline":{"oneOf":[{"type":"null"},{"type":"string","format":"date-time","pattern":"Z$"}]},"captureLink":{"oneOf":[{"type":"null"},{"type":"object","properties":{"url":{"type":"string","format":"uri","pattern":"^https://"},"expiresAt":{"type":"string","format":"date-time","pattern":"Z$"}},"required":["url","expiresAt"]}]}},"required":["assignmentId","offerId","price","place","deadline","captureLink"]},"Provider_DecisionMade":{"type":"object","properties":{"assignmentId":{"type":"string","pattern":"^asg_[A-Za-z0-9]{8,40}$"},"decision":{"enum":["ACCEPT","REJECT"]},"rejectionReason":{"oneOf":[{"type":"null"},{"enum":["EVIDENCE_INSUFFICIENT","ORIGIN_BELOW_FLOOR","LOCATION_MISMATCH","TIME_WINDOW","SCOPE_NOT_MET","SAFETY","POLICY"]}]},"notes":{"type":["string","null"]},"redoAllowed":{"type":"boolean"},"redoBy":{"oneOf":[{"type":"null"},{"type":"string","format":"date-time","pattern":"Z$"}]},"payable":{"oneOf":[{"type":"null"},{"type":"object","properties":{"amountCents":{"type":"integer","minimum":0},"currency":{"const":"USD"},"status":{"const":"AWAITING_REQUESTER_PAYMENT"}},"required":["amountCents","currency","status"]}]}},"required":["assignmentId","decision","rejectionReason","redoAllowed","payable"],"allOf":[{"if":{"properties":{"decision":{"const":"ACCEPT"}}},"then":{"properties":{"payable":{"type":"object"},"rejectionReason":{"type":"null"}}},"else":{"properties":{"payable":{"type":"null"},"rejectionReason":{"enum":["EVIDENCE_INSUFFICIENT","ORIGIN_BELOW_FLOOR","LOCATION_MISMATCH","TIME_WINDOW","SCOPE_NOT_MET","SAFETY","POLICY"]}}}}]},"Provider_Decline":{"type":"object","properties":{"reason":{"enum":["NO_PERFORMER","OUT_OF_COVERAGE","TOO_SOON","PRICE","CAPABILITY","OTHER"]},"note":{"type":"string","maxLength":500}},"required":["reason"]},"Provider_Dispute":{"type":"object","properties":{"reason":{"enum":["DECISION_WRONG","EVIDENCE_MISREAD","OTHER"]},"note":{"type":"string","minLength":1,"maxLength":2000}},"required":["reason","note"]},"Provider_Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]},"Provider_Event":{"type":"object","required":["protocol","type","eventId","occurredAt","environment","providerId","data"],"properties":{"protocol":{"const":"teleport.provider/0.1"},"type":{"enum":["offer.created","offer.cancelled","assignment.details","assignment.cancelled","decision.made","receipt.issued","payment.cleared","payment.sent"]},"eventId":{"type":"string","pattern":"^evt_[A-Za-z0-9]{8,40}$"},"occurredAt":{"type":"string","format":"date-time","pattern":"Z$"},"environment":{"enum":["live","sandbox"]},"providerId":{"type":"string","pattern":"^[a-z][a-z0-9-]{2,39}$"},"data":{"type":"object"}},"allOf":[{"if":{"properties":{"type":{"const":"offer.created"}}},"then":{"properties":{"data":{"$ref":"#/components/schemas/Provider_OfferCreated"}}}},{"if":{"properties":{"type":{"const":"offer.cancelled"}}},"then":{"properties":{"data":{"$ref":"#/components/schemas/Provider_OfferCancelled"}}}},{"if":{"properties":{"type":{"const":"assignment.details"}}},"then":{"properties":{"data":{"$ref":"#/components/schemas/Provider_AssignmentDetails"}}}},{"if":{"properties":{"type":{"const":"assignment.cancelled"}}},"then":{"properties":{"data":{"$ref":"#/components/schemas/Provider_AssignmentCancelled"}}}},{"if":{"properties":{"type":{"const":"decision.made"}}},"then":{"properties":{"data":{"$ref":"#/components/schemas/Provider_DecisionMade"}}}},{"if":{"properties":{"type":{"const":"receipt.issued"}}},"then":{"properties":{"data":{"$ref":"#/components/schemas/Provider_ReceiptIssued"}}}},{"if":{"properties":{"type":{"const":"payment.cleared"}}},"then":{"properties":{"data":{"$ref":"#/components/schemas/Provider_PaymentCleared"}}}},{"if":{"properties":{"type":{"const":"payment.sent"}}},"then":{"properties":{"data":{"$ref":"#/components/schemas/Provider_PaymentSent"}}}}]},"Provider_EvidenceSubmission":{"type":"object","properties":{"performerRef":{"type":"string","minLength":1,"maxLength":128},"actor":{"type":"object","properties":{"actorType":{"enum":["HUMAN","HUMANOID","ROBOT","AUTONOMOUS_VEHICLE","DRONE","DEVICE","MULTI_ACTOR"]}},"required":["actorType"]},"executedAt":{"type":"string","format":"date-time","pattern":"Z$"},"attestation":{"type":"object","properties":{"statement":{"type":"string","minLength":1,"maxLength":2000},"attestedBy":{"type":"string","minLength":1,"maxLength":256}},"required":["statement","attestedBy"]},"assets":{"type":"array","maxItems":50,"items":{"type":"object","required":["evidenceId","path","origin"],"properties":{"evidenceId":{"type":"string"},"path":{"type":"string","minLength":1,"maxLength":512},"origin":{"enum":["THIRD_PARTY_SUBMITTED","ACTOR_TELEMETRY","ATTESTED_DEVICE"]},"contentType":{"type":"string"},"blobPathname":{"type":"string"},"url":{"type":"string","format":"uri","pattern":"^https://"},"contentBase64":{"type":"string","maxLength":1400000}},"oneOf":[{"required":["blobPathname"]},{"required":["url"]},{"required":["contentBase64"]}]}}},"required":["performerRef","actor","executedAt","assets"]},"Provider_Manifest":{"type":"object","properties":{"schema":{"const":"teleport.provider.manifest/0.1"},"id":{"type":"string","pattern":"^[a-z][a-z0-9-]{2,39}$"},"label":{"type":"string","minLength":1,"maxLength":80},"url":{"type":"string","format":"uri","pattern":"^https://"},"kinds":{"type":"array","items":{"enum":["HUMAN","HUMANOID","ROBOT","AUTONOMOUS_VEHICLE","DRONE","DEVICE","MULTI_ACTOR"]},"minItems":1,"uniqueItems":true},"categories":{"type":"array","items":{"enum":["INSPECT","OPERATE","MAINTAIN","CLEAN","REPAIR","CAPTURE","DEMONSTRATE","UNLOAD","TRANSPORT","OBSERVE","CUSTOM"]},"minItems":1,"uniqueItems":true},"coverage":{"type":"object","properties":{"countries":{"type":"array","items":{"type":"string","pattern":"^[A-Z]{2}$"}},"regions":{"type":"array","items":{"type":"string","pattern":"^[A-Z]{2}-[A-Z0-9]{1,3}$"}},"areas":{"type":"array","items":{"type":"object","required":["type","coordinates"],"properties":{"type":{"enum":["Polygon","MultiPolygon"]},"coordinates":{"type":"array","minItems":1}}}},"remote":{"type":"boolean"}},"required":["countries","remote"]},"leadTimeMinutes":{"type":"object","properties":{"min":{"type":"integer","minimum":0},"typical":{"type":"integer","minimum":0}},"required":["min","typical"]},"evidence":{"type":"object","properties":{"origins":{"type":"array","items":{"enum":["TELEPORT_CAPTURE","THIRD_PARTY_SUBMITTED","ACTOR_TELEMETRY","ATTESTED_DEVICE"]},"minItems":1,"uniqueItems":true},"teleportCaptureLink":{"type":"boolean"},"types":{"type":"array","items":{"enum":["VIDEO","IMAGE","AUDIO","DEPTH","IMU","POSE","JOINT_STATE","FORCE_TORQUE","ODOMETRY","LIDAR","TELEMETRY","SENSOR_MEASUREMENT","EVENT_LOG","BARCODE_SCAN","NFC","GPS","MANIFEST","CUSTOM"]},"uniqueItems":true}},"required":["origins","teleportCaptureLink"]},"modes":{"type":"array","items":{"enum":["push","pull","mcp"]},"minItems":1,"uniqueItems":true},"endpoints":{"type":"object","properties":{"events":{"type":"string","format":"uri","pattern":"^https://"},"quote":{"type":"string","format":"uri","pattern":"^https://"}},"required":[]},"jwksUrl":{"type":"string","format":"uri","pattern":"^https://"},"currency":{"const":"USD"},"support":{"type":"object","properties":{"email":{"type":"string","format":"email"}},"required":["email"]}},"required":["schema","id","label","url","kinds","categories","coverage","leadTimeMinutes","evidence","modes","currency","support"],"allOf":[{"if":{"properties":{"modes":{"contains":{"const":"push"}}}},"then":{"required":["endpoints"],"properties":{"endpoints":{"required":["events"]}}}}]},"Provider_Money":{"type":"object","properties":{"amountCents":{"type":"integer","minimum":0},"currency":{"const":"USD"}},"required":["amountCents","currency"],"additionalProperties":false},"Provider_OfferCancelled":{"type":"object","properties":{"offerId":{"type":"string","pattern":"^ofr_[A-Za-z0-9]{8,40}$"},"reason":{"enum":["FILLED_ELSEWHERE","REQUESTER_CANCELLED","EXPIRED","SAFETY"]}},"required":["offerId","reason"]},"Provider_OfferCreated":{"type":"object","properties":{"offerId":{"type":"string","pattern":"^ofr_[A-Za-z0-9]{8,40}$"},"taskRef":{"type":"string","pattern":"^tref_[A-Za-z0-9]{8,40}$"},"expiresAt":{"type":"string","format":"date-time","pattern":"Z$"},"quoteBy":{"oneOf":[{"type":"null"},{"type":"string","format":"date-time","pattern":"Z$"}]},"task":{"$ref":"#/components/schemas/Provider_TaskProjection"},"payCeiling":{"$ref":"#/components/schemas/Provider_Money"},"prequote":{"oneOf":[{"type":"null"},{"type":"object","properties":{"priceCents":{"type":"integer","minimum":0},"currency":{"const":"USD"},"etaMinutes":{"type":"integer","minimum":0},"validUntil":{"type":"string","format":"date-time","pattern":"Z$"}},"required":["priceCents","currency","etaMinutes","validUntil"]}]}},"required":["offerId","taskRef","expiresAt","quoteBy","task","payCeiling","prequote"]},"Provider_PaymentCleared":{"type":"object","properties":{"assignmentId":{"type":"string","pattern":"^asg_[A-Za-z0-9]{8,40}$"},"amountCents":{"type":"integer","minimum":0},"currency":{"const":"USD"},"clearedAt":{"type":"string","format":"date-time","pattern":"Z$"},"payoutDueBy":{"type":"string","format":"date"}},"required":["assignmentId","amountCents","currency","clearedAt","payoutDueBy"]},"Provider_PaymentSent":{"type":"object","description":"Teleport sent the payout for a cleared job. STRIPE_CONNECT: a transfer to the provider's Stripe account (reference is the transfer id); MANUAL: a bank transfer ops recorded; SANDBOX: simulated.","properties":{"assignmentId":{"type":"string","pattern":"^asg_[A-Za-z0-9]{8,40}$"},"amountCents":{"type":"integer","minimum":0},"currency":{"const":"USD"},"sentAt":{"type":"string","format":"date-time","pattern":"Z$"},"method":{"enum":["STRIPE_CONNECT","MANUAL","SANDBOX"]},"reference":{"type":"string","minLength":1,"maxLength":200}},"required":["assignmentId","amountCents","currency","sentAt","method","reference"]},"Provider_Quote":{"type":"object","properties":{"priceCents":{"type":"integer","minimum":0},"currency":{"const":"USD"},"etaMinutes":{"type":"integer","minimum":0},"validUntil":{"type":"string","format":"date-time","pattern":"Z$"},"note":{"type":"string","maxLength":500}},"required":["priceCents","currency","etaMinutes","validUntil"]},"Provider_QuoteRequest":{"type":"object","properties":{"protocol":{"const":"teleport.provider/0.1"},"quoteRequestId":{"type":"string","pattern":"^qrq_[A-Za-z0-9]{8,40}$"},"environment":{"enum":["live","sandbox"]},"task":{"$ref":"#/components/schemas/Provider_TaskProjection"}},"required":["protocol","quoteRequestId","environment","task"]},"Provider_QuoteResponse":{"type":"object","properties":{"priceCents":{"type":"integer","minimum":0},"currency":{"const":"USD"},"etaMinutes":{"type":"integer","minimum":0},"validUntil":{"type":"string","format":"date-time","pattern":"Z$"}},"required":["priceCents","currency","etaMinutes","validUntil"]},"Provider_ReceiptIssued":{"type":"object","properties":{"assignmentId":{"type":"string","pattern":"^asg_[A-Za-z0-9]{8,40}$"},"claimId":{"type":"string","pattern":"^claim_[A-Za-z0-9]{8,40}$"},"receiptLevel":{"enum":["SIGNED_ONLY","ANCHORED","BONDED","SANDBOX"]},"assuranceTier":{"enum":["STANDARD","VERIFIED","HIGH_ASSURANCE"]},"evidenceOriginFloor":{"enum":["TELEPORT_CAPTURE","THIRD_PARTY_SUBMITTED","ACTOR_TELEMETRY","ATTESTED_DEVICE","PLATFORM_FETCHED"]},"status":{"enum":["PENDING_BATCH","BATCHED","ANCHORED","FINAL","SANDBOX"]},"proofUrl":{"type":"string","format":"uri","pattern":"^https://"}},"required":["assignmentId","claimId","receiptLevel","assuranceTier","evidenceOriginFloor","status","proofUrl"]},"Provider_SignatureHeader":{"type":"object","properties":{"alg":{"const":"ES256"},"kid":{"type":"string","minLength":43,"maxLength":43},"typ":{"enum":["teleport-provider+json","provider-teleport+json"]},"teleport-ts":{"type":"integer"}},"required":["alg","kid","typ","teleport-ts"]},"Provider_StatusUpdate":{"type":"object","properties":{"status":{"enum":["EN_ROUTE","ON_SITE","FAILED","CANCELLED"]},"at":{"type":"string","format":"date-time","pattern":"Z$"},"note":{"type":"string","maxLength":500}},"required":["status"]},"Provider_TaskProjection":{"type":"object","properties":{"title":{"type":"string","maxLength":200},"objective":{"type":"string","maxLength":2000},"instructions":{"type":"array","items":{"type":"string"}},"doneWhen":{"type":"array","items":{"type":"string"}},"category":{"enum":["INSPECT","OPERATE","MAINTAIN","CLEAN","REPAIR","CAPTURE","DEMONSTRATE","UNLOAD","TRANSPORT","OBSERVE","CUSTOM"]},"actorKinds":{"type":"array","items":{"enum":["HUMAN","HUMANOID","ROBOT","AUTONOMOUS_VEHICLE","DRONE","DEVICE","MULTI_ACTOR"]},"minItems":1},"area":{"type":"object","properties":{"city":{"type":["string","null"]},"region":{"type":["string","null"]},"countryCode":{"type":["string","null"],"pattern":"^[A-Z]{2}$"},"approx":{"oneOf":[{"type":"null"},{"type":"object","properties":{"lat":{"type":"number","multipleOf":0.01},"lng":{"type":"number","multipleOf":0.01},"radiusMeters":{"type":"integer","minimum":1000}},"required":["lat","lng","radiusMeters"]}]}},"required":["city","region","countryCode"]},"window":{"type":"object","properties":{"startsAfter":{"oneOf":[{"type":"null"},{"type":"string","format":"date-time","pattern":"Z$"}]},"deadline":{"oneOf":[{"type":"null"},{"type":"string","format":"date-time","pattern":"Z$"}]}},"required":["startsAfter","deadline"]},"evidence":{"type":"object","properties":{"items":{"type":"array","minItems":1,"items":{"type":"object","properties":{"id":{"type":"string"},"type":{"enum":["VIDEO","IMAGE","AUDIO","DEPTH","IMU","POSE","JOINT_STATE","FORCE_TORQUE","ODOMETRY","LIDAR","TELEMETRY","SENSOR_MEASUREMENT","EVENT_LOG","BARCODE_SCAN","NFC","GPS","MANIFEST","CUSTOM"]},"required":{"type":"boolean"},"description":{"type":"string"}},"required":["id","type","required"]}},"minimumAssurance":{"enum":["STANDARD","VERIFIED","HIGH_ASSURANCE"]},"captureLinkRequired":{"type":"boolean"}},"required":["items","minimumAssurance","captureLinkRequired"]}},"required":["title","objective","instructions","doneWhen","category","actorKinds","area","window","evidence"],"additionalProperties":false},"Provider_UploadsRequest":{"type":"object","properties":{"files":{"type":"array","minItems":1,"maxItems":50,"items":{"type":"object","properties":{"evidenceId":{"type":"string"},"contentType":{"type":"string"},"size":{"type":"integer","minimum":1,"maximum":52428800}},"required":["evidenceId","contentType","size"]}}},"required":["files"]},"ProviderAssignment":{"type":"object","properties":{"assignmentId":{"type":"string"},"offerId":{"type":"string"},"state":{"type":"string","enum":["ASSIGNED","EN_ROUTE","ON_SITE","SUBMITTED","ACCEPTED","REJECTED","RECEIPTED","PAYMENT_CLEARED","FAILED","CANCELLED"]},"price":{"type":"object","properties":{"amountCents":{"type":"integer"},"currency":{"type":"string","const":"USD"}},"required":["amountCents","currency"]},"deadline":{"type":["string","null"]},"decision":{"anyOf":[{"type":"object","properties":{"decision":{"type":"string","enum":["ACCEPT","REJECT"]},"rejectionReason":{"type":["string","null"]},"decidedAt":{"type":["string","null"]}},"required":["decision","rejectionReason","decidedAt"]},{"type":"null"}]},"receipt":{"anyOf":[{"type":"object","properties":{"claimId":{"type":"string"},"proofUrl":{"type":"string"}},"required":["claimId","proofUrl"]},{"type":"null"}]},"payment":{"anyOf":[{"type":"object","properties":{"status":{"anyOf":[{"type":"string","enum":["AWAITING_REQUESTER_PAYMENT","CLEARED","PAID","UNPAID"]},{"type":"null"}]},"clearedAt":{"type":["string","null"]},"payoutDueBy":{"type":["string","null"]},"paidAt":{"type":["string","null"]}},"required":["status","clearedAt","payoutDueBy","paidAt"]},{"type":"null"}]},"dispute":{"anyOf":[{"type":"object","properties":{"disputeId":{"type":"string"},"reason":{"type":"string"},"note":{"type":"string"},"at":{"type":"string"},"resolution":{"description":"Teleport's ruling. OVERTURNED makes rejected work payable (a new decision.made with decision ACCEPT); UPHELD leaves the decision as it was.","type":"object","properties":{"outcome":{"type":"string","enum":["UPHELD","OVERTURNED"]},"note":{"type":"string"},"at":{"type":"string"}},"required":["outcome","note","at"]}},"required":["disputeId","reason","note","at"]},{"type":"null"}]},"captureLink":{"anyOf":[{"type":"object","properties":{"url":{"type":"string"},"expiresAt":{"type":"string"}},"required":["url","expiresAt"]},{"type":"null"}],"description":"The Teleport capture link for the performer, while it's open and unused."}},"required":["assignmentId","offerId","state","price","deadline","decision","receipt","payment","dispute","captureLink"]},"ProviderPayouts":{"type":"object","properties":{"method":{"type":"string","enum":["STRIPE_CONNECT","SANDBOX"]},"status":{"type":"string","enum":["NOT_STARTED","PENDING","ACTIVE"],"description":"ACTIVE: Teleport pays you automatically."},"payoutsEnabled":{"type":"boolean"},"onboardingUrl":{"description":"Until payouts are ACTIVE: open it to set up your Stripe payout account (it opens a fresh Stripe page each time, and works for 14 days).","type":["string","null"]},"note":{"type":"string"}},"required":["method","status","payoutsEnabled","onboardingUrl","note"]},"ProviderProtocolV01":{"title":"TAP Provider Protocol v0.1","description":"Messages between the Teleport TAP Router and supply providers (teleport-tap-provider-protocol-v0.1.md). Validate a message against the matching $defs entry."},"ProviderSelf":{"type":"object","properties":{"protocol":{"type":"string","const":"teleport.provider/0.1"},"providerId":{"type":"string"},"label":{"type":"string"},"environment":{"type":"string","enum":["live","sandbox"],"description":"sandbox for a test key (tp_test_…)."},"mode":{"type":"string","enum":["sandbox","dry_run","live"]},"status":{"type":"string","enum":["ACTIVE","PAUSED"]},"pausedReason":{"type":["string","null"]},"manifest":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}],"description":"The accepted manifest (Provider_Manifest), or null before the first PUT."},"manifestUpdatedAt":{"type":["string","null"]},"push":{"type":"string","enum":["on","off","signing_off"],"description":"Whether events are pushed to endpoints.events; pull works regardless."},"keysUrl":{"type":"string","description":"Where Teleport's provider-signing keys are published."}},"required":["protocol","providerId","label","environment","mode","status","pausedReason","manifest","manifestUpdatedAt","push","keysUrl"]},"ProviderStatement":{"type":"object","properties":{"month":{"type":"string"},"environment":{"type":"string","enum":["live","sandbox"]},"currency":{"type":"string","const":"USD"},"totals":{"type":"object","properties":{"acceptedCents":{"type":"integer"},"paidCents":{"type":"integer"},"clearedCents":{"type":"integer"},"awaitingCents":{"type":"integer"},"unpaidCents":{"type":"integer"}},"required":["acceptedCents","paidCents","clearedCents","awaitingCents","unpaidCents"]},"lines":{"type":"array","items":{"type":"object","properties":{"assignmentId":{"type":"string"},"acceptedAt":{"type":["string","null"]},"amountCents":{"type":"integer"},"currency":{"type":"string","const":"USD"},"status":{"anyOf":[{"type":"string","enum":["AWAITING_REQUESTER_PAYMENT","CLEARED","PAID","UNPAID"]},{"type":"null"}]},"clearedAt":{"type":["string","null"]},"payoutDueBy":{"type":["string","null"]},"paidAt":{"type":["string","null"]}},"required":["assignmentId","acceptedAt","amountCents","currency","status","clearedAt","payoutDueBy","paidAt"]}}},"required":["month","environment","currency","totals","lines"]},"ProviderStats":{"type":"object","properties":{"providerId":{"type":"string"},"environment":{"type":"string","enum":["live","sandbox"]},"windowDays":{"type":"integer"},"from":{"type":"string"},"to":{"type":"string"},"offered":{"type":"integer"},"accepted":{"type":"integer"},"declined":{"type":"integer"},"expired":{"type":"integer"},"fillRate":{"description":"accepted ÷ offered, 0 to 1; null with no offers.","type":["number","null"]},"medianMinutesToAccept":{"anyOf":[{"type":"integer"},{"type":"null"}]},"medianMinutesToSubmit":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"From accept to evidence."},"failed":{"type":"integer"},"decided":{"type":"integer"},"acceptanceRate":{"type":["number","null"]},"rejectionRate":{"type":["number","null"]},"rejectionsByReason":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"integer"}},"captureLinkShare":{"description":"The share of decided work captured through the Teleport capture link.","type":["number","null"]}},"required":["providerId","environment","windowDays","from","to","offered","accepted","declined","expired","fillRate","medianMinutesToAccept","medianMinutesToSubmit","failed","decided","acceptanceRate","rejectionRate","rejectionsByReason","captureLinkShare"]},"QuietHours":{"type":"object","properties":{"start":{"type":"string","pattern":"^([01]\\d|2[0-3]):([0-5]\\d)$","description":"When quiet hours begin, HH:MM (24-hour) in the contact's time zone.","examples":["09:00"]},"end":{"type":"string","pattern":"^([01]\\d|2[0-3]):([0-5]\\d)$","description":"When quiet hours end, HH:MM (24-hour).","examples":["09:00"]}},"required":["start","end"],"description":"Hours when texts and push alerts are held. When not set, the default is 21:00 to 07:00."},"Route":{"type":"object","properties":{"routeId":{"type":"string","examples":["route_k3x9m2p7q4w8e1r5"]},"state":{"type":"string","enum":["OFFERING","CLAIMED","EXHAUSTED","CANCELLED","DONE"],"description":"OFFERING: a tier is alerted. CLAIMED: someone took it. EXHAUSTED: every tier passed with no claim (offers stay open). CANCELLED: stopped by the poster. DONE: evidence landed or the task closed."},"tier":{"type":"integer","description":"0-based index of the tier reached (-1 before the first tier opens)."},"tiers":{"type":"integer","description":"Number of tiers in the ladder."},"tierEndsAt":{"anyOf":[{"type":"string","format":"date-time","description":"When the current tier's window ends and the next tier is alerted; null unless OFFERING."},{"type":"null"}]},"alerted":{"type":"integer","description":"Offers sent so far (one per contact)."},"claimedContactId":{"description":"The contact who claimed it; null when unclaimed or claimed through an outside network.","type":["string","null"]},"providers":{"type":"array","items":{"$ref":"#/components/schemas/RouteProvider"},"description":"Postings on outside networks (RentAHuman): status, mode, quote, and why if one failed."},"ladder":{"type":"array","items":{"$ref":"#/components/schemas/RoutingTier"},"description":"The ladder, frozen when routing started."},"exhaustedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"closedReason":{"description":"Why it ended, e.g. \"evidence submitted\" or \"cancelled by the poster\".","type":["string","null"]},"offers":{"type":"array","items":{"$ref":"#/components/schemas/RouteOffer"},"description":"By tier, then by when they were sent."},"events":{"type":"array","items":{"$ref":"#/components/schemas/RouteEvent"},"description":"Newest first."}},"required":["routeId","state","tier","tiers","tierEndsAt","alerted","claimedContactId","providers","ladder","exhaustedAt","closedReason","offers","events"],"description":"A task's route in full: the ladder, who was alerted, who opened and who claimed, and the timeline."},"RouteEvent":{"type":"object","properties":{"at":{"type":"string","format":"date-time"},"type":{"type":"string","description":"STARTED, TIER_STARTED, TIER_SKIPPED_NOBODY, ESCALATED, EXHAUSTED, CLAIMED, DECLINED, RELEASED, RESENT, CANCELLED or DONE."},"name":{"description":"The contact involved, if any.","type":["string","null"]},"detail":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}],"description":"Event-specific facts, such as {tier, audience, alerted} or {fromTier, reason}."}},"required":["at","type","name","detail"],"description":"One entry in a route's timeline."},"RouteOffer":{"type":"object","properties":{"offerId":{"type":"string","examples":["off_k3x9m2p7q4w8e1r5"]},"contactId":{"type":"string"},"name":{"type":"string","description":"The contact's name."},"kind":{"type":"string","enum":["PERSON","VENDOR"]},"tier":{"type":"integer","description":"The tier that first reached this contact."},"status":{"type":"string","enum":["SENT","CLAIMED","DECLINED","TAKEN","RELEASED","WITHDRAWN"]},"sentAt":{"type":"string","format":"date-time"},"openedAt":{"anyOf":[{"type":"string","format":"date-time","description":"When they first opened the offer link."},{"type":"null"}]},"respondedAt":{"anyOf":[{"type":"string","format":"date-time","description":"When they claimed, declined or released it."},{"type":"null"}]},"alerts":{"type":"array","items":{"type":"object","properties":{"channel":{"type":"string","enum":["EMAIL","SMS","PUSH"]},"status":{"type":"string","enum":["QUEUED","SENDING","SENT","DELIVERED","FAILED","SUPPRESSED","DEFERRED"],"description":"DEFERRED: held for quiet hours. SUPPRESSED: not sent (e.g. the route closed first)."},"error":{"type":["string","null"]}},"required":["channel","status","error"]},"description":"Each offer and re-offer alert sent to this contact."}},"required":["offerId","contactId","name","kind","tier","status","sentAt","openedAt","respondedAt","alerts"],"description":"One contact's offer on a route."},"RouteProvider":{"type":"object","properties":{"providerId":{"type":"string","examples":["rentahuman"]},"mode":{"type":"string","enum":["DRY_RUN","LIVE"],"description":"DRY_RUN stops after the quote: nothing is posted or paid."},"status":{"type":"string","enum":["QUOTED","POSTED","ASSIGNED","SUBMITTED","APPROVED","REJECTED","CANCELLED","UNFILLED","FAILED"]},"tier":{"type":"integer","description":"The ladder tier that opened this posting."},"quote":{"anyOf":[{"type":"object","properties":{"baseCents":{"type":"integer"},"feeCents":{"type":"integer"},"totalCents":{"type":"integer"}},"required":["baseCents","feeCents","totalCents"]},{"type":"null"}],"description":"The provider's quote; null when it failed before quoting."},"error":{"description":"Why it failed, or the last error talking to the provider.","type":["string","null"]},"url":{"description":"The posting on the provider's site (RentAHuman bounties), when posted.","type":["string","null"]}},"required":["providerId","mode","status","tier","quote","error","url"],"description":"A posting on an outside network (the OPEN_NETWORK tier)."},"RoutingPolicy":{"type":"object","properties":{"scope":{"type":"string","enum":["ORG","LOCATION"]},"locationId":{"description":"The location for a LOCATION policy; null for ORG.","type":["string","null"]},"ladder":{"type":"array","items":{"$ref":"#/components/schemas/RoutingTier"}},"updatedAt":{"type":"string","format":"date-time"}},"required":["scope","locationId","ladder","updatedAt"],"description":"A default ladder: the org's, or a location's override (which wins for tasks at that location)."},"RoutingPolicyUpdate":{"type":"object","properties":{"scope":{"type":"string","enum":["ORG","LOCATION"]},"locationId":{"description":"Required for LOCATION: one of your saved locations.","type":"string"},"ladder":{"anyOf":[{"minItems":1,"maxItems":6,"type":"array","items":{"$ref":"#/components/schemas/RoutingTierInput"}},{"type":"null"}],"description":"1–6 tiers; null removes the policy."}},"required":["scope","ladder"],"description":"Sets or removes the org's or a location's default ladder."},"RoutingTier":{"type":"object","properties":{"audience":{"type":"string","enum":["PERSON","LOCATION_STAFF","ALL_STAFF","VENDORS","OPEN_NETWORK","PROVIDERS"],"description":"Who a tier alerts. PERSON: the named contacts. LOCATION_STAFF: people linked to the task's location who are working now. ALL_STAFF: every active person (not vendors' staff). VENDORS: the named vendors. OPEN_NETWORK: an outside network (RentAHuman); refused with 422 coming_soon while it's switched off. PROVIDERS: TAP Provider Protocol platforms, offered one at a time, best lane first."},"contactIds":{"description":"The contacts (PERSON) or vendors (VENDORS) this tier names. Absent for the other audiences.","type":"array","items":{"type":"string"}},"windowMinutes":{"type":"integer","minimum":1,"maximum":1440,"description":"How long this tier has to claim before the next tier is alerted."}},"required":["audience","windowMinutes"],"description":"One step of a routing ladder, as stored."},"RoutingTierInput":{"type":"object","properties":{"audience":{"type":"string","enum":["PERSON","LOCATION_STAFF","ALL_STAFF","VENDORS","OPEN_NETWORK","PROVIDERS"],"description":"Who a tier alerts. PERSON: the named contacts. LOCATION_STAFF: people linked to the task's location who are working now. ALL_STAFF: every active person (not vendors' staff). VENDORS: the named vendors. OPEN_NETWORK: an outside network (RentAHuman); refused with 422 coming_soon while it's switched off. PROVIDERS: TAP Provider Protocol platforms, offered one at a time, best lane first."},"contactIds":{"description":"Required for PERSON (the people to alert) and accepted for VENDORS. Duplicates are dropped; every id must be one of your contacts (404 otherwise).","minItems":1,"maxItems":50,"type":"array","items":{"type":"string"}},"vendorIds":{"description":"VENDORS only: the vendor contacts to alert (used instead of contactIds). Each must be a VENDOR contact.","minItems":1,"maxItems":50,"type":"array","items":{"type":"string"}},"windowMinutes":{"description":"Minutes this tier has to claim. Default: 240 for OPEN_NETWORK, 60 for a single-audience routing, 15 for a ladder tier.","type":"integer","minimum":1,"maximum":1440}},"required":["audience"],"description":"One step of a routing ladder, as sent."},"SimulateRequest":{"type":"object","properties":{"action":{"type":"string","enum":["claim","capture_started","submit_evidence","accept","reject"],"description":"claim: a simulated performer takes the task's open route. capture_started: a capture link is opened (task.capture_started). submit_evidence: evidence the task's rules accept, or yours in `evidence` (task.evidence_submitted). accept / reject: the review decision (task.accepted / task.rejected)."},"reason":{"description":"reject only; default EVIDENCE_INSUFFICIENT.","type":"string","enum":["EVIDENCE_INSUFFICIENT","ORIGIN_BELOW_FLOOR","LOCATION_MISMATCH","TIME_WINDOW","SCOPE_NOT_MET","SAFETY","POLICY"]},"notes":{"description":"accept or reject: the reviewer's notes.","type":"string","maxLength":2000},"evidence":{"description":"submit_evidence only: send this instead of the simulated evidence (to test rejections).","$ref":"#/components/schemas/EvidenceSubmission"}},"required":["action"]},"SimulateResult":{"type":"object","properties":{"action":{"type":"string","enum":["claim","capture_started","submit_evidence","accept","reject"]},"task":{"$ref":"#/components/schemas/Task"},"captureUrl":{"description":"capture_started: the capture link that was opened.","type":"string"}},"required":["action","task"]},"Site":{"type":"object","properties":{"siteId":{"type":"string","examples":["site_k3x9m2p7q4w8e1r5"]},"name":{"type":"string"},"timezone":{"type":"string","description":"IANA time zone.","examples":["America/Los_Angeles"]},"detectorPackRef":{"type":"string"},"monthlyBudgetUsdCents":{"type":"integer","description":"What auto-posted tasks may add up to per calendar month (UTC). 0: nothing is posted without a person."},"locationId":{"description":"The saved location posted tasks send people to.","type":["string","null"]},"createdAt":{"type":"string","format":"date-time"}},"required":["siteId","name","timezone","detectorPackRef","monthlyBudgetUsdCents","locationId","createdAt"],"description":"A place Spot It watches for the org."},"SiteConditionQuality":{"type":"object","properties":{"conditionRef":{"type":"string"},"label":{"type":"string"},"seen":{"type":"integer","description":"Needs of this condition at the site."},"posted":{"type":"integer","description":"Needs currently in status POSTED."},"accepted":{"type":"integer","description":"Needs whose task was accepted."},"wrong":{"type":"integer","description":"Dismissed as WRONG."},"notAProblem":{"type":"integer","description":"Dismissed as NOT_A_PROBLEM."},"precisionBps":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"accepted / (accepted + wrong + notAProblem), in bps; null before anything is judged."}},"required":["conditionRef","label","seen","posted","accepted","wrong","notAProblem","precisionBps"]},"SiteCreate":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80,"description":"Trimmed, at most 80 characters."},"timezone":{"description":"IANA name such as Europe/London (default UTC).","type":"string"},"detectorPackRef":{"description":"Default teleport.detect.auto@1.0 (every condition).","type":"string","enum":["teleport.detect.auto@1.0","teleport.detect.hospitality-floor@1.0","teleport.detect.retail-shelf@1.0","teleport.detect.office-facilities@1.0"]},"monthlyBudgetUsdCents":{"description":"Auto-post budget per month, 0–10,000,000 cents (default 0).","type":"integer","minimum":0,"maximum":10000000},"locationId":{"description":"A saved location's id, or null (or \"\") to clear.","type":["string","null"]}},"required":["name"]},"SiteList":{"type":"object","properties":{"sites":{"type":"array","items":{"$ref":"#/components/schemas/Site"}}},"required":["sites"]},"SiteQuality":{"type":"object","properties":{"conditions":{"type":"array","items":{"$ref":"#/components/schemas/SiteConditionQuality"}}},"required":["conditions"]},"SiteRule":{"type":"object","properties":{"conditionRef":{"type":"string"},"label":{"type":"string"},"category":{"type":"string","enum":["CLEAN","STOCK","REPAIR","INSPECT","OPERATE"]},"hazard":{"type":"boolean"},"enabled":{"type":"boolean"},"mode":{"type":"string","enum":["SUGGEST_ONLY","AUTO_POST"]},"autoBps":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Auto-post threshold in bps; null means never auto-post."},"suggestBps":{"type":"integer","description":"Suggest threshold in bps."},"cooldownSeconds":{"type":"integer","description":"After the same need's work is accepted, repeats within this time are deduplicated."},"priceUsdCents":{"type":"integer"},"isDefault":{"type":"boolean","description":"True when no override is stored and the pack's defaults apply."}},"required":["conditionRef","label","category","hazard","enabled","mode","autoBps","suggestBps","cooldownSeconds","priceUsdCents","isDefault"],"description":"A site's effective setting for one condition: the pack's default unless overridden."},"SiteRules":{"type":"object","properties":{"site":{"$ref":"#/components/schemas/Site"},"rules":{"type":"array","items":{"$ref":"#/components/schemas/SiteRule"}}},"required":["site","rules"]},"SiteRulesUpdate":{"type":"object","properties":{"rules":{"minItems":1,"type":"array","items":{"type":"object","properties":{"conditionRef":{"type":"string","description":"Must be in the site's pack."},"enabled":{"description":"Only the JSON value true enables; any other value sent disables.","type":"boolean"},"mode":{"type":"string","enum":["SUGGEST_ONLY","AUTO_POST"]},"suggestBps":{"type":"integer","minimum":3000,"maximum":9900},"autoBps":{"description":"AUTO_POST needs autoBps at or above suggestBps.","anyOf":[{"type":"integer","minimum":3000,"maximum":9900},{"type":"null"}]},"cooldownSeconds":{"type":"integer","minimum":0,"maximum":86400},"priceUsdCents":{"type":"integer","minimum":0,"maximum":100000}},"required":["conditionRef"]}}},"required":["rules"],"description":"Overrides for the listed conditions. Omitted fields keep their current effective value; unlisted conditions are unchanged."},"SiteSource":{"type":"object","properties":{"sourceId":{"type":"string","examples":["src_k3x9m2p7q4w8e1r5"]},"siteId":{"type":"string"},"kind":{"type":"string","enum":["DEVICE_CAMERA","CAMERA_SNAPSHOT"],"description":"DEVICE_CAMERA: a phone or laptop that sends its own keyframes. CAMERA_SNAPSHOT: an IP camera Teleport polls."},"label":{"type":"string"},"status":{"type":"string","enum":["ACTIVE","PAUSED","ERROR"],"description":"ERROR after repeated failed polls."},"host":{"description":"The IP camera's host, for display (never the credentials).","type":["string","null"]},"intervalSeconds":{"type":"integer","description":"Poll interval, 300–3600."},"reference":{"anyOf":[{"type":"object","properties":{"url":{"description":"Short-lived link (or data: URL) to the redacted reference frame.","type":["string","null"]},"width":{"type":"integer"},"height":{"type":"integer"}},"required":["url","width","height"]},{"type":"null"}],"description":"The redacted frame zones are drawn on."},"zones":{"type":"array","items":{"$ref":"#/components/schemas/SiteZone"}},"lastPolledAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"lastAssessedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"lastError":{"type":["string","null"]}},"required":["sourceId","siteId","kind","label","status","host","intervalSeconds","reference","zones","lastPolledAt","lastAssessedAt","lastError"],"description":"A camera that watches a site."},"SiteSourceCreate":{"type":"object","properties":{"kind":{"type":"string","enum":["DEVICE_CAMERA","CAMERA_SNAPSHOT"]},"label":{"description":"Default \"This device\" or \"IP camera\".","type":"string","maxLength":80},"snapshotUrl":{"description":"Required for CAMERA_SNAPSHOT: the camera's still-image URL. A first frame is fetched before saving.","writeOnly":true,"type":"string","maxLength":2000},"username":{"writeOnly":true,"type":"string","maxLength":200},"password":{"writeOnly":true,"type":"string","maxLength":200},"intervalSeconds":{"description":"Poll interval (default 300).","type":"integer","minimum":300,"maximum":3600}},"required":["kind"]},"SiteSourceList":{"type":"object","properties":{"sources":{"type":"array","items":{"$ref":"#/components/schemas/SiteSource"}}},"required":["sources"]},"SiteSourceUpdate":{"type":"object","properties":{"label":{"type":"string","maxLength":80},"status":{"description":"ACTIVE also clears the error count.","type":"string","enum":["ACTIVE","PAUSED"]},"intervalSeconds":{"type":"integer","minimum":300,"maximum":3600},"snapshotUrl":{"description":"IP cameras only. Replaces the URL and credentials together: username and password not sent with it are cleared.","writeOnly":true,"type":"string","maxLength":2000},"username":{"writeOnly":true,"type":"string","maxLength":200},"password":{"writeOnly":true,"type":"string","maxLength":200}},"description":"Every field is optional; only those sent change."},"SiteUpdate":{"type":"object","properties":{"name":{"description":"Trimmed, at most 80 characters; can't be empty.","type":"string","minLength":1,"maxLength":80},"timezone":{"description":"IANA name such as Europe/London (default UTC).","type":"string"},"detectorPackRef":{"description":"Default teleport.detect.auto@1.0 (every condition).","type":"string","enum":["teleport.detect.auto@1.0","teleport.detect.hospitality-floor@1.0","teleport.detect.retail-shelf@1.0","teleport.detect.office-facilities@1.0"]},"monthlyBudgetUsdCents":{"description":"Auto-post budget per month, 0–10,000,000 cents (default 0).","type":"integer","minimum":0,"maximum":10000000},"locationId":{"description":"A saved location's id, or null (or \"\") to clear.","type":["string","null"]}},"description":"Every field is optional; only those sent change."},"SiteZone":{"type":"object","properties":{"ref":{"type":"string","description":"Derived from the label.","examples":["zone:counter"]},"label":{"type":"string"},"kind":{"type":"string","enum":["WATCH","EXCLUDE"],"description":"WATCH: needs outside every watched zone are ignored. EXCLUDE: masked before assessment."},"rect":{"minItems":4,"maxItems":4,"type":"array","items":{"type":"integer"},"description":"[x, y, w, h] as integers 0–1000 of the frame."}},"required":["ref","label","kind","rect"]},"SiteZonesUpdate":{"type":"object","properties":{"zones":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"label":{"description":"Default \"Zone n\".","type":"string","maxLength":60},"kind":{"type":"string","enum":["WATCH","EXCLUDE"]},"rect":{"minItems":4,"maxItems":4,"type":"array","items":{"type":"integer"},"description":"[x, y, w, h] integers 0–1000, inside the frame, at least 10 wide and tall."}},"required":["kind","rect"]},"description":"Replaces every zone; an empty list clears them."}},"required":["zones"]},"SourcePollResult":{"type":"object","properties":{"sourceId":{"type":"string"},"result":{"type":"string","enum":["assessed","error"],"description":"error: the camera couldn't be reached (see message)."},"reason":{"description":"Set when assessed.","type":"string","const":"requested"},"message":{"description":"Set on error.","type":"string"},"assessment":{"anyOf":[{"$ref":"#/components/schemas/ObservationResult"},{"type":"null"}],"description":"The run's result; null on error."}},"required":["sourceId","result","assessment"]},"SourceReferenceInput":{"type":"object","properties":{"contentBase64":{"description":"Device cameras only: the frame, base64.","type":"string","maxLength":4200000}}},"TapV02_actorType":{"type":"string","enum":["HUMAN","HUMANOID","ROBOT","AUTONOMOUS_VEHICLE","DRONE","DEVICE","MULTI_ACTOR"]},"TapV02_evidenceOrigin":{"type":"string","enum":["TELEPORT_CAPTURE","ATTESTED_DEVICE","ACTOR_TELEMETRY","THIRD_PARTY_SUBMITTED"]},"TapV02_hash":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}$"},"TapV02_policyRef":{"type":"object","required":["policyId"],"properties":{"policyId":{"type":"string"},"version":{"type":"string"}},"additionalProperties":false},"TapV02_requesterType":{"type":"string","enum":["HUMAN","ORGANIZATION","AI_AGENT","HUMANOID","ROBOT","AUTONOMOUS_VEHICLE","DRONE","DEVICE"]},"TapV03_actorRequirement":{"type":"object","additionalProperties":false,"required":["permittedActorTypes"],"properties":{"permittedActorTypes":{"type":"array","minItems":1,"uniqueItems":true,"items":{"$ref":"#/components/schemas/TapV03_actorType"}},"requiredCapabilities":{"type":"array","items":{"$ref":"#/components/schemas/TapV03_capabilityRequirement"}},"prohibitedCapabilities":{"type":"array","items":{"type":"string"}},"minimumTrustTier":{"type":"string"},"requiresHumanPresence":{"type":"boolean"},"requiresRemoteSupervisor":{"type":"boolean"},"actorCount":{"type":"object","additionalProperties":false,"required":["min","max"],"properties":{"min":{"type":"integer","minimum":1},"max":{"type":"integer","minimum":1}}},"constraints":{"type":"object"},"allowedControlModes":{"type":"array","minItems":1,"uniqueItems":true,"items":{"$ref":"#/components/schemas/TapV03_controlMode"}},"controllerCapabilities":{"type":"array","items":{"$ref":"#/components/schemas/TapV03_capabilityRequirement"}}}},"TapV03_actorType":{"type":"string","enum":["HUMAN","HUMANOID","ROBOT","AUTONOMOUS_VEHICLE","DRONE","DEVICE","MULTI_ACTOR"]},"TapV03_attestationLevel":{"type":"string","enum":["SELF_DECLARED","TELEPORT_VERIFIED","ISSUER_VERIFIED"]},"TapV03_blindedField":{"type":"object","additionalProperties":false,"required":["pointer","commitment","hiddenFrom","revealAfter"],"properties":{"pointer":{"$ref":"#/components/schemas/TapV03_jsonPointer"},"commitment":{"$ref":"#/components/schemas/TapV03_hash"},"hiddenFrom":{"type":"array","minItems":1,"uniqueItems":true,"items":{"type":"string","enum":["PERFORMER","SITE","VERIFIER_REVIEWERS"]}},"revealAfter":{"type":"string","enum":["FINDINGS_RECORDED","WORKFLOW_COMPLETE","ROLLUP_PUBLISHED"]}}},"TapV03_bps":{"type":"integer","minimum":0,"maximum":10000},"TapV03_c2paProvenance":{"description":"draft.3 §19.3. Produced by Teleport at ingestion; present only on C2PA_SIGNED items, so the signer is always trusted.","type":"object","additionalProperties":false,"required":["manifestHash","specVersion","claimGenerator","signer","validation","actions","ingredientsPresent"],"properties":{"manifestHash":{"$ref":"#/components/schemas/TapV03_hash"},"specVersion":{"type":"string","pattern":"^([2-9]|[1-9][0-9]+)\\.[0-9]+(\\.[0-9]+)?$","description":"C2PA spec ≥ 2.0 (§19.4 rule 1)."},"claimGenerator":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"signer":{"type":"object","additionalProperties":false,"required":["certThumbprint","issuerCommonName","trustList","hardwareBacked"],"properties":{"certThumbprint":{"$ref":"#/components/schemas/TapV03_hash"},"issuerCommonName":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"trustList":{"type":"string","enum":["C2PA_TRUST_LIST","TELEPORT_ALLOWLIST"]},"hardwareBacked":{"type":"boolean"}}},"signedAt":{"$ref":"#/components/schemas/TapV03_timestamp"},"timestampAuthority":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"validation":{"type":"string","enum":["VALID","VALID_WITH_WARNINGS"]},"validationWarnings":{"type":"array","items":{"$ref":"#/components/schemas/TapV03_nonEmptyString"}},"actions":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/TapV03_nonEmptyString"}},"ingredientsPresent":{"type":"boolean"}},"allOf":[{"if":{"properties":{"validation":{"const":"VALID_WITH_WARNINGS"}}},"then":{"required":["validationWarnings"],"properties":{"validationWarnings":{"minItems":1}}}},{"$comment":"A trusted timestamp is a signing time.","if":{"required":["timestampAuthority"]},"then":{"required":["signedAt"]}}]},"TapV03_capabilityRequirement":{"type":"object","required":["capability"],"properties":{"capability":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"version":{"type":"string"},"attributes":{"type":"object","additionalProperties":{"type":["string","integer","boolean"]}},"minAttestation":{"$ref":"#/components/schemas/TapV03_attestationLevel"},"jurisdiction":{"type":"string","pattern":"^[A-Z]{2}(-[A-Z0-9]{1,3})?$"}},"additionalProperties":false},"TapV03_category":{"type":"string","enum":["OBSERVE","INSPECT","MEASURE","VERIFY","MOVE","TRANSPORT","DELIVER","PICK","PLACE","MANIPULATE","SORT","LOAD","UNLOAD","STOCK","ASSEMBLE","DISASSEMBLE","CLEAN","MAINTAIN","REPAIR","OPERATE","NAVIGATE","MONITOR","CAPTURE","DEMONSTRATE","CUSTOM"]},"TapV03_claimContext":{"type":"object","additionalProperties":false,"required":["version"],"minProperties":2,"properties":{"version":{"const":"1"},"standingOrderHash":{"$ref":"#/components/schemas/TapV03_hash"},"siteConsentHash":{"$ref":"#/components/schemas/TapV03_hash"},"scopeHash":{"$ref":"#/components/schemas/TapV03_hash"},"referenceRoot":{"$ref":"#/components/schemas/TapV03_hash"},"findingsHash":{"$ref":"#/components/schemas/TapV03_hash"},"redactionHash":{"$ref":"#/components/schemas/TapV03_hash"},"capabilityAttestationRoot":{"$ref":"#/components/schemas/TapV03_hash"},"holdback":{"type":"object","additionalProperties":false,"required":["pctBps"],"properties":{"pctBps":{"$ref":"#/components/schemas/TapV03_bps"},"durabilityTaskIdHash":{"$ref":"#/components/schemas/TapV03_hash"}}},"goodsSeparated":{"type":"boolean"},"controlMode":{"$ref":"#/components/schemas/TapV03_controlMode"},"teamHash":{"$ref":"#/components/schemas/TapV03_hash"},"custodyHash":{"$ref":"#/components/schemas/TapV03_hash"},"byproductConsentHash":{"$ref":"#/components/schemas/TapV03_hash"},"blindRevealHash":{"$ref":"#/components/schemas/TapV03_hash"},"anchoring":{"type":"string","enum":["DEFERRED","NONE"],"description":"TAP v0.3 §18.5.1. Omitted when PUBLIC."},"c2paSignerRoot":{"$ref":"#/components/schemas/TapV03_hash","description":"draft.3 §19.6"},"fallbackOfHash":{"$ref":"#/components/schemas/TapV03_hash","description":"draft.3 §20.7"},"extractionConfigHash":{"$ref":"#/components/schemas/TapV03_hash","description":"draft.3 §21.3"},"externalRefRoot":{"$ref":"#/components/schemas/TapV03_hash","description":"draft.3 §24.3"}}},"TapV03_completionCondition":{"type":"object","required":["type","id","description","required","verificationMethod"],"properties":{"type":{"type":"string","enum":["STATE","TRANSITION","PRESENCE","COUNT","LOCATION","MEASUREMENT","SEQUENCE","DURATION","SEMANTIC","CUSTOM","PROGRESS","CUSTODY","EXTRACTION"]},"id":{"$ref":"#/components/schemas/TapV03_nonEmptyString","not":{"pattern":"^(c2pa|risk)\\.","$comment":"draft.3: ids starting c2pa. or risk. are reserved for Teleport findings (RESERVED_CONDITION_ID)."}},"description":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"required":{"type":"boolean"},"weight":{"$ref":"#/components/schemas/TapV03_bps"},"verificationMethod":{"type":"string","enum":["DETERMINISTIC","PERCEPTION","JEV","HUMAN_REVIEW","COMPOSITE"]},"minimumEvidenceOrigin":{"$ref":"#/components/schemas/TapV03_evidenceOrigin"},"role":{"type":"string","enum":["WORK","FINDING"]},"subjectRef":{"type":"string"},"property":{"type":"string"},"expected":{"type":["string","integer","boolean"]},"from":{},"to":{"type":"object"},"expectedPresent":{"type":"boolean"},"min":{"type":"integer"},"max":{"type":"integer"},"exact":{"type":"integer"},"zoneRef":{"type":"string"},"relation":{"type":"string","enum":["IN","OUTSIDE","INTERSECTS","CONTAINED"]},"metric":{"type":"string"},"unit":{"type":"string"},"steps":{"type":"array","minItems":1,"items":{"type":"string"}},"eventRef":{"type":"string"},"minMs":{"type":"integer","minimum":0},"maxMs":{"type":"integer","minimum":0},"question":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"namespace":{"type":"string"},"config":{"type":"object"},"compareToTaskId":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"stage":{"type":"object","additionalProperties":false,"required":["ordinal","label"],"properties":{"ordinal":{"type":"integer","minimum":0},"label":{"type":"string"}}},"requireNewWork":{"type":"boolean"},"custodyChainId":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"segment":{"oneOf":[{"const":"FULL"},{"type":"object","additionalProperties":false,"properties":{"fromSeq":{"type":"integer","minimum":1},"toSeq":{"type":"integer","minimum":1}}}]},"requireRecipientAck":{"type":"boolean"},"fieldIds":{"type":"array","minItems":1,"uniqueItems":true,"items":{"$ref":"#/components/schemas/TapV03_extractionFieldId"}},"requireMatch":{"type":"boolean"}},"additionalProperties":false,"allOf":[{"if":{"properties":{"role":{"const":"FINDING"}},"required":["role"]},"then":{"properties":{"required":{"const":false}}}},{"if":{"properties":{"type":{"const":"STATE"}}},"then":{"required":["subjectRef","property","expected"]}},{"if":{"properties":{"type":{"const":"TRANSITION"}}},"then":{"required":["subjectRef","to"]}},{"if":{"properties":{"type":{"const":"PRESENCE"}}},"then":{"required":["subjectRef","expectedPresent"]}},{"if":{"properties":{"type":{"const":"LOCATION"}}},"then":{"required":["subjectRef","zoneRef"]}},{"if":{"properties":{"type":{"const":"MEASUREMENT"}}},"then":{"required":["metric"]}},{"if":{"properties":{"type":{"const":"SEQUENCE"}}},"then":{"required":["steps"]}},{"if":{"properties":{"type":{"const":"SEMANTIC"}}},"then":{"required":["question"]}},{"if":{"properties":{"type":{"const":"CUSTOM"}}},"then":{"required":["namespace","config"]}},{"if":{"properties":{"type":{"const":"PROGRESS"}}},"then":{"required":["compareToTaskId","requireNewWork"]}},{"if":{"properties":{"type":{"const":"CUSTODY"}}},"then":{"required":["custodyChainId","segment"]}},{"if":{"properties":{"type":{"const":"EXTRACTION"}}},"then":{"required":["fieldIds"]}}]},"TapV03_completionFallback":{"description":"draft.3 §20.2. Allowed only when fulfillment.mode is DIRECT or VERIFY_ONLY.","type":"object","additionalProperties":false,"required":["on","afterSeconds","template","maxSpendUsdCents","originalTask"],"properties":{"on":{"type":"array","minItems":1,"uniqueItems":true,"items":{"type":"string","enum":["NOT_STARTED","NOT_SUBMITTED","REJECTED","REVIEW_TIMEOUT"]}},"afterSeconds":{"type":"integer","minimum":3600,"maximum":1209600},"template":{"$ref":"#/components/schemas/TapV03_taskTemplate","properties":{"fulfillment":{"properties":{"mode":{"const":"MARKETPLACE"}}}}},"maxAttempts":{"type":"integer","minimum":1,"maximum":3,"default":1},"maxSpendUsdCents":{"$ref":"#/components/schemas/TapV03_usdCents"},"originalTask":{"type":"string","enum":["CANCEL","KEEP_OPEN_FIRST_WINS"]},"preFireNotice":{"type":"object","additionalProperties":false,"required":["secondsBefore","channel"],"properties":{"secondsBefore":{"type":"integer","minimum":60},"channel":{"type":"string","enum":["SMS","EMAIL","PUSH","WEBHOOK_ONLY"]}}}}},"TapV03_controlMode":{"type":"string","enum":["AUTONOMOUS","SUPERVISED","TELEOPERATED","SHARED"]},"TapV03_custodyEvent":{"type":"object","additionalProperties":false,"required":["seq","from","to","method","signatures","sealState","at"],"properties":{"seq":{"type":"integer","minimum":1},"from":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"to":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"method":{"type":"string","enum":["BADGE_SCAN","DEVICE_KEY","APP_SIGNATURE","LOCKER_LOG","RECIPIENT_ACK"]},"signatures":{"type":"array","minItems":1,"items":{"type":"object","additionalProperties":false,"required":["party","keyId"],"properties":{"party":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"keyId":{"$ref":"#/components/schemas/TapV03_nonEmptyString"}}}},"sealState":{"type":"string","enum":["INTACT","NEW_SEAL","BROKEN"]},"at":{"$ref":"#/components/schemas/TapV03_timestamp"},"zoneRef":{"type":"string"}}},"TapV03_custodySpec":{"type":"object","additionalProperties":false,"required":["custodyChainId","objectCommitment","sealRequired","allowedCustodianTypes"],"properties":{"custodyChainId":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"objectCommitment":{"$ref":"#/components/schemas/TapV03_hash"},"sealRequired":{"type":"boolean"},"allowedCustodianTypes":{"type":"array","minItems":1,"uniqueItems":true,"items":{"type":"string","enum":["HUMAN","HUMANOID","ROBOT","AUTONOMOUS_VEHICLE","DRONE","DEVICE","MULTI_ACTOR","LOCKER","RECIPIENT"]}},"maxUnattendedMs":{"type":"integer","minimum":0},"environment":{"type":"object","additionalProperties":false,"required":["metric","unit","loggerRef"],"properties":{"metric":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"unit":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"min":{"type":"integer"},"max":{"type":"integer"},"loggerRef":{"$ref":"#/components/schemas/TapV03_nonEmptyString"}}}}},"TapV03_delegatedRequesterType":{"type":"string","enum":["AI_AGENT","HUMANOID","ROBOT","AUTONOMOUS_VEHICLE","DRONE","DEVICE"]},"TapV03_economics":{"type":"object","required":["performerPayUsdCents","settlementAssets"],"properties":{"performerPayUsdCents":{"$ref":"#/components/schemas/TapV03_usdCents"},"buyerPriceUsdCents":{"$ref":"#/components/schemas/TapV03_usdCents"},"settlementAssets":{"type":"array","minItems":1,"uniqueItems":true,"items":{"type":"string","enum":["USDC","FIAT"]}},"requesterPayment":{"type":"object","additionalProperties":false,"required":["method"],"properties":{"method":{"type":"string","enum":["X402_USDC","PREPAID_BALANCE","MANDATE_BUDGET","INVOICE","CARD"]},"maxSpendUsdCents":{"$ref":"#/components/schemas/TapV03_usdCents"}}},"x402":{"type":"object","required":["required","asset","network"],"properties":{"required":{"type":"boolean"},"asset":{"const":"USDC"},"network":{"const":"BASE"}},"additionalProperties":false},"goods":{"type":"object","additionalProperties":false,"required":["passThroughUsdCents","supplierRef"],"properties":{"passThroughUsdCents":{"$ref":"#/components/schemas/TapV03_usdCents"},"supplierRef":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"invoiceRef":{"type":"string"},"requiresApprovalAboveUsdCents":{"$ref":"#/components/schemas/TapV03_usdCents"}}},"holdback":{"type":"object","additionalProperties":false,"required":["pct","durabilityTemplate","delaySeconds","onDurabilityRejected"],"properties":{"pct":{"type":"integer","minimum":1,"maximum":9999},"durabilityTemplate":{"$ref":"#/components/schemas/TapV03_taskTemplate"},"delaySeconds":{"type":"integer","minimum":0},"onDurabilityRejected":{"type":"string","enum":["FORFEIT","REVIEW"]}}},"payoutTiming":{"type":"string","enum":["ON_ACCEPT","ON_ACCEPT_TRUSTED","BATCH_DAILY"]},"newPerformerHold":{"type":"object","additionalProperties":false,"required":["firstNTasks","maxHoldSeconds"],"properties":{"firstNTasks":{"type":"integer","minimum":1},"maxHoldSeconds":{"type":"integer","minimum":1}}},"cancellationPayUsdCents":{"$ref":"#/components/schemas/TapV03_usdCents","description":"draft.3 §20.3 rule 6. Default 50% of performerPayUsdCents."}},"additionalProperties":false},"TapV03_evidenceItem":{"description":"draft.3 §19.3. One entry of a submission's evidence list, after Teleport classified its origin.","type":"object","additionalProperties":false,"required":["evidenceId","requirementId","type","origin","sha256"],"properties":{"evidenceId":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"requirementId":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"type":{"$ref":"#/components/schemas/TapV03_evidenceRequirement/properties/type"},"origin":{"$ref":"#/components/schemas/TapV03_evidenceOrigin"},"sha256":{"$ref":"#/components/schemas/TapV03_sha256Hex"},"capturedAt":{"$ref":"#/components/schemas/TapV03_timestamp"},"c2paProvenance":{"$ref":"#/components/schemas/TapV03_c2paProvenance"},"platformProvenance":{"$ref":"#/components/schemas/TapV03_platformProvenance"}},"allOf":[{"$comment":"C2PA_PROVENANCE_MISSING; failed provenance is a finding, never a c2paProvenance record (§19.4 rule 2).","if":{"properties":{"origin":{"const":"C2PA_SIGNED"}}},"then":{"required":["c2paProvenance"]},"else":{"not":{"required":["c2paProvenance"]}}},{"if":{"properties":{"origin":{"const":"PLATFORM_FETCHED"}}},"then":{"required":["platformProvenance"]},"else":{"not":{"required":["platformProvenance"]}}}]},"TapV03_evidenceOrigin":{"type":"string","enum":["TELEPORT_CAPTURE","ATTESTED_DEVICE","ACTOR_TELEMETRY","THIRD_PARTY_SUBMITTED","PLATFORM_FETCHED","C2PA_SIGNED"],"description":"PLATFORM_FETCHED and C2PA_SIGNED: draft.3 §19. Codes are append-only; strength is EVIDENCE_ORIGIN_RANK, not code order."},"TapV03_evidenceProfile":{"type":"object","required":["id","actorTypes","requiredEvidence"],"properties":{"id":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"actorTypes":{"type":"array","minItems":1,"uniqueItems":true,"items":{"$ref":"#/components/schemas/TapV03_actorType"}},"requiredEvidence":{"type":"array","items":{"$ref":"#/components/schemas/TapV03_evidenceRequirement"}},"optionalEvidence":{"type":"array","items":{"$ref":"#/components/schemas/TapV03_evidenceRequirement"}},"synchronization":{"type":"object","additionalProperties":false,"required":["clock"],"properties":{"clock":{"type":"string","enum":["DEVICE_MONOTONIC","UTC","PTP","OTHER"]},"maxSkewMs":{"type":"integer","minimum":0}}},"retentionClass":{"type":"string"}},"additionalProperties":false},"TapV03_evidenceRequirement":{"type":"object","required":["id","type","required"],"properties":{"id":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"type":{"type":"string","enum":["VIDEO","IMAGE","AUDIO","DEPTH","IMU","POSE","JOINT_STATE","FORCE_TORQUE","ODOMETRY","LIDAR","TELEMETRY","SENSOR_MEASUREMENT","EVENT_LOG","BARCODE_SCAN","NFC","GPS","MANIFEST","CUSTOM"]},"required":{"type":"boolean"},"acceptedOrigins":{"type":"array","minItems":1,"uniqueItems":true,"items":{"$ref":"#/components/schemas/TapV03_evidenceOrigin"}},"constraints":{"type":"object"},"redaction":{"$ref":"#/components/schemas/TapV03_redactionRequirement"}},"additionalProperties":false},"TapV03_externalRef":{"description":"draft.3 §24.2","type":"object","additionalProperties":false,"required":["system","refType","value"],"properties":{"system":{"type":"string","maxLength":64,"pattern":"^(custom:[a-z0-9][a-z0-9_.-]{0,62}|[a-z0-9]+(\\.[a-z0-9-]+)*)$"},"refType":{"type":"string","enum":["LOAN","DRAW","CLAIM","POLICY","WORK_ORDER","ASSET","INSPECTION_ORDER","CUSTOM"]},"value":{"type":"string","minLength":1,"maxLength":128},"sensitive":{"type":"boolean"}}},"TapV03_extractionConfig":{"description":"draft.3 §21.2. Committed via ClaimContext.extractionConfigHash; any edit bumps version.","type":"object","additionalProperties":false,"required":["configId","version","fields"],"properties":{"configId":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"version":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"fields":{"type":"array","minItems":1,"maxItems":50,"items":{"$ref":"#/components/schemas/TapV03_extractionField"}}}},"TapV03_extractionField":{"type":"object","additionalProperties":false,"required":["fieldId","description","valueType","required"],"properties":{"fieldId":{"$ref":"#/components/schemas/TapV03_extractionFieldId"},"description":{"type":"string","minLength":1,"maxLength":500},"valueType":{"type":"string","enum":["STRING","INTEGER","DECIMAL","BOOLEAN","DATE","ENUM"]},"enumValues":{"type":"array","minItems":1,"uniqueItems":true,"items":{"$ref":"#/components/schemas/TapV03_nonEmptyString"}},"match":{"type":"object","additionalProperties":false,"required":["against","comparator"],"properties":{"against":{"oneOf":[{"type":"object","additionalProperties":false,"required":["referenceAssetRef","pointer"],"properties":{"referenceAssetRef":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"pointer":{"$ref":"#/components/schemas/TapV03_jsonPointer"}}},{"type":"object","additionalProperties":false,"required":["taskPointer"],"properties":{"taskPointer":{"$ref":"#/components/schemas/TapV03_jsonPointer"}}}]},"comparator":{"type":"string","enum":["EQUALS","EQUALS_NORMALIZED","CONTAINS","WITHIN_TOLERANCE"]},"tolerance":{"type":"string","pattern":"^(0|[1-9][0-9]*)(\\.[0-9]+)?$","description":"Non-negative decimal string; no floats in hashed documents."}},"if":{"properties":{"comparator":{"const":"WITHIN_TOLERANCE"}}},"then":{"required":["tolerance"]},"else":{"not":{"required":["tolerance"]}}},"required":{"type":"boolean"},"minConfidenceBps":{"$ref":"#/components/schemas/TapV03_bps"},"sensitive":{"type":"boolean"}},"if":{"properties":{"valueType":{"const":"ENUM"}}},"then":{"required":["enumValues"]},"else":{"not":{"required":["enumValues"]}}},"TapV03_extractionFieldId":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,47}$"},"TapV03_findingsRecord":{"type":"object","additionalProperties":false,"required":["results"],"properties":{"scoreBps":{"$ref":"#/components/schemas/TapV03_bps"},"band":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"results":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["conditionId","satisfied"],"properties":{"conditionId":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"satisfied":{"type":["boolean","null"]},"confidenceBps":{"$ref":"#/components/schemas/TapV03_bps"},"valueRef":{"type":"string"}}}},"extracted":{"description":"draft.3 §21.2. DECIMAL and DATE values are strings (no floats in hashed documents).","type":"array","items":{"type":"object","additionalProperties":false,"required":["fieldId","confidenceBps","evidenceRef"],"properties":{"fieldId":{"$ref":"#/components/schemas/TapV03_extractionFieldId"},"value":{"type":["string","integer","boolean"]},"confidenceBps":{"$ref":"#/components/schemas/TapV03_bps"},"evidenceRef":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"matched":{"type":"boolean"}}}}}},"TapV03_fulfillment":{"type":"object","additionalProperties":false,"required":["mode"],"properties":{"mode":{"type":"string","enum":["MARKETPLACE","DIRECT","VERIFY_ONLY"]},"designatedPerformers":{"type":"array","minItems":1,"items":{"type":"object","additionalProperties":false,"required":["actorType"],"properties":{"actorId":{"type":"string"},"fleetId":{"type":"string"},"actorType":{"$ref":"#/components/schemas/TapV03_actorType"}},"anyOf":[{"required":["actorId"]},{"required":["fleetId"]}]}},"verifyOnly":{"type":"object","additionalProperties":false,"required":["submitter","acceptedEvidenceOrigins","attestationRequired"],"properties":{"workWindow":{"type":"object","additionalProperties":false,"properties":{"from":{"$ref":"#/components/schemas/TapV03_timestamp"},"to":{"$ref":"#/components/schemas/TapV03_timestamp"}}},"submitter":{"type":"string","enum":["REQUESTER","PERFORMER","THIRD_PARTY"]},"acceptedEvidenceOrigins":{"type":"array","minItems":1,"uniqueItems":true,"items":{"$ref":"#/components/schemas/TapV03_evidenceOrigin"}},"attestationRequired":{"type":"boolean"}}},"fallback":{"$ref":"#/components/schemas/TapV03_completionFallback"}},"allOf":[{"$comment":"draft.3 §20.3 rule 1: no fallback in MARKETPLACE mode (FALLBACK_MODE_INVALID).","if":{"properties":{"mode":{"const":"MARKETPLACE"}}},"then":{"not":{"required":["fallback"]}}},{"if":{"properties":{"mode":{"const":"DIRECT"}}},"then":{"required":["designatedPerformers"]}},{"if":{"properties":{"mode":{"const":"VERIFY_ONLY"}}},"then":{"required":["verifyOnly"]}}]},"TapV03_hash":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}$"},"TapV03_jsonPointer":{"type":"string","pattern":"^(/([^~/]|~[01])*)+$"},"TapV03_nonEmptyString":{"type":"string","minLength":1},"TapV03_outcomeEvent":{"type":"object","additionalProperties":false,"required":["type","eventId","occurredAt","taskSpecId","scope"],"properties":{"type":{"type":"string","enum":["task.accepted","task.rejected","task.reviewed","claim.anchored","durability.resolved","task.published","task.capture_started","task.evidence_submitted","task.fallback_scheduled","task.fallback_notice_sent","task.fallback_triggered","task.fallback_blocked","task.superseded"]},"eventId":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"occurredAt":{"$ref":"#/components/schemas/TapV03_timestamp"},"taskSpecId":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"taskId":{"$ref":"#/components/schemas/TapV03_nonEmptyString","description":"draft.3 §24.4. Teleport's id for the task, next to the requester's taskSpecId."},"workflowId":{"type":"string"},"claimId":{"type":"string"},"claimHash":{"$ref":"#/components/schemas/TapV03_hash"},"decision":{"type":"string","enum":["ACCEPTED","REJECTED","REVIEWED_ACCEPTED"]},"assuranceTier":{"type":"string","enum":["STANDARD","VERIFIED","HIGH_ASSURANCE"]},"evidenceOriginFloor":{"$ref":"#/components/schemas/TapV03_evidenceOrigin"},"findings":{"type":"object","additionalProperties":false,"properties":{"scoreBps":{"$ref":"#/components/schemas/TapV03_bps"},"band":{"type":"string"}}},"scope":{"type":"object","additionalProperties":false,"required":["asserts","doesNotAssert"],"properties":{"asserts":{"type":"array","items":{"type":"string"}},"doesNotAssert":{"type":"array","items":{"type":"string"}}}},"anchor":{"type":"object","additionalProperties":false,"required":["chainId","batchId","txHash"],"properties":{"chainId":{"type":"integer","minimum":1},"batchId":{"$ref":"#/components/schemas/TapV03_hash"},"txHash":{"$ref":"#/components/schemas/TapV03_hash"}}},"externalRefs":{"description":"draft.3 §24.3 rule 1: the task's externalRefs, unchanged.","type":"array","minItems":1,"maxItems":10,"items":{"$ref":"#/components/schemas/TapV03_externalRef"}},"rejectionReason":{"type":"string","enum":["EVIDENCE_INSUFFICIENT","ORIGIN_BELOW_FLOOR","C2PA_ORIGIN_NOT_ACCEPTED","C2PA_PROVENANCE_MISSING","C2PA_EDITED_NOT_PERMITTED","C2PA_SIGNED_OUTSIDE_WINDOW","LOCATION_MISMATCH","TIME_WINDOW","SCOPE_NOT_MET","SAFETY","POLICY"]},"fireAt":{"$ref":"#/components/schemas/TapV03_timestamp"},"channel":{"type":"string","enum":["SMS","EMAIL","PUSH","WEBHOOK_ONLY"]},"fallbackTaskSpecId":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"attempt":{"type":"integer","minimum":1,"maximum":3},"reason":{"type":"string","enum":["NOT_STARTED","NOT_SUBMITTED","REJECTED","REVIEW_TIMEOUT","SITE_CONSENT","MANDATE","BUDGET","NO_SUPPLY"]},"winnerTaskSpecId":{"$ref":"#/components/schemas/TapV03_nonEmptyString"}},"allOf":[{"if":{"properties":{"type":{"const":"claim.anchored"}}},"then":{"required":["anchor","claimHash"]}},{"if":{"properties":{"type":{"const":"task.rejected"}}},"then":{"required":["rejectionReason"]},"else":{"not":{"required":["rejectionReason"]}}},{"if":{"properties":{"type":{"const":"task.fallback_notice_sent"}}},"then":{"required":["channel"]}},{"if":{"properties":{"type":{"const":"task.fallback_triggered"}}},"then":{"required":["fallbackTaskSpecId","attempt","reason"],"properties":{"reason":{"enum":["NOT_STARTED","NOT_SUBMITTED","REJECTED","REVIEW_TIMEOUT"]}}}},{"if":{"properties":{"type":{"const":"task.fallback_blocked"}}},"then":{"required":["reason"],"properties":{"reason":{"enum":["SITE_CONSENT","MANDATE","BUDGET","NO_SUPPLY"]}}}},{"if":{"properties":{"type":{"const":"task.superseded"}}},"then":{"required":["winnerTaskSpecId"]}}]},"TapV03_platformProvenance":{"description":"draft.3 §19.7 (Ring PRD RG-60/61).","type":"object","additionalProperties":false,"required":["platform","fetchedBy","deviceRef","fetchedAt","requestId"],"properties":{"platform":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"fetchedBy":{"const":"teleport"},"deviceRef":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"fetchedAt":{"$ref":"#/components/schemas/TapV03_timestamp"},"requestId":{"$ref":"#/components/schemas/TapV03_nonEmptyString"}}},"TapV03_policyRef":{"type":"object","required":["policyId"],"properties":{"policyId":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"version":{"type":"string"}},"additionalProperties":false},"TapV03_popw":{"type":"object","required":["required"],"properties":{"required":{"type":"boolean"},"assurancePolicyId":{"type":"string"},"proofTiming":{"type":"string","enum":["PER_EPISODE","BATCH","WORKFLOW"]},"publicVerification":{"type":"boolean","deprecated":true,"description":"Superseded by anchoring (TAP v0.3 §18.2 rule 5). When present it must equal anchoring != NONE."},"anchoring":{"type":"string","enum":["PUBLIC","DEFERRED","NONE"],"default":"PUBLIC","description":"TAP v0.3 §18.2. How independently the receipt can be checked later. Absent = PUBLIC."},"maxAnchorDelaySeconds":{"type":"integer","minimum":3600,"maximum":2592000,"description":"TAP v0.3 §18.2. DEFERRED only. Default 604800 (7 days)."},"contentCredentials":{"type":"string","enum":["NONE","EVIDENCE","EVIDENCE_AND_RECEIPT"],"default":"NONE","description":"draft.3 §23.2. C2PA Content Credentials on delivered media (and the receipt)."}},"additionalProperties":false,"allOf":[{"$comment":"draft.3 §23.3: credentials point to a PoPW claim (CONTENT_CREDENTIALS_REQUIRE_POPW).","if":{"required":["contentCredentials"],"properties":{"contentCredentials":{"enum":["EVIDENCE","EVIDENCE_AND_RECEIPT"]}}},"then":{"properties":{"required":{"const":true}}}},{"$comment":"§18.2 rule 2: maxAnchorDelaySeconds only with DEFERRED.","if":{"required":["maxAnchorDelaySeconds"]},"then":{"required":["anchoring"],"properties":{"anchoring":{"const":"DEFERRED"}}}},{"$comment":"§18.2 rule 3, §18.4: NONE caps at STANDARD.","if":{"required":["anchoring"],"properties":{"anchoring":{"const":"NONE"}}},"then":{"properties":{"assurancePolicyId":{"not":{"enum":["VERIFIED","HIGH_ASSURANCE"]}}}}},{"$comment":"§18.2 rule 5: publicVerification false only with NONE (absent anchoring means PUBLIC).","if":{"required":["publicVerification"],"properties":{"publicVerification":{"const":false}}},"then":{"required":["anchoring"],"properties":{"anchoring":{"const":"NONE"}}}},{"$comment":"§18.2 rule 5: publicVerification true never with NONE.","if":{"required":["publicVerification"],"properties":{"publicVerification":{"const":true}}},"then":{"properties":{"anchoring":{"not":{"const":"NONE"}}}}}]},"TapV03_popwContentAssertion":{"description":"draft.3 §23.2. The io.teleport.popw assertion. No performer identity or requester principal (§23.3 rule 3).","type":"object","additionalProperties":false,"required":["label","data"],"properties":{"label":{"const":"io.teleport.popw"},"data":{"type":"object","additionalProperties":false,"required":["claimId","claimHash","verifyUrl"],"properties":{"claimId":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"claimHash":{"$ref":"#/components/schemas/TapV03_hash"},"verifyUrl":{"type":"string","pattern":"^https://[^\\s]+/verify/[^\\s]+$"}}}}},"TapV03_redactionRequirement":{"type":"object","additionalProperties":false,"required":["transforms","appliesTo"],"properties":{"transforms":{"type":"array","minItems":1,"uniqueItems":true,"items":{"type":"string","enum":["FACES","BODIES","SCREENS","TEXT_DOCUMENTS","LICENSE_PLATES","CROP_TO_ZONE","THIRD_PARTY_PRODUCTS"]}},"appliesTo":{"type":"string","enum":["DELIVERED","DELIVERED_AND_STORED"]},"unredactedRetentionDays":{"type":"integer","minimum":0}}},"TapV03_referenceAsset":{"type":"object","additionalProperties":false,"required":["ref","kind","accessibleTo"],"properties":{"ref":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"kind":{"type":"string","enum":["PLAN","PLANOGRAM","CATALOG","REFERENCE_SCAN","PRIOR_CLAIM","RECORD","CUSTOM"]},"sha256":{"$ref":"#/components/schemas/TapV03_sha256Hex"},"claimId":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"accessibleTo":{"type":"string","enum":["REQUESTER","VERIFIER_ONLY","PERFORMER"]}},"if":{"properties":{"kind":{"const":"PRIOR_CLAIM"}}},"then":{"required":["claimId"]},"else":{"required":["sha256"]}},"TapV03_relations":{"type":"object","additionalProperties":false,"properties":{"workflowId":{"type":"string"},"parentTaskId":{"type":"string"},"dependsOn":{"type":"array","items":{"type":"string"},"uniqueItems":true},"followUpOf":{"type":"string"},"verifiesTaskId":{"type":"string"},"supersedes":{"type":"string"},"fallbackOf":{"$ref":"#/components/schemas/TapV03_nonEmptyString","description":"draft.3 §20.2. Set by Teleport on a fallback task."}}},"TapV03_requester":{"type":"object","additionalProperties":false,"required":["requesterId","requesterType","principal"],"properties":{"requesterId":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"requesterType":{"$ref":"#/components/schemas/TapV03_requesterType"},"principal":{"type":"object","additionalProperties":false,"required":["principalId","principalType"],"properties":{"principalId":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"principalType":{"type":"string","enum":["HUMAN","ORGANIZATION"]}}},"mandateId":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"onBehalfOf":{"type":"string"},"authentication":{"type":"object","additionalProperties":false,"required":["method"],"properties":{"method":{"type":"string","enum":["SESSION","API_KEY","SIGNED_REQUEST","X402_PAYER","DEVICE_ATTESTATION"]},"keyId":{"type":"string"}}}},"if":{"properties":{"requesterType":{"$ref":"#/components/schemas/TapV03_delegatedRequesterType"}}},"then":{"required":["mandateId"]}},"TapV03_requesterType":{"type":"string","enum":["HUMAN","ORGANIZATION","AI_AGENT","HUMANOID","ROBOT","AUTONOMOUS_VEHICLE","DRONE","DEVICE"]},"TapV03_rightsPolicyV03":{"type":"object","required":["policyId","version"],"properties":{"policyId":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"version":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"incidentalData":{"type":"object","additionalProperties":false,"properties":{"thirdPartyProducts":{"type":"string","enum":["REDACT","AGGREGATE_ONLY","DELIVER"]},"bystanders":{"type":"string","enum":["REDACT","DELIVER_WITH_CONSENT"]},"retainForAuditDays":{"type":"integer","minimum":0}}},"byproductData":{"type":"object","additionalProperties":false,"required":["categories","licensee","uses","exclusivity","performerConsent","requiredToClaim","performerShare"],"properties":{"categories":{"type":"array","minItems":1,"uniqueItems":true,"items":{"type":"string","enum":["TELEOP_DEMONSTRATION","ROBOT_TELEMETRY","EVAL_EPISODE","ENVIRONMENT_CAPTURE"]}},"licensee":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"uses":{"type":"array","minItems":1,"uniqueItems":true,"items":{"type":"string","enum":["TRAINING","EVALUATION","SAFETY_ANALYSIS","RESALE"]}},"exclusivity":{"type":"string","enum":["EXCLUSIVE","NON_EXCLUSIVE"]},"performerConsent":{"type":"string","enum":["PER_TASK","AT_ONBOARDING"]},"requiredToClaim":{"type":"boolean"},"performerShare":{"type":"object","additionalProperties":false,"required":["mode"],"properties":{"mode":{"type":"string","enum":["NONE","FLAT_USD_CENTS","REVENUE_SHARE_BPS"]},"value":{"type":"integer","minimum":0}},"allOf":[{"if":{"properties":{"mode":{"const":"NONE"}}},"then":{"not":{"required":["value"]}},"else":{"required":["value"]}},{"if":{"properties":{"mode":{"const":"REVENUE_SHARE_BPS"}}},"then":{"properties":{"value":{"maximum":10000}}}}]},"retentionDays":{"type":"integer","minimum":0}},"if":{"properties":{"uses":{"contains":{"const":"RESALE"}}}},"then":{"properties":{"performerConsent":{"const":"PER_TASK"}}}}}},"TapV03_riskSignal":{"description":"draft.3 §22.2. Expiry limits and status rules beyond the schema are in validateRiskSignal().","type":"object","additionalProperties":false,"required":["schema","signalId","version","subjectType","subjectCommitment","keyEpoch","reasonCode","severity","basis","reporter","status","createdAt","expiresAt","statusChangedAt"],"properties":{"schema":{"const":"teleport.risk.signal"},"signalId":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"version":{"const":"1"},"subjectType":{"$ref":"#/components/schemas/TapV03_riskSubjectType"},"subjectCommitment":{"$ref":"#/components/schemas/TapV03_hash"},"keyEpoch":{"type":"integer","minimum":0},"reasonCode":{"type":"string","enum":["MEDIA_REUSED","MEDIA_MANIPULATED","LOCATION_SPOOFED","DEVICE_EMULATED","IDENTITY_MISMATCH","CONFIRMED_FRAUD","PAYMENT_FRAUD","OTHER"]},"severity":{"type":"string","enum":["LOW","MEDIUM","HIGH"]},"basis":{"type":"string","enum":["AUTOMATED","HUMAN_REVIEWED","ADJUDICATED"]},"evidenceClaimRef":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"reporter":{"type":"object","additionalProperties":false,"required":["principalCommitment"],"properties":{"principalCommitment":{"$ref":"#/components/schemas/TapV03_hash"},"attributedName":{"$ref":"#/components/schemas/TapV03_nonEmptyString"}}},"status":{"type":"string","enum":["ACTIVE","DISPUTED","WITHDRAWN","OVERTURNED","EXPIRED"]},"createdAt":{"$ref":"#/components/schemas/TapV03_timestamp"},"expiresAt":{"$ref":"#/components/schemas/TapV03_timestamp"},"statusChangedAt":{"$ref":"#/components/schemas/TapV03_timestamp"}}},"TapV03_riskSignalParticipation":{"description":"draft.3 §22.3. Narrows the account agreement; never widens it.","type":"object","additionalProperties":false,"required":["consult","contribute"],"properties":{"consult":{"type":"boolean"},"contribute":{"type":"boolean"},"subjectTypes":{"type":"array","minItems":1,"uniqueItems":true,"items":{"$ref":"#/components/schemas/TapV03_riskSubjectType"}}},"if":{"properties":{"contribute":{"const":true}}},"then":{"properties":{"consult":{"const":true}}}},"TapV03_riskSubjectType":{"type":"string","enum":["DEVICE","CONTACT","PAYEE","MEDIA_FINGERPRINT","LOCATION_CELL","PERFORMER","SUBMITTER_ACCOUNT"]},"TapV03_sha256Hex":{"type":"string","pattern":"^[0-9a-f]{64}$"},"TapV03_singleActorType":{"type":"string","enum":["HUMAN","HUMANOID","ROBOT","AUTONOMOUS_VEHICLE","DRONE","DEVICE"]},"TapV03_site":{"type":"object","additionalProperties":false,"required":["siteRef"],"properties":{"siteRef":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"siteConsentId":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"zoneRefs":{"type":"array","uniqueItems":true,"items":{"type":"string"}}}},"TapV03_siteConsent":{"type":"object","additionalProperties":false,"required":["schema","siteConsentId","version","siteRef","grantor","grantee","status","allowedCategories","zones","privacy","issuedAt"],"properties":{"schema":{"const":"teleport.tap.site-consent"},"siteConsentId":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"version":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"siteRef":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"grantor":{"type":"object","additionalProperties":false,"required":["principalId","principalType"],"properties":{"principalId":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"principalType":{"type":"string","enum":["HUMAN","ORGANIZATION"]}}},"grantee":{"oneOf":[{"type":"object","additionalProperties":false,"required":["principalId"],"properties":{"principalId":{"$ref":"#/components/schemas/TapV03_nonEmptyString"}}},{"type":"object","additionalProperties":false,"required":["anyPrincipalWithTag"],"properties":{"anyPrincipalWithTag":{"$ref":"#/components/schemas/TapV03_nonEmptyString"}}}]},"status":{"type":"string","enum":["ACTIVE","SUSPENDED","REVOKED","EXPIRED"]},"allowedCategories":{"type":"array","minItems":1,"uniqueItems":true,"items":{"$ref":"#/components/schemas/TapV03_category"}},"allowedPerformerTypes":{"type":"array","uniqueItems":true,"items":{"$ref":"#/components/schemas/TapV03_actorType"}},"allowedCaptureCapabilities":{"type":"array","uniqueItems":true,"items":{"type":"string"}},"zones":{"type":"object","additionalProperties":false,"properties":{"allowed":{"type":"array","items":{"type":"string"}},"prohibited":{"type":"array","items":{"type":"string"}}}},"hours":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["daysOfWeek","from","to"],"properties":{"daysOfWeek":{"type":"array","minItems":1,"uniqueItems":true,"items":{"type":"integer","minimum":1,"maximum":7}},"from":{"type":"string","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$"},"to":{"type":"string","pattern":"^([01][0-9]|2[0-4]):[0-5][0-9]$"}}}},"staffParticipation":{"type":"string","enum":["PROHIBITED","ALLOWED","ALLOWED_OFF_SHIFT_ONLY"]},"safety":{"type":"object","additionalProperties":false,"required":["access"],"properties":{"access":{"type":"string","enum":["PUBLIC_AREAS_ONLY","BOUNDARY_ONLY","ESCORTED","UNRESTRICTED"]},"ppe":{"type":"array","items":{"type":"string"}},"inductionRequired":{"type":"boolean"},"hazardsNotice":{"type":"string"}}},"privacy":{"type":"object","additionalProperties":false,"required":["signageRequired","redaction"],"properties":{"signageRequired":{"type":"boolean"},"redaction":{"$ref":"#/components/schemas/TapV03_redactionRequirement"}}},"compensation":{"type":"object","additionalProperties":false,"required":["settlementAssets"],"properties":{"shareBps":{"$ref":"#/components/schemas/TapV03_bps"},"flatUsdCents":{"$ref":"#/components/schemas/TapV03_usdCents"},"settlementAssets":{"type":"array","minItems":1,"uniqueItems":true,"items":{"type":"string","enum":["USDC","FIAT"]}}}},"issuedAt":{"$ref":"#/components/schemas/TapV03_timestamp"},"expiresAt":{"$ref":"#/components/schemas/TapV03_timestamp"}}},"TapV03_standingOrder":{"type":"object","additionalProperties":false,"required":["schema","standingOrderId","version","kind","requester","status","template","dedup","createdAt"],"properties":{"schema":{"const":"teleport.tap.standing-order"},"standingOrderId":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"version":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"kind":{"type":"string","enum":["WATCH","CAMPAIGN","ESCALATION"]},"requester":{"$ref":"#/components/schemas/TapV03_requester"},"status":{"type":"string","enum":["DRAFT","ACTIVE","PAUSED","EXHAUSTED","ENDED"]},"template":{"$ref":"#/components/schemas/TapV03_taskTemplate"},"instanceFields":{"type":"array","items":{"$ref":"#/components/schemas/TapV03_jsonPointer"}},"targets":{"type":"object","additionalProperties":false,"properties":{"siteRefs":{"type":"array","items":{"type":"string"}},"zoneRefs":{"type":"array","items":{"type":"string"}}}},"watch":{"type":"object","additionalProperties":false,"required":["detectorRef","conditionRef","minConfidenceBps","minPersistMs"],"properties":{"detectorRef":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"conditionRef":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"minConfidenceBps":{"$ref":"#/components/schemas/TapV03_bps"},"minPersistMs":{"type":"integer","minimum":0},"requireHumanConfirmBelowBps":{"$ref":"#/components/schemas/TapV03_bps"}}},"campaign":{"type":"object","additionalProperties":false,"required":["slots","timezoneSource","from","to"],"properties":{"slots":{"type":"array","minItems":1,"items":{"type":"object","additionalProperties":false,"required":["localTime","windowMinutes"],"properties":{"localTime":{"type":"string","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$"},"windowMinutes":{"type":"integer","minimum":1}}}},"timezoneSource":{"type":"string","enum":["SITE","FIXED"]},"timezone":{"type":"string"},"daysOfWeek":{"type":"array","uniqueItems":true,"items":{"type":"integer","minimum":1,"maximum":7}},"from":{"$ref":"#/components/schemas/TapV03_timestamp"},"to":{"$ref":"#/components/schemas/TapV03_timestamp"},"unfilledPolicy":{"type":"object","additionalProperties":false,"properties":{"raiseByBps":{"$ref":"#/components/schemas/TapV03_bps"},"maxRaises":{"type":"integer","minimum":0},"fallbackStandingOrderId":{"type":"string"}}},"randomization":{"type":"object","additionalProperties":false,"required":["method","seedCommitment"],"properties":{"method":{"type":"string","enum":["PERMUTED_BLOCK","SIMPLE"]},"seedCommitment":{"$ref":"#/components/schemas/TapV03_hash"}}}},"if":{"properties":{"timezoneSource":{"const":"FIXED"}}},"then":{"required":["timezone"]}},"escalation":{"type":"object","additionalProperties":false,"required":["steps","entryStepId"],"properties":{"steps":{"type":"array","minItems":1,"items":{"type":"object","additionalProperties":false,"required":["stepId","template","onOutcome"],"properties":{"stepId":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"template":{"$ref":"#/components/schemas/TapV03_taskTemplate"},"onOutcome":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["when","next"],"properties":{"when":{"type":"string","pattern":"^(ACCEPTED|REJECTED|EXPIRED|CANCELLED|FINDING:[A-Z0-9_]+)$"},"next":{"$ref":"#/components/schemas/TapV03_nonEmptyString"}}}}}}},"entryStepId":{"$ref":"#/components/schemas/TapV03_nonEmptyString"}}},"dedup":{"type":"object","additionalProperties":false,"required":["key","maxOpenPerKey","cooldownSeconds"],"properties":{"key":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"maxOpenPerKey":{"type":"integer","minimum":1},"cooldownSeconds":{"type":"integer","minimum":0}}},"budget":{"type":"object","additionalProperties":false,"required":["maxTotalUsdCents"],"properties":{"maxTotalUsdCents":{"$ref":"#/components/schemas/TapV03_usdCents"},"maxPerPeriodUsdCents":{"$ref":"#/components/schemas/TapV03_usdCents"},"period":{"type":"string","enum":["DAY","WEEK","MONTH"]}}},"createdAt":{"$ref":"#/components/schemas/TapV03_timestamp"},"endsAt":{"$ref":"#/components/schemas/TapV03_timestamp"}},"allOf":[{"if":{"properties":{"kind":{"const":"WATCH"}}},"then":{"required":["watch"]}},{"if":{"properties":{"kind":{"const":"CAMPAIGN"}}},"then":{"required":["campaign"]}},{"if":{"properties":{"kind":{"const":"ESCALATION"}}},"then":{"required":["escalation"]}}]},"TapV03_taskCore":{"type":"object","properties":{"schema":{"const":"teleport.tap.physical-task"},"version":{"const":"0.3.0"},"taskSpecId":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"organizationId":{"type":"string","description":"Deprecated since v0.2. Use requester.principal."},"title":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"objective":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"instructions":{"type":"array","items":{"type":"string"}},"category":{"$ref":"#/components/schemas/TapV03_category"},"tags":{"type":"array","items":{"type":"string"}},"requestedQuantity":{"type":"integer","minimum":1},"environment":{"type":"object"},"target":{"type":"object"},"requester":{"$ref":"#/components/schemas/TapV03_requester"},"trigger":{"$ref":"#/components/schemas/TapV03_trigger"},"relations":{"$ref":"#/components/schemas/TapV03_relations"},"fulfillment":{"$ref":"#/components/schemas/TapV03_fulfillment"},"actorRequirement":{"$ref":"#/components/schemas/TapV03_actorRequirement"},"completionConditions":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/TapV03_completionCondition"}},"evidenceProfiles":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/TapV03_evidenceProfile"}},"verificationPolicy":{"type":"object","required":["policyId","version"],"properties":{"policyId":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"version":{"$ref":"#/components/schemas/TapV03_nonEmptyString"}},"additionalProperties":false},"rightsPolicy":{"$ref":"#/components/schemas/TapV03_policyRef"},"economics":{"$ref":"#/components/schemas/TapV03_economics"},"popw":{"$ref":"#/components/schemas/TapV03_popw"},"timing":{"type":"object","properties":{"decisionBy":{"$ref":"#/components/schemas/TapV03_timestamp","description":"draft.3 §20.8. Requester-facing decision SLA, counting fallbacks."}}},"safety":{"$ref":"#/components/schemas/TapV03_policyRef"},"metadata":{"type":"object"},"site":{"$ref":"#/components/schemas/TapV03_site"},"verificationScope":{"type":"object","additionalProperties":false,"required":["scopeId","version"],"properties":{"scopeId":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"version":{"$ref":"#/components/schemas/TapV03_nonEmptyString"}}},"referenceAssets":{"type":"array","items":{"$ref":"#/components/schemas/TapV03_referenceAsset"}},"custody":{"$ref":"#/components/schemas/TapV03_custodySpec"},"blinded":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/TapV03_blindedField"}},"draft":{"type":"integer","minimum":1,"description":"draft.3 §25.3. The v0.3 draft revision the spec is written against. Absent = 2."},"extraction":{"$ref":"#/components/schemas/TapV03_extractionConfig"},"riskSignals":{"$ref":"#/components/schemas/TapV03_riskSignalParticipation"},"externalRefs":{"type":"array","minItems":1,"maxItems":10,"items":{"$ref":"#/components/schemas/TapV03_externalRef"}}}},"TapV03_taskTemplate":{"description":"Task template for standing orders and holdback durability checks (§2.2, §8.2): a task without taskSpecId, trigger or relations; requester optional.","$ref":"#/components/schemas/TapV03_taskCore","required":["schema","version","title","objective","category","requestedQuantity","fulfillment","actorRequirement","completionConditions","evidenceProfiles","verificationPolicy","rightsPolicy","economics","popw"],"properties":{"taskSpecId":false,"trigger":false,"relations":false},"unevaluatedProperties":false},"TapV03_teamComposition":{"type":"object","additionalProperties":false,"required":["members","attribution"],"properties":{"members":{"type":"array","minItems":2,"items":{"type":"object","additionalProperties":false,"required":["memberRef","actorType","role","shareBps"],"properties":{"memberRef":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"actorType":{"$ref":"#/components/schemas/TapV03_singleActorType"},"role":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"shareBps":{"$ref":"#/components/schemas/TapV03_bps"},"payee":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"controlMode":{"$ref":"#/components/schemas/TapV03_controlMode"}}}},"attribution":{"type":"string","enum":["DECLARED","MEASURED","MIXED"]},"attributionEvidenceRefs":{"type":"array","items":{"type":"string"}}}},"TapV03_timestamp":{"type":"string","format":"date-time"},"TapV03_trigger":{"type":"object","additionalProperties":false,"required":["type"],"properties":{"type":{"type":"string","enum":["MANUAL","AGENT_DECISION","SENSOR_EVENT","ROBOT_EXCEPTION","SCHEDULE","TASK_OUTCOME","EXTERNAL_WEBHOOK"]},"sourceRef":{"type":"string"},"eventHash":{"$ref":"#/components/schemas/TapV03_hash"},"occurredAt":{"$ref":"#/components/schemas/TapV03_timestamp"},"standingOrderRef":{"type":"object","additionalProperties":false,"required":["standingOrderId","version","standingOrderHash"],"properties":{"standingOrderId":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"version":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"standingOrderHash":{"$ref":"#/components/schemas/TapV03_hash"},"stepId":{"type":"string"},"slot":{"type":"string"}}},"dedupKey":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"detection":{"type":"object","additionalProperties":false,"required":["detectorRef","confidenceBps","persistedMs"],"properties":{"detectorRef":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"confidenceBps":{"$ref":"#/components/schemas/TapV03_bps"},"persistedMs":{"type":"integer","minimum":0}}}}},"TapV03_usdCents":{"type":"integer","minimum":0},"TapV03_verificationScope":{"type":"object","additionalProperties":false,"required":["scopeId","version","asserts","doesNotAssert","methodsSummary"],"properties":{"scopeId":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"version":{"$ref":"#/components/schemas/TapV03_nonEmptyString"},"asserts":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/TapV03_nonEmptyString"}},"doesNotAssert":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/TapV03_nonEmptyString"}},"methodsSummary":{"$ref":"#/components/schemas/TapV03_nonEmptyString"}}},"Task":{"type":"object","properties":{"id":{"type":"string","examples":["task_k3x9m2p7q4w8e1r5"]},"title":{"type":"string"},"mode":{"type":"string","enum":["VERIFY_ONLY","DIRECT"],"description":"The spec's fulfillment.mode (the pilot runs VERIFY_ONLY and DIRECT)."},"status":{"type":"string","enum":["AWAITING_EVIDENCE","IN_REVIEW","ACCEPTED","REJECTED","CANCELLED"],"description":"AWAITING_EVIDENCE → IN_REVIEW → ACCEPTED | REJECTED, or CANCELLED."},"environment":{"type":"string","enum":["live","sandbox"],"description":"sandbox: posted with a test key (tp_test_). Nobody is alerted, nothing reaches an outside network, and its claim is SANDBOX, never anchored."},"specVersion":{"type":"string","description":"The TAP version of the posted spec: \"0.2.0\" or \"0.3.0\"."},"specHash":{"type":"string","description":"H_doc of the spec as posted (the hash the claim commits to)."},"externalRefs":{"type":"array","items":{"$ref":"#/components/schemas/TaskExternalRef"},"description":"The spec's externalRefs as posted, sensitive ones included; [] when none (always for v0.2)."},"scope":{"anyOf":[{"type":"object","properties":{"scopeId":{"type":"string"},"version":{"type":"string"},"asserts":{"type":"array","items":{"type":"string"},"description":"What an ACCEPT asserts."},"doesNotAssert":{"type":"array","items":{"type":"string"},"description":"What an ACCEPT does not assert."}},"required":["scopeId","version","asserts","doesNotAssert"]},{"type":"null"}],"description":"The task's verification scope as plain statements (TAP v0.3 §4.1); null for v0.2 tasks or when the spec names none."},"fallback":{"anyOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["DRY_RUN","LIVE"]},"status":{"type":"string","enum":["SCHEDULED","WOULD_HAVE_FIRED","FIRED","BLOCKED","NOT_NEEDED","CANCELLED"]},"nextCheckAt":{"anyOf":[{"type":"string","format":"date-time","description":"Next time the fallback engine looks; null while waiting on a decision or once resolved."},{"type":"null"}]},"reason":{"description":"The FallbackTrigger that fired, a FallbackBlockedReason, or why it wasn't needed.","type":["string","null"]},"resolvedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"wouldHaveFired":{"description":"Only when status is WOULD_HAVE_FIRED: the attempt and what it would have cost.","type":"object","properties":{"attempt":{"type":"integer"},"costUsdCents":{"type":"integer"}},"required":["attempt","costUsdCents"]}},"required":["mode","status","nextCheckAt","reason","resolvedAt"]},{"type":"null"}],"description":"Completion fallback (TAP v0.3 §20), dry-run only for now; null when the spec has none."},"declaredValueUsdCents":{"type":"integer","minimum":0,"description":"The value that depends on the proof, in cents (0 if none)."},"createdAt":{"type":"string","format":"date-time"},"evidence":{"type":"array","items":{"type":"object","properties":{"evidenceId":{"type":"string","description":"The spec's evidence requirement id this asset satisfies."},"path":{"type":"string"},"sha256":{"type":"string","description":"Hex SHA-256 of the stored bytes, computed by Teleport."},"size":{"type":"integer","description":"Bytes."},"origin":{"type":"string","description":"Evidence origin: THIRD_PARTY_SUBMITTED, ACTOR_TELEMETRY or TELEPORT_CAPTURE."}},"required":["evidenceId","path","sha256","size","origin"]},"description":"Submitted assets; [] until evidence arrives."},"verification":{"anyOf":[{"type":"object","properties":{"result":{"type":"string","enum":["NEEDS_REVIEW","ACCEPT","REJECT"]},"checks":{"type":"array","items":{"$ref":"#/components/schemas/TaskRuleCheck"}},"decidedAt":{"anyOf":[{"type":"string","format":"date-time","description":"Null while a reviewer hasn't decided."},{"type":"null"}]},"rejectionReason":{"type":["string","null"]}},"required":["result","checks","decidedAt","rejectionReason"]},{"type":"null"}],"description":"The verification run; null until evidence is submitted."},"claim":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","examples":["claim_k3x9m2p7q4w8e1r5"]},"status":{"type":"string","enum":["PENDING_BATCH","BATCHED","ANCHORED","FINAL","INVALIDATED","SANDBOX"]},"claimHash":{"description":"Set once the claim is batched.","type":["string","null"]},"batchId":{"type":["string","null"]},"proofUrl":{"type":"string","description":"Path of the public inclusion proof: /api/v1/popw/claims/{id}/proof."}},"required":["id","status","claimHash","batchId","proofUrl"]},{"type":"null"}],"description":"The PoPW claim, once the task is accepted; otherwise null."},"next":{"description":"What happens next: the evidence endpoint while AWAITING_EVIDENCE, a sentence while IN_REVIEW, else null.","type":["string","null"]}},"required":["id","title","mode","status","environment","specVersion","specHash","externalRefs","scope","fallback","declaredValueUsdCents","createdAt","evidence","verification","claim","next"],"description":"What a requester sees on a task: status, what's still needed, the decision and, once accepted, the claim."},"TaskExternalRef":{"type":"object","properties":{"system":{"type":"string","description":"Registered system id (e.g. \"landgorilla\") or \"custom:<org>\"."},"refType":{"type":"string","enum":["LOAN","DRAW","CLAIM","POLICY","WORK_ORDER","ASSET","INSPECTION_ORDER","CUSTOM"]},"value":{"type":"string"},"sensitive":{"description":"Not shown to performers; still returned to the requester.","type":"boolean"}},"required":["system","refType","value"],"description":"An id from the requester's system of record (TAP v0.3 §24), returned exactly as posted."},"TaskRouteSummary":{"type":"object","properties":{"routeId":{"type":"string","examples":["route_k3x9m2p7q4w8e1r5"]},"state":{"type":"string","enum":["OFFERING","CLAIMED","EXHAUSTED","CANCELLED","DONE"]},"tier":{"type":"integer","description":"Zero-based index of the tier being offered (-1 before the first opens)."},"tiers":{"type":"integer","description":"How many tiers the ladder has."},"tierEndsAt":{"anyOf":[{"type":"string","format":"date-time","description":"When the current tier's claim window ends."},{"type":"null"}]},"alerted":{"type":"integer","description":"Offers sent so far."},"claimedContactId":{"type":["string","null"]}},"required":["routeId","state","tier","tiers","tierEndsAt","alerted","claimedContactId"],"description":"A route's state at a glance."},"TaskRouting":{"anyOf":[{"type":"string","enum":["ME","DEFAULT"],"description":"ME: no routing (you send the capture link yourself). DEFAULT: the location's, then the org's policy."},{"type":"object","properties":{"audience":{"type":"string","enum":["ME","DEFAULT"]}},"required":["audience"]},{"type":"object","properties":{"audience":{"type":"string","enum":["PERSON","LOCATION_STAFF","ALL_STAFF","VENDORS","OPEN_NETWORK","PROVIDERS"],"description":"Who is alerted. OPEN_NETWORK is refused (422 coming_soon) until the open network is switched on. PROVIDERS offers the task to TAP Provider Protocol platforms, best lane first (needs pay and a saved address with coordinates)."},"contactIds":{"description":"Required for PERSON (and for VENDORS when vendorIds isn't sent): the org's contacts.","minItems":1,"maxItems":50,"type":"array","items":{"type":"string"}},"vendorIds":{"description":"VENDORS tiers: the vendor contacts (falls back to contactIds).","minItems":1,"maxItems":50,"type":"array","items":{"type":"string"}},"windowMinutes":{"description":"How long this tier has to claim. Default 60 for a single audience, 15 per ladder tier, 240 for OPEN_NETWORK.","type":"integer","minimum":1,"maximum":1440}},"required":["audience"]},{"type":"object","properties":{"ladder":{"minItems":1,"maxItems":6,"type":"array","items":{"type":"object","properties":{"audience":{"type":"string","enum":["PERSON","LOCATION_STAFF","ALL_STAFF","VENDORS","OPEN_NETWORK","PROVIDERS"],"description":"Who is alerted. OPEN_NETWORK is refused (422 coming_soon) until the open network is switched on. PROVIDERS offers the task to TAP Provider Protocol platforms, best lane first (needs pay and a saved address with coordinates)."},"contactIds":{"description":"Required for PERSON (and for VENDORS when vendorIds isn't sent): the org's contacts.","minItems":1,"maxItems":50,"type":"array","items":{"type":"string"}},"vendorIds":{"description":"VENDORS tiers: the vendor contacts (falls back to contactIds).","minItems":1,"maxItems":50,"type":"array","items":{"type":"string"}},"windowMinutes":{"description":"How long this tier has to claim. Default 60 for a single audience, 15 per ladder tier, 240 for OPEN_NETWORK.","type":"integer","minimum":1,"maximum":1440}},"required":["audience"]}}},"required":["ladder"]}],"description":"Who the task goes to: ME, DEFAULT (the location's or org's routing policy), one audience, or a ladder of 1–6 tiers. Omitted or null means DEFAULT. A JSON string of one of these is also accepted."},"TaskRuleCheck":{"type":"object","properties":{"check":{"type":"string","description":"The rule, e.g. EVIDENCE_PROFILE, REQUIRED_EVIDENCE_PRESENT, ACCEPTED_ORIGINS, EXECUTED_IN_WORK_WINDOW."},"passed":{"type":"boolean"},"detail":{"type":"string","description":"A sentence explaining the result."}},"required":["check","passed","detail"],"description":"One deterministic rule check from the task's verification policy. A failed check rejects the task."},"TaskWarning":{"type":"object","properties":{"code":{"type":"string","enum":["DECISION_BY_INFEASIBLE"]},"message":{"type":"string"}},"required":["code","message"],"description":"A warning (never an error) about a posted spec, such as a completion-fallback decisionBy that can't be met (TAP v0.3 §20.8)."},"Template":{"type":"object","properties":{"id":{"type":"string","examples":["shelf-restock"]},"name":{"type":"string"},"summary":{"type":"string"},"group":{"type":"string","enum":["everyday","use-case","custom"],"description":"custom: the poster writes the objective, steps and photos."},"sector":{"anyOf":[{"type":"string","enum":["Everyday checks","Stores and hospitality","Franchise locations","Gyms and studios","Clinics","Property and repairs","Logistics and custody","Robots and data","Field and energy","Community and non-profits","Home and household"]},{"type":"null"}],"description":"The picker group; null for the custom template."},"image":{"description":"URL of the template's 4:3 photo; null for custom.","type":["string","null"]},"useCaseUrl":{"description":"The template's page on teleport.eco; null for the everyday checks and custom.","type":["string","null"]},"category":{"type":"string","enum":["CUSTOM","INSPECT","OPERATE","MAINTAIN","CLEAN","REPAIR","CAPTURE","DEMONSTRATE","UNLOAD","TRANSPORT","OBSERVE"]},"objective":{"description":"What done looks like, with \"<where>\" standing for the place; null for custom (the poster sends `objective`).","type":["string","null"]},"description":{"type":"string","description":"The default note to whoever does the work (may be empty)."},"steps":{"type":"array","items":{"type":"string"}},"evidence":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"IMAGE"},"required":{"type":"boolean"},"label":{"type":"string"}},"required":["id","type","required","label"]},"description":"The photos to take."},"rules":{"type":"array","items":{"type":"string"},"description":"What the reviewer checks; each becomes a required completion condition."}},"required":["id","name","summary","group","sector","image","useCaseUrl","category","objective","description","steps","evidence","rules"],"description":"A task template: the defaults a post from it fills in."},"TemplateTaskRequest":{"type":"object","properties":{"where":{"description":"The place in words, e.g. \"Cooler 4, Store 112\". Required unless locationId, address or placeId resolves to a named place.","type":"string","maxLength":120},"locationId":{"description":"One of your saved locations (404 if not).","type":"string"},"address":{"description":"A one-off address, geocoded.","type":"string","maxLength":200},"placeId":{"description":"A place id from the places autocomplete.","type":"string","maxLength":300},"sessionToken":{"description":"The autocomplete session token that returned placeId.","type":"string","maxLength":100},"saveLocation":{"description":"Save the one-off address as a location for next time.","anyOf":[{"type":"boolean"},{"type":"string","enum":["on","true"]}]},"locationName":{"description":"Name for the saved location (default: the address's first part).","type":"string","maxLength":80},"spot":{"description":"Where at the place, e.g. \"Aisle 7\".","type":"string","maxLength":120},"accessNotes":{"description":"How to get in; overrides the saved location's details.","type":"string","maxLength":300},"title":{"description":"Default \"<template name>: <where>\". Required for the custom template.","type":"string","maxLength":120},"description":{"description":"Note to whoever does the work; replaces the template's. `notes` is the older name.","type":"string","maxLength":1000},"notes":{"description":"Older name for description.","type":"string","maxLength":1000},"priceUsdCents":{"description":"Pay for whoever does the work, in cents (default 0).","type":"integer","minimum":0,"maximum":100000},"deadline":{"type":"string","format":"date-time","description":"Must be in the future and at most 30 days away. The capture link then lasts until it (1–168 h)."},"rules":{"anyOf":[{"maxItems":8,"type":"array","items":{"type":"string","maxLength":200}},{"type":"string"}],"description":"What the reviewer checks; replaces the template's. Keep at least one. An array of strings, or one per line (bullets and blank lines dropped). At most 8, each under 200 characters."},"objective":{"description":"Custom template only (required there): what done looks like.","type":"string","maxLength":500},"steps":{"anyOf":[{"maxItems":10,"type":"array","items":{"type":"string","maxLength":200}},{"type":"string"}],"description":"Custom template only: the steps. An array of strings, or one per line (bullets and blank lines dropped). At most 10, each under 200 characters."},"photos":{"anyOf":[{"maxItems":6,"type":"array","items":{"type":"string","maxLength":80}},{"type":"string"}],"description":"Custom template only: one photo label per line; end one with \"(optional)\" to make it optional. Default: one photo of the finished work. An array of strings, or one per line (bullets and blank lines dropped). At most 6, each under 80 characters."},"declaredValueUsdCents":{"description":"The value that depends on the proof, in cents. Default 0.","type":"integer","minimum":0},"linkHours":{"description":"How long the capture link lasts without a deadline (default 72).","type":"number","minimum":1,"maximum":168},"routing":{"$ref":"#/components/schemas/TaskRouting"}},"description":"Posts a task from a template. Only `where` (or a location) is needed; the rest default to the template."},"Upload":{"type":"object","properties":{"evidenceId":{"type":"string"},"blobPathname":{"type":"string","description":"Send this as assets[].blobPathname when submitting evidence."},"uploadUrl":{"type":"string","format":"uri","description":"Presigned URL, valid for 15 minutes."},"method":{"type":"string","const":"PUT"},"headers":{"type":"object","properties":{"content-type":{"type":"string"}},"required":["content-type"],"description":"Headers to send with the PUT."}},"required":["evidenceId","blobPathname","uploadUrl","method","headers"],"description":"A presigned upload: PUT the file to uploadUrl with these headers, then submit evidence with blobPathname."},"UploadRequest":{"type":"object","properties":{"assets":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"evidenceId":{"description":"Used in the pathname (sanitised to [a-z0-9_-], 64 chars); defaults to asset<i>.","type":"string"},"contentType":{"type":"string","enum":["image/jpeg","image/png","image/webp","image/heic","video/mp4","application/json","application/pdf"]},"size":{"type":"integer","minimum":1,"maximum":26214400,"description":"Exact size in bytes; the presigned PUT allows at most this."}},"required":["contentType","size"]}}},"required":["assets"],"description":"Files to upload to private object storage, for assets too big to inline."},"VerificationEnvelope":{"type":"object","properties":{"spec":{"description":"A TAP v0.2 or v0.3 task spec with fulfillment.mode VERIFY_ONLY.","anyOf":[{"$ref":"#/components/schemas/PhysicalTaskSpecV03"},{"$ref":"#/components/schemas/PhysicalTaskSpecV02"}]},"declaredValueUsdCents":{"description":"The value in cents that depends on the proof (0 if none). Required here or as the spec's metadata.declaredValueUsdCents.","type":"integer","minimum":0}},"required":["spec"],"description":"A task spec with its declared value."},"VerificationPolicy":{"type":"object","properties":{"hash":{"type":"string","pattern":"^0x[0-9a-f]{64}$","description":"H_doc of the document (tag teleport.verification.policy): a claim's verificationPolicyHash."},"document":{"type":"object","properties":{"policyId":{"type":"string","examples":["pilot-review-v1"]},"version":{"type":"string","examples":["1.0"]},"stages":{"examples":[["RULE_CHECKS","HUMAN_REVIEW"]],"type":"array","items":{"type":"string"}},"ruleChecks":{"type":"array","items":{"type":"string"}},"humanReview":{"type":"object","properties":{"required":{"type":"boolean"},"decisions":{"type":"array","items":{"type":"string"}}},"required":["required","decisions"]},"autoReject":{"type":"string"}},"required":["policyId","version"],"additionalProperties":{},"description":"The policy document a task names in spec.verificationPolicy (by policyId and version). Fields beyond policyId and version are policy-specific."}},"required":["hash","document"],"description":"A verification policy a task may name."},"WebhookDelivery":{"type":"object","properties":{"eventId":{"type":"string","examples":["evt_k3x9m2p7q4w8e1r5"]},"status":{"type":"string","enum":["PENDING","SENDING","DELIVERED","DEAD"]},"attempts":{"type":"integer"},"lastStatus":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The HTTP status of the last attempt, if a response came back."},"error":{"description":"Why the last attempt failed.","type":["string","null"]},"nextAttemptAt":{"type":"string","format":"date-time"},"deliveredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["eventId","status","attempts","lastStatus","error","nextAttemptAt","deliveredAt"],"description":"One event's delivery to a subscription."},"WebhookSubscription":{"type":"object","properties":{"id":{"type":"string","examples":["osub_k3x9m2p7q4w8e1r5"]},"url":{"type":"string"},"eventTypes":{"anyOf":[{"type":"array","items":{"type":"string","enum":["task.published","task.capture_started","task.evidence_submitted","task.accepted","task.rejected","task.reviewed","claim.anchored","durability.resolved","task.fallback_scheduled","task.fallback_notice_sent","task.fallback_triggered","task.fallback_blocked","task.superseded","route.offered","route.claimed","route.released","route.exhausted","route.cancelled"]}},{"type":"string","const":"ALL"}],"description":"The types sent to this URL, or ALL."},"status":{"type":"string","enum":["ACTIVE","PAUSED","DISABLED"],"description":"PAUSED: deliveries failed for 3 days and nothing new is sent; replay resumes it. DISABLED: removed."},"pausedAt":{"description":"When it was paused (PAUSED only).","anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"pausedReason":{"description":"Why it was paused (PAUSED only).","type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"keys":{"type":"string","const":"/.well-known/teleport-outcome-keys.json","description":"Where the signing keys are published."}},"required":["id","url","eventTypes","status","createdAt","keys"],"description":"Where outcome events for your organization are sent. Teleport POSTs each outcome event (OutcomeEvent) to your https URL as JSON, with headers Teleport-Event-Id, Teleport-Event-Type and Teleport-Signature. Teleport-Signature is a detached compact JWS (RFC 7515 Appendix F), `<protected>..<signature>`: put base64url(body) back between the dots and check ES256 with the key named by `kid` from /.well-known/teleport-outcome-keys.json; the protected header's `teleport-ts` (Unix seconds) is the send time, so you can refuse stale replays. A 2xx counts as delivered; anything else (redirects are not followed, 10 s timeout) is retried after 1, 5 and 30 minutes, then 2, 6, 12 and 24 hours, then the delivery is DEAD. Dedup by eventId: delivery is at least once. A subscription whose deliveries keep failing for 3 days is PAUSED and the organization's owners are emailed; POST /tap/outcome-subscriptions/{id}/replay resumes it and resends what you missed."}},"responses":{"BadRequest":{"description":"The request is malformed or a field is invalid (code invalid_request).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthorized":{"description":"No valid API key or access token (codes unauthenticated, invalid_token).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"PaymentRequired":{"description":"Payment is needed before this runs (code payment_required).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"The key can't do this, or the account is waiting for approval (codes forbidden, pending_approval, agent_unclaimed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"No such resource for this key (code not_found).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Conflict":{"description":"The resource isn't in a state that allows this (code conflict).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"UnsupportedMedia":{"description":"The file type isn't accepted (code unsupported_media).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unprocessable":{"description":"Well-formed but not acceptable, such as a task spec that fails validation (code unprocessable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"RateLimited":{"description":"Too many requests: wait for Retry-After (code rate_limited).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"UpstreamError":{"description":"A system this depends on (a camera, the detector) failed or couldn't be reached (codes camera_error, camera_unreachable, detector_unavailable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotConfigured":{"description":"A dependency this needs isn't set up (code not_configured).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"externalDocs":{"description":"Developers","url":"https://teleport.eco/developers"}}