{"openapi":"3.1.0","info":{"title":"Verfi API","version":"1.0.0","description":"TCPA consent verification API. Capture, claim, and verify proof of consumer consent for lead generation.","contact":{"name":"Verfi","url":"https://verfi.io","email":"support@verfi.io"},"license":{"name":"Proprietary","url":"https://verfi.io/terms"}},"servers":[{"url":"https://api.verfi.io/tenant/v1","description":"Production"},{"url":"https://api.staging.verfi.io/api/tenant/v1","description":"Staging"}],"security":[{"bearerAuth":[]}],"paths":{"/sessions":{"get":{"operationId":"listSessions","summary":"List claimed sessions","description":"Returns paginated list of sessions claimed by the authenticated tenant.","tags":["Sessions"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"page","in":"query","schema":{"type":"integer","default":1,"minimum":1},"description":"Page number"},{"name":"limit","in":"query","schema":{"type":"integer","default":20,"minimum":1,"maximum":100},"description":"Results per page"},{"name":"status","in":"query","schema":{"type":"string","enum":["claimed","unclaimed","recorded","expired"]},"description":"Filter by session status"}],"responses":{"200":{"description":"Paginated session list","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"sessions":{"type":"array","items":{"$ref":"#/components/schemas/SessionSummary"}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/sessions/{verfiID}/claim-status":{"get":{"operationId":"getSessionClaimStatus","summary":"Get claim status for a session","description":"Returns the claim mode and claimability of a session. For exclusive sessions that have already been claimed, includes the claim timestamp. Never exposes any tenant identity. Requires `sessions:search` scope. Read-only pre-claim check, not a reservation or buyer-gate evaluation. Multi mode does not check current tenant duplicate claims. Shares sessions:search per-tenant limits (60/minute, 10000/day, 100000/month).","tags":["Sessions"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/verfiID"}],"responses":{"200":{"description":"Claim status","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","required":["verfiID","claimMode","claimable"],"properties":{"verfiID":{"type":"string","example":"VF-a1b2c3d4"},"claimMode":{"type":"string","enum":["multi","exclusive"],"description":"Whether the session allows multiple claims or only a single exclusive claim"},"claimable":{"type":"boolean","description":"Whether the session can currently be claimed"},"claimedAt":{"type":"string","format":"date-time","description":"Timestamp of the active exclusive claim. Only present when claimMode=exclusive and claimable=false."},"recordingStatus":{"type":"string","enum":["valid","insufficient","empty"]},"hasValidRecording":{"type":"boolean"}}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"$ref":"#/components/responses/InternalError"}}}},"/sessions/{verfiID}/claim":{"post":{"operationId":"claimSession","summary":"Claim a session","description":"Claims an unclaimed session for the authenticated tenant. Retention defaults to 3 years and is configurable on claim and updateable through the expiration endpoint. Current expiration limits remain anchored to the claim date. Requires `sessions:claim` scope. After receipt lookup and session resolution, validate new PII/hash/mode inputs, then check requireClaimMode and requirePII before session eligibility. Existing web gates follow: requireRecording, requireVerticals, requireVerifiedScore, minQualityScore. Mode/PII are rechecked inside the transaction. Native evidence cannot satisfy required PII (409 pii_matching_unavailable). Gate failures do not create a claim or charge. Wallet receipt replays return before re-evaluating gates.","tags":["Sessions"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/verfiID"},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":16,"maxLength":128,"pattern":"^[A-Za-z0-9_-]+$"},"description":"Required for wallet-enrolled tenants. Use a UUID per intended claim; preserve the key and JSON body on retry. Intentional reclaim after unclaim needs a new key. Successful receipts survive unclaim and replay without charge or reactivation. Legacy claims do not provide wallet receipt replay semantics; changed session/body with a used wallet key returns 409 idempotency_conflict."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"expirationDate":{"type":"string","format":"date-time","description":"Custom expiration date (ISO 8601). Max 5 years from claim date. Defaults to 3 years."},"requirePII":{"type":"array","minItems":1,"maxItems":2,"uniqueItems":true,"items":{"type":"string","enum":["email","phone"]},"description":"Every selected field must match (AND). Requires corresponding emailHash/phoneHash. Invalid policy or unselected supplied hash: 400 invalid_pii_requirement. Missing/malformed required hash: 400 invalid_pii_hash. Missing captured PII or unequal hash: 409 pii_mismatch. Native evidence: 409 pii_matching_unavailable."},"emailHash":{"type":"string","pattern":"^[a-f0-9]{64}$","description":"SHA-256 of exact captured UTF-8 email; no normalization/double-hashing. Must select email in requirePII."},"phoneHash":{"type":"string","pattern":"^[a-f0-9]{64}$","description":"SHA-256 of exact captured UTF-8 phone; no normalization/double-hashing. Must select phone in requirePII."},"requireClaimMode":{"type":"string","enum":["exclusive","multi"],"description":"Checks immutable publisher mode, never sets it. Omission accepts either. Older sessions default multi. Invalid value: 400 invalid_claim_mode_requirement; mismatch: 409 claim_mode_mismatch."},"requireVerticals":{"type":"array","items":{"type":"string"},"description":"Optional. If present, the claim is accepted only if the session's declared verticals share at least one value with this list (any-overlap rule). Sessions with no declared verticals are treated as a mismatch. Custom x_-prefixed verticals are supported. On mismatch the endpoint returns 409 with error: 'intent_mismatch'.","example":["auto_insurance","home_insurance"]},"requireVerifiedScore":{"type":"number","minimum":0,"maximum":1,"description":"Optional 0–1 inclusive threshold for cached keyword heuristics from URL, title and non-PII form metadata against declared starter verticals (not replay analysis). Averaged across declared starter verticals; no starter declarations score zero. Below threshold returns 409 verification_below_threshold.","example":0.5},"minQualityScore":{"type":"number","minimum":0,"maximum":100,"description":"Optional (0–100). Lead-quality gate (#307). If present, lazily computes and caches the heuristic bot-detection quality score the first time it is requested, then compares it against this threshold. If the session's quality score is below the threshold, returns 409 with error: 'quality_below_threshold' and the claim is NOT consumed (no charge). Absent = no quality gate (back-compat).","example":50},"requireRecording":{"type":"boolean","description":"Opt-in recording-validity gate. True requires at least two meaningful clicks, scrolls or form interactions. Failure returns 409 no_recording before claim/billing. False/absent skips this gate."}}}}}},"responses":{"200":{"description":"Session claimed successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"verfiID":{"type":"string","example":"VF-a1b2c3d4"},"status":{"type":"string","const":"claimed"},"claimedAt":{"type":"string","format":"date-time"},"expirationDate":{"type":"string","format":"date-time"},"tenantId":{"type":"string"},"claimId":{"type":"string"}}},"warnings":{"type":"array","items":{"type":"string"},"description":"Validation warnings (e.g., custom expiration clamped)"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"description":"Wallet balance, monthly spend limit or payment-review restriction. No claim or debit committed."},"403":{"description":"Usage limit exceeded (free tier)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"$ref":"#/components/responses/NotFound"},"409":{"description":"Gate failure, existing claim, nonclaimable state or idempotency conflict; inspect error. No new claim charge.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Error code. `pii_mismatch`, `pii_matching_unavailable`, or `claim_mode_mismatch` for the new acceptance gates. `already_claimed` when an exclusive session is taken; `Session already claimed` when this tenant has an existing claim; `intent_mismatch` when the session's declared verticals do not overlap with requireVerticals; `verification_below_threshold` when the session's heuristic content score is below requireVerifiedScore; `quality_below_threshold` when the session's lead-quality score is below minQualityScore (claim not consumed). no_recording: recording gate failed. idempotency_conflict: a key was reused with different session/body.","example":"already_claimed"},"details":{"type":"string"},"claimMode":{"type":"string","enum":["exclusive"],"description":"Present when error=already_claimed"},"claimedAt":{"type":"string","format":"date-time","description":"Timestamp of the winning claim. Present when error=already_claimed and the pre-check caught the race."},"requiredVerticals":{"type":"array","items":{"type":"string"},"description":"The verticals the buyer required. Present when error=intent_mismatch."},"declaredVerticals":{"type":"array","items":{"type":"string"},"description":"The verticals the session declared. Present when error=intent_mismatch. Empty array means the session had no declared intent."},"requiredVerifiedScore":{"type":"number","description":"The threshold the buyer required. Present when error=verification_below_threshold."},"verifiedScore":{"type":"number","description":"The session's computed heuristic score (0–1). Present when error=verification_below_threshold."},"verifiedVerticals":{"type":"array","items":{"type":"string"},"description":"Starter verticals detected in content. Present when error=verification_below_threshold."}},"required":["error"]}}}},"500":{"$ref":"#/components/responses/InternalError"},"503":{"description":"Claim execution unavailable for the account. No fallback to legacy billing for wallet-enrolled tenants."}}}},"/sessions/{verfiID}/unclaim":{"post":{"operationId":"unclaimSession","summary":"Unclaim a session","description":"Releases a claimed session. Retention drops to 30 days. Only the claiming tenant can unclaim. Requires `sessions:unclaim` scope.","tags":["Sessions"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/verfiID"}],"responses":{"200":{"description":"Session unclaimed successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"verfiID":{"type":"string","example":"VF-a1b2c3d4"},"status":{"type":"string","const":"unclaimed"},"claimingTenantId":{"type":"string","const":"unclaimed"},"unclaimedAt":{"type":"string","format":"date-time"},"unclaimedByTenantId":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"Not authorized — session claimed by different tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"$ref":"#/components/responses/NotFound"},"409":{"description":"Session not claimed or already unclaimed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"$ref":"#/components/responses/InternalError"}}}},"/sessions/{verfiID}/expiration":{"put":{"operationId":"updateSessionExpiration","summary":"Update session expiration","description":"Updates the expiration date of a claimed session; this does not reset the claim date or allow indefinite renewal. Must be 30+ days from now and within 5 years of claim date. Rate limited: 3 updates/month with 24-hour cooldown. Requires `sessions:expiration` scope.","tags":["Sessions"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/verfiID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["expirationDate"],"properties":{"expirationDate":{"type":"string","format":"date-time","description":"New expiration date (ISO 8601). Must be 30+ days from now, max 5 years from claim date."}}}}}},"responses":{"200":{"description":"Expiration updated successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"message":{"type":"string"},"verfiID":{"type":"string"},"expirationDate":{"type":"string","format":"date-time"},"rateLimitInfo":{"type":"object","properties":{"updatesRemaining":{"type":"integer"},"nextUpdateAllowed":{"type":"string","format":"date-time"},"monthlyResetDate":{"type":"string","format":"date-time"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"Not authorized — session claimed by different tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"$ref":"#/components/responses/NotFound"},"409":{"description":"Session not in claimed state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited — cooldown active or monthly limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"$ref":"#/components/responses/InternalError"}}}},"/sessions/{verfiID}/proof":{"get":{"operationId":"getSessionProof","summary":"Get machine-readable proof","description":"Returns structured consent proof data for a session. All PII is SHA-256 hashed. Designed for AI agents and automated compliance verification. Requires `sessions:proof` scope.","tags":["Sessions"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/verfiID"}],"responses":{"200":{"description":"Proof data","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"$ref":"#/components/schemas/ProofData"}}},"example":{"success":true,"data":{"verfiID":"VF-c2f6b89f","status":"unclaimed","consent":{"given":false,"language":null,"tcpa_compliant":false,"one_to_one":false},"session":{"created_at":"2026-03-05T20:41:17.083Z","duration_ms":12450,"page_url":"https://example.com/form","referrer":"https://example.com/"},"interactions":{"total_events":117,"mouse_movements":45,"clicks":8,"scroll_events":12,"form_interactions":6,"keystroke_count":142,"time_to_first_interaction_ms":1200,"time_to_submit_ms":12450},"form_data":{"fields_filled":["email","phone","name"],"checkboxes_checked":1,"consent_checkbox_interacted":true},"device":{"ip_hash":"037312f17ee0395bcdfcd286484b3548...","user_agent":"Mozilla/5.0 ...","screen_resolution":"1920x1080","platform":"MacIntel","timezone":"America/Los_Angeles"},"pii_binding":{"method":"hash","fields_bound":["email","phone"],"hash":"acc09418024e10f0a96012da08e4204b..."},"quality_signals":{"score":87,"risk_level":"high_confidence_human","computed_at":"2026-07-01T20:00:00.000Z","model_version":"qs-v1.0","contributors":[{"signal":"mouse_path_naturalness","value":0.8,"weight":0.18,"contribution":0.144},{"signal":"keystroke_cadence","value":1,"weight":0.18,"contribution":0.18}]},"proof_url":"https://proof.verfi.io/VF-c2f6b89f?token=...","verification":{"integrity":"f9872e02f8eea4b78764c0ac35db9336...","tamper_detected":false}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"$ref":"#/components/responses/InternalError"}}}},"/sessions/{verfiID}":{"get":{"operationId":"searchSession","summary":"Search for a session","description":"Look up a session by verfiID. Optionally verify email/phone hashes match. Cross-tenant search (any tenant can look up any session). Requires `sessions:search` scope. Hashes are compared literally to captured SHA-256 hex; no normalization. Require found=true and selected verification fields=true. Missing session may return 200 found=false. A mismatch does not block a later claim. data.status is session state; data.claim.status is the current tenant claim state.","tags":["Sessions"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/verfiID"},{"name":"email","in":"query","schema":{"type":"string"},"description":"SHA-256 hash of email to verify against session PII"},{"name":"phone","in":"query","schema":{"type":"string"},"description":"SHA-256 hash of phone to verify against session PII"}],"responses":{"200":{"description":"Search result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"verfiID":{"type":"string"},"found":{"type":"boolean"},"status":{"type":"string","enum":["recorded","claimed","unclaimed","expired"],"description":"Session state, not the current buyer claim status. Use claim.status for the latter."},"originatingTenantId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"expirationDate":{"type":"string","format":"date-time"},"claimMode":{"type":"string","enum":["multi","exclusive"],"description":"Claim mode (#305). multi = multiple tenants may claim independently; exclusive = single-claim lock. Defaults to multi for sessions created before #305."},"metadata":{"type":"object","properties":{"userAgent":{"type":"string"},"ipAddress":{"type":"string"}}},"piiDetected":{"type":"boolean"},"intent":{"type":"object","description":"Publisher-declared intent (see SessionSummary.intent). Absent when not declared. Verification fields absent until first requireVerifiedScore claim.","properties":{"verticals":{"type":"array","items":{"type":"string"}},"products":{"type":"array","items":{"type":"string"}},"declaredAt":{"type":"string","format":"date-time"},"verifiedScore":{"type":"number","minimum":0,"maximum":1,"description":"Heuristic content-verification score (0–1). Absent until first requireVerifiedScore claim."},"verifiedVerticals":{"type":"array","items":{"type":"string"},"description":"Starter verticals detected in content. Absent until verified."},"verifiedAt":{"type":"string","format":"date-time","description":"Timestamp of verification computation."}}},"verification":{"type":"object","properties":{"consentRules":{"type":"boolean"},"emailMatch":{"type":"boolean","nullable":true},"phoneMatch":{"type":"boolean","nullable":true}}},"claim":{"type":["object","null"],"description":"Current authenticated tenant claim only; null if none.","properties":{"status":{"type":"string","enum":["claimed","unclaimed"]},"claimedAt":{"type":["string","null"],"format":"date-time"},"expirationDate":{"type":["string","null"],"format":"date-time"},"unclaimedAt":{"type":["string","null"],"format":"date-time"}}}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"$ref":"#/components/responses/InternalError"}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Secret API key (sk_) passed as Bearer token. Generate keys in the Verfi dashboard under Integration > API Keys."}},"parameters":{"verfiID":{"name":"verfiID","in":"path","required":true,"schema":{"type":"string","pattern":"^VF-[a-fA-F0-9]{8}$","example":"VF-a1b2c3d4"},"description":"Verfi session ID. Also accepts full proof URLs (e.g., https://proof.verfi.io/VF-a1b2c3d4)."}},"schemas":{"SessionSummary":{"type":"object","properties":{"verfiID":{"type":"string","example":"VF-a1b2c3d4"},"status":{"type":"string","enum":["recorded","claimed","unclaimed","expired"]},"createdAt":{"type":"string","format":"date-time"},"claimedAt":{"type":"string","format":"date-time","nullable":true},"expirationDate":{"type":"string","format":"date-time"},"claimMode":{"type":"string","enum":["multi","exclusive"],"description":"Claim mode (#305). Defaults to multi."},"metadata":{"type":"object"},"piiDetected":{"type":"boolean"},"intent":{"type":"object","description":"Publisher-declared intent at session creation time (#306). Immutable once written. Absent when no intent was declared. Verification fields (verifiedScore etc.) are lazily computed on first requireVerifiedScore claim.","properties":{"verticals":{"type":"array","items":{"type":"string"},"description":"Declared marketing verticals. Starter values: auto_insurance, home_insurance, life_insurance, health_insurance, medicare, mass_tort, mortgage, solar, final_expense, debt_relief. Custom verticals are accepted with an x_ prefix (e.g. x_pet_insurance)."},"products":{"type":"array","items":{"type":"string"},"description":"Free-form product names (optional). Each string ≤ 64 chars, max 20 items."},"declaredAt":{"type":"string","format":"date-time","description":"Server-assigned timestamp when intent was declared."},"verifiedScore":{"type":"number","minimum":0,"maximum":1,"description":"Heuristic content-verification score (0–1). How well session content matches declared verticals. Absent until first requireVerifiedScore claim triggers computation."},"verifiedVerticals":{"type":"array","items":{"type":"string"},"description":"Starter verticals detected in session content, sorted by detection strength desc. Absent until first requireVerifiedScore claim."},"verifiedAt":{"type":"string","format":"date-time","description":"Timestamp when heuristic verification was computed and cached."}}}}},"Pagination":{"type":"object","properties":{"currentPage":{"type":"integer"},"totalPages":{"type":"integer"},"totalCount":{"type":"integer"},"limit":{"type":"integer"},"hasNextPage":{"type":"boolean"},"hasPrevPage":{"type":"boolean"}}},"ProofData":{"type":"object","description":"Machine-readable consent proof. All PII fields are SHA-256 hashed.","properties":{"verfiID":{"type":"string"},"status":{"type":"string","enum":["recorded","claimed","unclaimed","expired"]},"consent":{"type":"object","properties":{"given":{"type":"boolean","description":"Whether consent was detected"},"language":{"type":"string","nullable":true,"description":"Consent language text if captured"},"tcpa_compliant":{"type":"boolean","description":"Whether consent meets TCPA requirements"},"one_to_one":{"type":"boolean","description":"Whether consent is one-to-one (single company)"}}},"session":{"type":"object","properties":{"created_at":{"type":"string","format":"date-time"},"duration_ms":{"type":"integer"},"page_url":{"type":"string","format":"uri"},"referrer":{"type":"string","nullable":true}}},"interactions":{"type":"object","properties":{"total_events":{"type":"integer"},"mouse_movements":{"type":"integer"},"clicks":{"type":"integer"},"scroll_events":{"type":"integer"},"form_interactions":{"type":"integer"},"keystroke_count":{"type":"integer"},"time_to_first_interaction_ms":{"type":"integer"},"time_to_submit_ms":{"type":"integer"}}},"form_data":{"type":"object","properties":{"fields_filled":{"type":"array","items":{"type":"string"}},"checkboxes_checked":{"type":"integer"},"consent_checkbox_interacted":{"type":"boolean"}}},"device":{"type":"object","properties":{"ip_hash":{"type":"string","description":"SHA-256 hash of IP address"},"user_agent":{"type":"string"},"screen_resolution":{"type":"string","nullable":true},"platform":{"type":"string","nullable":true},"timezone":{"type":"string","nullable":true}}},"pii_binding":{"type":"object","properties":{"method":{"type":"string","const":"hash"},"fields_bound":{"type":"array","items":{"type":"string"}},"hash":{"type":"string","description":"Combined PII hash for verification"}}},"quality_signals":{"type":"object","description":"Lead Quality Signals (#307) — native heuristic bot-detection score computed from the session recording.","properties":{"score":{"type":"integer","minimum":0,"maximum":100,"description":"0-100; higher = more confidently human"},"risk_level":{"type":"string","enum":["high_risk","elevated","normal","high_confidence_human"]},"computed_at":{"type":"string","format":"date-time"},"model_version":{"type":"string"},"contributors":{"type":"array","items":{"type":"object","properties":{"signal":{"type":"string"},"value":{"type":"number","minimum":0,"maximum":1},"weight":{"type":"number","minimum":0,"maximum":1},"contribution":{"type":"number"}}}}}},"proof_url":{"type":"string","format":"uri","description":"Shareable human-readable proof page"},"verification":{"type":"object","properties":{"integrity":{"type":"string","description":"Integrity hash of session data"},"tamper_detected":{"type":"boolean"}}}}},"Error":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"message":{"type":"string"}},"required":["error"]}},"responses":{"BadRequest":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthorized":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"Missing authorization header","details":"Authorization header with Bearer token is required"}}}},"NotFound":{"description":"Session not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InternalError":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}