{"openapi":"3.1.0","info":{"title":"WorkPair Registry API","version":"1.0.0","description":"Identity and credential infrastructure. Every request about a person is held until the person (or a verified guardian, for a minor) approves it and chooses what is revealed. Answers are registry-signed proofs, verifiable offline against /.well-known/jwks.json.","contact":{"name":"WorkPair Incorporated","url":"https://www.workpair.io"},"license":{"name":"Proprietary. WorkPair is the intellectual property of Enemo Consulting Group, Inc.","url":"https://www.workpair.io/legal/terms"}},"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"Issuer or verifier API key (wpk_…), for servers. Full access to its workspace; changes are logged as `api_key:<prefix>`."},"scimToken":{"type":"http","scheme":"bearer","description":"A workspace’s SCIM token (wpscim_…), for its identity provider. It reaches that workspace’s directory and nothing else; changes are logged as `scim:<prefix>`."},"session":{"type":"http","scheme":"bearer","description":"Person session token (wps_…) or wp_session cookie. For a workspace, add `x-wp-tenant: <workspace id>`: you act with your member role, and changes are logged with your person id. Email-code (AAL1) sessions can read and send requests; everything else needs the device key or passkey (AAL2)."},"staff":{"type":"apiKey","in":"header","name":"x-wp-staff-token"},"oidcClient":{"type":"http","scheme":"basic","description":"Login with WorkPair client credentials (client_secret_basic): client_id and client_secret, form-urlencoded, as at the token endpoint."}},"schemas":{}},"paths":{"/.well-known/did.json":{"get":{"summary":"Registry DID document","tags":["Public"],"responses":{"200":{"description":"Default Response"}}}},"/v1/transparency/checkpoints":{"get":{"summary":"Signed event-log checkpoints (oldest first after `after`); keep copies to detect any rewrite of history","tags":["Public"],"parameters":[{"schema":{"type":"integer","minimum":0,"maximum":9007199254740991},"in":"query","name":"after","required":false},{"schema":{"type":"integer","minimum":1,"maximum":500},"in":"query","name":"limit","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/v1/transparency/checkpoints/latest":{"get":{"summary":"The latest signed event-log checkpoint","tags":["Public"],"responses":{"200":{"description":"Default Response"}}}},"/v1/transparency/checkpoints/{seq}/statement":{"get":{"summary":"The exact bytes each external anchor commits to (its SHA-256 is the anchored digest); `ots verify -f` takes this file","tags":["Public"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":9007199254740991},"in":"path","name":"seq","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/transparency/anchors/{id}/proof.ots":{"get":{"summary":"OpenTimestamps proof (.ots) of a checkpoint anchor; verify with `ots verify` or at opentimestamps.org","tags":["Public"],"parameters":[{"schema":{"type":"string","maxLength":64},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/status":{"get":{"summary":"Service status: each component now, 90 days of history, and incidents. Updated every minute.","tags":["Public"],"description":"Per component: `uptime90d` is the percentage of the monitored part of the last 90 days that was measured and operational (rounded down). `degraded90d`, `down90d` and `noData90d` are the percentages that were degraded, down, and not measured (rounded up); none of them is counted as up. A minute is not measured when the checker did not run, which includes any time WorkPair itself was unreachable. `monitoredSince` is the day of the first check; earlier days, and that day’s minutes before the first check, count for nothing. A day’s `state` is `no_data` both before monitoring began (`expectedMinutes` 0) and when 5 or more of its minutes were not measured and nothing measured was wrong (`noDataMinutes` says how many; such a day has a number in `uptime`, not null): not measured is shown as neither up nor down. Each `history` day has `uptime` (same rule), `downMinutes`, `degradedMinutes`, `noDataMinutes` and `expectedMinutes`.","responses":{"200":{"description":"Default Response"}}}},"/.well-known/security.txt":{"get":{"summary":"Security contact (RFC 9116)","tags":["Public"],"responses":{"200":{"description":"Default Response"}}}},"/.well-known/jwks.json":{"get":{"summary":"Registry public keys (proofs, OIDC, webhooks, checkpoints)","tags":["Public"],"responses":{"200":{"description":"Default Response"}}}},"/.well-known/openid-configuration":{"get":{"tags":["OIDC"],"responses":{"200":{"description":"Default Response"}}}},"/issuers/{slug}/did.json":{"get":{"summary":"Issuer DID document (keys, tier, status)","tags":["Public"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"slug","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/status-lists/{slug}/{n}":{"get":{"summary":"Signed Bitstring Status List credential","tags":["Public"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"slug","required":true},{"schema":{"type":"string"},"in":"path","name":"n","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/proofs/{hash}/status":{"get":{"summary":"Status of a Login with WorkPair proof by its hash (lowercase hex SHA-256 of JCS(proof)): valid, revoked, expired or unknown; credential proofs also carry underDispute (the source credential has an open dispute). Carries no personal data.","tags":["Public"],"parameters":[{"schema":{"type":"string","maxLength":128},"in":"path","name":"hash","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/templates":{"get":{"summary":"Registry-global credential templates","tags":["Public"],"responses":{"200":{"description":"Default Response"}}}},"/v1/trust-tiers":{"get":{"tags":["Public"],"responses":{"200":{"description":"Default Response"}}}},"/v1/price-book":{"get":{"summary":"The prices in force now","tags":["Public"],"responses":{"200":{"description":"Default Response"}}}},"/v1/legal/versions":{"get":{"summary":"Current legal document versions and URLs, what each kind of account accepts, and the previous set still accepted at sign-up during its transition window","tags":["Public"],"responses":{"200":{"description":"Default Response"}}}},"/v1/fees":{"get":{"summary":"Public fee schedule: current amounts (live from the price book), who pays, when, and scheduled changes","tags":["Public"],"responses":{"200":{"description":"Default Response"}}}},"/v1/auth/challenges":{"post":{"summary":"Start sign-up / sign-in / hand-over claim: returns a challenge to sign and emails a code","tags":["Auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"purpose":{"type":"string","enum":["signup","signin","claim"]}},"required":["email","purpose"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/persons":{"post":{"summary":"Create a WorkPair ID (device public key + challenge signature + email code)","tags":["Auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"challengeId":{"type":"string"},"publicKeyMultibase":{"type":"string"},"signature":{"type":"string"},"otp":{"type":"string","pattern":"^\\d{6}$"},"legal":{"description":"Acceptance of the current Terms and Privacy Policy (or, during the transition window, the previous set), signed with the new key over legalAcceptanceMessage(...)","type":"object","properties":{"terms":{"type":"string"},"privacy":{"type":"string"},"signature":{"type":"string"},"notices":{"description":"Conspicuous notices shown with the acceptance, e.g. [\"arbitration_class_waiver\"] (see GET /v1/legal/versions)","maxItems":10,"type":"array","items":{"type":"string","maxLength":60}}},"required":["terms","privacy","signature"]},"device":{"type":"object","properties":{"label":{"type":"string","maxLength":60},"platform":{"type":"string","enum":["web","ios","android","other"]}}},"app":{"description":"Native apps: return access and refresh tokens (`app`) instead of setting a cookie","type":"boolean"}},"required":["challengeId","publicKeyMultibase","signature","otp"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/auth/sessions":{"post":{"summary":"Sign in: device key signature + email code (AAL2), or the email code alone from any device (AAL1: read-only until the key is unlocked there)","tags":["Auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"challengeId":{"type":"string"},"wpId":{"type":"string","pattern":"^did:key:z[1-9A-HJ-NP-Za-km-z]+$","description":"Key identifier (did:key)"},"signature":{"type":"string"},"otp":{"type":"string","pattern":"^\\d{6}$"}},"required":["challengeId","otp"]}}}},"responses":{"200":{"description":"Default Response"}}},"delete":{"tags":["Auth"],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/sign-out-everywhere":{"post":{"summary":"Sign out of WorkPair and every app: ends every WorkPair session (this one too, and every app’s tokens) and sends an OpenID Connect back-channel logout to every application you signed in to with WorkPair","tags":["Auth"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/lock":{"post":{"summary":"“This wasn’t me”: lock your WorkPair ID. Every session ends, every application is signed out, and only the free ID-check recovery works until you recover it","tags":["Auth"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/auth/not-me":{"post":{"summary":"“This wasn’t me” from a new-sign-in alert: the emailed single-use link (7 days) locks the WorkPair ID, with no session needed","tags":["Auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":10,"maxLength":100}},"required":["token"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/me/key-challenge":{"post":{"summary":"Challenge for this device to prove it holds your key","tags":["Auth"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/key-proof":{"post":{"summary":"Prove this device holds your key; raises the session to AAL2","tags":["Auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"challengeId":{"type":"string"},"signature":{"type":"string"}},"required":["challengeId","signature"]}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/rekey":{"post":{"summary":"Recover a WorkPair ID after losing every device and the backup: register a new key (made on this device) and take a free ID check. If the check matches your record, the new key replaces the old one and every session is signed out.","tags":["Auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"publicKeyMultibase":{"type":"string","minLength":10,"maxLength":200},"biometricConsent":{"type":"object","properties":{"version":{"type":"string"}},"required":["version"]}},"required":["publicKeyMultibase"]}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/key-backup":{"get":{"summary":"Whether an encrypted key backup exists (and its KDF parameters)","tags":["Auth"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"put":{"summary":"Save the end-to-end encrypted key backup (needs the key on this device)","tags":["Auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"did":{"type":"string","pattern":"^did:key:z[1-9A-HJ-NP-Za-km-z]+$","description":"Key identifier (did:key)"},"kdf":{"type":"object","properties":{"alg":{"type":"string","enum":["PBKDF2-SHA256"]},"iterations":{"type":"integer","minimum":-9007199254740991,"maximum":10000000},"salt":{"type":"string","maxLength":20000,"pattern":"^[A-Za-z0-9+/_=-]+$"}},"required":["alg","iterations","salt"]},"authHash":{"type":"string","pattern":"^[0-9a-f]{64}$"},"serverShare":{"type":"string","maxLength":20000,"pattern":"^[A-Za-z0-9+/_=-]+$"},"ciphertext":{"type":"string","maxLength":20000,"pattern":"^[A-Za-z0-9+/_=-]+$"},"iv":{"type":"string","maxLength":20000,"pattern":"^[A-Za-z0-9+/_=-]+$"},"recoveryPublicKeyMultibase":{"description":"The recovery key this backup protects (it can only approve a new device); `did` must be its did:key","type":"string","maxLength":200}},"required":["did","kdf","authHash","serverShare","ciphertext","iv"]}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"delete":{"tags":["Auth"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/key-backup/unlock":{"post":{"summary":"Release the encrypted backup for a correct passphrase-derived token (5 tries, then locked 24h)","tags":["Auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"unlockToken":{"type":"string","maxLength":20000,"pattern":"^[A-Za-z0-9+/_=-]+$"}},"required":["unlockToken"]}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/share-codes":{"get":{"summary":"Your share codes (codes you gave organizations instead of your WorkPair ID)","tags":["Person"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"post":{"summary":"Make a short-lived code to give one organization instead of your WorkPair ID","tags":["Person"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string","maxLength":80},"ttlMinutes":{"type":"integer","minimum":10,"maximum":43200},"verifierId":{"type":"string"}}}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/share-codes/{id}":{"delete":{"tags":["Person"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me":{"get":{"summary":"Your record. With ?optional=1, signed-out callers get 200 and null instead of 401 (for pages that only check). With ?background=1 the call does not count as activity (a page checking on a timer). `session` says when the sign-in ends: `expiresAt`, `idleExpiresAt` and the server’s `serverTime`","tags":["Person"],"parameters":[{"schema":{"type":"string","enum":["0","1"]},"in":"query","name":"optional","required":false},{"schema":{"type":"string","enum":["0","1"]},"in":"query","name":"background","required":false}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"delete":{"summary":"Delete your WorkPair ID: credentials revoked, links and monitoring ended, personal data removed (append-only records keep a pseudonymous tombstone). Needs the key on this device and the emailed code","tags":["Privacy"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","pattern":"^\\d{6}$"}},"required":["code"]}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/passport":{"post":{"summary":"Pay the WorkPair ID setup fee and first month from the wallet (402 insufficient_funds); required before identity verification. Asks for date of birth first: under 18 is refused with nothing charged (only \"18 or older\" is recorded)","tags":["Person"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"withdrawal":{"type":"object","properties":{"region":{"type":"string","pattern":"^[A-Za-z]{2}$","description":"ISO 3166-1 alpha-2 country where the consumer lives"},"immediatePerformance":{"description":"EU/EEA/UK: \"I ask WorkPair to start my WorkPair ID and plan now, during the 14-day withdrawal period.\"","type":"boolean"},"acknowledgeLoss":{"description":"EU/EEA/UK: \"I understand that I lose my right to withdraw once the service has been fully performed (my ID check is done)…\"","type":"boolean"}},"required":["region"],"description":"The consumer right of withdrawal (Fees and Refund Policy 11.1)"}}},{"type":"null"}]}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/identity-sessions":{"post":{"summary":"Start identity verification (402 until paid, or until a free check to vouch is started)","tags":["Person"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"returnPath":{"type":"string","maxLength":100},"biometricConsent":{"description":"Agreement to the current Biometric Data Policy (required)","type":"object","properties":{"version":{"type":"string","maxLength":20}},"required":["version"]}}},{"type":"null"}]}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/identity-sessions/refresh":{"post":{"summary":"Check the latest identity verification with the provider now (after returning from the hosted flow)","tags":["Person"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/credentials":{"get":{"tags":["Person"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/credentials/{id}/acceptance":{"post":{"summary":"Accept or decline a special-category credential an organization wants to add (beliefs, unions, health)","tags":["Person"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"accept":{"type":"boolean"}},"required":["accept"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/credentials/{id}/hidden":{"post":{"summary":"Hide a credential from every verification (it stays on your record and valid)","tags":["Person"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"hidden":{"type":"boolean"}},"required":["hidden"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/credentials/{id}/annotation":{"put":{"summary":"Attach a factual note shown to verifiers next to this credential (or null to remove it)","tags":["Person"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"annotation":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["employment_ended","role_changed","name_changed","corrected_by_issuer","context_on_request","under_dispute"]},"since":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["type"]},{"type":"null"}]}},"required":["annotation"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/credentials/{id}/disputes":{"post":{"summary":"Dispute a credential with its issuer (they must answer within 30 days)","tags":["Person"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","enum":["inaccurate","incomplete","outdated","not_mine","should_be_revoked","other"]},"attributes":{"maxItems":30,"type":"array","items":{"type":"string","maxLength":64}}},"required":["reason"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/disputes":{"get":{"summary":"Disputes you (or as guardian, for your child) raised","tags":["Person"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/disputes/{id}/withdraw":{"post":{"tags":["Person"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/vouches":{"get":{"summary":"Facts you confirmed about others as a verified individual","tags":["Person"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/vouches/{credentialId}/withdraw":{"post":{"summary":"Withdraw something you confirmed (the credential is revoked and the person told)","tags":["Person"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"credentialId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/requests":{"get":{"tags":["Person"],"parameters":[{"schema":{"type":"string","enum":["pending","approved","declined","expired","cancelled"]},"in":"query","name":"status","required":false}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/requests/{id}":{"get":{"tags":["Person"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/requests/{id}/decision":{"post":{"summary":"Approve or decline; choose exactly what to reveal (signed with your WorkPair key)","tags":["Person"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"decision":{"type":"object","properties":{"requestId":{"type":"string"},"requestDigest":{"type":"string"},"decision":{"type":"string","enum":["approve","decline"]},"grants":{"type":"array","items":{"type":"object","properties":{"claimIndex":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"approve":{"type":"boolean"},"disclose":{"type":"array","items":{"type":"string"}},"allowPredicates":{"type":"boolean"}},"required":["claimIndex","approve","disclose","allowPredicates"],"additionalProperties":false}},"subject":{"type":"string","pattern":"^did:key:z[1-9A-HJ-NP-Za-km-z]+$","description":"Key identifier (did:key)"},"approver":{"type":"string","pattern":"^did:key:z[1-9A-HJ-NP-Za-km-z]+$","description":"Key identifier (did:key)"},"decidedAt":{"type":"string"}},"required":["requestId","requestDigest","decision","grants","subject","approver","decidedAt"],"additionalProperties":false},"signature":{"type":"string","maxLength":20000,"pattern":"^(z[1-9A-HJ-NP-Za-km-z]+|wa1\\.[A-Za-z0-9_-]+)$"}},"required":["decision","signature"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/notifications":{"get":{"tags":["Person"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"after","required":false}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/notifications/{id}/read":{"post":{"tags":["Person"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/subscriptions":{"get":{"summary":"Monitoring approvals you have given","tags":["Person"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/subscriptions/{id}":{"delete":{"summary":"Withdraw a monitoring approval","tags":["Person"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/connected-apps":{"get":{"summary":"Applications you signed in to with a WorkPair proof","tags":["Person"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/connected-apps/{clientId}":{"delete":{"summary":"Withdraw consent for an application: its proofs are revoked (public status flips) and the monitoring that came with them ends","tags":["Person"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"clientId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/connected-apps/{clientId}/sign-out":{"post":{"summary":"Sign out of this application: it gets an OpenID Connect back-channel logout (when it supports one). Your consent and its proofs stay; withdrawing consent is separate","tags":["Person"],"parameters":[{"schema":{"type":"string","maxLength":64},"in":"path","name":"clientId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/consent-policy":{"get":{"tags":["Person"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"put":{"summary":"Replace your auto-decline rules (signed)","tags":["Person"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"document":{"type":"object","properties":{"version":{"type":"integer","minimum":1,"maximum":9007199254740991},"subject":{"type":"string","pattern":"^did:key:z[1-9A-HJ-NP-Za-km-z]+$","description":"Key identifier (did:key)"},"mode":{"type":"string","enum":["manual","auto_verify","auto_disclose_requested"],"description":"manual: approve every request; auto_verify: yes/no only; auto_disclose_requested: reveal what is asked"},"autoIncludesSpecial":{"type":"boolean"},"autoIncludesRegulated":{"maxItems":13,"type":"array","items":{"type":"string","enum":["personhood","identity","education","license","certification","employment","income","insurance","membership","clearance","attestation","evaluation","health_compliance"]}},"tenantModes":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"tenantId":{"type":"string"},"categories":{"minItems":1,"type":"array","items":{"type":"string"}},"mode":{"type":"string","enum":["manual","auto_verify","auto_disclose_requested"]}},"required":["tenantId","categories","mode"],"additionalProperties":false}},"rules":{"type":"array","items":{"type":"object","properties":{"categories":{"type":"array","items":{"type":"string"}},"verifierTiers":{"type":"array","items":{"type":"string"}},"purposes":{"type":"array","items":{"type":"string"}},"actors":{"type":"array","items":{"type":"string","enum":["verifier","agent"]}},"effect":{"type":"string","enum":["deny"]}},"required":["categories","verifierTiers","effect"],"additionalProperties":false}},"exceptions":{"type":"array","items":{"type":"object","properties":{"verifierId":{"type":"string"},"categories":{"type":"array","items":{"type":"string"}},"effect":{"type":"string","enum":["deny"]}},"required":["verifierId","effect"],"additionalProperties":false}},"issuedAt":{"type":"string"}},"required":["version","subject","mode","rules","exceptions","issuedAt"],"additionalProperties":false},"signature":{"type":"string","maxLength":20000,"pattern":"^(z[1-9A-HJ-NP-Za-km-z]+|wa1\\.[A-Za-z0-9_-]+)$"},"signer":{"type":"string","pattern":"^did:key:z[1-9A-HJ-NP-Za-km-z]+$","description":"Key identifier (did:key)"},"confirmDeclineEverything":{"description":"Only needed while your saved settings are waiting to be signed again: true confirms that a policy declining every request is what you mean to save","type":"boolean"}},"required":["document","signature","signer"]}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/access-log":{"get":{"summary":"Every answer the registry gave about you, with the full decision trace","tags":["Person"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/export":{"get":{"summary":"Everything WorkPair holds about you: signed credentials and policies, plus account, identity checks, requests, organizations, devices, wallet, consents and the audit trail, with sources, recipients, purposes and retention. Needs your key on this device.","tags":["Person"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/issuers":{"get":{"summary":"Issuers you sign for","tags":["Person"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/children":{"post":{"summary":"Register a child (guardianship reviewed before activation)","tags":["Guardians"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"givenName":{"type":"string","minLength":1,"maxLength":64},"familyName":{"type":"string","minLength":1,"maxLength":64},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"relationship":{"type":"string","enum":["parent","legal_guardian"]},"publicKeyMultibase":{"type":"string","pattern":"^z[1-9A-HJ-NP-Za-km-z]+$","description":"Child's key, generated and held on the guardian's device until hand-over"},"evidence":{"type":"object","properties":{"documentType":{"type":"string","enum":["birth_certificate","passport","court_order","national_id"]},"documentCountry":{"type":"string","pattern":"^[A-Z]{2}$"},"documentNumber":{"type":"string","minLength":3,"maxLength":64}},"required":["documentType","documentCountry","documentNumber"]},"coppaConsent":{"type":"object","properties":{"noticeVersion":{"type":"string","description":"The Privacy Policy version shown (GET /v1/legal/versions)"},"agreed":{"type":"boolean"}},"required":["noticeVersion","agreed"],"description":"Verifiable parental consent for a child under 13: the guardian read the Privacy Policy section on children and agrees"}},"required":["givenName","familyName","dateOfBirth","relationship","publicKeyMultibase","evidence"]}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"get":{"summary":"The children you are a guardian of. With ?include=requests, also your guardianship requests still under review (`restricted: true`: the request’s status only, nothing about the child)","tags":["Guardians"],"parameters":[{"schema":{"type":"string","enum":["requests"]},"in":"query","name":"include","required":false}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/children/{id}/credentials":{"get":{"tags":["Guardians"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/children/{id}/record-consents":{"get":{"summary":"Which linked organizations may record school results for your child","tags":["Guardians"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"put":{"summary":"Allow (or stop) a linked school recording sealed test and term results for your child","tags":["Guardians"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"issuerId":{"type":"string"},"category":{"type":"string","enum":["school_results"]},"allow":{"type":"boolean"},"accepted":{"type":"boolean"}},"required":["issuerId","category","allow"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/children/{id}/access-log":{"get":{"tags":["Guardians"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/children/{id}/consent-policy":{"get":{"tags":["Guardians"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"put":{"summary":"Change the child’s sharing settings (every active guardian confirms when there are two)","tags":["Guardians"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"document":{"type":"object","properties":{"version":{"type":"integer","minimum":1,"maximum":9007199254740991},"subject":{"type":"string","pattern":"^did:key:z[1-9A-HJ-NP-Za-km-z]+$","description":"Key identifier (did:key)"},"mode":{"type":"string","enum":["manual","auto_verify","auto_disclose_requested"],"description":"manual: approve every request; auto_verify: yes/no only; auto_disclose_requested: reveal what is asked"},"autoIncludesSpecial":{"type":"boolean"},"autoIncludesRegulated":{"maxItems":13,"type":"array","items":{"type":"string","enum":["personhood","identity","education","license","certification","employment","income","insurance","membership","clearance","attestation","evaluation","health_compliance"]}},"tenantModes":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"tenantId":{"type":"string"},"categories":{"minItems":1,"type":"array","items":{"type":"string"}},"mode":{"type":"string","enum":["manual","auto_verify","auto_disclose_requested"]}},"required":["tenantId","categories","mode"],"additionalProperties":false}},"rules":{"type":"array","items":{"type":"object","properties":{"categories":{"type":"array","items":{"type":"string"}},"verifierTiers":{"type":"array","items":{"type":"string"}},"purposes":{"type":"array","items":{"type":"string"}},"actors":{"type":"array","items":{"type":"string","enum":["verifier","agent"]}},"effect":{"type":"string","enum":["deny"]}},"required":["categories","verifierTiers","effect"],"additionalProperties":false}},"exceptions":{"type":"array","items":{"type":"object","properties":{"verifierId":{"type":"string"},"categories":{"type":"array","items":{"type":"string"}},"effect":{"type":"string","enum":["deny"]}},"required":["verifierId","effect"],"additionalProperties":false}},"issuedAt":{"type":"string"}},"required":["version","subject","mode","rules","exceptions","issuedAt"],"additionalProperties":false},"signature":{"type":"string","maxLength":20000,"pattern":"^(z[1-9A-HJ-NP-Za-km-z]+|wa1\\.[A-Za-z0-9_-]+)$"},"signer":{"type":"string","pattern":"^did:key:z[1-9A-HJ-NP-Za-km-z]+$","description":"Key identifier (did:key)"},"confirmDeclineEverything":{"description":"Only needed while your saved settings are waiting to be signed again: true confirms that a policy declining every request is what you mean to save","type":"boolean"}},"required":["document","signature","signer"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/children/{id}/decision-mode":{"put":{"summary":"How requests about the child are decided: 'either' guardian alone (the other is told) or 'both' must approve. Every active guardian confirms the change.","tags":["Guardians"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","enum":["either","both"]}},"required":["mode"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/children/{id}/guardians/{guardianshipId}":{"delete":{"summary":"Remove a guardian (every active guardian confirms; a child keeps at least one)","tags":["Guardians"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true},{"schema":{"type":"string"},"in":"path","name":"guardianshipId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/children/{id}/proposals/{proposalId}/confirm":{"post":{"summary":"Confirm a co-guardian's proposal by signing its challenge with your WorkPair key","tags":["Guardians"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"signature":{"type":"string"}},"required":["signature"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true},{"schema":{"type":"string"},"in":"path","name":"proposalId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/children/{id}/proposals/{proposalId}/decline":{"post":{"summary":"Decline (or, as its proposer, withdraw) a pending proposal","tags":["Guardians"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true},{"schema":{"type":"string"},"in":"path","name":"proposalId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/children/{id}/report-guardian-death":{"post":{"summary":"Report a co-guardian's death; WorkPair checks the certificate before the guardianship ends","tags":["Guardians"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"guardianshipId":{"type":"string"},"dateOfDeath":{"type":"string"},"certificateRef":{"type":"string","minLength":3,"maxLength":120},"notes":{"type":"string","maxLength":1000}},"required":["guardianshipId","dateOfDeath","certificateRef"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/children/{id}/co-guardians":{"post":{"tags":["Guardians"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"guardianWpId":{"type":"string","description":"WorkPair ID (13 characters, case-sensitive) or did:key"},"relationship":{"type":"string","enum":["parent","legal_guardian"]}},"required":["guardianWpId","relationship"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/children/{id}/handover-code":{"post":{"summary":"One-time code the young adult uses to take over their record","tags":["Guardians"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/handover/claim":{"post":{"summary":"Young adult claims their record at majority (new device key joins the key lineage)","tags":["Guardians"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"challengeId":{"type":"string"},"publicKeyMultibase":{"type":"string"},"signature":{"type":"string"},"otp":{"type":"string","pattern":"^\\d{6}$"},"handoverCode":{"type":"string"}},"required":["challengeId","publicKeyMultibase","signature","otp","handoverCode"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers":{"post":{"summary":"Apply to become an issuer (you become its bound signer)","tags":["Issuer onboarding"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"legalName":{"type":"string","minLength":2,"maxLength":200},"domain":{"type":"string","minLength":4,"maxLength":253},"entityKind":{"type":"string","enum":["business_entity","educational_institution","government_body","regulated_entity","nonprofit"]},"jurisdiction":{"type":"string","pattern":"^[A-Z]{2}$"},"applicantEmail":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"registryRefs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"profile":{"description":"What kind of organization this is; its country also sets the jurisdiction","type":"object","properties":{"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"description":"State, province or region of registration: ISO 3166-2 code (e.g. US-DE) or its name","type":"string","minLength":1,"maxLength":100},"sector":{"type":"string","enum":["education","company","nonprofit","government"]},"legalForm":{"type":"string","maxLength":64},"education":{"type":"object","properties":{"models":{"maxItems":40,"type":"array","items":{"type":"string","maxLength":64}},"stages":{"maxItems":40,"type":"array","items":{"type":"string","maxLength":64}}},"required":["models","stages"],"additionalProperties":false},"company":{"type":"object","properties":{"ownership":{"type":"string","maxLength":64},"structure":{"type":"string","maxLength":64},"size":{"type":"string","maxLength":64}},"additionalProperties":false},"government":{"type":"object","properties":{"level":{"type":"string","maxLength":64},"bodyType":{"type":"string","maxLength":64}},"additionalProperties":false}},"additionalProperties":false},"acceptTerms":{"description":"Required: the organization accepts the Terms, Privacy Policy and Issuer Terms (current versions)","type":"boolean"}},"required":["legalName","domain","entityKind","applicantEmail"]}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}":{"get":{"tags":["Issuer onboarding"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/onboarding/domain-email":{"post":{"tags":["Issuer onboarding"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","pattern":"^\\d{6}$"}},"required":["code"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/onboarding/domain-email/resend":{"post":{"summary":"Send a new confirmation code to the address on the application (while the application is being set up and the address is not yet confirmed; at most 5 codes per application in 24 hours)","tags":["Issuer onboarding"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":false},{"type":"null"}]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/onboarding/dns-check":{"post":{"tags":["Issuer onboarding"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/onboarding/business-account":{"post":{"summary":"Create the payment account whose business verification is reused","tags":["Issuer onboarding"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/onboarding/submit":{"post":{"summary":"Run registry, sanctions and business checks; decision engine assigns a tier or routes to review","tags":["Issuer onboarding"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/onboarding/reopen":{"post":{"summary":"Reopen a rejected application to correct it and submit again (not after a sanctions match)","tags":["Issuer onboarding"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/api-keys":{"post":{"summary":"Create an issuer API key (shown once). Owners only, with their device key or passkey. Creating a key accepts the API and Developer Terms for the organization (recorded).","tags":["Issuer API"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"label":{"type":"string","maxLength":60}}},{"type":"null"}]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"get":{"summary":"API keys and who created them (secrets are never shown again)","tags":["Issuer API"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/api-keys/{keyId}":{"delete":{"summary":"Revoke an issuer API key (an owner, or the issuer’s own API key)","tags":["Issuer API"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true},{"schema":{"type":"string"},"in":"path","name":"keyId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/templates":{"get":{"tags":["Issuer API"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"post":{"summary":"Publish a template (data, not code; no free-text fields)","tags":["Issuer API"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["identity","education","license","certification","employment","income","insurance","membership","clearance","attestation","evaluation","health_compliance"]},"name":{"type":"string","minLength":1,"maxLength":120},"attributes":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"label":{"type":"string","maxLength":80},"kind":{"type":"string","enum":["enum","identifier","date","integer","number","boolean","currency","text"]},"fact":{"type":"string","description":"Fact kind; must be allowed for the credential type (facts, not opinions)"},"required":{"type":"boolean"},"disclosable":{"type":"boolean"},"enum":{"type":"array","items":{"type":"string"}},"pattern":{"type":"string"},"min":{"type":"number"},"max":{"type":"number"}},"required":["name","label","kind","fact","required","disclosable"]}},"defaultValidityDays":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"recheckIntervalDays":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"minIssuerTierRank":{"type":"integer","minimum":0,"maximum":9007199254740991},"sensitivity":{"type":"string","enum":["standard","fcra","glba","special"]},"category":{"type":"string","enum":["identity_status","education","tests_languages","employment","licenses","certifications","financial","screening_compliance","health","service_affiliation","achievements","references","reviews_results","organizations","other"]},"keywords":{"maxItems":40,"type":"array","items":{"type":"string","minLength":1,"maxLength":40}}},"required":["type","name","attributes","defaultValidityDays","recheckIntervalDays","minIssuerTierRank","sensitivity"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/credentials":{"post":{"summary":"Issue a credential (requires a bound human signer authorization)","tags":["Issuer API"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"subject":{"type":"string","pattern":"^did:key:z[1-9A-HJ-NP-Za-km-z]+$","description":"Key identifier (did:key)"},"templateId":{"type":"string"},"attributes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"validFrom":{"type":"string"},"validUntil":{"type":["string","null"]},"authorization":{"type":"object","properties":{"signer":{"type":"string","pattern":"^did:key:z[1-9A-HJ-NP-Za-km-z]+$","description":"Key identifier (did:key)"},"signature":{"type":"string","maxLength":20000,"pattern":"^(z[1-9A-HJ-NP-Za-km-z]+|wa1\\.[A-Za-z0-9_-]+)$"}},"required":["signer","signature"],"additionalProperties":false,"description":"Bound signer signature over the credential core (see SDK issuanceDigest)"},"replaces":{"type":"string"}},"required":["subject","templateId","attributes","validFrom","validUntil","authorization"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"get":{"tags":["Issuer API"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/credentials/{credentialId}/revoke":{"post":{"tags":["Issuer API"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","enum":["issuer_withdrawn","superseded","error","key_compromise","subject_request","other"]},"authorization":{"type":"object","properties":{"signer":{"type":"string","pattern":"^did:key:z[1-9A-HJ-NP-Za-km-z]+$","description":"Key identifier (did:key)"},"signature":{"type":"string","maxLength":20000,"pattern":"^(z[1-9A-HJ-NP-Za-km-z]+|wa1\\.[A-Za-z0-9_-]+)$"}},"required":["signer","signature"],"description":"Signature over \"workpair:revoke:<credentialId>:<reason>\""}},"required":["reason","authorization"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true},{"schema":{"type":"string"},"in":"path","name":"credentialId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/credentials/{credentialId}/versions":{"post":{"summary":"Publish an update as a new signed version (history kept; latest canonical)","tags":["Issuer API"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"changeType":{"type":"string","enum":["status_change","promotion","renewal","completion","correction"]},"attributes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"validFrom":{"type":"string"},"validUntil":{"type":["string","null"]},"authorization":{"type":"object","properties":{"signer":{"type":"string","pattern":"^did:key:z[1-9A-HJ-NP-Za-km-z]+$","description":"Key identifier (did:key)"},"signature":{"type":"string","maxLength":20000,"pattern":"^(z[1-9A-HJ-NP-Za-km-z]+|wa1\\.[A-Za-z0-9_-]+)$"}},"required":["signer","signature"],"additionalProperties":false,"description":"Bound signer signature over the NEW credential core"}},"required":["changeType","attributes","validFrom","validUntil","authorization"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true},{"schema":{"type":"string"},"in":"path","name":"credentialId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/credentials/bulk":{"post":{"summary":"Bulk issue/update with one batch authorization (≤1000 items)","tags":["Issuer API"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","pattern":"^did:key:z[1-9A-HJ-NP-Za-km-z]+$","description":"Key identifier (did:key)"},"templateId":{"type":"string"},"attributes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"validFrom":{"type":"string"},"validUntil":{"type":["string","null"]},"replaces":{"type":"string"},"changeType":{"type":"string","enum":["status_change","promotion","renewal","completion","correction"]},"schedule":{"type":"object","properties":{"scheduleId":{"type":"string"},"periodStart":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["scheduleId","periodStart"]}},"required":["subject","templateId","attributes","validFrom","validUntil"]}},"authorization":{"type":"object","properties":{"signer":{"type":"string","pattern":"^did:key:z[1-9A-HJ-NP-Za-km-z]+$","description":"Key identifier (did:key)"},"signature":{"type":"string","maxLength":20000,"pattern":"^(z[1-9A-HJ-NP-Za-km-z]+|wa1\\.[A-Za-z0-9_-]+)$"}},"required":["signer","signature"],"additionalProperties":false,"description":"signBatchAuthorization over the ordered item cores"}},"required":["items","authorization"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/keys/rotate":{"post":{"tags":["Issuer API"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/keys/{kid}/revoke":{"post":{"summary":"Report key compromise","tags":["Issuer API"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true},{"schema":{"type":"string"},"in":"path","name":"kid","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/organizations/setup":{"post":{"summary":"Set up an organization to confirm facts about its people (issuer), check facts people share with it (verifier), or both. One role works exactly as POST /v1/issuers or POST /v1/verifiers. Both create one new organization (one WorkPair ID) with both workspaces; shared details are given once. Needs your device key or passkey; confirming facts also needs a verified identity. Each role accepts its own documents.","tags":["Issuer onboarding","Verifier API"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"roles":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"string","enum":["issuer","verifier"]},"description":"issuer: confirm facts about your people; verifier: check facts people share with you; both: one organization with both"},"legalName":{"type":"string","minLength":2,"maxLength":200},"domain":{"description":"Required for issuer: proven by an email code and a DNS record","type":"string","minLength":4,"maxLength":253},"workEmail":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Your work email: the issuer applicant address (at the domain) and the verifier contact address"},"entityKind":{"description":"Issuer category; from the profile sector when omitted","type":"string","enum":["business_entity","educational_institution","government_body","regulated_entity","nonprofit"]},"profile":{"type":"object","properties":{"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"description":"State, province or region of registration: ISO 3166-2 code (e.g. US-DE) or its name","type":"string","minLength":1,"maxLength":100},"sector":{"type":"string","enum":["education","company","nonprofit","government"]},"legalForm":{"type":"string","maxLength":64},"education":{"type":"object","properties":{"models":{"maxItems":40,"type":"array","items":{"type":"string","maxLength":64}},"stages":{"maxItems":40,"type":"array","items":{"type":"string","maxLength":64}}},"required":["models","stages"],"additionalProperties":false},"company":{"type":"object","properties":{"ownership":{"type":"string","maxLength":64},"structure":{"type":"string","maxLength":64},"size":{"type":"string","maxLength":64}},"additionalProperties":false},"government":{"type":"object","properties":{"level":{"type":"string","maxLength":64},"bodyType":{"type":"string","maxLength":64}},"additionalProperties":false}},"additionalProperties":false},"verifier":{"description":"Required for verifier","type":"object","properties":{"declaredPurposes":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,63}$","description":"Purpose code, e.g. employment_screening"}},"purposeAttestation":{"type":"object","properties":{"accepted":{"type":"boolean","enum":[true]},"signatoryName":{"type":"string","minLength":2,"maxLength":120},"signatoryTitle":{"type":"string","minLength":2,"maxLength":120}},"required":["accepted","signatoryName","signatoryTitle"]}},"required":["declaredPurposes","purposeAttestation"]},"acceptTerms":{"type":"object","properties":{"issuer":{"type":"boolean"},"verifier":{"type":"boolean"}},"description":"Each role accepts its own documents: issuer the Terms, Privacy Policy, Organization Agreement and DPA (schools also the School Addendum); verifier the Terms, Privacy Policy, Verifier Terms, DPA and API Terms"}},"required":["roles","legalName","workEmail","acceptTerms"]}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/verifiers":{"post":{"summary":"Create a verifier workspace (returns the API key once). Signed in, you become its owner; created with no session (server signup), its first owner claims it later. Fund the wallet to activate it.","tags":["Verifier API"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"legalName":{"type":"string","minLength":2,"maxLength":200},"domain":{"type":"string"},"contactEmail":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"declaredPurposes":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,63}$","description":"Purpose code, e.g. employment_screening"}},"purposeAttestation":{"type":"object","properties":{"accepted":{"type":"boolean","enum":[true]},"signatoryName":{"type":"string","minLength":2,"maxLength":120},"signatoryTitle":{"type":"string","minLength":2,"maxLength":120}},"required":["accepted","signatoryName","signatoryTitle"]},"profile":{"description":"What kind of organization this is","type":"object","properties":{"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"description":"State, province or region of registration: ISO 3166-2 code (e.g. US-DE) or its name","type":"string","minLength":1,"maxLength":100},"sector":{"type":"string","enum":["education","company","nonprofit","government"]},"legalForm":{"type":"string","maxLength":64},"education":{"type":"object","properties":{"models":{"maxItems":40,"type":"array","items":{"type":"string","maxLength":64}},"stages":{"maxItems":40,"type":"array","items":{"type":"string","maxLength":64}}},"required":["models","stages"],"additionalProperties":false},"company":{"type":"object","properties":{"ownership":{"type":"string","maxLength":64},"structure":{"type":"string","maxLength":64},"size":{"type":"string","maxLength":64}},"additionalProperties":false},"government":{"type":"object","properties":{"level":{"type":"string","maxLength":64},"bodyType":{"type":"string","maxLength":64}},"additionalProperties":false}},"additionalProperties":false},"acceptTerms":{"description":"Required: the organization accepts the Terms, Privacy Policy and Verifier Terms (current versions)","type":"boolean"}},"required":["legalName","contactEmail","declaredPurposes","purposeAttestation"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/verifier/api-keys":{"get":{"summary":"Your workspace API keys (secrets are never shown again). Owners.","tags":["Verifier API"],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"post":{"summary":"Create another API key (shown once) for your servers. Rotate: create, switch your systems over, then revoke the old key. Owners, with their device key or passkey.","tags":["Verifier API"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"label":{"type":"string","maxLength":60}}},{"type":"null"}]}}}},"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/verifier/api-keys/{keyId}":{"delete":{"summary":"Revoke a key (not the last active one). Owners.","tags":["Verifier API"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"keyId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/verifier":{"get":{"tags":["Verifier API"],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/verifier/purposes":{"put":{"summary":"Change your declared permissible purposes. Removing is always allowed; adding needs a purposeAttestation, as at signup. Changes are audit-logged. Owners, with their device key or passkey.","tags":["Verifier API"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"declaredPurposes":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,63}$","description":"Purpose code, e.g. employment_screening"}},"purposeAttestation":{"description":"Required when adding a purpose","type":"object","properties":{"accepted":{"type":"boolean","enum":[true]},"signatoryName":{"type":"string","minLength":2,"maxLength":120},"signatoryTitle":{"type":"string","minLength":2,"maxLength":120}},"required":["accepted","signatoryName","signatoryTitle"]}},"required":["declaredPurposes"]}}}},"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/verifier/business-account":{"post":{"tags":["Verifier API"],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/verifier/refresh-tier":{"post":{"tags":["Verifier API"],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/usage":{"get":{"summary":"Metered usage this billing period","tags":["Verifier API"],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/verification-requests":{"post":{"summary":"Ask to verify claims about a person","tags":["Verifier API"],"description":"Handled per the person’s chosen mode: `manual` holds the request (202 pending) until they approve and choose what you see; `auto_verify` answers immediately with yes/no only; `auto_disclose_requested` answers immediately with the disclosable attributes you asked for. Poll GET /v1/verification-requests/{id} or receive a webhook.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"subject":{"anyOf":[{"type":"string","pattern":"^WP-[A-HJ-NP-Z2-9]{4}-[A-HJ-NP-Z2-9]{4}-[A-HJ-NP-Z2-9]{4}$","description":"Share code from the person, e.g. WP-7K3Q-9XMD-P2LA"},{"type":"string","description":"WorkPair ID (13 characters, case-sensitive) or did:key"},{"type":"string","pattern":"^[2-9A-HJ-NP-Za-km-np-z]{15}$","description":"Organization WorkPair ID (15 characters, case-sensitive)"}]},"purpose":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,63}$","description":"Purpose code, e.g. employment_screening"},"claims":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["personhood","identity","education","license","certification","employment","income","insurance","membership","clearance","attestation","evaluation","health_compliance"]},"template":{"type":"string"},"issuer":{"description":"Issuer DID to restrict to","type":"string"},"where":{"description":"Attribute predicates (answered yes/no only if the person allows)","maxItems":10,"type":"array","items":{"type":"object","properties":{"attribute":{"type":"string"},"op":{"type":"string","enum":["eq","in","gte","lte"]},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","properties":{"amountMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amountMinor","currency"]},{"type":"array","items":{"type":["string","number"]}}]}},"required":["attribute","op","value"]}},"disclose":{"description":"Attributes you ask to see (the person decides)","maxItems":20,"type":"array","items":{"type":"string"}}},"required":["type"]}},"endpointId":{"description":"Webhook endpoint notified when the person decides","type":"string"},"ttlSec":{"description":"How long the person has to respond (default 72h)","type":"integer","minimum":900,"maximum":2592000}},"required":["subject","purpose","claims"]}}}},"security":[{"apiKey":[]},{"session":[]}],"responses":{"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"get":{"summary":"Your requests, newest first (status only; proofs via GET by id). Send limit/after for pages: { data, hasMore, nextCursor }","tags":["Verifier API"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"after","required":false},{"schema":{"type":"string","enum":["pending","approved","declined","expired","cancelled"]},"in":"query","name":"status","required":false}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/proof-of-human":{"post":{"summary":"Ask whether a WorkPair ID is a verified unique human","tags":["Verifier API"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"subject":{"anyOf":[{"type":"string","pattern":"^WP-[A-HJ-NP-Z2-9]{4}-[A-HJ-NP-Z2-9]{4}-[A-HJ-NP-Z2-9]{4}$","description":"Share code from the person, e.g. WP-7K3Q-9XMD-P2LA"},{"type":"string","description":"WorkPair ID (13 characters, case-sensitive) or did:key"},{"type":"string","pattern":"^[2-9A-HJ-NP-Za-km-np-z]{15}$","description":"Organization WorkPair ID (15 characters, case-sensitive)"}]},"endpointId":{"type":"string"},"ttlSec":{"type":"integer","minimum":900,"maximum":2592000}},"required":["subject"]}}}},"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/verification-requests/{id}":{"get":{"tags":["Verifier API"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["pending","subject_unavailable","approved","declined","expired","cancelled"]},"message":{"type":"string"},"channel":{"type":"string"},"subject":{"type":"string"},"purpose":{"type":"string"},"createdAt":{"type":"string"},"expiresAt":{"type":"string"},"decidedAt":{"type":["string","null"]},"proof":{"description":"Registry-signed JWS (EdDSA); verify offline with /.well-known/jwks.json","type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"template":{"type":"string"},"result":{"type":"boolean"},"issuer":{"type":"object","properties":{"id":{"type":"string"},"tier":{"type":"string"},"status":{"type":"string"},"name":{"type":"string"},"domain":{"type":"string"},"verified":{"type":"object","properties":{"domainControl":{"type":"boolean"},"businessRegistration":{"type":"boolean"},"authorityConfirmedOutOfBand":{"type":"boolean"},"governmentRegistry":{"type":"boolean"},"accreditationRegistry":{"type":"boolean"},"sanctionsScreened":{"type":"boolean"}},"required":["domainControl","businessRegistration","authorityConfirmedOutOfBand","governmentRegistry","accreditationRegistry","sanctionsScreened"],"additionalProperties":false}},"required":["id","tier","status"],"additionalProperties":false},"validFrom":{"type":"string"},"validUntil":{"type":["string","null"]},"status":{"type":"string"},"credentialDigest":{"type":"string"},"predicates":{"type":"array","items":{"type":"object","properties":{"attribute":{"type":"string"},"op":{"type":"string"},"result":{"type":"boolean"}},"required":["attribute","op","result"],"additionalProperties":false}},"assurance":{"type":"string"},"confirmedBy":{"type":"object","properties":{"kind":{"type":"string","enum":["individual"]},"name":{"type":"string"},"assurance":{"type":"string","enum":["IAL2"]}},"required":["kind","assurance"],"additionalProperties":false},"annotation":{"type":"object","properties":{"type":{"type":"string"},"since":{"type":"string"}},"required":["type"],"additionalProperties":false},"underDispute":{"type":"boolean"},"disclosed":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["type","result"],"additionalProperties":false}},"answerPurged":{"description":"The stored answer was erased after its proof expired; keep the proof you fetched","type":"boolean"}},"required":["id","status","channel","subject","purpose","createdAt","expiresAt","decidedAt"],"additionalProperties":false}}}}}},"delete":{"tags":["Verifier API"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/subscriptions":{"post":{"summary":"Ask to monitor claims (status changes delivered by signed webhook)","tags":["Verifier API"],"description":"Creates a request with channel `subscription`; monitoring starts once approved (or immediately in an auto mode) and ends at monitorDays or when the person withdraws.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"subject":{"anyOf":[{"type":"string","pattern":"^WP-[A-HJ-NP-Z2-9]{4}-[A-HJ-NP-Z2-9]{4}-[A-HJ-NP-Z2-9]{4}$","description":"Share code from the person, e.g. WP-7K3Q-9XMD-P2LA"},{"type":"string","description":"WorkPair ID (13 characters, case-sensitive) or did:key"},{"type":"string","pattern":"^[2-9A-HJ-NP-Za-km-np-z]{15}$","description":"Organization WorkPair ID (15 characters, case-sensitive)"}]},"purpose":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,63}$","description":"Purpose code, e.g. employment_screening"},"claims":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["personhood","identity","education","license","certification","employment","income","insurance","membership","clearance","attestation","evaluation","health_compliance"]},"template":{"type":"string"},"issuer":{"description":"Issuer DID to restrict to","type":"string"},"where":{"description":"Attribute predicates (answered yes/no only if the person allows)","maxItems":10,"type":"array","items":{"type":"object","properties":{"attribute":{"type":"string"},"op":{"type":"string","enum":["eq","in","gte","lte"]},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","properties":{"amountMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amountMinor","currency"]},{"type":"array","items":{"type":["string","number"]}}]}},"required":["attribute","op","value"]}},"disclose":{"description":"Attributes you ask to see (the person decides)","maxItems":20,"type":"array","items":{"type":"string"}}},"required":["type"]}},"endpointId":{"type":"string"},"ttlSec":{"description":"How long the person has to respond (default 72h)","type":"integer","minimum":900,"maximum":2592000},"monitorDays":{"type":"integer","minimum":1,"maximum":730,"description":"Monitoring window the person is asked to approve"}},"required":["subject","purpose","claims","endpointId","monitorDays"]}}}},"security":[{"apiKey":[]},{"session":[]}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["pending","declined","subject_unavailable"],"description":"`subject_unavailable`: the person can’t answer right now; the request stays open and is answered once they can, or expires"},"expiresAt":{"type":"string"},"message":{"type":"string"}},"required":["id","status","expiresAt"],"additionalProperties":false}}}}}},"get":{"tags":["Verifier API"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"after","required":false}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/subscriptions/{id}":{"delete":{"tags":["Verifier API"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/webhook-endpoints":{"post":{"summary":"Register a signed-webhook endpoint; `events` limits it to those types (exact or `prefix.*`; omit for all)","tags":["Webhooks"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"description":{"type":"string","maxLength":200},"events":{"maxItems":50,"type":"array","items":{"type":"string","pattern":"^[a-z_]+(\\.[a-z_]+|\\.\\*)+$"}}},"required":["url"]}}}},"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"get":{"tags":["Webhooks"],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/webhook-endpoints/{id}":{"get":{"tags":["Webhooks"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"put":{"summary":"Change the URL, description or event filter, or disable/enable the endpoint (fields you omit are unchanged)","tags":["Webhooks"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"description":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"events":{"anyOf":[{"maxItems":50,"type":"array","items":{"type":"string","pattern":"^[a-z_]+(\\.[a-z_]+|\\.\\*)+$"}},{"type":"null"}]},"status":{"type":"string","enum":["active","disabled"]}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"delete":{"summary":"Delete an endpoint (pending deliveries to it are skipped)","tags":["Webhooks"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/webhook-endpoints/{id}/ping":{"post":{"summary":"Send a signed webhook.ping now and report the response","tags":["Webhooks"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/webhook-deliveries":{"get":{"tags":["Webhooks"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"after","required":false}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/webhook-deliveries/{id}/redeliver":{"post":{"summary":"Send a delivery again (same id and body)","tags":["Webhooks"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/webhook-event-types":{"get":{"summary":"Every webhook event type","tags":["Webhooks"],"responses":{"200":{"description":"Default Response"}}}},"/v1/oidc/clients":{"post":{"summary":"Register a relying party. The client secret is returned once. Redirect URIs on several hosts need a sectorIdentifierUri.","tags":["OIDC"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":80},"redirectUris":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","format":"uri"}},"idTokenSignedResponseAlg":{"type":"string","enum":["RS256","ES256","EdDSA"]},"sectorIdentifierUri":{"type":"string","format":"uri"},"requirePushedAuthorizationRequests":{"description":"Refuse plain /oidc/authorize for wp_proof: requests must be pushed to /oidc/par","type":"boolean"},"backchannelLogoutUri":{"description":"OpenID Connect Back-Channel Logout 1.0 `backchannel_logout_uri` (https): WorkPair POSTs `logout_token=<signed JWT>` here when the person signs out of this application, or of WorkPair and every application. null removes it.","anyOf":[{"type":"string","maxLength":500,"format":"uri"},{"type":"null"}]},"postLogoutRedirectUris":{"description":"Where GET /oidc/logout (end_session_endpoint) may send the browser back (`post_logout_redirect_uri`, exact match)","maxItems":10,"type":"array","items":{"type":"string","maxLength":500,"format":"uri"}},"requireAal2":{"description":"Login consent must be approved with a device key or passkey (AAL2): never answered automatically, never from an email-code session. An API key can turn it on; turning it off needs an owner or admin signed in with their device key or passkey.","type":"boolean"}},"required":["name","redirectUris"]}}}},"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"get":{"summary":"Your relying parties (secrets are never returned)","tags":["OIDC"],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/oidc/clients/{clientId}":{"get":{"tags":["OIDC"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"clientId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"put":{"summary":"Change name, redirect URIs, ID-token algorithm or sector identifier URI (the pairwise sector itself cannot change)","tags":["OIDC"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":80},"redirectUris":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","format":"uri"}},"idTokenSignedResponseAlg":{"type":"string","enum":["RS256","ES256","EdDSA"]},"sectorIdentifierUri":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"requirePushedAuthorizationRequests":{"type":"boolean"},"backchannelLogoutUri":{"description":"OpenID Connect Back-Channel Logout 1.0 `backchannel_logout_uri` (https): WorkPair POSTs `logout_token=<signed JWT>` here when the person signs out of this application, or of WorkPair and every application. null removes it.","anyOf":[{"type":"string","maxLength":500,"format":"uri"},{"type":"null"}]},"postLogoutRedirectUris":{"description":"Where GET /oidc/logout (end_session_endpoint) may send the browser back (`post_logout_redirect_uri`, exact match)","maxItems":10,"type":"array","items":{"type":"string","maxLength":500,"format":"uri"}},"requireAal2":{"description":"Login consent must be approved with a device key or passkey (AAL2): never answered automatically, never from an email-code session. An API key can turn it on; turning it off needs an owner or admin signed in with their device key or passkey.","type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"clientId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"delete":{"tags":["OIDC"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"clientId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/oidc/clients/{clientId}/logout-deliveries":{"get":{"summary":"Recent back-channel logout deliveries to this client: status, attempts and the last error (no personal data)","tags":["OIDC"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"clientId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/oidc/clients/{clientId}/rotate-secret":{"post":{"summary":"Issue a new client secret (shown once); the previous one keeps working for 24 hours","tags":["OIDC"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"clientId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/oidc/par":{"post":{"summary":"Pushed authorization request (RFC 9126). Authenticate with client_secret_basic; send the authorize parameters (and optional wp_proof_request) as a form. Returns a single-use request_uri valid for 10 minutes.","tags":["OIDC"],"responses":{"200":{"description":"Default Response"}}}},"/oidc/authorize":{"get":{"summary":"Authorization endpoint (code + PKCE S256)","tags":["OIDC"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"client_id","required":false},{"schema":{"type":"string"},"in":"query","name":"redirect_uri","required":false},{"schema":{"type":"string"},"in":"query","name":"response_type","required":false},{"schema":{"type":"string"},"in":"query","name":"scope","required":false},{"schema":{"type":"string"},"in":"query","name":"state","required":false},{"schema":{"type":"string"},"in":"query","name":"nonce","required":false},{"schema":{"type":"string"},"in":"query","name":"code_challenge","required":false},{"schema":{"type":"string"},"in":"query","name":"code_challenge_method","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"request_uri","required":false,"description":"From POST /oidc/par; every other parameter then comes from the pushed request"},{"schema":{"type":"string"},"in":"query","name":"wp_proof_request","required":false,"description":"Refused here: send it with POST /oidc/par"}],"responses":{"200":{"description":"Default Response"}}}},"/oidc/interactions/{id}":{"get":{"tags":["OIDC"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/oidc/interactions/{id}/identity-check":{"post":{"summary":"Free identity check to sign in to this application (nothing is charged to the person or the application). Adults only: send dateOfBirth (only \"18 or older\" is kept from it). Then start the check with POST /v1/me/identity-sessions.","tags":["OIDC"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}}},{"type":"null"}]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/oidc/interactions/{id}/credentials":{"get":{"summary":"Your credentials that can answer what this application asks for (values shown to you only)","tags":["OIDC"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"post":{"summary":"Choose which credentials to share with this application; becomes a second request you approve on the same screen. An empty list shares none.","tags":["OIDC"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"selections":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"ask":{"type":"integer","minimum":0,"maximum":10},"credentialId":{"type":"string","maxLength":100}},"required":["ask","credentialId"]}}},"required":["selections"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/oidc/interactions/{id}/organizations":{"get":{"summary":"Your organizations for this sign-in: those you can share (an accepted role, business-verified when required) and the others with the reason they can’t be chosen","tags":["OIDC"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/oidc/interactions/{id}/no-organization":{"post":{"summary":"You hold no organization this application accepts: returns the redirect back to it with error=access_denied and error_description=no_matching_organization","tags":["OIDC"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/oidc/interactions/{id}/request":{"post":{"summary":"Turn the sign-in into a request you approve. When the application asked for an organization, send the one you choose (organizationId, required); releaseEmail and releaseWpId share your email address or public WorkPair ID when it asked for the email or wp_id scope.","tags":["OIDC"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"organizationId":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}]},"releaseEmail":{"type":"boolean"},"releaseWpId":{"type":"boolean"}},"additionalProperties":false},{"type":"null"}]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/oidc/interactions/{id}/review-approve":{"post":{"summary":"App Review accounts only: approve this sign-in from the consent screen (signed in with the staff-issued review passcode, for an allowlisted application). The application receives a marked test identity (wp_review: true, wp_assurance: \"review\"). Then call complete.","tags":["OIDC"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/oidc/interactions/{id}/complete":{"post":{"tags":["OIDC"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/oidc/logout":{"get":{"summary":"end_session_endpoint (RP-Initiated Logout 1.0). Redirects to WorkPair’s signed-out page, which offers to sign out of WorkPair and every application and links back to post_logout_redirect_uri (registered, exact match; needs client_id or id_token_hint). Never signs anyone out by itself.","tags":["OIDC"],"parameters":[{"schema":{"type":"string","maxLength":8000},"in":"query","name":"id_token_hint","required":false},{"schema":{"type":"string","maxLength":64},"in":"query","name":"client_id","required":false},{"schema":{"type":"string","maxLength":500},"in":"query","name":"post_logout_redirect_uri","required":false},{"schema":{"type":"string","maxLength":500},"in":"query","name":"state","required":false},{"schema":{"type":"string","maxLength":500},"in":"query","name":"logout_hint","required":false},{"schema":{"type":"string","maxLength":100},"in":"query","name":"ui_locales","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/oidc/logout-requests/{id}":{"get":{"summary":"The signed-out page’s view of an end-session request: the application’s name and the return address","tags":["OIDC"],"parameters":[{"schema":{"type":"string","maxLength":64},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/oidc/interactions/{id}/cancel":{"post":{"summary":"Decline to sign in: returns the redirect back to the application with error=access_denied","tags":["OIDC"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/oidc/token":{"post":{"summary":"Token endpoint. With wp_proof granted, the response adds wp_proof (VC 2.0, eddsa-jcs-2022) and wp_proof_hash, plus wp_credential_proofs and wp_subscription_id when credentials were shared.","tags":["OIDC"],"responses":{"200":{"description":"Default Response"}}}},"/oidc/userinfo":{"get":{"tags":["OIDC"],"responses":{"200":{"description":"Default Response"}}}},"/v1/oidc/organizations/{orgId}":{"get":{"summary":"An organization as it stands now on WorkPair: the wp_org object without role (id, legal_name, domain, verified, verified_at, status, verification, profile, updated_at). Authenticate with your OIDC client credentials (client_secret_basic, as at the token endpoint). Only for an organization named in at least one live (unrevoked, unexpired) Login with WorkPair proof your client holds; otherwise 404. Rate-limited per client. Show it read-only: the organization edits it on WorkPair.","tags":["OIDC"],"parameters":[{"schema":{"type":"string","maxLength":32},"in":"path","name":"orgId","required":true}],"security":[{"oidcClient":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/link-requests":{"post":{"summary":"Ask to link a person (by legal name + email/phone; never their WorkPair ID)","tags":["Links"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"legalName":{"type":"string","minLength":2,"maxLength":200},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"phone":{"type":"string","pattern":"^\\+[1-9]\\d{7,14}$"},"relationship":{"type":"string","enum":["student","employee","licensee","member","policyholder","applicant","custom"]},"customRelationship":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,40}$"},"effectiveDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"externalRef":{"type":"string","maxLength":64},"minor":{"type":"object","properties":{"guardianEmail":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"guardian2Email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["guardianEmail"]},"sectionCode":{"type":"string","pattern":"^[A-Za-z0-9._:-]{1,64}$"}},"required":["legalName","relationship"]}}}},"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"get":{"tags":["Links"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"after","required":false},{"schema":{"type":"string","enum":["pending","approved","declined","expired","revoked"]},"in":"query","name":"status","required":false}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/link-requests/bulk":{"post":{"summary":"Roster upload: JSON {rows} or text/csv (legal_name,email,phone,relationship,effective_date,external_ref,minor_guardian_email,minor_guardian2_email,minor_date_of_birth,section)","tags":["Links"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"rows":{"minItems":1,"maxItems":5000,"type":"array","items":{"type":"object","properties":{"legalName":{"type":"string","minLength":2,"maxLength":200},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"phone":{"type":"string","pattern":"^\\+[1-9]\\d{7,14}$"},"relationship":{"type":"string","enum":["student","employee","licensee","member","policyholder","applicant","custom"]},"customRelationship":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,40}$"},"effectiveDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"externalRef":{"type":"string","maxLength":64},"minor":{"type":"object","properties":{"guardianEmail":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"guardian2Email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["guardianEmail"]},"sectionCode":{"type":"string","pattern":"^[A-Za-z0-9._:-]{1,64}$"}},"required":["legalName","relationship"]}}},"required":["rows"]},{"type":"string"}]}}}},"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/link-requests/{id}/resend":{"post":{"tags":["Links"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/link-requests/{id}":{"delete":{"tags":["Links"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/links":{"get":{"tags":["Links"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"after","required":false}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/links/{id}":{"delete":{"tags":["Links"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/invitations/{token}":{"get":{"summary":"Preview an invitation before creating a WorkPair ID","tags":["Links"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"token","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/invitations/{token}/claim":{"post":{"tags":["Links"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"token","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/link-requests":{"get":{"summary":"Organizations asking to link you (or your children)","tags":["Links"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/link-requests/{id}/decision":{"post":{"summary":"Approve or decline; optionally sign a policy accepting/editing the suggested per-organization mode, or blocking the organization","tags":["Links"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"decision":{"type":"string","enum":["approve","decline"]},"childId":{"type":"string"},"block":{"type":"boolean"},"policy":{"type":"object","properties":{"document":{"type":"object","properties":{"version":{"type":"integer","minimum":1,"maximum":9007199254740991},"subject":{"type":"string","pattern":"^did:key:z[1-9A-HJ-NP-Za-km-z]+$","description":"Key identifier (did:key)"},"mode":{"type":"string","enum":["manual","auto_verify","auto_disclose_requested"],"description":"manual: approve every request; auto_verify: yes/no only; auto_disclose_requested: reveal what is asked"},"autoIncludesSpecial":{"type":"boolean"},"autoIncludesRegulated":{"maxItems":13,"type":"array","items":{"type":"string","enum":["personhood","identity","education","license","certification","employment","income","insurance","membership","clearance","attestation","evaluation","health_compliance"]}},"tenantModes":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"tenantId":{"type":"string"},"categories":{"minItems":1,"type":"array","items":{"type":"string"}},"mode":{"type":"string","enum":["manual","auto_verify","auto_disclose_requested"]}},"required":["tenantId","categories","mode"],"additionalProperties":false}},"rules":{"type":"array","items":{"type":"object","properties":{"categories":{"type":"array","items":{"type":"string"}},"verifierTiers":{"type":"array","items":{"type":"string"}},"purposes":{"type":"array","items":{"type":"string"}},"actors":{"type":"array","items":{"type":"string","enum":["verifier","agent"]}},"effect":{"type":"string","enum":["deny"]}},"required":["categories","verifierTiers","effect"],"additionalProperties":false}},"exceptions":{"type":"array","items":{"type":"object","properties":{"verifierId":{"type":"string"},"categories":{"type":"array","items":{"type":"string"}},"effect":{"type":"string","enum":["deny"]}},"required":["verifierId","effect"],"additionalProperties":false}},"issuedAt":{"type":"string"}},"required":["version","subject","mode","rules","exceptions","issuedAt"],"additionalProperties":false},"signature":{"type":"string","maxLength":20000,"pattern":"^(z[1-9A-HJ-NP-Za-km-z]+|wa1\\.[A-Za-z0-9_-]+)$"},"signer":{"type":"string","pattern":"^did:key:z[1-9A-HJ-NP-Za-km-z]+$","description":"Key identifier (did:key)"},"confirmDeclineEverything":{"description":"Only needed while your saved settings are waiting to be signed again: true confirms that a policy declining every request is what you mean to save","type":"boolean"}},"required":["document","signature","signer"]}},"required":["decision"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/links":{"get":{"summary":"Every organization attached to your record (and your children’s)","tags":["Links"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/links/{id}":{"delete":{"tags":["Links"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/credentials/{id}/sealed":{"post":{"summary":"Seal or unseal an evaluation credential (sealed by default)","tags":["Person"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"sealed":{"type":"boolean"}},"required":["sealed"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/wallet":{"get":{"summary":"Wallet balance, recent activity and plan status","tags":["Wallet"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false}],"security":[{"session":[]},{"apiKey":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/wallet/topups":{"post":{"summary":"Top up the wallet with any amount (cents). Without `cardId`: returns a checkout URL, and the balance is credited when payment completes (`saveCard` keeps the card). With `cardId`: charges that saved card now (`succeeded` with the new balance, `processing`, or `requires_action` with a checkout URL when the bank needs the payer).","tags":["Wallet"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"returnPath":{"type":"string","maxLength":200},"saveCard":{"type":"boolean"},"cardId":{"type":"string","maxLength":100}},"required":["amount"]}}}},"security":[{"session":[]},{"apiKey":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/wallet/statement":{"get":{"summary":"Every wallet entry, newest first, paged like every list: { data, hasMore, nextCursor }; pass nextCursor back as `after` (or `cursor`) while hasMore is true","tags":["Wallet"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","maxLength":400},"in":"query","name":"after","required":false},{"schema":{"type":"string","maxLength":400},"in":"query","name":"cursor","required":false}],"security":[{"session":[]},{"apiKey":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/wallet/statement.csv":{"get":{"summary":"The full wallet ledger as CSV, for accounting","tags":["Wallet"],"security":[{"session":[]},{"apiKey":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/wallet/settings":{"get":{"summary":"Wallet settings: auto-recharge and its status (on, processing, failing, disabled after repeated failures), the low-balance alert (threshold and channels), billing details, the current auto-recharge authorization version, and whether push can reach this account","tags":["Wallet"],"security":[{"session":[]},{"apiKey":[]}],"responses":{"200":{"description":"Default Response"}}},"put":{"summary":"Change wallet settings; fields left out are kept. `autoRecharge`: charge the saved card `cardId` (default card if omitted) `amount` cents when the balance drops below `threshold`; null turns it off. Turning it on or changing it needs `authorization: {version, accepted: true}` for the current wording (409 `auto_recharge_authorization_required` returns the version and text). `lowBalanceAlert`: alert by email and/or push when the balance drops below `threshold` cents (once per dip, at most once a day); null or `enabled: false` turns it off. `billingDetails` appear on receipts.","tags":["Wallet"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"autoRecharge":{"anyOf":[{"type":"object","properties":{"threshold":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cardId":{"type":"string","maxLength":100},"authorization":{"type":"object","properties":{"version":{"type":"string","maxLength":40},"accepted":{"type":"boolean"}},"required":["version","accepted"]}},"required":["threshold","amount"]},{"type":"null"}]},"lowBalanceAlert":{"anyOf":[{"type":"object","properties":{"enabled":{"type":"boolean"},"threshold":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"channels":{"maxItems":2,"type":"array","items":{"type":"string","enum":["email","push"]}}}},{"type":"null"}]},"billingDetails":{"anyOf":[{"type":"object","properties":{"businessName":{"type":"string","maxLength":300},"address":{"type":"string","maxLength":300},"taxId":{"type":"string","maxLength":100}}},{"type":"null"}]}}}}}},"security":[{"session":[]},{"apiKey":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/wallet/auto-recharge/off":{"post":{"summary":"Turn auto-recharge off (works from any signed-in session, including one signed in with an emailed code)","tags":["Wallet"],"security":[{"session":[]},{"apiKey":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/wallet/alerts/unsubscribe":{"post":{"summary":"One-click unsubscribe from low-balance alert emails (the token comes from the email; RFC 8058 List-Unsubscribe-Post also works). Push alerts stay as chosen.","tags":["Wallet"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"token":{"type":"string","minLength":16,"maxLength":100}},"additionalProperties":{}},{"type":"null"}]}}}},"parameters":[{"schema":{"type":"string","minLength":16,"maxLength":100},"in":"query","name":"token","required":false}],"security":[],"responses":{"200":{"description":"Default Response"}}}},"/v1/wallet/cards":{"get":{"summary":"Cards on file for this account (brand, last four, expiry, default)","tags":["Wallet"],"security":[{"session":[]},{"apiKey":[]}],"responses":{"200":{"description":"Default Response"}}},"post":{"summary":"Start adding a card: returns the hosted page URL; the payer returns to `returnPath` with `card=added`","tags":["Wallet"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"returnPath":{"type":"string","maxLength":200}}},{"type":"null"}]}}}},"security":[{"session":[]},{"apiKey":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/wallet/cards/{id}":{"delete":{"summary":"Remove a card on file","tags":["Wallet"],"parameters":[{"schema":{"type":"string","maxLength":100},"in":"path","name":"id","required":true}],"security":[{"session":[]},{"apiKey":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/wallet/cards/{id}/default":{"post":{"summary":"Make a card on file the default for top-ups","tags":["Wallet"],"parameters":[{"schema":{"type":"string","maxLength":100},"in":"path","name":"id","required":true}],"security":[{"session":[]},{"apiKey":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/verifier/activate":{"post":{"summary":"Activate the workspace, paying the first month from the wallet (402 insufficient_funds). The API key, or an owner.","tags":["Verifier API"],"security":[{"session":[]},{"apiKey":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/app-store/plan":{"get":{"summary":"Whether the Apple apps can sell this person the plan, the product, their appAccountToken, and the plan they have","tags":["Person"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/app-store/plan/prepare":{"post":{"summary":"Right before the StoreKit purchase: checks the person may buy the plan (409 not_eligible with details.reason), their date of birth when no ID check has recorded their age (under 18: 403 minor_requires_guardian, nothing bought), and their consumer choices","tags":["Person"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"withdrawal":{"type":"object","properties":{"region":{"type":"string","pattern":"^[A-Za-z]{2}$","description":"ISO 3166-1 alpha-2 country where the consumer lives"},"immediatePerformance":{"description":"EU/EEA/UK: \"I ask WorkPair to start my WorkPair ID and plan now, during the 14-day withdrawal period.\"","type":"boolean"},"acknowledgeLoss":{"description":"EU/EEA/UK: \"I understand that I lose my right to withdraw once the service has been fully performed (my ID check is done)…\"","type":"boolean"}},"required":["region"],"description":"The consumer right of withdrawal (Fees and Refund Policy 11.1)"}}},{"type":"null"}]}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/app-store/transactions":{"post":{"summary":"Record a StoreKit 2 transaction of the plan subscription (its signed JWS): purchase, renewal, restore. Idempotent. The app finishes the transaction only after a 200, or after a terminal 4xx: subscription_belongs_to_another_id, wrong_account, sandbox_not_accepted, transaction_revoked, duplicate_subscription, unknown_product, wrong_app, family_shared_not_supported, invalid_transaction.","tags":["Person"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"signedTransaction":{"type":"string","minLength":20,"maxLength":64000}},"required":["signedTransaction"]}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/credential-templates":{"get":{"summary":"Standard credential types a person can ask an organization to confirm","tags":["Verification requests"],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/attestation-requests":{"get":{"summary":"Verification requests you have sent to organizations","tags":["Verification requests"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"post":{"summary":"Ask an organization to confirm a claim (free; at most 5 open and 20 per 30 days)","tags":["Verification requests"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"recipientKind":{"default":"organization","type":"string","enum":["organization","individual"]},"orgName":{"type":"string","maxLength":200},"contactEmail":{"type":"string","maxLength":254},"relationship":{"type":"string","enum":["student","employee","licensee","member","policyholder","applicant","custom"]},"templateId":{"type":"string"},"attributes":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"items":{"maxItems":3,"type":"array","items":{"type":"object","properties":{"templateId":{"type":"string"},"attributes":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["templateId"]}},"note":{"type":"string","maxLength":500}},"required":["orgName","contactEmail"]}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/attestation-requests/{id}/cancel":{"post":{"tags":["Verification requests"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/attestation-requests/{id}/resend":{"post":{"summary":"Send a fresh link (twice at most)","tags":["Verification requests"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/vouch-requests/claim":{"post":{"summary":"Take a request sent to you as a private individual, from its emailed link","tags":["Verification requests"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string"}},"required":["token"]}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/vouch-requests":{"get":{"summary":"Requests asking you, as a private individual, to confirm facts about someone","tags":["Verification requests"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/attester-verification":{"post":{"summary":"Free identity check for someone asked to confirm a fact: as an individual (vouch) or for their organization (answer a request). No setup fee; it lets you vouch or sign for the organization, not hold credentials. Adults only: send dateOfBirth (not stored); send the request link token if you signed up with another address","tags":["Verification requests"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"token":{"type":"string","minLength":8,"maxLength":128}}},{"type":"null"}]}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/vouch-requests/{id}/decline":{"post":{"tags":["Verification requests"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"reason":{"type":"string","maxLength":300}}},{"type":"null"}]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/vouch-requests/{id}/issue":{"post":{"summary":"Confirm (or correct) the facts, each signed with your own key; free","tags":["Verification requests"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"minItems":1,"maxItems":3,"type":"array","items":{"type":"object","properties":{"templateId":{"type":"string"},"attributes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"validFrom":{"type":"string"},"validUntil":{"type":["string","null"]},"signature":{"type":"string"}},"required":["templateId","attributes","validFrom","validUntil","signature"]}},"consent":{"type":"object","properties":{"accepted":{"type":"boolean","enum":[true]},"display":{"type":"string","enum":["name","verified_individual"]}},"required":["accepted","display"],"description":"Who sees your name: every organization that checks these facts (name), or only \"a verified individual\" (verified_individual)"}},"required":["items","consent"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/attestation-requests/{token}":{"get":{"summary":"Preview a request from its emailed link","tags":["Verification requests"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"token","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/attestation-requests/claim":{"post":{"summary":"Take a request from its emailed link","tags":["Verification requests"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string"}},"required":["token"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/attestation-requests":{"get":{"tags":["Verification requests"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/attestation-requests/{id}/decline":{"post":{"tags":["Verification requests"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"reason":{"type":"string","maxLength":300}}},{"type":"null"}]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true},{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/attestation-requests/{id}/issue":{"post":{"summary":"Confirm (or correct) and issue; links the person and charges no fee","tags":["Verification requests"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"attributes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"validFrom":{"type":"string"},"validUntil":{"type":["string","null"]},"authorization":{"type":"object","properties":{"signer":{"type":"string"},"signature":{"type":"string"}},"required":["signer","signature"],"additionalProperties":false}},"required":["attributes","validFrom","validUntil","authorization"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true},{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/email":{"post":{"summary":"Change your email: sends a code to the new address (needs your key on this device)","tags":["Profile"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":320}},"required":["email"]}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/email/confirm":{"post":{"summary":"Confirm the new email with its code; the old address is notified","tags":["Profile"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","pattern":"^\\d{6}$"}},"required":["code"]}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/sessions":{"get":{"summary":"Devices signed in to your WorkPair ID","tags":["Profile"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/sessions/{id}":{"delete":{"summary":"Sign out another device","tags":["Profile"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9a-f]{16}$"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/sessions/revoke-others":{"post":{"summary":"Sign out every other device","tags":["Profile"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/profile":{"get":{"tags":["Profile"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/org-profile":{"put":{"summary":"Set what kind of organization this is: country, sector, school models and stages, legal form, ownership, structure, size","tags":["Profile"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"description":"State, province or region of registration: ISO 3166-2 code (e.g. US-DE) or its name","type":"string","minLength":1,"maxLength":100},"sector":{"type":"string","enum":["education","company","nonprofit","government"]},"legalForm":{"type":"string","maxLength":64},"education":{"type":"object","properties":{"models":{"maxItems":40,"type":"array","items":{"type":"string","maxLength":64}},"stages":{"maxItems":40,"type":"array","items":{"type":"string","maxLength":64}}},"required":["models","stages"],"additionalProperties":false},"company":{"type":"object","properties":{"ownership":{"type":"string","maxLength":64},"structure":{"type":"string","maxLength":64},"size":{"type":"string","maxLength":64}},"additionalProperties":false},"government":{"type":"object","properties":{"level":{"type":"string","maxLength":64},"bodyType":{"type":"string","maxLength":64}},"additionalProperties":false}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/contact-email":{"post":{"summary":"Change the contact mailbox (must be at the verified domain): sends a code to it","tags":["Profile"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":320}},"required":["email"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/contact-email/confirm":{"post":{"tags":["Profile"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","pattern":"^\\d{6}$"}},"required":["code"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/signers":{"post":{"summary":"Invite a person by their WorkPair ID (as a signer, or another role); it reaches their WorkPair inbox and is effective only when they accept with their own key","tags":["Profile"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"workpairId":{"type":"string","minLength":13,"maxLength":40,"description":"The person’s 13-character WorkPair ID (case-sensitive; spaces and dashes are ignored)"},"role":{"type":"string","enum":["owner","admin","signer","teacher","viewer","billing"]}},"required":["workpairId"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/signers/{personId}":{"delete":{"summary":"Remove a signer (at least one must remain), or cancel an invitation by the WorkPair ID it went to","tags":["Profile"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true},{"schema":{"type":"string"},"in":"path","name":"personId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/signer-invitations":{"get":{"summary":"Issuers inviting you to join them (deprecated: use /v1/me/workspace-invitations, which covers every kind of workspace)","tags":["Profile"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/signer-invitations/{issuerId}/accept":{"post":{"tags":["Profile"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/signer-invitations/{issuerId}/decline":{"post":{"tags":["Profile"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/verifier/profile":{"get":{"tags":["Profile"],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/verifier/org-profile":{"put":{"summary":"Set what kind of organization this is: country, sector, legal form, ownership, structure, size","tags":["Profile"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"description":"State, province or region of registration: ISO 3166-2 code (e.g. US-DE) or its name","type":"string","minLength":1,"maxLength":100},"sector":{"type":"string","enum":["education","company","nonprofit","government"]},"legalForm":{"type":"string","maxLength":64},"education":{"type":"object","properties":{"models":{"maxItems":40,"type":"array","items":{"type":"string","maxLength":64}},"stages":{"maxItems":40,"type":"array","items":{"type":"string","maxLength":64}}},"required":["models","stages"],"additionalProperties":false},"company":{"type":"object","properties":{"ownership":{"type":"string","maxLength":64},"structure":{"type":"string","maxLength":64},"size":{"type":"string","maxLength":64}},"additionalProperties":false},"government":{"type":"object","properties":{"level":{"type":"string","maxLength":64},"bodyType":{"type":"string","maxLength":64}},"additionalProperties":false}},"additionalProperties":false}}}},"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/verifier/confirm-contact":{"post":{"summary":"Confirm the contact email with the code from the welcome email (needed before the workspace activates)","tags":["Profile"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","pattern":"^\\d{6}$"}},"required":["code"]}}}},"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/verifier/confirm-contact/resend":{"post":{"summary":"Send a new contact-email confirmation code","tags":["Profile"],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/verifier/contact-email":{"post":{"summary":"Change the contact email: sends a code to the new address. Owners.","tags":["Profile"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":320}},"required":["email"]}}}},"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/verifier/contact-email/confirm":{"post":{"tags":["Profile"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","pattern":"^\\d{6}$"}},"required":["code"]}}}},"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/schedules":{"get":{"summary":"Review schedules","tags":["Issuer API"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"post":{"summary":"Create a review schedule","tags":["Issuer API"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"templateId":{"type":"string"},"cadence":{"type":"string","enum":["monthly","quarterly","semiannual","annual"]},"relationship":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}]},"personWpIds":{"anyOf":[{"maxItems":5000,"type":"array","items":{"type":"string","description":"WorkPair ID (13 characters, case-sensitive) or did:key"}},{"type":"null"}]},"anchorDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"status":{"type":"string","enum":["active","paused"]}},"required":["name","templateId","cadence","anchorDate"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/schedules/{scheduleId}":{"put":{"summary":"Change a review schedule (any subset of fields; status pauses or resumes it)","tags":["Issuer API"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"templateId":{"type":"string"},"cadence":{"type":"string","enum":["monthly","quarterly","semiannual","annual"]},"relationship":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}]},"personWpIds":{"anyOf":[{"maxItems":5000,"type":"array","items":{"type":"string","description":"WorkPair ID (13 characters, case-sensitive) or did:key"}},{"type":"null"}]},"anchorDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"status":{"type":"string","enum":["active","paused"]}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true},{"schema":{"type":"string"},"in":"path","name":"scheduleId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"delete":{"summary":"Archive a review schedule","tags":["Issuer API"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true},{"schema":{"type":"string"},"in":"path","name":"scheduleId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/due":{"get":{"summary":"Who is due a record for each schedule’s latest ended period, with attributes the schedule implies","tags":["Issuer API"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/disputes":{"get":{"summary":"Disputes people raised about credentials you issued (open first, by due date)","tags":["Issuer"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/disputes/{disputeId}/resolve":{"post":{"summary":"Answer a dispute: corrected (after publishing a corrected version or revoking) or upheld (with a reason)","tags":["Issuer"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"outcome":{"type":"string","enum":["corrected","upheld"]},"reason":{"type":"string","enum":["verified_accurate","matches_records","outside_our_records","other"]}},"required":["outcome"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true},{"schema":{"type":"string"},"in":"path","name":"disputeId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/vouch-disputes":{"get":{"summary":"Disputes about things you confirmed as a verified individual (open first)","tags":["Person"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/vouch-disputes/{id}/resolve":{"post":{"summary":"Answer a dispute about something you confirmed: upheld (with a reason), or corrected by withdrawing it or signing corrected facts","tags":["Person"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"outcome":{"type":"string","enum":["corrected","upheld"]},"reason":{"type":"string","enum":["verified_accurate","matches_records","outside_our_records","other"]},"action":{"type":"string","enum":["withdraw","new_version"]},"correction":{"type":"object","properties":{"attributes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"validFrom":{"type":"string"},"validUntil":{"type":["string","null"]},"signature":{"type":"string"}},"required":["attributes","validFrom","validUntil","signature"]}},"required":["outcome"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/legal-acceptances":{"post":{"summary":"Accept the current Terms and Privacy Policy (sign with your key when this device holds it)","tags":["Privacy"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"signature":{"type":"string"},"notices":{"maxItems":10,"type":"array","items":{"type":"string","maxLength":60}}}},{"type":"null"}]}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/deletion-code":{"post":{"summary":"Email a code to confirm deleting your WorkPair ID (needs the key on this device)","tags":["Privacy"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/plan/cancel":{"post":{"summary":"Cancel your monthly plan at the end of the paid period","tags":["Privacy"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/plan/resume":{"post":{"summary":"Keep your plan after scheduling a cancellation, or restart it once it has ended (a restart is a new purchase: send `withdrawal`)","tags":["Privacy"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"withdrawal":{"type":"object","properties":{"region":{"type":"string","pattern":"^[A-Za-z]{2}$","description":"ISO 3166-1 alpha-2 country where the consumer lives"},"immediatePerformance":{"description":"EU/EEA/UK: \"I ask WorkPair to start my WorkPair ID and plan now, during the 14-day withdrawal period.\"","type":"boolean"},"acknowledgeLoss":{"description":"EU/EEA/UK: \"I understand that I lose my right to withdraw once the service has been fully performed (my ID check is done)…\"","type":"boolean"}},"required":["region"],"description":"The consumer right of withdrawal (Fees and Refund Policy 11.1)"}}},{"type":"null"}]}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/plan/withdrawal":{"get":{"summary":"Whether you can still withdraw from your purchase (14 days, EU/EEA/UK consumers) and what would be refunded","tags":["Privacy"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/plan/withdraw":{"post":{"summary":"Withdraw within 14 days: the unused part of the plan (and the setup fee, if the ID check isn’t done) is refunded to the original payment method and the plan ends","tags":["Privacy"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/children/{id}":{"delete":{"summary":"Delete a child’s record (with two guardians, the other confirms)","tags":["Guardians"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/handover/claim-by-identity":{"post":{"summary":"Young adult claims the record kept for them without a hand-over code: name and date of birth on the record, then a free identity check that must match it","tags":["Guardians"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"challengeId":{"type":"string"},"publicKeyMultibase":{"type":"string"},"signature":{"type":"string"},"otp":{"type":"string","pattern":"^\\d{6}$"},"legalName":{"type":"string","minLength":2,"maxLength":200},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["challengeId","publicKeyMultibase","signature","otp","legalName","dateOfBirth"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/verifier/legal-acceptances":{"post":{"summary":"Accept the current Terms, Privacy Policy, Verifier Terms, DPA and API Terms (including the arbitration agreement and class-action waiver in the Verifier Terms)","tags":["Privacy"],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/verifier/legal":{"get":{"summary":"Documents this workspace still has to accept, and the date after which changes stop until it does","tags":["Privacy"],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/verifier/plan/cancel":{"post":{"summary":"Cancel the workspace plan at the end of the paid period","tags":["Privacy"],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/verifier/plan/resume":{"post":{"tags":["Privacy"],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/verifier/close":{"post":{"summary":"Close the workspace: keys revoked, monitoring ended, billing stopped, remaining balance refunded","tags":["Privacy"],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/legal-acceptances":{"post":{"summary":"Accept the current Terms, Privacy Policy, Organization Agreement and DPA for the organization (plus the School Addendum for schools, and the API Terms once it has API keys), including the arbitration agreement and class-action waiver","tags":["Privacy"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"notices":{"maxItems":10,"type":"array","items":{"type":"string","maxLength":60}}}},{"type":"null"}]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/legal":{"get":{"summary":"Documents the organization still has to accept, and the date after which changes stop until it does","tags":["Privacy"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/close":{"post":{"summary":"Close the organization: no further issuance, keys revoked, links ended, balance refunded","tags":["Privacy"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/subprocessor-changes":{"get":{"summary":"Announced subprocessor changes (DPA 7.2: at least 30 days’ notice of a new subprocessor)","tags":["Public"],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/identity-appeals":{"post":{"summary":"Ask a person at WorkPair to review a failed identity check or a duplicate finding (Privacy Policy 5.2)","tags":["Person"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"verificationId":{"type":"string"},"statement":{"type":"string","minLength":10,"maxLength":2000}},"required":["statement"]}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"get":{"summary":"Your requests for human review of an identity check","tags":["Person"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/biometric-consent/withdraw":{"post":{"summary":"Withdraw biometric consent: a check in progress is cancelled and Stripe Identity deletes its data (Biometric Data Policy 10.2)","tags":["Person"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/k12/stop":{"post":{"summary":"Stop using the K-12 features: results permissions lapse now, classes are archived, rosters and classes are deleted within 30 days (School Addendum §12)","tags":["Issuer API"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/members":{"get":{"summary":"Members, their roles and classes, and open invitations","tags":["Organization"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"post":{"summary":"Invite a member by their WorkPair ID (ask them to create a WorkPair account and share it); effective when they accept with their own key","tags":["Organization"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"workpairId":{"type":"string","minLength":13,"maxLength":40,"description":"The person’s 13-character WorkPair ID (case-sensitive; spaces and dashes are ignored)"},"role":{"type":"string","enum":["owner","admin","analyst","signer","teacher","billing","viewer","member"]},"sectionIds":{"maxItems":200,"type":"array","items":{"type":"string"}}},"required":["workpairId","role"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/me":{"get":{"summary":"Your role here and, for teachers, your classes","tags":["Organization"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/members/{personId}":{"put":{"summary":"Change a member’s role (an owner always remains)","tags":["Organization"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","enum":["owner","admin","analyst","signer","teacher","billing","viewer","member"]}},"required":["role"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true},{"schema":{"type":"string"},"in":"path","name":"personId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"delete":{"summary":"Remove a member or cancel their invitation (the last owner stays)","tags":["Organization"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true},{"schema":{"type":"string"},"in":"path","name":"personId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/member-invitations/{workpairId}":{"delete":{"summary":"Cancel an invitation, by the WorkPair ID it went to","tags":["Organization"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true},{"schema":{"type":"string","maxLength":64},"in":"path","name":"workpairId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/sections":{"get":{"summary":"Classes (teachers see their own)","tags":["Classes"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"post":{"tags":["Classes"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","pattern":"^[A-Za-z0-9._:-]{1,64}$"},"name":{"type":"string","minLength":1,"maxLength":120},"term":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}]},"grade":{"anyOf":[{"type":"string","maxLength":30},{"type":"null"}]}},"required":["code","name"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/sections/{sectionId}":{"put":{"tags":["Classes"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"term":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}]},"grade":{"anyOf":[{"type":"string","maxLength":30},{"type":"null"}]},"status":{"type":"string","enum":["active","archived"]}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true},{"schema":{"type":"string"},"in":"path","name":"sectionId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/sections/{sectionId}/teachers":{"post":{"summary":"Assign a member to the class (people invited by WorkPair ID get their classes when invited)","tags":["Classes"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"personId":{"type":"string"}},"required":["personId"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true},{"schema":{"type":"string"},"in":"path","name":"sectionId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"delete":{"tags":["Classes"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"personId","required":true},{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true},{"schema":{"type":"string"},"in":"path","name":"sectionId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/sections/{sectionId}/roster":{"get":{"tags":["Classes"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true},{"schema":{"type":"string"},"in":"path","name":"sectionId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/sections/{sectionId}/students":{"post":{"summary":"Put an existing student (link request) on the class","tags":["Classes"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"linkRequestId":{"type":"string"}},"required":["linkRequestId"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true},{"schema":{"type":"string"},"in":"path","name":"sectionId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/sections/{sectionId}/students/{linkRequestId}":{"delete":{"tags":["Classes"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true},{"schema":{"type":"string"},"in":"path","name":"sectionId","required":true},{"schema":{"type":"string"},"in":"path","name":"linkRequestId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/sponsorship":{"get":{"summary":"Whether families are sponsored, the school plan year and seats used","tags":["Organization"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"put":{"summary":"Sponsor families (charges the school plan for the year; 402 if the wallet can’t cover it) or switch to standard family prices","tags":["Organization"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","enum":["sponsored","family_pays"]}},"required":["mode"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/oneroster":{"post":{"summary":"Import a OneRoster 1.1/1.2 CSV bundle (files by name, or a base64 zip). dryRun previews; re-importing changes nothing.","tags":["Classes"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"files":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"zipBase64":{"type":"string"},"dryRun":{"default":true,"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/memberships":{"get":{"summary":"Organizations you belong to, and your role","tags":["Organization"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/member-verification":{"post":{"summary":"Free identity check for someone who accepted an invitation to an organization","tags":["Organization"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/founder-mailbox":{"post":{"summary":"Founding an organization: email a code to your work address at its domain (unlocks the free identity check)","tags":["Organization"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string"}},"required":["email"]}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/founder-mailbox/confirm":{"post":{"summary":"Confirm the code sent to your work address","tags":["Organization"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"}},"required":["code"]}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/sponsored-verification":{"post":{"summary":"Free identity check for a parent whose child’s school sponsors WorkPair","tags":["Guardians"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/link-requests/{id}/accept-for-child":{"post":{"summary":"Accept a school’s invitation for a child its roster names: a match creates the child’s record, guardianship and link at once; otherwise it goes to review","tags":["Guardians"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"givenName":{"type":"string","minLength":1,"maxLength":100},"familyName":{"type":"string","minLength":1,"maxLength":100},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"relationship":{"type":"string","enum":["parent","legal_guardian"]},"publicKeyMultibase":{"type":"string"},"coppaConsent":{"type":"object","properties":{"noticeVersion":{"type":"string","description":"The Privacy Policy version shown (GET /v1/legal/versions)"},"agreed":{"type":"boolean"}},"required":["noticeVersion","agreed"],"description":"Verifiable parental consent for a child under 13: the guardian read the Privacy Policy section on children and agrees"}},"required":["givenName","familyName","dateOfBirth","relationship"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/orgs/{orgId}/did.json":{"get":{"summary":"Organization DID document (a credential subject; no keys)","tags":["Public"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"orgId","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/organizations/{orgId}":{"get":{"summary":"Look up an organization by its WorkPair ID","tags":["Organizations"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"orgId","required":true,"description":"Organization WorkPair ID (15 characters, case-sensitive)"}],"responses":{"200":{"description":"Default Response"}}}},"/v1/org-templates":{"get":{"summary":"Credential types about organizations (B2B), for claim requests and issuance","tags":["Organizations"],"responses":{"200":{"description":"Default Response"}}}},"/v1/org-claims/{token}":{"get":{"summary":"Preview a claim request sent to your organization (details after sign-in)","tags":["Organizations"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"token","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/org-record":{"get":{"summary":"Your organization: its permanent WorkPair ID, DID and identities","tags":["Organizations"],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/org-record/credentials":{"get":{"summary":"Credentials about your organization","tags":["Organizations"],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/org-record/credentials/{id}/accept":{"post":{"summary":"Accept a credential about your organization (administrators)","tags":["Organizations"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/org-record/credentials/{id}/decline":{"post":{"summary":"Decline a credential about your organization (administrators)","tags":["Organizations"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/org-record/credentials/{id}/hide":{"post":{"summary":"Hide a credential about your organization (administrators)","tags":["Organizations"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/org-record/credentials/{id}/unhide":{"post":{"summary":"Unhide a credential about your organization (administrators)","tags":["Organizations"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/org-record/credentials/{id}/dispute":{"post":{"summary":"Dispute a credential about your organization; the issuer answers within 30 days (administrators)","tags":["Organizations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","enum":["inaccurate","incomplete","outdated","not_mine","should_be_revoked","other"]},"attributes":{"maxItems":30,"type":"array","items":{"type":"string","maxLength":64}}},"required":["reason"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/org-record/disputes":{"get":{"summary":"Disputes your organization raised, newest first","tags":["Organizations"],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/org-record/disputes/{id}/withdraw":{"post":{"summary":"Withdraw an open dispute (administrators)","tags":["Organizations"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/org-record/credentials/{id}/annotation":{"put":{"summary":"Add (or clear, with null) a factual note shown to verifiers next to a credential about your organization (administrators)","tags":["Organizations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"annotation":{"anyOf":[{"type":"object","properties":{"type":{"type":"string"},"since":{"type":"string"}},"required":["type"]},{"type":"null"}]}},"required":["annotation"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/org-record/consent":{"get":{"tags":["Organizations"],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"put":{"summary":"How verification requests about your organization are answered (signed by an administrator’s key)","tags":["Organizations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","enum":["manual","auto_verify"]},"version":{"type":"integer","minimum":1,"maximum":9007199254740991},"issuedAt":{"type":"string"},"signer":{"type":"string"},"signature":{"type":"string"}},"required":["mode","version","issuedAt"]}}}},"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/org-record/verification-requests":{"get":{"summary":"Verification requests about your organization","tags":["Organizations"],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/org-record/verification-requests/{id}/decision":{"post":{"summary":"Approve (choosing what each claim reveals) or decline a verification request about your organization","tags":["Organizations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"decision":{"type":"string","enum":["approve","decline"]},"claims":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"claimIndex":{"type":"integer","minimum":0,"maximum":9007199254740991},"approve":{"type":"boolean"},"disclose":{"maxItems":20,"type":"array","items":{"type":"string"}}},"required":["claimIndex","approve"]}}},"required":["decision"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/org-record/access-log":{"get":{"summary":"Who verified your organization, when and for what","tags":["Organizations"],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/org-record/claims":{"get":{"summary":"Requests your organization sent asking others to confirm a claim","tags":["Organizations"],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"post":{"summary":"Ask another organization (by WorkPair ID, or a contact’s email) or a private individual (name and email) to confirm a claim about yours. Free; up to 20 open and 100 per 30 days","tags":["Organizations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"recipientKind":{"type":"string","enum":["organization","individual"]},"recipientOrgId":{"type":"string","description":"Organization WorkPair ID (15 characters, case-sensitive)"},"recipientName":{"type":"string","maxLength":200},"contactEmail":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"templateId":{"type":"string"},"attributes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"note":{"type":"string","maxLength":500}},"required":["templateId"]}}}},"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/org-record/claims/{id}/cancel":{"post":{"tags":["Organizations"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/org-claims":{"get":{"summary":"Claim requests from organizations for yours to confirm","tags":["Organizations"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/org-claims/claim":{"post":{"summary":"Take a claim request emailed to someone at your organization","tags":["Organizations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string"}},"required":["token"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/org-claims/{id}/decline":{"post":{"tags":["Organizations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","maxLength":300}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true},{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/org-claims/{id}/issue":{"post":{"summary":"Confirm the claim: issue it (corrected if needed) to the requesting organization’s record. Free","tags":["Organizations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"attributes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"validFrom":{"type":"string"},"validUntil":{"type":["string","null"]},"authorization":{"type":"object","properties":{"signer":{"type":"string"},"signature":{"type":"string"}},"required":["signer","signature"]}},"required":["attributes","validFrom","validUntil","authorization"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true},{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/issuers/{issuerId}/org-credentials":{"post":{"summary":"Issue a credential about an organization (by its WorkPair ID). It waits for the organization’s acceptance; the publish fee applies","tags":["Organizations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"attributes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"validFrom":{"type":"string"},"validUntil":{"type":["string","null"]},"authorization":{"type":"object","properties":{"signer":{"type":"string"},"signature":{"type":"string"}},"required":["signer","signature"]},"subject":{"type":"string","description":"Organization WorkPair ID (15 characters, case-sensitive)"},"templateId":{"type":"string"},"replaces":{"type":"string"},"changeType":{"type":"string"}},"required":["attributes","validFrom","validUntil","authorization","subject","templateId"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"issuerId","required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/org-vouch-requests":{"get":{"summary":"Organizations asking you to confirm a record about them","tags":["Organizations"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/org-vouch-requests/claim":{"post":{"summary":"Take a request you opened through its link (when you signed up with another address)","tags":["Organizations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string"}},"required":["token"]}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/org-vouch-requests/{id}/decline":{"post":{"tags":["Organizations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","maxLength":300}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/org-vouch-requests/{id}/issue":{"post":{"summary":"Confirm (or correct) the record as a verified individual, signed with your key. Free","tags":["Organizations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"attributes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"validFrom":{"type":"string"},"validUntil":{"type":["string","null"]},"signature":{"type":"string"},"consent":{"type":"object","properties":{"accepted":{"type":"boolean"},"display":{"type":"string","enum":["name","verified_individual"]}},"required":["accepted","display"]}},"required":["attributes","validFrom","validUntil","signature","consent"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/org-verification-requests":{"get":{"summary":"Your requests about organizations, newest first","tags":["Verifier API"],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/businesses":{"post":{"summary":"Create a business account (free): the business gets a permanent organization WorkPair ID and you become its owner. Needs a verified identity and your device key or passkey. Then verify the business with Stripe and invite its people.","tags":["Business accounts"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"legalName":{"type":"string","minLength":2,"maxLength":200},"acceptTerms":{"type":"boolean","enum":[true]}},"required":["legalName","acceptTerms"]}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/businesses/{tenantId}":{"get":{"summary":"The business account: its organization ID, legal name and business verification","tags":["Business accounts"],"parameters":[{"schema":{"type":"string","maxLength":64},"in":"path","name":"tenantId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/businesses/{tenantId}/org-profile":{"put":{"summary":"Set what kind of organization this is: country, region (state or province), sector, legal form, ownership, structure, size. Owners and admins. Applications that accept Login with WorkPair show it read-only and are told when it changes (organization.profile_changed).","tags":["Business accounts"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"description":"State, province or region of registration: ISO 3166-2 code (e.g. US-DE) or its name","type":"string","minLength":1,"maxLength":100},"sector":{"type":"string","enum":["education","company","nonprofit","government"]},"legalForm":{"type":"string","maxLength":64},"education":{"type":"object","properties":{"models":{"maxItems":40,"type":"array","items":{"type":"string","maxLength":64}},"stages":{"maxItems":40,"type":"array","items":{"type":"string","maxLength":64}}},"required":["models","stages"],"additionalProperties":false},"company":{"type":"object","properties":{"ownership":{"type":"string","maxLength":64},"structure":{"type":"string","maxLength":64},"size":{"type":"string","maxLength":64}},"additionalProperties":false},"government":{"type":"object","properties":{"level":{"type":"string","maxLength":64},"bodyType":{"type":"string","maxLength":64}},"additionalProperties":false}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","maxLength":64},"in":"path","name":"tenantId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/businesses/{tenantId}/verification":{"post":{"summary":"Start (or continue) Stripe business verification: returns a Stripe-hosted onboarding link. Owners. Free; nothing is ever charged through or paid out to this Stripe account.","tags":["Business accounts"],"parameters":[{"schema":{"type":"string","maxLength":64},"in":"path","name":"tenantId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/businesses/{tenantId}/verification/refresh":{"post":{"summary":"Read the Stripe business verification result: verified when the tax ID is verified, the legal name matches and the representative is one of the owners or admins. Owners.","tags":["Business accounts"],"parameters":[{"schema":{"type":"string","maxLength":64},"in":"path","name":"tenantId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/auth/review-sessions":{"post":{"summary":"App Review sign-in: the review account’s email address and the staff-issued passcode, in place of the email code, on a Login with WorkPair screen (interactionId) for an application allowed for that account. Opens a session limited to that screen. Rate-limited per network and per account; locked after repeated wrong passcodes. Works for nothing else.","tags":["Auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"interactionId":{"type":"string","minLength":3,"maxLength":64},"email":{"type":"string","maxLength":200,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"passcode":{"type":"string","minLength":8,"maxLength":80}},"required":["interactionId","email","passcode"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/me/push-registrations":{"post":{"summary":"Register this device for push: an APNs device token (ios), an FCM registration token (android) or a Web Push subscription (web)","tags":["Notifications"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"platform":{"type":"string","enum":["ios","android","web"]},"token":{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}]},"deviceId":{"type":"string","maxLength":100},"appBundle":{"type":"string","maxLength":200},"environment":{"type":"string","enum":["sandbox","production"]}},"required":["platform","token"]}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"get":{"summary":"Devices registered for push (tokens are never returned)","tags":["Notifications"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/push-registrations/test":{"post":{"summary":"Send a test push to each of my registered devices now, and report what Apple, Google or the browser answered for each","tags":["Notifications"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/push-registrations/{id}":{"delete":{"tags":["Notifications"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/notification-preferences":{"get":{"summary":"Push and email per category, and quiet hours","tags":["Notifications"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"put":{"summary":"Turn push or email on/off per category (security alerts and billing email stay on) and set quiet hours","tags":["Notifications"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"categories":{"type":"object","properties":{"approvals":{"type":"object","properties":{"push":{"type":"boolean"},"email":{"type":"boolean"}}},"record":{"type":"object","properties":{"push":{"type":"boolean"},"email":{"type":"boolean"}}},"billing":{"type":"object","properties":{"push":{"type":"boolean"},"email":{"type":"boolean"}}},"reminders":{"type":"object","properties":{"push":{"type":"boolean"},"email":{"type":"boolean"}}},"organization":{"type":"object","properties":{"push":{"type":"boolean"},"email":{"type":"boolean"}}},"security":{"type":"object","properties":{"push":{"type":"boolean"},"email":{"type":"boolean"}}}}},"quietHours":{"anyOf":[{"type":"object","properties":{"start":{"type":"string"},"end":{"type":"string"},"timeZone":{"type":"string","maxLength":64}},"required":["start","end","timeZone"]},{"type":"null"}]}}}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/push/web-config":{"get":{"summary":"Public key browsers use to subscribe to Web Push (null when not configured)","tags":["Notifications"],"responses":{"200":{"description":"Default Response"}}}},"/v1/auth/app-sessions":{"post":{"summary":"Native-app sign-in: email code + the device key’s signature (AAL2), or the code alone (AAL1, with `newKey` to add this device)","tags":["Auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"challengeId":{"type":"string"},"otp":{"type":"string","pattern":"^\\d{6}$"},"wpId":{"description":"did:key of a device key this device already holds","type":"string","pattern":"^did:key:z[1-9A-HJ-NP-Za-km-z]+$"},"signature":{"description":"That key’s signature over the challenge","type":"string","minLength":10,"maxLength":20000},"device":{"type":"object","properties":{"label":{"type":"string","maxLength":60},"platform":{"type":"string","enum":["web","ios","android","other"]}}},"newKey":{"type":"object","properties":{"publicKeyMultibase":{"type":"string","minLength":10,"maxLength":200,"description":"Ed25519 or P-256 multikey (or its did:key)"},"signature":{"type":"string","minLength":10,"maxLength":20000,"description":"The new key’s signature over `workpair:add-device:<did>` (proof of possession)"}},"required":["publicKeyMultibase","signature"]}},"required":["challengeId","otp"]}}}},"responses":{"200":{"description":"Default Response"}}},"delete":{"summary":"Sign this app out (ends its access and refresh tokens)","tags":["Auth"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/auth/refresh":{"post":{"summary":"Rotate an app refresh token (reusing one revokes that whole sign-in)","tags":["Auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"refreshToken":{"type":"string","format":"starts_with","pattern":"^wpr_.*"}},"required":["refreshToken"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/auth/passkey/options":{"post":{"summary":"Start signing in with a passkey (usernameless)","tags":["Auth"],"responses":{"200":{"description":"Default Response"}}}},"/v1/auth/passkey/sessions":{"post":{"summary":"Sign in with a passkey: AAL2 when the authenticator verified the person (PIN, fingerprint or face), otherwise AAL1. Web: sets the session cookie. Apps: `app: true` returns access and refresh tokens.","tags":["Auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"challengeId":{"type":"string"},"response":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"app":{"type":"boolean"}},"required":["challengeId","response"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/me/passkeys/options":{"post":{"summary":"Start adding a passkey (needs a device that can sign)","tags":["Devices"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/passkeys":{"post":{"summary":"Add a passkey: it can sign in and sign approvals","tags":["Devices"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"challengeId":{"type":"string"},"response":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"label":{"type":"string","maxLength":60}},"required":["challengeId","response"]}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"get":{"tags":["Devices"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/passkeys/{id}":{"delete":{"tags":["Devices"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/devices":{"get":{"summary":"Your devices, their keys and sessions","tags":["Devices"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/devices/{id}":{"put":{"tags":["Devices"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":60}},"required":["label"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"delete":{"summary":"Remove a device: its keys stop signing and its sessions end","tags":["Devices"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/devices/link-requests":{"post":{"summary":"This (new) device asks to be added: registers its own key and returns a short code to approve on another device","tags":["Devices"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"publicKeyMultibase":{"type":"string","minLength":10,"maxLength":200,"description":"Ed25519 or P-256 multikey (or its did:key)"},"signature":{"type":"string","minLength":10,"maxLength":20000,"description":"Multibase raw signature (Ed25519 / P-256), or a passkey assertion `wa1.…`"},"label":{"type":"string","maxLength":60},"platform":{"type":"string","enum":["web","ios","android","other"]}},"required":["publicKeyMultibase","signature"]}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"get":{"summary":"Devices waiting to be approved","tags":["Devices"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/devices/link-requests/approve":{"post":{"summary":"Approve a new device: the code it shows, signed (`workpair:approve-device:<requestId>:<did>`) by an existing key or the backup’s recovery key","tags":["Devices"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","minLength":6,"maxLength":12},"signature":{"type":"string","minLength":10,"maxLength":20000,"description":"Multibase raw signature (Ed25519 / P-256), or a passkey assertion `wa1.…`"},"requestId":{"type":"string"}},"required":["code","signature"]}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/devices/link-requests/{id}/decline":{"post":{"tags":["Devices"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/people/{publicId}/did.json":{"get":{"summary":"A person’s DID document: their device keys only (no personal data)","tags":["Public"],"parameters":[{"schema":{"type":"string","maxLength":20},"in":"path","name":"publicId","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/workspaces":{"get":{"summary":"Verifier and issuer workspaces you belong to, with your role and what it allows (the workspace switcher)","tags":["Workspaces"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/workspaces/{tenantId}":{"get":{"summary":"A workspace as you see it: kind, name, your role and permissions, and its security setting","tags":["Workspaces"],"parameters":[{"schema":{"type":"string","maxLength":64},"in":"path","name":"tenantId","required":true}],"security":[{"session":[]},{"apiKey":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/workspaces/{tenantId}/members":{"get":{"summary":"Members and their roles, and invitations by WorkPair ID (pending, expired or declined; never the invitee’s name or email)","tags":["Workspaces"],"parameters":[{"schema":{"type":"string","maxLength":64},"in":"path","name":"tenantId","required":true}],"security":[{"session":[]},{"apiKey":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/workspaces/{tenantId}/invitations":{"post":{"summary":"Invite a person by their WorkPair ID (owners, with their device key or passkey). Ask them to create a WorkPair account and share their WorkPair ID. They get it in their WorkPair inbox, by push and by email; the membership starts only when they accept, signed in to their own account. Their identity check is free.","tags":["Workspaces"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"workpairId":{"type":"string","minLength":13,"maxLength":40,"description":"The person’s 13-character WorkPair ID (case-sensitive; spaces and dashes are ignored)"},"role":{"type":"string","enum":["owner","admin","analyst","signer","teacher","billing","viewer","member"]}},"required":["workpairId","role"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","maxLength":64},"in":"path","name":"tenantId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/workspaces/{tenantId}/invitations/{workpairId}":{"delete":{"summary":"Withdraw an open invitation, by the WorkPair ID it went to (it leaves the person’s inbox)","tags":["Workspaces"],"parameters":[{"schema":{"type":"string","maxLength":64},"in":"path","name":"tenantId","required":true},{"schema":{"type":"string","maxLength":64},"in":"path","name":"workpairId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/workspace-invitations":{"get":{"summary":"Open invitations to join an organization’s workspace, addressed to your WorkPair ID","tags":["Workspaces"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/workspace-invitations/{tenantId}/accept":{"post":{"summary":"Accept an invitation (needs your device key or passkey). Active at once with a verified identity; otherwise after your free identity check.","tags":["Workspaces"],"parameters":[{"schema":{"type":"string","maxLength":64},"in":"path","name":"tenantId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/workspace-invitations/{tenantId}/decline":{"post":{"summary":"Decline an invitation (works from any signed-in device)","tags":["Workspaces"],"parameters":[{"schema":{"type":"string","maxLength":64},"in":"path","name":"tenantId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/workspaces/{tenantId}/members/{personId}":{"put":{"summary":"Change a member’s role (owners; an owner always remains)","tags":["Workspaces"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","enum":["owner","admin","analyst","signer","teacher","billing","viewer","member"]}},"required":["role"]}}}},"parameters":[{"schema":{"type":"string","maxLength":64},"in":"path","name":"tenantId","required":true},{"schema":{"type":"string","maxLength":64},"in":"path","name":"personId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"delete":{"summary":"Remove a member (owners; the last owner stays). API keys they created stop working.","tags":["Workspaces"],"parameters":[{"schema":{"type":"string","maxLength":64},"in":"path","name":"tenantId","required":true},{"schema":{"type":"string","maxLength":64},"in":"path","name":"personId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/workspaces/{tenantId}/leave":{"post":{"summary":"Leave a workspace (the last owner can’t)","tags":["Workspaces"],"parameters":[{"schema":{"type":"string","maxLength":64},"in":"path","name":"tenantId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/workspaces/{tenantId}/security":{"put":{"summary":"Owners: require every member to use their device key or passkey (AAL2) for every action, reads included","tags":["Workspaces"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requireAal2":{"type":"boolean"}},"required":["requireAal2"]}}}},"parameters":[{"schema":{"type":"string","maxLength":64},"in":"path","name":"tenantId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/workspaces/{tenantId}/activity":{"get":{"summary":"Who did what in this workspace, newest first, from the hash-chained event log (members and former members by name and person id, API keys by prefix; never a key or secret; never the name or id of someone who declined or never answered an invitation). Owners and admins. Paged: pass nextCursor back as `after` while hasMore is true. `from` (included) and `to` (not included) limit it to a date range; `type=workspace.action` keeps only the changes members and keys made.","tags":["Workspaces"],"parameters":[{"schema":{"type":"string","maxLength":40},"in":"query","name":"from","required":false,"description":"Events at or after this date or date-time (ISO 8601; a bare date is midnight UTC)"},{"schema":{"type":"string","maxLength":40},"in":"query","name":"to","required":false,"description":"Events before this date or date-time (ISO 8601; a bare date is midnight UTC)"},{"schema":{"type":"string","pattern":"^[a-z0-9_.]{1,80}$"},"in":"query","name":"type","required":false,"description":"Only this event type, for example workspace.action"},{"schema":{"type":"integer","minimum":1,"maximum":500},"in":"query","name":"limit","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"after","required":false},{"schema":{"type":"string","maxLength":64},"in":"path","name":"tenantId","required":true}],"security":[{"session":[]},{"apiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"activity":{"type":"array","items":{"type":"object","properties":{"seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"at":{"type":"string","description":"When, ISO 8601 UTC"},"type":{"type":"string","description":"Event type; workspace.action is a change a member or API key made"},"actor":{"type":"string","description":"A member’s person id, api_key:<prefix>, `workpair_staff`, `workspace`, one of WorkPair’s own systems (registry, payment_provider, identity_provider, app_store), `invitee` / `non_member` for a person who never joined, or `other` for a kind of actor this list does not describe yet"},"actorName":{"type":["string","null"]},"personId":{"type":["string","null"]},"keyPrefix":{"description":"The public prefix of the API key used (never the key)","type":["string","null"]},"via":{"description":"member or api_key","type":["string","null"]},"role":{"type":["string","null"]},"route":{"description":"The API route called, for workspace.action","type":["string","null"]},"status":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["seq","at","type","actor","actorName","personId","keyPrefix","via","role","route","status"],"additionalProperties":false}},"hasMore":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["activity","hasMore","nextCursor"],"additionalProperties":false}}}}}}},"/v1/workspaces/{tenantId}/activity.csv":{"get":{"summary":"The same activity as CSV (when, type, who, person_id, key_prefix, via, role, what, status, seq), newest first, for the dates given. Owners and admins. One file holds up to 20000 events: a longer range is refused (range_too_large), so narrow the dates. It is made for spreadsheets: it starts with a UTF-8 byte-order mark, and any value a spreadsheet could run as a formula (one that starts with =, +, - or @, also after spaces or in full-width form) has an apostrophe put in front of it, so such a value can’t be told from one that really starts with an apostrophe. For the exact record use activity.json. Each download is itself recorded in the activity. People who declined or never answered an invitation are not named.","tags":["Workspaces"],"parameters":[{"schema":{"type":"string","maxLength":40},"in":"query","name":"from","required":false,"description":"Events at or after this date or date-time (ISO 8601; a bare date is midnight UTC)"},{"schema":{"type":"string","maxLength":40},"in":"query","name":"to","required":false,"description":"Events before this date or date-time (ISO 8601; a bare date is midnight UTC)"},{"schema":{"type":"string","pattern":"^[a-z0-9_.]{1,80}$"},"in":"query","name":"type","required":false,"description":"Only this event type, for example workspace.action"},{"schema":{"type":"string","maxLength":64},"in":"path","name":"tenantId","required":true}],"security":[{"session":[]},{"apiKey":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/workspaces/{tenantId}/activity.json":{"get":{"summary":"The same activity as one JSON file, for the dates given, with values unmodified (no apostrophes added, as the CSV has). It holds the events the workspace is entitled to see: the same rows as the list, so people who never joined are not named, WorkPair staff are shown only as such, and staff-only events are not included. Owners and admins. Up to 20000 events; a longer range is refused (range_too_large). Each download is itself recorded in the activity.","tags":["Workspaces"],"parameters":[{"schema":{"type":"string","maxLength":40},"in":"query","name":"from","required":false,"description":"Events at or after this date or date-time (ISO 8601; a bare date is midnight UTC)"},{"schema":{"type":"string","maxLength":40},"in":"query","name":"to","required":false,"description":"Events before this date or date-time (ISO 8601; a bare date is midnight UTC)"},{"schema":{"type":"string","pattern":"^[a-z0-9_.]{1,80}$"},"in":"query","name":"type","required":false,"description":"Only this event type, for example workspace.action"},{"schema":{"type":"string","maxLength":64},"in":"path","name":"tenantId","required":true}],"security":[{"session":[]},{"apiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"activity":{"type":"array","items":{"type":"object","properties":{"seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"at":{"type":"string","description":"When, ISO 8601 UTC"},"type":{"type":"string","description":"Event type; workspace.action is a change a member or API key made"},"actor":{"type":"string","description":"A member’s person id, api_key:<prefix>, `workpair_staff`, `workspace`, one of WorkPair’s own systems (registry, payment_provider, identity_provider, app_store), `invitee` / `non_member` for a person who never joined, or `other` for a kind of actor this list does not describe yet"},"actorName":{"type":["string","null"]},"personId":{"type":["string","null"]},"keyPrefix":{"description":"The public prefix of the API key used (never the key)","type":["string","null"]},"via":{"description":"member or api_key","type":["string","null"]},"role":{"type":["string","null"]},"route":{"description":"The API route called, for workspace.action","type":["string","null"]},"status":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["seq","at","type","actor","actorName","personId","keyPrefix","via","role","route","status"],"additionalProperties":false}},"exported":{"type":"object","properties":{"format":{"type":"string","enum":["json"]},"from":{"type":["string","null"]},"to":{"type":["string","null"]},"type":{"type":["string","null"]},"rows":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"via":{"type":"string"},"role":{"type":"string"}},"required":["format","from","to","type","rows","via","role"],"additionalProperties":false}},"required":["activity","exported"],"additionalProperties":false}}}}}}},"/v1/workspaces/{tenantId}/claim":{"post":{"summary":"Become the first owner of a verifier workspace that has none (created through the API). Signed in with your device key or passkey, enter one of its API keys; a code goes to its contact email.","tags":["Workspaces"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"apiKey":{"type":"string","minLength":10,"maxLength":200}},"required":["apiKey"]}}}},"parameters":[{"schema":{"type":"string","maxLength":64},"in":"path","name":"tenantId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/workspaces/{tenantId}/claim/confirm":{"post":{"summary":"Confirm the code sent to the workspace’s contact email: you become its owner (logged; the contact is told)","tags":["Workspaces"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","pattern":"^\\d{6}$"}},"required":["code"]}}}},"parameters":[{"schema":{"type":"string","maxLength":64},"in":"path","name":"tenantId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/workspaces/{tenantId}/sso":{"get":{"summary":"Owners: the workspace’s verified domains and its identity providers, with what to enter at each one","tags":["Enterprise sign-in"],"parameters":[{"schema":{"type":"string","maxLength":64},"in":"path","name":"tenantId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"post":{"summary":"Owners (device key or passkey): add an identity provider (SAML 2.0). Needs a verified domain. It is created disabled. A sign-in through it is AAL1, view only, for this workspace only, for an active member whose own WorkPair sign-in address it asserts; it is never proof of identity and never replaces the device key. The member is told of every such sign-in.","tags":["Enterprise sign-in"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80,"description":"A name for this identity provider, as members will know it"},"idpEntityId":{"type":"string","minLength":1,"maxLength":1024,"description":"The identity provider’s entity ID (issuer)"},"idpSsoUrl":{"type":"string","minLength":1,"maxLength":2048,"description":"The identity provider’s SAML sign-in URL (HTTP-Redirect binding), https"},"idpCertificates":{"minItems":1,"maxItems":3,"type":"array","items":{"type":"string","minLength":1,"maxLength":20000},"description":"Its signing certificates (PEM or base64 X.509); up to three while one is rotated"},"emailAttribute":{"description":"The SAML attribute that carries the email address; leave out to use the NameID","anyOf":[{"type":"string","maxLength":256},{"type":"null"}]},"domains":{"description":"Which of the workspace’s verified domains this identity provider may sign in (default: all of them)","minItems":1,"maxItems":50,"type":"array","items":{"type":"string","maxLength":253}},"jitProvisioning":{"description":"Add a person to the directory at their first sign-in (default false: only people the directory lists)","type":"boolean"},"defaultRole":{"description":"The role of people added at first sign-in (never owner; default: the least one)","type":"string","maxLength":20},"allowRequests":{"description":"Let sessions through this identity provider send requests (default false: such sessions are view only). Every other change always needs the member’s own key.","type":"boolean"}},"required":["name","idpEntityId","idpSsoUrl","idpCertificates"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","maxLength":64},"in":"path","name":"tenantId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/workspaces/{tenantId}/sso/{connectionId}":{"put":{"summary":"Owners (device key or passkey): change an identity provider, or enable or disable it. Disabling it, or changing what it trusts, ends the sessions it opened. A change that only takes trust away (disable, drop a domain or certificate) is never refused.","tags":["Enterprise sign-in"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80,"description":"A name for this identity provider, as members will know it"},"idpEntityId":{"type":"string","minLength":1,"maxLength":1024,"description":"The identity provider’s entity ID (issuer)"},"idpSsoUrl":{"type":"string","minLength":1,"maxLength":2048,"description":"The identity provider’s SAML sign-in URL (HTTP-Redirect binding), https"},"idpCertificates":{"minItems":1,"maxItems":3,"type":"array","items":{"type":"string","minLength":1,"maxLength":20000},"description":"Its signing certificates (PEM or base64 X.509); up to three while one is rotated"},"emailAttribute":{"description":"The SAML attribute that carries the email address; leave out to use the NameID","anyOf":[{"type":"string","maxLength":256},{"type":"null"}]},"domains":{"description":"Which of the workspace’s verified domains this identity provider may sign in (default: all of them)","minItems":1,"maxItems":50,"type":"array","items":{"type":"string","maxLength":253}},"jitProvisioning":{"description":"Add a person to the directory at their first sign-in (default false: only people the directory lists)","type":"boolean"},"defaultRole":{"description":"The role of people added at first sign-in (never owner; default: the least one)","type":"string","maxLength":20},"allowRequests":{"description":"Let sessions through this identity provider send requests (default false: such sessions are view only). Every other change always needs the member’s own key.","type":"boolean"},"enabled":{"type":"boolean"}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","maxLength":64},"in":"path","name":"tenantId","required":true},{"schema":{"type":"string","maxLength":64},"in":"path","name":"connectionId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"delete":{"summary":"Owners (device key or passkey): remove an identity provider. The sessions it opened end at once.","tags":["Enterprise sign-in"],"parameters":[{"schema":{"type":"string","maxLength":64},"in":"path","name":"tenantId","required":true},{"schema":{"type":"string","maxLength":64},"in":"path","name":"connectionId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/workspaces/{tenantId}/scim-tokens":{"get":{"summary":"Owners: the SCIM base URL, the tokens (never their secrets) with their expiry dates, the roles the directory may give, and how many people it lists","tags":["Enterprise sign-in"],"parameters":[{"schema":{"type":"string","maxLength":64},"in":"path","name":"tenantId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}},"post":{"summary":"Owners (device key or passkey): create a SCIM token for the identity provider. Shown once, stored hashed. It expires: 90 days unless chosen, at most 365; owners are told two weeks before. Needs a verified domain.","tags":["Enterprise sign-in"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"expiresInDays":{"description":"1 to 365 (default 90)","type":"number"}},"required":["name"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","maxLength":64},"in":"path","name":"tenantId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/workspaces/{tenantId}/scim-settings":{"put":{"summary":"Owners (device key or passkey): which roles the directory may give members. Default: the least role only. A role the directory asks for beyond these is recorded and waits for an owner. The directory can never give or change the owner role.","tags":["Enterprise sign-in"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"assignableRoles":{"maxItems":10,"type":"array","items":{"type":"string","maxLength":20}}},"required":["assignableRoles"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","maxLength":64},"in":"path","name":"tenantId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/workspaces/{tenantId}/scim-tokens/{tokenId}":{"delete":{"summary":"Owners (device key or passkey): revoke a SCIM token. It stops working at once.","tags":["Enterprise sign-in"],"parameters":[{"schema":{"type":"string","maxLength":64},"in":"path","name":"tenantId","required":true},{"schema":{"type":"string","maxLength":64},"in":"path","name":"tokenId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/sso/{connectionId}":{"get":{"summary":"Whose workspace a sign-in connection belongs to: the organization’s name as WorkPair verified it and the verified domains it signs in. Shown on the sign-in page before anyone clicks.","tags":["Enterprise sign-in"],"parameters":[{"schema":{"type":"string","maxLength":64},"in":"path","name":"connectionId","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/sso/{connectionId}/saml/metadata":{"get":{"summary":"SAML service provider metadata for one identity provider connection (entity ID and assertion consumer service)","tags":["Enterprise sign-in"],"parameters":[{"schema":{"type":"string","maxLength":64},"in":"path","name":"connectionId","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/sso/{connectionId}/saml/login":{"post":{"summary":"Start a sign-in through the organization’s identity provider. Called by the WorkPair page /sso?connection=… when the person presses the button (never by a link or another site): returns the URL to send the browser to. Sign-in always starts here; responses that answer no request are refused.","tags":["Enterprise sign-in"],"parameters":[{"schema":{"type":"string","maxLength":64},"in":"path","name":"connectionId","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/sso/{connectionId}/saml/acs":{"post":{"summary":"SAML assertion consumer service (HTTP-POST binding). Accepts a signed assertion from the configured identity provider that answers a request started in this browser, once. It creates no session: it holds the sign-in for five minutes and redirects to /sso, where the person sees whose workspace it is and completes it (POST /v1/sso/complete), or sees why it was refused.","tags":["Enterprise sign-in"],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"SAMLResponse":{"type":"string","minLength":1,"maxLength":250000},"RelayState":{"type":"string","maxLength":1024}},"required":["SAMLResponse"]}}}},"parameters":[{"schema":{"type":"string","maxLength":64},"in":"path","name":"connectionId","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/sso/pending":{"get":{"summary":"The sign-in this browser is holding after its identity provider answered, if any: whose workspace it is (verified name and domains), and whether completing it would replace the person’s own WorkPair sign-in in this browser. Nothing is signed in until POST /v1/sso/complete.","tags":["Enterprise sign-in"],"responses":{"200":{"description":"Default Response"}}}},"/v1/sso/complete":{"post":{"summary":"Complete (confirm: true) or drop (confirm: false) the sign-in this browser is holding, from the WorkPair page that showed the person whose workspace it is. Only an explicit answer does anything. Completing creates the session (AAL1, that workspace only, view only unless its owners allowed sending requests) and tells the person; dropping it leaves nothing.","tags":["Enterprise sign-in"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"confirm":{"type":"boolean"}},"required":["confirm"],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/scim/v2/ServiceProviderConfig":{"get":{"summary":"SCIM: what this server supports (PATCH, filters, paging; no Bulk, sort, ETag or password change)","tags":["Enterprise sign-in"],"security":[{"scimToken":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/scim/v2/Schemas":{"get":{"summary":"SCIM: the schemas (User)","tags":["Enterprise sign-in"],"security":[{"scimToken":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/scim/v2/Schemas/{id}":{"get":{"summary":"SCIM: one schema","tags":["Enterprise sign-in"],"parameters":[{"schema":{"type":"string","maxLength":128},"in":"path","name":"id","required":true}],"security":[{"scimToken":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/scim/v2/ResourceTypes":{"get":{"summary":"SCIM: the resource types (User; Groups are not supported, roles are an attribute of the user)","tags":["Enterprise sign-in"],"security":[{"scimToken":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/scim/v2/ResourceTypes/{id}":{"get":{"summary":"SCIM: one resource type","tags":["Enterprise sign-in"],"parameters":[{"schema":{"type":"string","maxLength":128},"in":"path","name":"id","required":true}],"security":[{"scimToken":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/scim/v2/Users":{"get":{"summary":"SCIM: list the directory in a stable order. Filters: userName eq, externalId eq, id eq. Paging by startIndex and count (up to 1000), or by cursor (RFC 9865) for large directories: pass `cursor=` (empty) for the first page, then each `nextCursor`.","tags":["Enterprise sign-in"],"parameters":[{"schema":{"type":"string","maxLength":600},"in":"query","name":"filter","required":false},{"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"in":"query","name":"startIndex","required":false},{"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"in":"query","name":"count","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","maxLength":600},"in":"query","name":"attributes","required":false},{"schema":{"type":"string","maxLength":600},"in":"query","name":"excludedAttributes","required":false}],"security":[{"scimToken":[]}],"responses":{"200":{"description":"Default Response"}}},"post":{"summary":"SCIM: add a person to the directory (userName = their email at a verified domain; roles = one workspace role, never owner). Safe to repeat: the same externalId or userName returns the existing entry (200) instead of a duplicate. The entry is an invitation: the person joins with their own WorkPair account and key.","tags":["Enterprise sign-in"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":{}}}}},"security":[{"scimToken":[]}],"responses":{"200":{"description":"Default Response"}}}},"/v1/scim/v2/Users/{id}":{"get":{"summary":"SCIM: one directory user","tags":["Enterprise sign-in"],"parameters":[{"schema":{"type":"string","maxLength":128},"in":"path","name":"id","required":true}],"security":[{"scimToken":[]}],"responses":{"200":{"description":"Default Response"}}},"put":{"summary":"SCIM: replace a directory user. active false (or a new userName) ends that person’s membership and sessions in the workspace at once.","tags":["Enterprise sign-in"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":{}}}}},"parameters":[{"schema":{"type":"string","maxLength":128},"in":"path","name":"id","required":true}],"security":[{"scimToken":[]}],"responses":{"200":{"description":"Default Response"}}},"patch":{"summary":"SCIM: change a directory user (urn:ietf:params:scim:api:messages:2.0:PatchOp): active, userName, externalId, roles. active false ends that person’s membership and sessions in the workspace at once.","tags":["Enterprise sign-in"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":{}}}}},"parameters":[{"schema":{"type":"string","maxLength":128},"in":"path","name":"id","required":true}],"security":[{"scimToken":[]}],"responses":{"200":{"description":"Default Response"}}},"delete":{"summary":"SCIM: delete a directory user. Their membership and sessions in the workspace end at once and the entry is erased.","tags":["Enterprise sign-in"],"parameters":[{"schema":{"type":"string","maxLength":128},"in":"path","name":"id","required":true}],"security":[{"scimToken":[]}],"responses":{"200":{"description":"Default Response"}}}}},"servers":[{"url":"https://www.workpair.io"}],"tags":[{"name":"Verifier API","description":"Request verifications, proof-of-human and monitoring"},{"name":"Issuer API","description":"Templates, issuance, revocation, keys"},{"name":"Issuer onboarding","description":"Self-service issuer onboarding"},{"name":"Person","description":"The person portal: approvals, credentials, policy, export"},{"name":"Guardians","description":"Minors’ records controlled by verified guardians"},{"name":"Links","description":"Issuer-initiated enrollment: link requests, links, rosters"},{"name":"Workspaces","description":"Sign in to verifier and issuer workspaces as a person: members, roles, invitations, claiming and security"},{"name":"Enterprise sign-in","description":"Single sign-on through an organization’s own identity provider (SAML 2.0) and directory provisioning (SCIM 2.0). Off until an owner sets it up."},{"name":"Auth"},{"name":"Public","description":"Offline-verification material"},{"name":"OIDC","description":"Login with WorkPair"},{"name":"Webhooks","description":"Signed event delivery: endpoints, deliveries, event catalog (see `webhooks`)"}],"webhooks":{"verification_request.approved":{"post":{"summary":"verification_request.approved","description":"A held verification request was approved; the signed proof and results are included.\n\nSigned with the registry webhook key: verify the `workpair-signature` header against /.well-known/jwks.json, reject timestamps more than 300 seconds from now, and de-duplicate on `id`.","parameters":[{"name":"workpair-signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,kid=<key id>,sig=<base64url Ed25519 signature over \"<t>.<raw body>\">"},{"name":"workpair-event-id","in":"header","required":true,"schema":{"type":"string"},"description":"Same value as the body `id`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Event id, unique per delivery target. Equal to the workpair-event-id header; redeliveries reuse it, so de-duplicate on it."},"type":{"type":"string","const":"verification_request.approved"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"requestId":{"type":"string"},"status":{"type":"string","const":"approved"},"subject":{"type":"string"},"proof":{"type":"string"},"results":{"type":"array","items":{"type":"object","description":"One answered claim (same shape as a verification request result).","properties":{"type":{"type":"string","description":"Claim type, e.g. employment"},"template":{"type":["string","null"]},"result":{"type":"boolean","description":"Whether the claim holds"},"disclosed":{"type":"object","additionalProperties":true,"description":"Attribute values the person chose to reveal"},"credentialDigest":{"type":["string","null"]}},"required":["type","result"]}}},"required":["requestId","status","subject","proof","results"]}},"required":["id","type","createdAt","data"]}}}},"responses":{"2XX":{"description":"Received. Any other status, or no answer within 10 seconds, is retried with backoff: 12 attempts over about 6 days."}}}},"verification_request.declined":{"post":{"summary":"verification_request.declined","description":"The person (or their policy) declined the request. Nothing about them is revealed.\n\nSigned with the registry webhook key: verify the `workpair-signature` header against /.well-known/jwks.json, reject timestamps more than 300 seconds from now, and de-duplicate on `id`.","parameters":[{"name":"workpair-signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,kid=<key id>,sig=<base64url Ed25519 signature over \"<t>.<raw body>\">"},{"name":"workpair-event-id","in":"header","required":true,"schema":{"type":"string"},"description":"Same value as the body `id`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Event id, unique per delivery target. Equal to the workpair-event-id header; redeliveries reuse it, so de-duplicate on it."},"type":{"type":"string","const":"verification_request.declined"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"requestId":{"type":"string"},"status":{"type":"string","const":"declined"},"subject":{"type":"string"}},"required":["requestId","status","subject"]}},"required":["id","type","createdAt","data"]}}}},"responses":{"2XX":{"description":"Received. Any other status, or no answer within 10 seconds, is retried with backoff: 12 attempts over about 6 days."}}}},"verification_request.expired":{"post":{"summary":"verification_request.expired","description":"Nobody answered the request before it expired.\n\nSigned with the registry webhook key: verify the `workpair-signature` header against /.well-known/jwks.json, reject timestamps more than 300 seconds from now, and de-duplicate on `id`.","parameters":[{"name":"workpair-signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,kid=<key id>,sig=<base64url Ed25519 signature over \"<t>.<raw body>\">"},{"name":"workpair-event-id","in":"header","required":true,"schema":{"type":"string"},"description":"Same value as the body `id`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Event id, unique per delivery target. Equal to the workpair-event-id header; redeliveries reuse it, so de-duplicate on it."},"type":{"type":"string","const":"verification_request.expired"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"requestId":{"type":"string"},"status":{"type":"string","const":"expired"},"subject":{"type":"string"}},"required":["requestId","status","subject"]}},"required":["id","type","createdAt","data"]}}}},"responses":{"2XX":{"description":"Received. Any other status, or no answer within 10 seconds, is retried with backoff: 12 attempts over about 6 days."}}}},"link_request.approved":{"post":{"summary":"link_request.approved","description":"A person approved your link request.\n\nSigned with the registry webhook key: verify the `workpair-signature` header against /.well-known/jwks.json, reject timestamps more than 300 seconds from now, and de-duplicate on `id`.","parameters":[{"name":"workpair-signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,kid=<key id>,sig=<base64url Ed25519 signature over \"<t>.<raw body>\">"},{"name":"workpair-event-id","in":"header","required":true,"schema":{"type":"string"},"description":"Same value as the body `id`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Event id, unique per delivery target. Equal to the workpair-event-id header; redeliveries reuse it, so de-duplicate on it."},"type":{"type":"string","const":"link_request.approved"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"linkRequestId":{"type":"string"},"linkId":{"type":"string"},"personWpId":{"type":"string"},"relationship":{"type":"string"},"externalRef":{"type":["string","null"]}},"required":["linkRequestId","linkId","personWpId","relationship","externalRef"]}},"required":["id","type","createdAt","data"]}}}},"responses":{"2XX":{"description":"Received. Any other status, or no answer within 10 seconds, is retried with backoff: 12 attempts over about 6 days."}}}},"link_request.declined":{"post":{"summary":"link_request.declined","description":"A person declined your link request.\n\nSigned with the registry webhook key: verify the `workpair-signature` header against /.well-known/jwks.json, reject timestamps more than 300 seconds from now, and de-duplicate on `id`.","parameters":[{"name":"workpair-signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,kid=<key id>,sig=<base64url Ed25519 signature over \"<t>.<raw body>\">"},{"name":"workpair-event-id","in":"header","required":true,"schema":{"type":"string"},"description":"Same value as the body `id`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Event id, unique per delivery target. Equal to the workpair-event-id header; redeliveries reuse it, so de-duplicate on it."},"type":{"type":"string","const":"link_request.declined"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"linkRequestId":{"type":"string"},"externalRef":{"type":["string","null"]}},"required":["linkRequestId","externalRef"]}},"required":["id","type","createdAt","data"]}}}},"responses":{"2XX":{"description":"Received. Any other status, or no answer within 10 seconds, is retried with backoff: 12 attempts over about 6 days."}}}},"link_request.expired":{"post":{"summary":"link_request.expired","description":"A link request expired unanswered.\n\nSigned with the registry webhook key: verify the `workpair-signature` header against /.well-known/jwks.json, reject timestamps more than 300 seconds from now, and de-duplicate on `id`.","parameters":[{"name":"workpair-signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,kid=<key id>,sig=<base64url Ed25519 signature over \"<t>.<raw body>\">"},{"name":"workpair-event-id","in":"header","required":true,"schema":{"type":"string"},"description":"Same value as the body `id`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Event id, unique per delivery target. Equal to the workpair-event-id header; redeliveries reuse it, so de-duplicate on it."},"type":{"type":"string","const":"link_request.expired"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"linkRequestId":{"type":"string"},"externalRef":{"type":["string","null"]}},"required":["linkRequestId","externalRef"]}},"required":["id","type","createdAt","data"]}}}},"responses":{"2XX":{"description":"Received. Any other status, or no answer within 10 seconds, is retried with backoff: 12 attempts over about 6 days."}}}},"link.revoked":{"post":{"summary":"link.revoked","description":"A link with a person ended (by you or by them).\n\nSigned with the registry webhook key: verify the `workpair-signature` header against /.well-known/jwks.json, reject timestamps more than 300 seconds from now, and de-duplicate on `id`.","parameters":[{"name":"workpair-signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,kid=<key id>,sig=<base64url Ed25519 signature over \"<t>.<raw body>\">"},{"name":"workpair-event-id","in":"header","required":true,"schema":{"type":"string"},"description":"Same value as the body `id`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Event id, unique per delivery target. Equal to the workpair-event-id header; redeliveries reuse it, so de-duplicate on it."},"type":{"type":"string","const":"link.revoked"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"linkId":{"type":"string"},"by":{"type":"string","enum":["tenant","person"]}},"required":["linkId","by"]}},"required":["id","type","createdAt","data"]}}}},"responses":{"2XX":{"description":"Received. Any other status, or no answer within 10 seconds, is retried with backoff: 12 attempts over about 6 days."}}}},"credential.issued":{"post":{"summary":"credential.issued","description":"Monitoring update: something that can change a subscribed answer happened. The answer is re-evaluated under the person’s current consent; you receive the new results and proof.\n\nSigned with the registry webhook key: verify the `workpair-signature` header against /.well-known/jwks.json, reject timestamps more than 300 seconds from now, and de-duplicate on `id`.","parameters":[{"name":"workpair-signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,kid=<key id>,sig=<base64url Ed25519 signature over \"<t>.<raw body>\">"},{"name":"workpair-event-id","in":"header","required":true,"schema":{"type":"string"},"description":"Same value as the body `id`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Event id, unique per delivery target. Equal to the workpair-event-id header; redeliveries reuse it, so de-duplicate on it."},"type":{"type":"string","const":"credential.issued"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"subscriptionId":{"type":"string"},"subject":{"type":"string","description":"The subject reference you used when subscribing"},"previous":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"template":{"type":["string","null"]},"result":{"type":"boolean"}},"required":["type","template","result"]}},"current":{"type":"array","items":{"type":"object","description":"One answered claim (same shape as a verification request result).","properties":{"type":{"type":"string","description":"Claim type, e.g. employment"},"template":{"type":["string","null"]},"result":{"type":"boolean","description":"Whether the claim holds"},"disclosed":{"type":"object","additionalProperties":true,"description":"Attribute values the person chose to reveal"},"credentialDigest":{"type":["string","null"]}},"required":["type","result"]}},"proof":{"type":"string","description":"Registry-signed proof (JWS) of the current answer; verify against /.well-known/jwks.json"}},"required":["subscriptionId","subject","previous","current","proof"]}},"required":["id","type","createdAt","data"]}}}},"responses":{"2XX":{"description":"Received. Any other status, or no answer within 10 seconds, is retried with backoff: 12 attempts over about 6 days."}}}},"credential.updated":{"post":{"summary":"credential.updated","description":"Monitoring update: something that can change a subscribed answer happened. The answer is re-evaluated under the person’s current consent; you receive the new results and proof.\n\nSigned with the registry webhook key: verify the `workpair-signature` header against /.well-known/jwks.json, reject timestamps more than 300 seconds from now, and de-duplicate on `id`.","parameters":[{"name":"workpair-signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,kid=<key id>,sig=<base64url Ed25519 signature over \"<t>.<raw body>\">"},{"name":"workpair-event-id","in":"header","required":true,"schema":{"type":"string"},"description":"Same value as the body `id`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Event id, unique per delivery target. Equal to the workpair-event-id header; redeliveries reuse it, so de-duplicate on it."},"type":{"type":"string","const":"credential.updated"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"subscriptionId":{"type":"string"},"subject":{"type":"string","description":"The subject reference you used when subscribing"},"previous":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"template":{"type":["string","null"]},"result":{"type":"boolean"}},"required":["type","template","result"]}},"current":{"type":"array","items":{"type":"object","description":"One answered claim (same shape as a verification request result).","properties":{"type":{"type":"string","description":"Claim type, e.g. employment"},"template":{"type":["string","null"]},"result":{"type":"boolean","description":"Whether the claim holds"},"disclosed":{"type":"object","additionalProperties":true,"description":"Attribute values the person chose to reveal"},"credentialDigest":{"type":["string","null"]}},"required":["type","result"]}},"proof":{"type":"string","description":"Registry-signed proof (JWS) of the current answer; verify against /.well-known/jwks.json"}},"required":["subscriptionId","subject","previous","current","proof"]}},"required":["id","type","createdAt","data"]}}}},"responses":{"2XX":{"description":"Received. Any other status, or no answer within 10 seconds, is retried with backoff: 12 attempts over about 6 days."}}}},"credential.revoked":{"post":{"summary":"credential.revoked","description":"A credential you monitor was revoked (subscription shape: new results and proof), or a Login with WorkPair proof you hold was revoked (proof shape: its hash and status entry; its status-list bit is now set).\n\nSigned with the registry webhook key: verify the `workpair-signature` header against /.well-known/jwks.json, reject timestamps more than 300 seconds from now, and de-duplicate on `id`.","parameters":[{"name":"workpair-signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,kid=<key id>,sig=<base64url Ed25519 signature over \"<t>.<raw body>\">"},{"name":"workpair-event-id","in":"header","required":true,"schema":{"type":"string"},"description":"Same value as the body `id`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Event id, unique per delivery target. Equal to the workpair-event-id header; redeliveries reuse it, so de-duplicate on it."},"type":{"type":"string","const":"credential.revoked"},"createdAt":{"type":"string","format":"date-time"},"data":{"oneOf":[{"type":"object","properties":{"subscriptionId":{"type":"string"},"subject":{"type":"string","description":"The subject reference you used when subscribing"},"previous":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"template":{"type":["string","null"]},"result":{"type":"boolean"}},"required":["type","template","result"]}},"current":{"type":"array","items":{"type":"object","description":"One answered claim (same shape as a verification request result).","properties":{"type":{"type":"string","description":"Claim type, e.g. employment"},"template":{"type":["string","null"]},"result":{"type":"boolean","description":"Whether the claim holds"},"disclosed":{"type":"object","additionalProperties":true,"description":"Attribute values the person chose to reveal"},"credentialDigest":{"type":["string","null"]}},"required":["type","result"]}},"proof":{"type":"string","description":"Registry-signed proof (JWS) of the current answer; verify against /.well-known/jwks.json"}},"required":["subscriptionId","subject","previous","current","proof"]},{"type":"object","properties":{"proofId":{"type":"string","description":"The proof credential id (urn:uuid)"},"proofHash":{"type":"string","description":"Lowercase hex SHA-256 of JCS(proof), as returned in wp_proof_hash"},"kind":{"type":"string","enum":["identity","credential"]},"clientId":{"type":"string"},"reason":{"type":"string","enum":["identity_revoked","consent_withdrawn","account_deleted","subject_deceased","credential_revoked","credential_updated","membership_removed","membership_left","membership_role_changed","org_suspended"]},"statusListCredential":{"type":"string"},"statusListIndex":{"type":"string"},"subscriptionId":{"type":["string","null"]}},"required":["proofId","proofHash","kind","clientId","reason","statusListCredential","statusListIndex","subscriptionId"]}]}},"required":["id","type","createdAt","data"]}}}},"responses":{"2XX":{"description":"Received. Any other status, or no answer within 10 seconds, is retried with backoff: 12 attempts over about 6 days."}}}},"credential.expired":{"post":{"summary":"credential.expired","description":"Monitoring update: something that can change a subscribed answer happened. The answer is re-evaluated under the person’s current consent; you receive the new results and proof.\n\nSigned with the registry webhook key: verify the `workpair-signature` header against /.well-known/jwks.json, reject timestamps more than 300 seconds from now, and de-duplicate on `id`.","parameters":[{"name":"workpair-signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,kid=<key id>,sig=<base64url Ed25519 signature over \"<t>.<raw body>\">"},{"name":"workpair-event-id","in":"header","required":true,"schema":{"type":"string"},"description":"Same value as the body `id`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Event id, unique per delivery target. Equal to the workpair-event-id header; redeliveries reuse it, so de-duplicate on it."},"type":{"type":"string","const":"credential.expired"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"subscriptionId":{"type":"string"},"subject":{"type":"string","description":"The subject reference you used when subscribing"},"previous":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"template":{"type":["string","null"]},"result":{"type":"boolean"}},"required":["type","template","result"]}},"current":{"type":"array","items":{"type":"object","description":"One answered claim (same shape as a verification request result).","properties":{"type":{"type":"string","description":"Claim type, e.g. employment"},"template":{"type":["string","null"]},"result":{"type":"boolean","description":"Whether the claim holds"},"disclosed":{"type":"object","additionalProperties":true,"description":"Attribute values the person chose to reveal"},"credentialDigest":{"type":["string","null"]}},"required":["type","result"]}},"proof":{"type":"string","description":"Registry-signed proof (JWS) of the current answer; verify against /.well-known/jwks.json"}},"required":["subscriptionId","subject","previous","current","proof"]}},"required":["id","type","createdAt","data"]}}}},"responses":{"2XX":{"description":"Received. Any other status, or no answer within 10 seconds, is retried with backoff: 12 attempts over about 6 days."}}}},"issuer.suspended":{"post":{"summary":"issuer.suspended","description":"Monitoring update: something that can change a subscribed answer happened. The answer is re-evaluated under the person’s current consent; you receive the new results and proof.\n\nSigned with the registry webhook key: verify the `workpair-signature` header against /.well-known/jwks.json, reject timestamps more than 300 seconds from now, and de-duplicate on `id`.","parameters":[{"name":"workpair-signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,kid=<key id>,sig=<base64url Ed25519 signature over \"<t>.<raw body>\">"},{"name":"workpair-event-id","in":"header","required":true,"schema":{"type":"string"},"description":"Same value as the body `id`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Event id, unique per delivery target. Equal to the workpair-event-id header; redeliveries reuse it, so de-duplicate on it."},"type":{"type":"string","const":"issuer.suspended"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"subscriptionId":{"type":"string"},"subject":{"type":"string","description":"The subject reference you used when subscribing"},"previous":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"template":{"type":["string","null"]},"result":{"type":"boolean"}},"required":["type","template","result"]}},"current":{"type":"array","items":{"type":"object","description":"One answered claim (same shape as a verification request result).","properties":{"type":{"type":"string","description":"Claim type, e.g. employment"},"template":{"type":["string","null"]},"result":{"type":"boolean","description":"Whether the claim holds"},"disclosed":{"type":"object","additionalProperties":true,"description":"Attribute values the person chose to reveal"},"credentialDigest":{"type":["string","null"]}},"required":["type","result"]}},"proof":{"type":"string","description":"Registry-signed proof (JWS) of the current answer; verify against /.well-known/jwks.json"}},"required":["subscriptionId","subject","previous","current","proof"]}},"required":["id","type","createdAt","data"]}}}},"responses":{"2XX":{"description":"Received. Any other status, or no answer within 10 seconds, is retried with backoff: 12 attempts over about 6 days."}}}},"issuer.reinstated":{"post":{"summary":"issuer.reinstated","description":"Monitoring update: something that can change a subscribed answer happened. The answer is re-evaluated under the person’s current consent; you receive the new results and proof.\n\nSigned with the registry webhook key: verify the `workpair-signature` header against /.well-known/jwks.json, reject timestamps more than 300 seconds from now, and de-duplicate on `id`.","parameters":[{"name":"workpair-signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,kid=<key id>,sig=<base64url Ed25519 signature over \"<t>.<raw body>\">"},{"name":"workpair-event-id","in":"header","required":true,"schema":{"type":"string"},"description":"Same value as the body `id`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Event id, unique per delivery target. Equal to the workpair-event-id header; redeliveries reuse it, so de-duplicate on it."},"type":{"type":"string","const":"issuer.reinstated"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"subscriptionId":{"type":"string"},"subject":{"type":"string","description":"The subject reference you used when subscribing"},"previous":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"template":{"type":["string","null"]},"result":{"type":"boolean"}},"required":["type","template","result"]}},"current":{"type":"array","items":{"type":"object","description":"One answered claim (same shape as a verification request result).","properties":{"type":{"type":"string","description":"Claim type, e.g. employment"},"template":{"type":["string","null"]},"result":{"type":"boolean","description":"Whether the claim holds"},"disclosed":{"type":"object","additionalProperties":true,"description":"Attribute values the person chose to reveal"},"credentialDigest":{"type":["string","null"]}},"required":["type","result"]}},"proof":{"type":"string","description":"Registry-signed proof (JWS) of the current answer; verify against /.well-known/jwks.json"}},"required":["subscriptionId","subject","previous","current","proof"]}},"required":["id","type","createdAt","data"]}}}},"responses":{"2XX":{"description":"Received. Any other status, or no answer within 10 seconds, is retried with backoff: 12 attempts over about 6 days."}}}},"consent.policy_updated":{"post":{"summary":"consent.policy_updated","description":"Monitoring update: something that can change a subscribed answer happened. The answer is re-evaluated under the person’s current consent; you receive the new results and proof.\n\nSigned with the registry webhook key: verify the `workpair-signature` header against /.well-known/jwks.json, reject timestamps more than 300 seconds from now, and de-duplicate on `id`.","parameters":[{"name":"workpair-signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,kid=<key id>,sig=<base64url Ed25519 signature over \"<t>.<raw body>\">"},{"name":"workpair-event-id","in":"header","required":true,"schema":{"type":"string"},"description":"Same value as the body `id`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Event id, unique per delivery target. Equal to the workpair-event-id header; redeliveries reuse it, so de-duplicate on it."},"type":{"type":"string","const":"consent.policy_updated"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"subscriptionId":{"type":"string"},"subject":{"type":"string","description":"The subject reference you used when subscribing"},"previous":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"template":{"type":["string","null"]},"result":{"type":"boolean"}},"required":["type","template","result"]}},"current":{"type":"array","items":{"type":"object","description":"One answered claim (same shape as a verification request result).","properties":{"type":{"type":"string","description":"Claim type, e.g. employment"},"template":{"type":["string","null"]},"result":{"type":"boolean","description":"Whether the claim holds"},"disclosed":{"type":"object","additionalProperties":true,"description":"Attribute values the person chose to reveal"},"credentialDigest":{"type":["string","null"]}},"required":["type","result"]}},"proof":{"type":"string","description":"Registry-signed proof (JWS) of the current answer; verify against /.well-known/jwks.json"}},"required":["subscriptionId","subject","previous","current","proof"]}},"required":["id","type","createdAt","data"]}}}},"responses":{"2XX":{"description":"Received. Any other status, or no answer within 10 seconds, is retried with backoff: 12 attempts over about 6 days."}}}},"consent.withdrawn":{"post":{"summary":"consent.withdrawn","description":"The person withdrew monitoring consent (or switched off the auto mode it relied on). The subscription has ended; no data is included.\n\nSigned with the registry webhook key: verify the `workpair-signature` header against /.well-known/jwks.json, reject timestamps more than 300 seconds from now, and de-duplicate on `id`.","parameters":[{"name":"workpair-signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,kid=<key id>,sig=<base64url Ed25519 signature over \"<t>.<raw body>\">"},{"name":"workpair-event-id","in":"header","required":true,"schema":{"type":"string"},"description":"Same value as the body `id`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Event id, unique per delivery target. Equal to the workpair-event-id header; redeliveries reuse it, so de-duplicate on it."},"type":{"type":"string","const":"consent.withdrawn"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"subscriptionId":{"type":"string"}},"required":["subscriptionId"]}},"required":["id","type","createdAt","data"]}}}},"responses":{"2XX":{"description":"Received. Any other status, or no answer within 10 seconds, is retried with backoff: 12 attempts over about 6 days."}}}},"subscription.expired":{"post":{"summary":"subscription.expired","description":"A monitoring subscription reached the end of its approved window.\n\nSigned with the registry webhook key: verify the `workpair-signature` header against /.well-known/jwks.json, reject timestamps more than 300 seconds from now, and de-duplicate on `id`.","parameters":[{"name":"workpair-signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,kid=<key id>,sig=<base64url Ed25519 signature over \"<t>.<raw body>\">"},{"name":"workpair-event-id","in":"header","required":true,"schema":{"type":"string"},"description":"Same value as the body `id`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Event id, unique per delivery target. Equal to the workpair-event-id header; redeliveries reuse it, so de-duplicate on it."},"type":{"type":"string","const":"subscription.expired"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"subscriptionId":{"type":"string"}},"required":["subscriptionId"]}},"required":["id","type","createdAt","data"]}}}},"responses":{"2XX":{"description":"Received. Any other status, or no answer within 10 seconds, is retried with backoff: 12 attempts over about 6 days."}}}},"subject.deceased":{"post":{"summary":"subject.deceased","description":"The subject has died (recorded by WorkPair staff). The subscription has ended.\n\nSigned with the registry webhook key: verify the `workpair-signature` header against /.well-known/jwks.json, reject timestamps more than 300 seconds from now, and de-duplicate on `id`.","parameters":[{"name":"workpair-signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,kid=<key id>,sig=<base64url Ed25519 signature over \"<t>.<raw body>\">"},{"name":"workpair-event-id","in":"header","required":true,"schema":{"type":"string"},"description":"Same value as the body `id`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Event id, unique per delivery target. Equal to the workpair-event-id header; redeliveries reuse it, so de-duplicate on it."},"type":{"type":"string","const":"subject.deceased"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"subscriptionId":{"type":"string"}},"required":["subscriptionId"]}},"required":["id","type","createdAt","data"]}}}},"responses":{"2XX":{"description":"Received. Any other status, or no answer within 10 seconds, is retried with backoff: 12 attempts over about 6 days."}}}},"subject.erased":{"post":{"summary":"subject.erased","description":"The subject deleted their WorkPair ID. The subscription has ended; delete what you hold under your own retention rules.\n\nSigned with the registry webhook key: verify the `workpair-signature` header against /.well-known/jwks.json, reject timestamps more than 300 seconds from now, and de-duplicate on `id`.","parameters":[{"name":"workpair-signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,kid=<key id>,sig=<base64url Ed25519 signature over \"<t>.<raw body>\">"},{"name":"workpair-event-id","in":"header","required":true,"schema":{"type":"string"},"description":"Same value as the body `id`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Event id, unique per delivery target. Equal to the workpair-event-id header; redeliveries reuse it, so de-duplicate on it."},"type":{"type":"string","const":"subject.erased"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"subscriptionId":{"type":"string"}},"required":["subscriptionId"]}},"required":["id","type","createdAt","data"]}}}},"responses":{"2XX":{"description":"Received. Any other status, or no answer within 10 seconds, is retried with backoff: 12 attempts over about 6 days."}}}},"person.identity_verified":{"post":{"summary":"person.identity_verified","description":"Monitoring update: something that can change a subscribed answer happened. The answer is re-evaluated under the person’s current consent; you receive the new results and proof.\n\nSigned with the registry webhook key: verify the `workpair-signature` header against /.well-known/jwks.json, reject timestamps more than 300 seconds from now, and de-duplicate on `id`.","parameters":[{"name":"workpair-signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,kid=<key id>,sig=<base64url Ed25519 signature over \"<t>.<raw body>\">"},{"name":"workpair-event-id","in":"header","required":true,"schema":{"type":"string"},"description":"Same value as the body `id`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Event id, unique per delivery target. Equal to the workpair-event-id header; redeliveries reuse it, so de-duplicate on it."},"type":{"type":"string","const":"person.identity_verified"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"subscriptionId":{"type":"string"},"subject":{"type":"string","description":"The subject reference you used when subscribing"},"previous":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"template":{"type":["string","null"]},"result":{"type":"boolean"}},"required":["type","template","result"]}},"current":{"type":"array","items":{"type":"object","description":"One answered claim (same shape as a verification request result).","properties":{"type":{"type":"string","description":"Claim type, e.g. employment"},"template":{"type":["string","null"]},"result":{"type":"boolean","description":"Whether the claim holds"},"disclosed":{"type":"object","additionalProperties":true,"description":"Attribute values the person chose to reveal"},"credentialDigest":{"type":["string","null"]}},"required":["type","result"]}},"proof":{"type":"string","description":"Registry-signed proof (JWS) of the current answer; verify against /.well-known/jwks.json"}},"required":["subscriptionId","subject","previous","current","proof"]}},"required":["id","type","createdAt","data"]}}}},"responses":{"2XX":{"description":"Received. Any other status, or no answer within 10 seconds, is retried with backoff: 12 attempts over about 6 days."}}}},"person.majority_reached":{"post":{"summary":"person.majority_reached","description":"Monitoring update: something that can change a subscribed answer happened. The answer is re-evaluated under the person’s current consent; you receive the new results and proof.\n\nSigned with the registry webhook key: verify the `workpair-signature` header against /.well-known/jwks.json, reject timestamps more than 300 seconds from now, and de-duplicate on `id`.","parameters":[{"name":"workpair-signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,kid=<key id>,sig=<base64url Ed25519 signature over \"<t>.<raw body>\">"},{"name":"workpair-event-id","in":"header","required":true,"schema":{"type":"string"},"description":"Same value as the body `id`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Event id, unique per delivery target. Equal to the workpair-event-id header; redeliveries reuse it, so de-duplicate on it."},"type":{"type":"string","const":"person.majority_reached"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"subscriptionId":{"type":"string"},"subject":{"type":"string","description":"The subject reference you used when subscribing"},"previous":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"template":{"type":["string","null"]},"result":{"type":"boolean"}},"required":["type","template","result"]}},"current":{"type":"array","items":{"type":"object","description":"One answered claim (same shape as a verification request result).","properties":{"type":{"type":"string","description":"Claim type, e.g. employment"},"template":{"type":["string","null"]},"result":{"type":"boolean","description":"Whether the claim holds"},"disclosed":{"type":"object","additionalProperties":true,"description":"Attribute values the person chose to reveal"},"credentialDigest":{"type":["string","null"]}},"required":["type","result"]}},"proof":{"type":"string","description":"Registry-signed proof (JWS) of the current answer; verify against /.well-known/jwks.json"}},"required":["subscriptionId","subject","previous","current","proof"]}},"required":["id","type","createdAt","data"]}}}},"responses":{"2XX":{"description":"Received. Any other status, or no answer within 10 seconds, is retried with backoff: 12 attempts over about 6 days."}}}},"person.majority_transfer_completed":{"post":{"summary":"person.majority_transfer_completed","description":"Monitoring update: something that can change a subscribed answer happened. The answer is re-evaluated under the person’s current consent; you receive the new results and proof.\n\nSigned with the registry webhook key: verify the `workpair-signature` header against /.well-known/jwks.json, reject timestamps more than 300 seconds from now, and de-duplicate on `id`.","parameters":[{"name":"workpair-signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,kid=<key id>,sig=<base64url Ed25519 signature over \"<t>.<raw body>\">"},{"name":"workpair-event-id","in":"header","required":true,"schema":{"type":"string"},"description":"Same value as the body `id`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Event id, unique per delivery target. Equal to the workpair-event-id header; redeliveries reuse it, so de-duplicate on it."},"type":{"type":"string","const":"person.majority_transfer_completed"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"subscriptionId":{"type":"string"},"subject":{"type":"string","description":"The subject reference you used when subscribing"},"previous":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"template":{"type":["string","null"]},"result":{"type":"boolean"}},"required":["type","template","result"]}},"current":{"type":"array","items":{"type":"object","description":"One answered claim (same shape as a verification request result).","properties":{"type":{"type":"string","description":"Claim type, e.g. employment"},"template":{"type":["string","null"]},"result":{"type":"boolean","description":"Whether the claim holds"},"disclosed":{"type":"object","additionalProperties":true,"description":"Attribute values the person chose to reveal"},"credentialDigest":{"type":["string","null"]}},"required":["type","result"]}},"proof":{"type":"string","description":"Registry-signed proof (JWS) of the current answer; verify against /.well-known/jwks.json"}},"required":["subscriptionId","subject","previous","current","proof"]}},"required":["id","type","createdAt","data"]}}}},"responses":{"2XX":{"description":"Received. Any other status, or no answer within 10 seconds, is retried with backoff: 12 attempts over about 6 days."}}}},"person.deceased":{"post":{"summary":"person.deceased","description":"Monitoring update: something that can change a subscribed answer happened. The answer is re-evaluated under the person’s current consent; you receive the new results and proof.\n\nSigned with the registry webhook key: verify the `workpair-signature` header against /.well-known/jwks.json, reject timestamps more than 300 seconds from now, and de-duplicate on `id`.","parameters":[{"name":"workpair-signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,kid=<key id>,sig=<base64url Ed25519 signature over \"<t>.<raw body>\">"},{"name":"workpair-event-id","in":"header","required":true,"schema":{"type":"string"},"description":"Same value as the body `id`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Event id, unique per delivery target. Equal to the workpair-event-id header; redeliveries reuse it, so de-duplicate on it."},"type":{"type":"string","const":"person.deceased"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"subscriptionId":{"type":"string"},"subject":{"type":"string","description":"The subject reference you used when subscribing"},"previous":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"template":{"type":["string","null"]},"result":{"type":"boolean"}},"required":["type","template","result"]}},"current":{"type":"array","items":{"type":"object","description":"One answered claim (same shape as a verification request result).","properties":{"type":{"type":"string","description":"Claim type, e.g. employment"},"template":{"type":["string","null"]},"result":{"type":"boolean","description":"Whether the claim holds"},"disclosed":{"type":"object","additionalProperties":true,"description":"Attribute values the person chose to reveal"},"credentialDigest":{"type":["string","null"]}},"required":["type","result"]}},"proof":{"type":"string","description":"Registry-signed proof (JWS) of the current answer; verify against /.well-known/jwks.json"}},"required":["subscriptionId","subject","previous","current","proof"]}},"required":["id","type","createdAt","data"]}}}},"responses":{"2XX":{"description":"Received. Any other status, or no answer within 10 seconds, is retried with backoff: 12 attempts over about 6 days."}}}},"person.erased":{"post":{"summary":"person.erased","description":"Monitoring update: something that can change a subscribed answer happened. The answer is re-evaluated under the person’s current consent; you receive the new results and proof.\n\nSigned with the registry webhook key: verify the `workpair-signature` header against /.well-known/jwks.json, reject timestamps more than 300 seconds from now, and de-duplicate on `id`.","parameters":[{"name":"workpair-signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,kid=<key id>,sig=<base64url Ed25519 signature over \"<t>.<raw body>\">"},{"name":"workpair-event-id","in":"header","required":true,"schema":{"type":"string"},"description":"Same value as the body `id`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Event id, unique per delivery target. Equal to the workpair-event-id header; redeliveries reuse it, so de-duplicate on it."},"type":{"type":"string","const":"person.erased"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"subscriptionId":{"type":"string"},"subject":{"type":"string","description":"The subject reference you used when subscribing"},"previous":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"template":{"type":["string","null"]},"result":{"type":"boolean"}},"required":["type","template","result"]}},"current":{"type":"array","items":{"type":"object","description":"One answered claim (same shape as a verification request result).","properties":{"type":{"type":"string","description":"Claim type, e.g. employment"},"template":{"type":["string","null"]},"result":{"type":"boolean","description":"Whether the claim holds"},"disclosed":{"type":"object","additionalProperties":true,"description":"Attribute values the person chose to reveal"},"credentialDigest":{"type":["string","null"]}},"required":["type","result"]}},"proof":{"type":"string","description":"Registry-signed proof (JWS) of the current answer; verify against /.well-known/jwks.json"}},"required":["subscriptionId","subject","previous","current","proof"]}},"required":["id","type","createdAt","data"]}}}},"responses":{"2XX":{"description":"Received. Any other status, or no answer within 10 seconds, is retried with backoff: 12 attempts over about 6 days."}}}},"guardianship.approved":{"post":{"summary":"guardianship.approved","description":"Monitoring update: something that can change a subscribed answer happened. The answer is re-evaluated under the person’s current consent; you receive the new results and proof.\n\nSigned with the registry webhook key: verify the `workpair-signature` header against /.well-known/jwks.json, reject timestamps more than 300 seconds from now, and de-duplicate on `id`.","parameters":[{"name":"workpair-signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,kid=<key id>,sig=<base64url Ed25519 signature over \"<t>.<raw body>\">"},{"name":"workpair-event-id","in":"header","required":true,"schema":{"type":"string"},"description":"Same value as the body `id`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Event id, unique per delivery target. Equal to the workpair-event-id header; redeliveries reuse it, so de-duplicate on it."},"type":{"type":"string","const":"guardianship.approved"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"subscriptionId":{"type":"string"},"subject":{"type":"string","description":"The subject reference you used when subscribing"},"previous":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"template":{"type":["string","null"]},"result":{"type":"boolean"}},"required":["type","template","result"]}},"current":{"type":"array","items":{"type":"object","description":"One answered claim (same shape as a verification request result).","properties":{"type":{"type":"string","description":"Claim type, e.g. employment"},"template":{"type":["string","null"]},"result":{"type":"boolean","description":"Whether the claim holds"},"disclosed":{"type":"object","additionalProperties":true,"description":"Attribute values the person chose to reveal"},"credentialDigest":{"type":["string","null"]}},"required":["type","result"]}},"proof":{"type":"string","description":"Registry-signed proof (JWS) of the current answer; verify against /.well-known/jwks.json"}},"required":["subscriptionId","subject","previous","current","proof"]}},"required":["id","type","createdAt","data"]}}}},"responses":{"2XX":{"description":"Received. Any other status, or no answer within 10 seconds, is retried with backoff: 12 attempts over about 6 days."}}}},"guardianship.rejected":{"post":{"summary":"guardianship.rejected","description":"Monitoring update: something that can change a subscribed answer happened. The answer is re-evaluated under the person’s current consent; you receive the new results and proof.\n\nSigned with the registry webhook key: verify the `workpair-signature` header against /.well-known/jwks.json, reject timestamps more than 300 seconds from now, and de-duplicate on `id`.","parameters":[{"name":"workpair-signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,kid=<key id>,sig=<base64url Ed25519 signature over \"<t>.<raw body>\">"},{"name":"workpair-event-id","in":"header","required":true,"schema":{"type":"string"},"description":"Same value as the body `id`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Event id, unique per delivery target. Equal to the workpair-event-id header; redeliveries reuse it, so de-duplicate on it."},"type":{"type":"string","const":"guardianship.rejected"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"subscriptionId":{"type":"string"},"subject":{"type":"string","description":"The subject reference you used when subscribing"},"previous":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"template":{"type":["string","null"]},"result":{"type":"boolean"}},"required":["type","template","result"]}},"current":{"type":"array","items":{"type":"object","description":"One answered claim (same shape as a verification request result).","properties":{"type":{"type":"string","description":"Claim type, e.g. employment"},"template":{"type":["string","null"]},"result":{"type":"boolean","description":"Whether the claim holds"},"disclosed":{"type":"object","additionalProperties":true,"description":"Attribute values the person chose to reveal"},"credentialDigest":{"type":["string","null"]}},"required":["type","result"]}},"proof":{"type":"string","description":"Registry-signed proof (JWS) of the current answer; verify against /.well-known/jwks.json"}},"required":["subscriptionId","subject","previous","current","proof"]}},"required":["id","type","createdAt","data"]}}}},"responses":{"2XX":{"description":"Received. Any other status, or no answer within 10 seconds, is retried with backoff: 12 attempts over about 6 days."}}}},"guardianship.revoked":{"post":{"summary":"guardianship.revoked","description":"Monitoring update: something that can change a subscribed answer happened. The answer is re-evaluated under the person’s current consent; you receive the new results and proof.\n\nSigned with the registry webhook key: verify the `workpair-signature` header against /.well-known/jwks.json, reject timestamps more than 300 seconds from now, and de-duplicate on `id`.","parameters":[{"name":"workpair-signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,kid=<key id>,sig=<base64url Ed25519 signature over \"<t>.<raw body>\">"},{"name":"workpair-event-id","in":"header","required":true,"schema":{"type":"string"},"description":"Same value as the body `id`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Event id, unique per delivery target. Equal to the workpair-event-id header; redeliveries reuse it, so de-duplicate on it."},"type":{"type":"string","const":"guardianship.revoked"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"subscriptionId":{"type":"string"},"subject":{"type":"string","description":"The subject reference you used when subscribing"},"previous":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"template":{"type":["string","null"]},"result":{"type":"boolean"}},"required":["type","template","result"]}},"current":{"type":"array","items":{"type":"object","description":"One answered claim (same shape as a verification request result).","properties":{"type":{"type":"string","description":"Claim type, e.g. employment"},"template":{"type":["string","null"]},"result":{"type":"boolean","description":"Whether the claim holds"},"disclosed":{"type":"object","additionalProperties":true,"description":"Attribute values the person chose to reveal"},"credentialDigest":{"type":["string","null"]}},"required":["type","result"]}},"proof":{"type":"string","description":"Registry-signed proof (JWS) of the current answer; verify against /.well-known/jwks.json"}},"required":["subscriptionId","subject","previous","current","proof"]}},"required":["id","type","createdAt","data"]}}}},"responses":{"2XX":{"description":"Received. Any other status, or no answer within 10 seconds, is retried with backoff: 12 attempts over about 6 days."}}}},"organization.credential_changed":{"post":{"summary":"organization.credential_changed","description":"Monitoring of an organization: a credential you were shown (approved under your request) was updated, revoked, expired or accepted. Ask again to see the new answer.\n\nSigned with the registry webhook key: verify the `workpair-signature` header against /.well-known/jwks.json, reject timestamps more than 300 seconds from now, and de-duplicate on `id`.","parameters":[{"name":"workpair-signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,kid=<key id>,sig=<base64url Ed25519 signature over \"<t>.<raw body>\">"},{"name":"workpair-event-id","in":"header","required":true,"schema":{"type":"string"},"description":"Same value as the body `id`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Event id, unique per delivery target. Equal to the workpair-event-id header; redeliveries reuse it, so de-duplicate on it."},"type":{"type":"string","const":"organization.credential_changed"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"subscriptionId":{"type":"string"},"orgId":{"type":"string","description":"The organization’s 15-character WorkPair ID"},"credentialRootId":{"type":"string"},"change":{"type":"string","enum":["issued","updated","revoked","superseded","expired","accepted"]}},"required":["subscriptionId","orgId","credentialRootId","change"]}},"required":["id","type","createdAt","data"]}}}},"responses":{"2XX":{"description":"Received. Any other status, or no answer within 10 seconds, is retried with backoff: 12 attempts over about 6 days."}}}},"credential.rectified":{"post":{"summary":"credential.rectified","description":"A record about a person that an answer, monitoring update or Login with WorkPair proof you received was based on has been corrected, withdrawn as inaccurate, or deleted at the person’s request (GDPR Art. 19). The new details are not included: check again (send a new request) before relying on your earlier answer.\n\nSigned with the registry webhook key: verify the `workpair-signature` header against /.well-known/jwks.json, reject timestamps more than 300 seconds from now, and de-duplicate on `id`.","parameters":[{"name":"workpair-signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,kid=<key id>,sig=<base64url Ed25519 signature over \"<t>.<raw body>\">"},{"name":"workpair-event-id","in":"header","required":true,"schema":{"type":"string"},"description":"Same value as the body `id`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Event id, unique per delivery target. Equal to the workpair-event-id header; redeliveries reuse it, so de-duplicate on it."},"type":{"type":"string","const":"credential.rectified"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"noticeId":{"type":"string","description":"Unique per organization and change"},"change":{"type":"string","enum":["corrected","revoked","erased"]},"claim":{"type":"object","properties":{"type":{"type":"string","description":"Claim type you asked about"},"template":{"type":"string","description":"Template of the record"}},"required":["type","template"]},"subject":{"type":["string","null"],"description":"The subject reference you used in your latest request about this person, if any"},"proofHashes":{"type":"array","items":{"type":"string"},"description":"Hashes of Login with WorkPair proofs you hold that were based on this record"},"action":{"type":"string","const":"recheck"},"occurredAt":{"type":"string","format":"date-time"}},"required":["noticeId","change","claim","subject","proofHashes","action","occurredAt"]}},"required":["id","type","createdAt","data"]}}}},"responses":{"2XX":{"description":"Received. Any other status, or no answer within 10 seconds, is retried with backoff: 12 attempts over about 6 days."}}}},"organization.membership_revoked":{"post":{"summary":"organization.membership_revoked","description":"A Login with WorkPair proof you hold attested the person’s role in an organization, and that membership ended or changed (or the organization was suspended). The proof is revoked (its status-list bit is set; credential.revoked is sent for it too). End the person’s access that rested on it.\n\nSigned with the registry webhook key: verify the `workpair-signature` header against /.well-known/jwks.json, reject timestamps more than 300 seconds from now, and de-duplicate on `id`.","parameters":[{"name":"workpair-signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,kid=<key id>,sig=<base64url Ed25519 signature over \"<t>.<raw body>\">"},{"name":"workpair-event-id","in":"header","required":true,"schema":{"type":"string"},"description":"Same value as the body `id`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Event id, unique per delivery target. Equal to the workpair-event-id header; redeliveries reuse it, so de-duplicate on it."},"type":{"type":"string","const":"organization.membership_revoked"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"clientId":{"type":"string","description":"Your OIDC client"},"sub":{"type":"string","description":"The person’s pairwise subject for your client (the id_token sub)"},"orgId":{"type":"string","description":"The organization’s 15-character WorkPair ID"},"reason":{"type":"string","enum":["removed","left","role_changed","org_suspended"]}},"required":["clientId","sub","orgId","reason"]}},"required":["id","type","createdAt","data"]}}}},"responses":{"2XX":{"description":"Received. Any other status, or no answer within 10 seconds, is retried with backoff: 12 attempts over about 6 days."}}}},"organization.status_changed":{"post":{"summary":"organization.status_changed","description":"An organization you hold live Login with WorkPair proofs about changed standing: its business verification state changed (verified, pending, needs_reverification, unverified), WorkPair suspended or reinstated it, or its last WorkPair workspace closed. GET /v1/oidc/organizations/{orgId} for the full object.\n\nSigned with the registry webhook key: verify the `workpair-signature` header against /.well-known/jwks.json, reject timestamps more than 300 seconds from now, and de-duplicate on `id`.","parameters":[{"name":"workpair-signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,kid=<key id>,sig=<base64url Ed25519 signature over \"<t>.<raw body>\">"},{"name":"workpair-event-id","in":"header","required":true,"schema":{"type":"string"},"description":"Same value as the body `id`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Event id, unique per delivery target. Equal to the workpair-event-id header; redeliveries reuse it, so de-duplicate on it."},"type":{"type":"string","const":"organization.status_changed"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"orgId":{"type":"string","description":"The organization’s 15-character WorkPair ID"},"verified":{"type":"boolean","description":"Whether the organization is business-verified now (verification is \"verified\")"},"status":{"type":"string","enum":["active","suspended","closed"]},"verification":{"type":"string","enum":["verified","pending","needs_reverification","unverified"],"description":"needs_reverification: it was verified, then Stripe asked for information again or stopped verifying it (found by the owners’ refresh or WorkPair’s daily recheck)"}},"required":["orgId","verified","status","verification"]}},"required":["id","type","createdAt","data"]}}}},"responses":{"2XX":{"description":"Received. Any other status, or no answer within 10 seconds, is retried with backoff: 12 attempts over about 6 days."}}}},"organization.profile_changed":{"post":{"summary":"organization.profile_changed","description":"An organization you hold live Login with WorkPair proofs about changed its profile on WorkPair. Fetch GET /v1/oidc/organizations/{orgId} for the new values; show them read-only.\n\nSigned with the registry webhook key: verify the `workpair-signature` header against /.well-known/jwks.json, reject timestamps more than 300 seconds from now, and de-duplicate on `id`.","parameters":[{"name":"workpair-signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,kid=<key id>,sig=<base64url Ed25519 signature over \"<t>.<raw body>\">"},{"name":"workpair-event-id","in":"header","required":true,"schema":{"type":"string"},"description":"Same value as the body `id`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Event id, unique per delivery target. Equal to the workpair-event-id header; redeliveries reuse it, so de-duplicate on it."},"type":{"type":"string","const":"organization.profile_changed"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"orgId":{"type":"string","description":"The organization’s 15-character WorkPair ID"},"changed":{"type":"array","items":{"type":"string","enum":["country","region","sector","legal_form","size","website"]},"description":"The profile fields that changed"},"updated_at":{"type":"string","format":"date-time","description":"The organization’s new updated_at"}},"required":["orgId","changed","updated_at"]}},"required":["id","type","createdAt","data"]}}}},"responses":{"2XX":{"description":"Received. Any other status, or no answer within 10 seconds, is retried with backoff: 12 attempts over about 6 days."}}}},"webhook.ping":{"post":{"summary":"webhook.ping","description":"Sent by POST /v1/webhook-endpoints/{id}/ping to test an endpoint.\n\nSigned with the registry webhook key: verify the `workpair-signature` header against /.well-known/jwks.json, reject timestamps more than 300 seconds from now, and de-duplicate on `id`.","parameters":[{"name":"workpair-signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,kid=<key id>,sig=<base64url Ed25519 signature over \"<t>.<raw body>\">"},{"name":"workpair-event-id","in":"header","required":true,"schema":{"type":"string"},"description":"Same value as the body `id`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Event id, unique per delivery target. Equal to the workpair-event-id header; redeliveries reuse it, so de-duplicate on it."},"type":{"type":"string","const":"webhook.ping"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"endpointId":{"type":"string"}},"required":["endpointId"]}},"required":["id","type","createdAt","data"]}}}},"responses":{"2XX":{"description":"Received. Any other status, or no answer within 10 seconds, is retried with backoff: 12 attempts over about 6 days."}}}}}}