{"openapi":"3.1.0","info":{"title":"Cohostbnb API","description":"Backend for @empire/cohostbnb-cohost Activepieces piece + agentic AI co-host, dynamic pricing agent, owner statements. Honest stubs return queued status when provider credentials are missing.","version":"0.3.0"},"paths":{"/":{"get":{"summary":"Root","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/status":{"get":{"summary":"Status Endpoint","description":"Source of truth for build status — matches cohostbnb.xyz/pricing badges.","operationId":"status_endpoint_v1_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Status Endpoint V1 Status Get"}}}}}}},"/v1/health":{"get":{"summary":"Health","operationId":"health_v1_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Health V1 Health Get"}}}}}}},"/v1/admin/tenants":{"post":{"summary":"Create Tenant","operationId":"create_tenant_v1_admin_tenants_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Create Tenant V1 Admin Tenants Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/issue":{"post":{"summary":"Issue","operationId":"issue_v1_auth_issue_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenIssue"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Issue V1 Auth Issue Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/listings":{"post":{"summary":"Upsert Listing","operationId":"upsert_listing_v1_listings_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListingUpsert"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Upsert Listing V1 Listings Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Listings","operationId":"list_listings_v1_listings_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Listings V1 Listings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/messages/send":{"post":{"summary":"Send Message","operationId":"send_message_v1_messages_send_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__routes__v1__MessageSend"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Send Message V1 Messages Send Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/listings/{listing_id}/price":{"post":{"summary":"Update Price","operationId":"update_price_v1_listings__listing_id__price_post","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","title":"Listing Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Update Price V1 Listings  Listing Id  Price Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/listings/{listing_id}/calendar/block":{"post":{"summary":"Block Calendar","operationId":"block_calendar_v1_listings__listing_id__calendar_block_post","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","title":"Listing Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarBlock"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Block Calendar V1 Listings  Listing Id  Calendar Block Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/listings/{listing_id}/ical":{"get":{"summary":"Fetch Ical","operationId":"fetch_ical_v1_listings__listing_id__ical_get","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","title":"Listing Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Fetch Ical V1 Listings  Listing Id  Ical Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reservations/{reservation_id}/review":{"post":{"summary":"Post Review","operationId":"post_review_v1_reservations__reservation_id__review_post","parameters":[{"name":"reservation_id","in":"path","required":true,"schema":{"type":"string","title":"Reservation Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewPost"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Post Review V1 Reservations  Reservation Id  Review Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cleaning/dispatch":{"post":{"summary":"Dispatch Cleaning","operationId":"dispatch_cleaning_v1_cleaning_dispatch_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CleaningDispatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Dispatch Cleaning V1 Cleaning Dispatch Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/listings/{listing_id}/smartlock/code":{"post":{"summary":"Arm Smartlock","operationId":"arm_smartlock_v1_listings__listing_id__smartlock_code_post","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","title":"Listing Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmartlockCode"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Arm Smartlock V1 Listings  Listing Id  Smartlock Code Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/owners/{owner_id}/statement":{"get":{"summary":"Owner Statement","description":"F982: real per-owner monthly P&L computed from bookings + dispatch logs.\n\nListings are mapped to an owner via Listing.config['owner_id']. The\nstatement is QBO-export-shaped (qbo_line_items) so the QBO sync adapter\nis a thin layer once the Intuit OAuth app is registered (NEEDS_ISKRA).","operationId":"owner_statement_v1_owners__owner_id__statement_get","parameters":[{"name":"owner_id","in":"path","required":true,"schema":{"type":"string","title":"Owner Id"}},{"name":"month","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}$","title":"Month"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Owner Statement V1 Owners  Owner Id  Statement Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reservations":{"get":{"summary":"List Reservations","operationId":"list_reservations_v1_reservations_get","parameters":[{"name":"listing_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Listing Id"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Since"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Reservations V1 Reservations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/messages":{"get":{"summary":"Poll Messages","operationId":"poll_messages_v1_messages_get","parameters":[{"name":"since","in":"query","required":true,"schema":{"type":"string","title":"Since"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Poll Messages V1 Messages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reviews":{"get":{"summary":"Poll Reviews","operationId":"poll_reviews_v1_reviews_get","parameters":[{"name":"since","in":"query","required":true,"schema":{"type":"string","title":"Since"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Poll Reviews V1 Reviews Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reservations/events":{"get":{"summary":"Poll Reservation Events","operationId":"poll_reservation_events_v1_reservations_events_get","parameters":[{"name":"type","in":"query","required":false,"schema":{"type":"string","default":"checkout_completed","title":"Type"}},{"name":"since","in":"query","required":true,"schema":{"type":"string","title":"Since"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Poll Reservation Events V1 Reservations Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/listings/{listing_id}/knowledge":{"post":{"summary":"Set Knowledge","operationId":"set_knowledge_v1_listings__listing_id__knowledge_post","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","title":"Listing Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeUpsert"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Set Knowledge V1 Listings  Listing Id  Knowledge Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ai/guest-reply":{"post":{"summary":"Guest Reply","description":"Agentic guest-message handler.\n\nClassifies intent, drafts a KB-grounded reply, self-assesses confidence,\nand either auto-sends (if confident + email available) or queues the draft\nfor host approval. A guest message is NEVER dropped — on budget exhaustion\nor low confidence it falls back to the host-approval queue.","operationId":"guest_reply_v1_ai_guest_reply_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestReply"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Guest Reply V1 Ai Guest Reply Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ai/drafts":{"get":{"summary":"List Drafts","operationId":"list_drafts_v1_ai_drafts_get","parameters":[{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"pending_review","title":"State"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Drafts V1 Ai Drafts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ai/drafts/{draft_id}/approve":{"post":{"summary":"Approve Draft","operationId":"approve_draft_v1_ai_drafts__draft_id__approve_post","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"integer","title":"Draft Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftDecision"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Approve Draft V1 Ai Drafts  Draft Id  Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ai/drafts/{draft_id}/reject":{"post":{"summary":"Reject Draft","operationId":"reject_draft_v1_ai_drafts__draft_id__reject_post","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"integer","title":"Draft Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Reject Draft V1 Ai Drafts  Draft Id  Reject Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/listings/{listing_id}/pricing/recommend":{"post":{"summary":"Pricing Recommend","operationId":"pricing_recommend_v1_listings__listing_id__pricing_recommend_post","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","title":"Listing Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricingRecommendReq"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Pricing Recommend V1 Listings  Listing Id  Pricing Recommend Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/usage":{"get":{"summary":"Get Usage","operationId":"get_usage_v1_usage_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Usage V1 Usage Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pricing-tiers":{"get":{"summary":"Pricing Tiers","description":"Public tier table — single source of truth for cohostbnb.xyz/pricing.","operationId":"pricing_tiers_v1_pricing_tiers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Pricing Tiers V1 Pricing Tiers Get"}}}}}}},"/v1/caps/audit":{"get":{"summary":"Caps Audit","description":"15%-of-revenue LLM-COGS ceiling audit (f965 p3/p8).","operationId":"caps_audit_v1_caps_audit_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Caps Audit V1 Caps Audit Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhooks/stripe":{"post":{"summary":"Stripe Webhook","description":"Idempotent post-checkout fulfillment for cohostbnb.xyz tiers.","operationId":"stripe_webhook_v1_webhooks_stripe_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Stripe Webhook V1 Webhooks Stripe Post"}}}}}}},"/api/support_chat":{"post":{"summary":"Support Chat","description":"Scoped support chatbot for cohostbnb.xyz — F1540.","operationId":"support_chat_api_support_chat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportChatRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/support_chat/health":{"get":{"summary":"Support Chat Health","operationId":"support_chat_health_api_support_chat_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/owners/{owner_id}/statement/export.csv":{"get":{"summary":"Export Statement Csv","description":"Download a QBO-importable CSV of the owner statement.","operationId":"export_statement_csv_v1_owners__owner_id__statement_export_csv_get","parameters":[{"name":"owner_id","in":"path","required":true,"schema":{"type":"string","title":"Owner Id"}},{"name":"month","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}$","title":"Month"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/qbo/status":{"get":{"summary":"Qbo Status","operationId":"qbo_status_v1_qbo_status_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Qbo Status V1 Qbo Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/qbo/connect":{"post":{"summary":"Qbo Connect","description":"Start the QBO OAuth flow — returns the Intuit consent URL.","operationId":"qbo_connect_v1_qbo_connect_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Qbo Connect V1 Qbo Connect Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/qbo/callback":{"get":{"summary":"Qbo Callback","description":"Intuit OAuth2 redirect target — exchanges the code for tokens.\n\nThis endpoint is unauthenticated (Intuit calls it) but the `state`\nparameter is HMAC-signed + time-boxed, so only a flow this service\nstarted for a known tenant can complete.","operationId":"qbo_callback_v1_qbo_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"type":"string","title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","title":"State"}},{"name":"realmId","in":"query","required":false,"schema":{"type":"string","title":"Realmid"}},{"name":"error","in":"query","required":false,"schema":{"type":"string","title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/qbo/disconnect":{"post":{"summary":"Qbo Disconnect","operationId":"qbo_disconnect_v1_qbo_disconnect_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Qbo Disconnect V1 Qbo Disconnect Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/owners/{owner_id}/statement/qbo-sync":{"post":{"summary":"Qbo Sync Statement","description":"Push an owner statement to the tenant's connected QBO company.","operationId":"qbo_sync_statement_v1_owners__owner_id__statement_qbo_sync_post","parameters":[{"name":"owner_id","in":"path","required":true,"schema":{"type":"string","title":"Owner Id"}},{"name":"month","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}$","title":"Month"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Qbo Sync Statement V1 Owners  Owner Id  Statement Qbo Sync Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/magic-link/start":{"post":{"summary":"Magic Start","operationId":"magic_start_api_v1_auth_magic_link_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MagicStart"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Magic Start Api V1 Auth Magic Link Start Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/verify":{"post":{"summary":"Magic Verify","operationId":"magic_verify_api_v1_auth_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MagicVerify"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Magic Verify Api V1 Auth Verify Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me":{"get":{"summary":"Me","operationId":"me_api_me_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Me Api Me Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/listings":{"get":{"summary":"List Listings","operationId":"list_listings_api_listings_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Listings Api Listings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Listing","operationId":"create_listing_api_listings_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListingCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Create Listing Api Listings Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bookings":{"get":{"summary":"List Bookings","operationId":"list_bookings_api_bookings_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Bookings Api Bookings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Booking","description":"Guest-side: create a booking REQUEST against a listing.","operationId":"create_booking_api_bookings_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Create Booking Api Bookings Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bookings/{booking_id}/accept":{"post":{"summary":"Accept Booking","operationId":"accept_booking_api_bookings__booking_id__accept_post","parameters":[{"name":"booking_id","in":"path","required":true,"schema":{"type":"string","title":"Booking Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Accept Booking Api Bookings  Booking Id  Accept Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bookings/{booking_id}/confirm":{"post":{"summary":"Confirm Booking","operationId":"confirm_booking_api_bookings__booking_id__confirm_post","parameters":[{"name":"booking_id","in":"path","required":true,"schema":{"type":"string","title":"Booking Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Confirm Booking Api Bookings  Booking Id  Confirm Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bookings/{booking_id}/decline":{"post":{"summary":"Decline Booking","operationId":"decline_booking_api_bookings__booking_id__decline_post","parameters":[{"name":"booking_id","in":"path","required":true,"schema":{"type":"string","title":"Booking Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Decline Booking Api Bookings  Booking Id  Decline Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/messages":{"get":{"summary":"List Threads","operationId":"list_threads_api_messages_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Threads Api Messages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/messages/{thread_id}":{"get":{"summary":"Get Thread","operationId":"get_thread_api_messages__thread_id__get","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Thread Api Messages  Thread Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/messages/{thread_id}/send":{"post":{"summary":"Send Thread Message","operationId":"send_thread_message_api_messages__thread_id__send_post","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__routes__mobile__MessageSend"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Send Thread Message Api Messages  Thread Id  Send Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/lead":{"post":{"summary":"Capture Lead","operationId":"capture_lead_api_lead_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Lead"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Capture Lead Api Lead Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/me":{"get":{"summary":"Me","operationId":"me_v1_me_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Me V1 Me Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/me/ai-config":{"patch":{"summary":"Patch Ai Config","operationId":"patch_ai_config_v1_me_ai_config_patch","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiConfigPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Patch Ai Config V1 Me Ai Config Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/internal/provision-key":{"post":{"summary":"Provision Key","operationId":"provision_key_v1_internal_provision_key_post","parameters":[{"name":"x-internal-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisionReq"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Provision Key V1 Internal Provision Key Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbound/email":{"post":{"summary":"Inbound Email","description":"Ingest a guest-notification email and produce an AI draft (or auto-send if\nthe tenant enabled it). Accepts an internal-key OR a tenant Bearer token.","operationId":"inbound_email_v1_inbound_email_post","parameters":[{"name":"x-internal-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboundEmail"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Inbound Email V1 Inbound Email Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/verticals":{"get":{"summary":"Verticals","operationId":"verticals_v1_inbox_verticals_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Verticals V1 Inbox Verticals Get"}}}}}}},"/v1/inbox/config":{"get":{"summary":"Get Config","operationId":"get_config_v1_inbox_config_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Config V1 Inbox Config Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Patch Config","operationId":"patch_config_v1_inbox_config_patch","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxConfigPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Patch Config V1 Inbox Config Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/autosend/audit":{"get":{"summary":"Autosend Audit","description":"Every auto-send decision for this tenant, newest first: what was sent\nwithout a human, and why anything else was refused.","operationId":"autosend_audit_v1_inbox_autosend_audit_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Autosend Audit V1 Inbox Autosend Audit Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/reply":{"post":{"summary":"Inbox Reply","description":"Draft a reply for a single message. Bearer (tenant) OR internal-key.\nvertical/kb fall back to the tenant's stored config. Never auto-sends\n(no recipient) — pure draft, safe for embedding/testing.","operationId":"inbox_reply_v1_inbox_reply_post","parameters":[{"name":"x-internal-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxReply"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Inbox Reply V1 Inbox Reply Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/translate":{"post":{"summary":"Inbox Translate","operationId":"inbox_translate_v1_inbox_translate_post","parameters":[{"name":"x-internal-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranslateReq"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Inbox Translate V1 Inbox Translate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/summarize":{"post":{"summary":"Inbox Summarize","operationId":"inbox_summarize_v1_inbox_summarize_post","parameters":[{"name":"x-internal-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummarizeReq"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Inbox Summarize V1 Inbox Summarize Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/rewrite":{"post":{"summary":"Inbox Rewrite","operationId":"inbox_rewrite_v1_inbox_rewrite_post","parameters":[{"name":"x-internal-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RewriteReq"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Inbox Rewrite V1 Inbox Rewrite Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/canned":{"get":{"summary":"List Canned","operationId":"list_canned_v1_inbox_canned_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Canned V1 Inbox Canned Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Canned","operationId":"create_canned_v1_inbox_canned_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CannedCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Create Canned V1 Inbox Canned Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/canned/{canned_id}":{"patch":{"summary":"Update Canned","operationId":"update_canned_v1_inbox_canned__canned_id__patch","parameters":[{"name":"canned_id","in":"path","required":true,"schema":{"type":"integer","title":"Canned Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CannedUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Update Canned V1 Inbox Canned  Canned Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Canned","operationId":"delete_canned_v1_inbox_canned__canned_id__delete","parameters":[{"name":"canned_id","in":"path","required":true,"schema":{"type":"integer","title":"Canned Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Delete Canned V1 Inbox Canned  Canned Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/rules":{"get":{"summary":"List Rules","operationId":"list_rules_v1_inbox_rules_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Rules V1 Inbox Rules Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Rule","operationId":"create_rule_v1_inbox_rules_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Create Rule V1 Inbox Rules Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/rules/{rule_id}":{"patch":{"summary":"Update Rule","operationId":"update_rule_v1_inbox_rules__rule_id__patch","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"integer","title":"Rule Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Update Rule V1 Inbox Rules  Rule Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Rule","operationId":"delete_rule_v1_inbox_rules__rule_id__delete","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"integer","title":"Rule Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Delete Rule V1 Inbox Rules  Rule Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/contacts":{"get":{"summary":"List Contacts Route","operationId":"list_contacts_route_v1_inbox_contacts_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Contacts Route V1 Inbox Contacts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/contacts/{contact_id}":{"get":{"summary":"Get Contact Route","operationId":"get_contact_route_v1_inbox_contacts__contact_id__get","parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Contact Route V1 Inbox Contacts  Contact Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Patch Contact Route","operationId":"patch_contact_route_v1_inbox_contacts__contact_id__patch","parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Patch Contact Route V1 Inbox Contacts  Contact Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/contacts/{contact_id}/summarize":{"post":{"summary":"Summarize Contact Route","operationId":"summarize_contact_route_v1_inbox_contacts__contact_id__summarize_post","parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Summarize Contact Route V1 Inbox Contacts  Contact Id  Summarize Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/audit":{"get":{"summary":"Get Audit Log","operationId":"get_audit_log_v1_inbox_audit_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Audit Log V1 Inbox Audit Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/audit/chain":{"get":{"summary":"Get Audit Chain","operationId":"get_audit_chain_v1_inbox_audit_chain_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Audit Chain V1 Inbox Audit Chain Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/audit/chain/verify":{"get":{"summary":"Verify Audit Chain","operationId":"verify_audit_chain_v1_inbox_audit_chain_verify_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Verify Audit Chain V1 Inbox Audit Chain Verify Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/approvals":{"get":{"summary":"List Approvals","operationId":"list_approvals_v1_inbox_approvals_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Approvals V1 Inbox Approvals Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/approvals/{approval_id}/approve":{"post":{"summary":"Approve Request","operationId":"approve_request_v1_inbox_approvals__approval_id__approve_post","parameters":[{"name":"approval_id","in":"path","required":true,"schema":{"type":"integer","title":"Approval Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Approve Request V1 Inbox Approvals  Approval Id  Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/approvals/{approval_id}/reject":{"post":{"summary":"Reject Request","operationId":"reject_request_v1_inbox_approvals__approval_id__reject_post","parameters":[{"name":"approval_id","in":"path","required":true,"schema":{"type":"integer","title":"Approval Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Reject Request V1 Inbox Approvals  Approval Id  Reject Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/tasks":{"get":{"summary":"List Tasks Route","operationId":"list_tasks_route_v1_inbox_tasks_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Tasks Route V1 Inbox Tasks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/tasks/{task_id}":{"patch":{"summary":"Update Task Route","operationId":"update_task_route_v1_inbox_tasks__task_id__patch","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"integer","title":"Task Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Update Task Route V1 Inbox Tasks  Task Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/qa/score/{draft_id}":{"post":{"summary":"Score Draft Route","operationId":"score_draft_route_v1_inbox_qa_score__draft_id__post","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"integer","title":"Draft Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Score Draft Route V1 Inbox Qa Score  Draft Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/qa/scorecards":{"get":{"summary":"List Scorecards Route","operationId":"list_scorecards_route_v1_inbox_qa_scorecards_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Scorecards Route V1 Inbox Qa Scorecards Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/qa/sample":{"post":{"summary":"Qa Sample Route","description":"Cross-tenant nightly sample. Internal-key only (no single tenant to\nscope an admin bearer against) — same cron-calls-HTTP-endpoint pattern\nas /root/f4531/f4531_inboxpilot_bridge.py.","operationId":"qa_sample_route_v1_inbox_qa_sample_post","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Limit"}},{"name":"x-internal-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Qa Sample Route V1 Inbox Qa Sample Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/scheduled/run":{"post":{"summary":"Run Scheduled Triggers","description":"Cross-tenant reservation-timeline sweep. Internal-key only, same\npattern as qa_sample_route above — meant to be cron-driven, not a\ncustomer-facing endpoint.","operationId":"run_scheduled_triggers_v1_inbox_scheduled_run_post","parameters":[{"name":"x-internal-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Run Scheduled Triggers V1 Inbox Scheduled Run Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/chatwoot/provision":{"post":{"summary":"Provision Chatwoot","operationId":"provision_chatwoot_v1_inbox_chatwoot_provision_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Provision Chatwoot V1 Inbox Chatwoot Provision Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Chatwoot Provision Status","operationId":"chatwoot_provision_status_v1_inbox_chatwoot_provision_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Chatwoot Provision Status V1 Inbox Chatwoot Provision Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/canned/{canned_id}/render":{"post":{"summary":"Render Canned","operationId":"render_canned_v1_inbox_canned__canned_id__render_post","parameters":[{"name":"canned_id","in":"path","required":true,"schema":{"type":"integer","title":"Canned Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CannedRender"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Render Canned V1 Inbox Canned  Canned Id  Render Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/csat":{"post":{"summary":"Submit Csat","description":"Record an explicit guest-submitted (or tenant-recorded) CSAT score.","operationId":"submit_csat_v1_inbox_csat_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CsatSubmit"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Submit Csat V1 Inbox Csat Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/csat/infer":{"post":{"summary":"Infer Csat","description":"AI-inferred satisfaction from the thread's own text. Stored with\nsource='ai' — never conflated with a guest's own submitted score.","operationId":"infer_csat_v1_inbox_csat_infer_post","parameters":[{"name":"x-internal-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CsatInferReq"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Infer Csat V1 Inbox Csat Infer Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/csat/summary":{"get":{"summary":"Csat Summary","operationId":"csat_summary_v1_inbox_csat_summary_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Csat Summary V1 Inbox Csat Summary Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/reports/summary":{"get":{"summary":"Reports Summary","operationId":"reports_summary_v1_inbox_reports_summary_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Reports Summary V1 Inbox Reports Summary Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/widget.js":{"get":{"summary":"Widget Js","operationId":"widget_js_v1_widget_js_get","parameters":[{"name":"key","in":"query","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/widget/chat":{"post":{"summary":"Widget Chat","operationId":"widget_chat_v1_widget_chat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetChatReq"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Widget Chat V1 Widget Chat Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/inbound/email":{"post":{"summary":"Inbox Inbound Email","operationId":"inbox_inbound_email_v1_inbox_inbound_email_post","parameters":[{"name":"x-internal-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxInbound"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Inbox Inbound Email V1 Inbox Inbound Email Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbound/hospitable":{"post":{"summary":"Inbound Hospitable","description":"Consume a Hospitable v2 webhook. Auth: internal-key OR tenant Bearer.\nOnly message.created inbound guest messages are drafted; other events ack.\nSEND is a dry-run until HOSPITABLE_TOKEN is set.","operationId":"inbound_hospitable_v1_inbound_hospitable_post","parameters":[{"name":"x-internal-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HospitableWebhook"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Inbound Hospitable V1 Inbound Hospitable Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/push/subscriptions":{"post":{"summary":"Create Push Subscription","operationId":"create_push_subscription_v1_inbox_push_subscriptions_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushSubCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Create Push Subscription V1 Inbox Push Subscriptions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Push Subscriptions","operationId":"list_push_subscriptions_v1_inbox_push_subscriptions_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Push Subscriptions V1 Inbox Push Subscriptions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/push/subscriptions/{sub_id}":{"delete":{"summary":"Delete Push Subscription","operationId":"delete_push_subscription_v1_inbox_push_subscriptions__sub_id__delete","parameters":[{"name":"sub_id","in":"path","required":true,"schema":{"type":"integer","title":"Sub Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Delete Push Subscription V1 Inbox Push Subscriptions  Sub Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/reviews/webhook":{"post":{"summary":"Reviews Webhook","description":"Same dual-auth shape as /v1/inbound/hospitable: tenant Bearer OR\ninternal-key + body tenant_id — a review event has no single guest\nidentity to authenticate against.","operationId":"reviews_webhook_v1_inbox_reviews_webhook_post","parameters":[{"name":"x-internal-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewWebhook"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Reviews Webhook V1 Inbox Reviews Webhook Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/integrations":{"get":{"summary":"List Integrations Route","operationId":"list_integrations_route_v1_inbox_integrations_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Integrations Route V1 Inbox Integrations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/integrations/{key}":{"post":{"summary":"Set Integration Route","operationId":"set_integration_route_v1_inbox_integrations__key__post","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationToggle"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Set Integration Route V1 Inbox Integrations  Key  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/actions/propose":{"post":{"summary":"Propose Action Route","operationId":"propose_action_route_v1_inbox_actions_propose_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionPropose"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Propose Action Route V1 Inbox Actions Propose Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/actions":{"get":{"summary":"List Actions Route","operationId":"list_actions_route_v1_inbox_actions_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Actions Route V1 Inbox Actions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/actions/{action_id}/approve":{"post":{"summary":"Approve Action Route","operationId":"approve_action_route_v1_inbox_actions__action_id__approve_post","parameters":[{"name":"action_id","in":"path","required":true,"schema":{"type":"integer","title":"Action Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Approve Action Route V1 Inbox Actions  Action Id  Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/actions/{action_id}/reject":{"post":{"summary":"Reject Action Route","operationId":"reject_action_route_v1_inbox_actions__action_id__reject_post","parameters":[{"name":"action_id","in":"path","required":true,"schema":{"type":"integer","title":"Action Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Reject Action Route V1 Inbox Actions  Action Id  Reject Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/kb/golden":{"post":{"summary":"Add Golden Route","operationId":"add_golden_route_v1_inbox_kb_golden_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoldenCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Add Golden Route V1 Inbox Kb Golden Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Golden Route","operationId":"list_golden_route_v1_inbox_kb_golden_get","parameters":[{"name":"listing_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Listing Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Golden Route V1 Inbox Kb Golden Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/kb/regression/run":{"post":{"summary":"Run Regression Route","operationId":"run_regression_route_v1_inbox_kb_regression_run_post","parameters":[{"name":"listing_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Listing Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Run Regression Route V1 Inbox Kb Regression Run Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/kb/regression/results":{"get":{"summary":"List Regression Results Route","operationId":"list_regression_results_route_v1_inbox_kb_regression_results_get","parameters":[{"name":"golden_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Golden Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Regression Results Route V1 Inbox Kb Regression Results Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/voice/twiml":{"post":{"summary":"Voice Twiml","description":"Twilio Voice webhook. 503 with no TWILIO_AUTH_TOKEN — same credential\ngate as SMS (config.is_stubbed('twilio')). Verifies Twilio's request\nsignature exactly like the SMS webhook (routes/channels.py) does, via the\nshared services.twilio.verify_signature().","operationId":"voice_twiml_v1_inbox_voice_twiml_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_voice_twiml_v1_inbox_voice_twiml_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/webpush/vapid-public-key":{"get":{"summary":"Get Webpush Vapid Public Key","description":"The `applicationServerKey` the browser's\n`pushManager.subscribe({applicationServerKey: ...})` call needs.","operationId":"get_webpush_vapid_public_key_v1_inbox_webpush_vapid_public_key_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Webpush Vapid Public Key V1 Inbox Webpush Vapid Public Key Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/webpush/subscriptions":{"post":{"summary":"Create Webpush Subscription","description":"`agent` (not just admin) — any teammate's OWN browser can subscribe;\nmatches how a personal notification opt-in should be scoped.","operationId":"create_webpush_subscription_v1_inbox_webpush_subscriptions_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebPushSubCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Create Webpush Subscription V1 Inbox Webpush Subscriptions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Webpush Subscriptions","operationId":"list_webpush_subscriptions_v1_inbox_webpush_subscriptions_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Webpush Subscriptions V1 Inbox Webpush Subscriptions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/webpush/subscriptions/{sub_id}":{"delete":{"summary":"Delete Webpush Subscription","operationId":"delete_webpush_subscription_v1_inbox_webpush_subscriptions__sub_id__delete","parameters":[{"name":"sub_id","in":"path","required":true,"schema":{"type":"integer","title":"Sub Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Delete Webpush Subscription V1 Inbox Webpush Subscriptions  Sub Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/webpush/test":{"post":{"summary":"Send Test Webpush","description":"Sends immediately to every subscription with event_filter='all' (or\nescalation, since event='escalation.test' starts with 'escalation') —\nlets a tenant PROVE their subscribe flow works without waiting for a\nreal escalation.","operationId":"send_test_webpush_v1_inbox_webpush_test_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebPushTest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Send Test Webpush V1 Inbox Webpush Test Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/webpush/manifest.json":{"get":{"summary":"Get Pwa Manifest","description":"Static PWA manifest — no auth, this is a public asset browsers fetch\ndirectly (same as any site's manifest.json).","operationId":"get_pwa_manifest_v1_inbox_webpush_manifest_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Pwa Manifest V1 Inbox Webpush Manifest Json Get"}}}}}}},"/v1/inbox/webpush/service-worker.js":{"get":{"summary":"Get Service Worker","operationId":"get_service_worker_v1_inbox_webpush_service_worker_js_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/inbox/chatwoot/health":{"get":{"summary":"Chatwoot Health","description":"Booleans only — proves the push path is wired without leaking anything.","operationId":"chatwoot_health_v1_inbox_chatwoot_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Chatwoot Health V1 Inbox Chatwoot Health Get"}}}}}}},"/v1/inbox/chatwoot/webhook":{"post":{"summary":"Chatwoot Webhook","operationId":"chatwoot_webhook_v1_inbox_chatwoot_webhook_post","parameters":[{"name":"k","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"shared secret","title":"K"},"description":"shared secret"},{"name":"x-inboxpilot-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Inboxpilot-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Chatwoot Webhook V1 Inbox Chatwoot Webhook Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/security/tokens":{"post":{"summary":"Mint Team Token","operationId":"mint_team_token_v1_security_tokens_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenMint"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Mint Team Token V1 Security Tokens Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Team Tokens","operationId":"list_team_tokens_v1_security_tokens_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Team Tokens V1 Security Tokens Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/security/tokens/{token_id}":{"delete":{"summary":"Revoke Team Token","operationId":"revoke_team_token_v1_security_tokens__token_id__delete","parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"integer","title":"Token Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Revoke Team Token V1 Security Tokens  Token Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/security/2fa/enroll":{"post":{"summary":"Enroll 2Fa","description":"Mints a fresh secret and stores it UNVERIFIED. Does not enable 2FA —\nonly /2fa/verify does that, so an abandoned enrollment cannot lock\nanyone out.","operationId":"enroll_2fa_v1_security_2fa_enroll_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Enroll 2Fa V1 Security 2Fa Enroll Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/security/2fa/verify":{"post":{"summary":"Verify 2Fa","operationId":"verify_2fa_v1_security_2fa_verify_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TotpVerify"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Verify 2Fa V1 Security 2Fa Verify Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/security/2fa/status":{"get":{"summary":"Status 2Fa","operationId":"status_2fa_v1_security_2fa_status_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Status 2Fa V1 Security 2Fa Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/security/2fa/recovery-codes":{"post":{"summary":"Generate Recovery Codes","description":"Mints a FRESH batch of 10 one-time codes, invalidating every unused\ncode from the tenant's prior batch (a leaked old batch can never be\nreplayed after a regen). Requires 2FA already enabled — recovery codes\nare a backup for an existing factor, not a standalone one. Returns the\nplaintext codes ONCE; only sha256 hashes are persisted.","operationId":"generate_recovery_codes_v1_security_2fa_recovery_codes_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Generate Recovery Codes V1 Security 2Fa Recovery Codes Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/security/2fa/recovery-codes/status":{"get":{"summary":"Recovery Codes Status","operationId":"recovery_codes_status_v1_security_2fa_recovery_codes_status_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Recovery Codes Status V1 Security 2Fa Recovery Codes Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/security/webauthn/register/options":{"post":{"summary":"Webauthn Register Options","operationId":"webauthn_register_options_v1_security_webauthn_register_options_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Webauthn Register Options V1 Security Webauthn Register Options Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/security/webauthn/register/verify":{"post":{"summary":"Webauthn Register Verify","operationId":"webauthn_register_verify_v1_security_webauthn_register_verify_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebAuthnRegisterVerify"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Webauthn Register Verify V1 Security Webauthn Register Verify Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/security/webauthn/credentials":{"get":{"summary":"Webauthn List Credentials","operationId":"webauthn_list_credentials_v1_security_webauthn_credentials_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Webauthn List Credentials V1 Security Webauthn Credentials Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/security/webauthn/credentials/{cred_id}":{"delete":{"summary":"Webauthn Delete Credential","operationId":"webauthn_delete_credential_v1_security_webauthn_credentials__cred_id__delete","parameters":[{"name":"cred_id","in":"path","required":true,"schema":{"type":"integer","title":"Cred Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Webauthn Delete Credential V1 Security Webauthn Credentials  Cred Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/security/webauthn/authenticate/options":{"post":{"summary":"Webauthn Authenticate Options","description":"Any role may start an authentication ceremony (it only PROVES\npossession of a registered key; it grants nothing by itself — the\nresulting assertion still has to be presented to an admin-gated\nendpoint like /tokens or this same router's future step-up consumers).","operationId":"webauthn_authenticate_options_v1_security_webauthn_authenticate_options_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Webauthn Authenticate Options V1 Security Webauthn Authenticate Options Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/security/webauthn/authenticate/verify":{"post":{"summary":"Webauthn Authenticate Verify","description":"Verifies ONE assertion and returns a pass/fail — this is the\nbuilding block `mint_team_token` (below) also calls inline when a\ncaller passes `webauthn_assertion` instead of `totp_code`.","operationId":"webauthn_authenticate_verify_v1_security_webauthn_authenticate_verify_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebAuthnAssertion"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Webauthn Authenticate Verify V1 Security Webauthn Authenticate Verify Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/security/2fa/methods":{"get":{"summary":"List 2Fa Methods","description":"One place to see every available step-up factor for this tenant —\nwhat the (future) console's login/step-up screen renders from.","operationId":"list_2fa_methods_v1_security_2fa_methods_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List 2Fa Methods V1 Security 2Fa Methods Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/channel/sms/inbound":{"post":{"summary":"Sms Inbound","operationId":"sms_inbound_v1_inbox_channel_sms_inbound_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_sms_inbound_v1_inbox_channel_sms_inbound_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Sms Inbound V1 Inbox Channel Sms Inbound Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/channel/{channel}/inbound":{"post":{"summary":"Generic Channel Inbound","description":"Generic normalized-JSON seam: {\"tenant_id\",\"from\",\"body\"}. Internal-key\nonly — this is not a public webhook until the named channel gets a\nnative parser (see module docstring for what's missing per channel).","operationId":"generic_channel_inbound_v1_inbox_channel__channel__inbound_post","parameters":[{"name":"channel","in":"path","required":true,"schema":{"type":"string","title":"Channel"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Generic Channel Inbound V1 Inbox Channel  Channel  Inbound Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/kb/ingest/run":{"post":{"summary":"Run Ingest","operationId":"run_ingest_v1_inbox_kb_ingest_run_post","parameters":[{"name":"x-internal-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Run Ingest V1 Inbox Kb Ingest Run Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/kb/ingest/status":{"get":{"summary":"Ingest Status","operationId":"ingest_status_v1_inbox_kb_ingest_status_get","parameters":[{"name":"x-internal-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Ingest Status V1 Inbox Kb Ingest Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/kb/ingest/preview":{"get":{"summary":"Preview Merged Kb","operationId":"preview_merged_kb_v1_inbox_kb_ingest_preview_get","parameters":[{"name":"tenant_key","in":"query","required":true,"schema":{"type":"string","title":"Tenant Key"}},{"name":"listing_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Listing Id"}},{"name":"x-internal-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Preview Merged Kb V1 Inbox Kb Ingest Preview Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pricing/suggest":{"post":{"summary":"Suggest Price","operationId":"suggest_price_v1_pricing_suggest_post","parameters":[{"name":"x-internal-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuggestReq"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Suggest Price V1 Pricing Suggest Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pricing/apply":{"post":{"summary":"Apply Price","operationId":"apply_price_v1_pricing_apply_post","parameters":[{"name":"x-internal-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplyReq"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Apply Price V1 Pricing Apply Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pricing/suggestions":{"get":{"summary":"List Suggestions","operationId":"list_suggestions_v1_pricing_suggestions_get","parameters":[{"name":"listing_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Listing Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"x-internal-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Suggestions V1 Pricing Suggestions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pricing/dashboard":{"get":{"summary":"Dashboard","operationId":"dashboard_v1_pricing_dashboard_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/slack/oauth/callback":{"get":{"summary":"Oauth Callback","operationId":"oauth_callback_v1_slack_oauth_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Oauth Callback V1 Slack Oauth Callback Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/slack/events":{"post":{"summary":"Slack Events","operationId":"slack_events_v1_slack_events_post","parameters":[{"name":"x-slack-signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Slack-Signature"}},{"name":"x-slack-request-timestamp","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Slack-Request-Timestamp"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/slack/interactive":{"post":{"summary":"Slack Interactive","operationId":"slack_interactive_v1_slack_interactive_post","parameters":[{"name":"x-slack-signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Slack-Signature"}},{"name":"x-slack-request-timestamp","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Slack-Request-Timestamp"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/slack/command":{"post":{"summary":"Slack Command","operationId":"slack_command_v1_slack_command_post","parameters":[{"name":"x-slack-signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Slack-Signature"}},{"name":"x-slack-request-timestamp","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Slack-Request-Timestamp"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/unified":{"get":{"summary":"Get Unified View","operationId":"get_unified_view_v1_inbox_unified_get","parameters":[{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Unified View V1 Inbox Unified Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/unified/routes":{"get":{"summary":"List Channel Routes","operationId":"list_channel_routes_v1_inbox_unified_routes_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Channel Routes V1 Inbox Unified Routes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/inbox/unified/routes/{channel}":{"put":{"summary":"Upsert Channel Route","operationId":"upsert_channel_route_v1_inbox_unified_routes__channel__put","parameters":[{"name":"channel","in":"path","required":true,"schema":{"type":"string","title":"Channel"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelRouteIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Upsert Channel Route V1 Inbox Unified Routes  Channel  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Channel Route","operationId":"delete_channel_route_v1_inbox_unified_routes__channel__delete","parameters":[{"name":"channel","in":"path","required":true,"schema":{"type":"string","title":"Channel"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x_empire_tenant_id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Empire Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Delete Channel Route V1 Inbox Unified Routes  Channel  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"ActionPropose":{"properties":{"kind":{"type":"string","maxLength":48,"title":"Kind"},"params":{"type":"object","title":"Params"},"draft_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Draft Id"},"reason":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Reason"}},"type":"object","required":["kind"],"title":"ActionPropose"},"AiConfigPatch":{"properties":{"autosend":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Autosend"},"autosend_mode":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Autosend Mode"},"autosend_threshold":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Autosend Threshold"},"tone":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Tone"}},"type":"object","title":"AiConfigPatch"},"ApplyReq":{"properties":{"suggestion_id":{"type":"integer","title":"Suggestion Id"}},"type":"object","required":["suggestion_id"],"title":"ApplyReq"},"Body_sms_inbound_v1_inbox_channel_sms_inbound_post":{"properties":{"From":{"type":"string","title":"From"},"To":{"type":"string","title":"To"},"Body":{"type":"string","title":"Body","default":""}},"type":"object","required":["From","To"],"title":"Body_sms_inbound_v1_inbox_channel_sms_inbound_post"},"Body_voice_twiml_v1_inbox_voice_twiml_post":{"properties":{"CallSid":{"type":"string","title":"Callsid"},"From":{"type":"string","title":"From","default":""},"To":{"type":"string","title":"To","default":""},"SpeechResult":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Speechresult"}},"type":"object","required":["CallSid"],"title":"Body_voice_twiml_v1_inbox_voice_twiml_post"},"BookingCreate":{"properties":{"listing_id":{"type":"string","title":"Listing Id"},"guest_name":{"type":"string","maxLength":255,"minLength":1,"title":"Guest Name"},"check_in":{"type":"string","title":"Check In"},"check_out":{"type":"string","title":"Check Out"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["listing_id","guest_name","check_in","check_out"],"title":"BookingCreate"},"CalendarBlock":{"properties":{"start_date":{"type":"string","title":"Start Date"},"end_date":{"type":"string","title":"End Date"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["start_date","end_date"],"title":"CalendarBlock"},"CannedCreate":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"body":{"type":"string","maxLength":20000,"minLength":1,"title":"Body"}},"type":"object","required":["name","body"],"title":"CannedCreate"},"CannedRender":{"properties":{"variables":{"type":"object","title":"Variables"}},"type":"object","title":"CannedRender"},"CannedUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Name"},"body":{"anyOf":[{"type":"string","maxLength":20000,"minLength":1},{"type":"null"}],"title":"Body"}},"type":"object","title":"CannedUpdate"},"ChannelRouteIn":{"properties":{"assign_team":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Assign Team"},"priority_default":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Priority Default"},"business_hours_start":{"anyOf":[{"type":"integer","maximum":23.0,"minimum":0.0},{"type":"null"}],"title":"Business Hours Start"},"business_hours_end":{"anyOf":[{"type":"integer","maximum":23.0,"minimum":0.0},{"type":"null"}],"title":"Business Hours End"},"business_hours_tz":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Business Hours Tz"},"afterhours_assign_team":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Afterhours Assign Team"},"active":{"type":"boolean","title":"Active","default":true}},"type":"object","title":"ChannelRouteIn"},"CleaningDispatch":{"properties":{"listing_id":{"type":"string","title":"Listing Id"},"checkout_ts":{"type":"integer","title":"Checkout Ts"},"next_checkin_ts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Next Checkin Ts"},"cleaner_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cleaner Email"},"cleaner_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cleaner Phone"},"checklist_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checklist Key"}},"type":"object","required":["listing_id","checkout_ts"],"title":"CleaningDispatch"},"ContactPatch":{"properties":{"display_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Display Name"},"custom_attributes":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Custom Attributes"}},"type":"object","title":"ContactPatch"},"CsatInferReq":{"properties":{"messages":{"items":{"type":"string"},"type":"array","maxItems":200,"minItems":1,"title":"Messages"},"reservation_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Reservation Id"},"draft_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Draft Id"}},"type":"object","required":["messages"],"title":"CsatInferReq"},"CsatSubmit":{"properties":{"score":{"type":"number","maximum":5.0,"minimum":1.0,"title":"Score"},"label":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Label"},"reservation_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Reservation Id"},"draft_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Draft Id"},"note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Note"}},"type":"object","required":["score"],"title":"CsatSubmit"},"DraftDecision":{"properties":{"edited_reply":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Edited Reply"},"to_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Email"}},"type":"object","title":"DraftDecision"},"GoldenCreate":{"properties":{"question":{"type":"string","maxLength":2000,"minLength":1,"title":"Question"},"listing_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Listing Id"},"expected_gist":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Expected Gist"}},"type":"object","required":["question"],"title":"GoldenCreate"},"GuestReply":{"properties":{"guest_message":{"type":"string","maxLength":4000,"title":"Guest Message"},"reservation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reservation Id"},"listing_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Listing Id"},"to_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Email"},"force_queue":{"type":"boolean","title":"Force Queue","default":false}},"type":"object","required":["guest_message"],"title":"GuestReply"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HospitableWebhook":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action"},"data":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Data"},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version"},"tenant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"}},"type":"object","title":"HospitableWebhook"},"InboundEmail":{"properties":{"to":{"type":"string","title":"To","description":"recipient address (per-tenant inbound alias)"},"sender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender","description":"From: address of the notification"},"reply_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reply To","description":"Reply-To header (the address a reply is routed to)"},"headers":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Headers","description":"raw email headers (Brevo Inbound Parse)"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject","default":""},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text","default":""},"html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html"},"listing_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Listing Id"},"reservation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reservation Id"}},"type":"object","required":["to"],"title":"InboundEmail"},"InboxConfigPatch":{"properties":{"vertical":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Vertical"},"kb":{"anyOf":[{"type":"string","maxLength":100000},{"type":"null"}],"title":"Kb"},"tone":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Tone"},"autosend":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Autosend"},"autosend_mode":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Autosend Mode"},"autosend_threshold":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Autosend Threshold"},"widget_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Widget Enabled"},"webhook_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Webhook Url"}},"type":"object","title":"InboxConfigPatch"},"InboxInbound":{"properties":{"to":{"type":"string","title":"To","description":"per-tenant inbound alias"},"sender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender"},"reply_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reply To"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject","default":""},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text","default":""},"html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html"}},"type":"object","required":["to"],"title":"InboxInbound"},"InboxReply":{"properties":{"message":{"type":"string","maxLength":8000,"title":"Message"},"vertical":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Vertical"},"kb":{"anyOf":[{"type":"string","maxLength":100000},{"type":"null"}],"title":"Kb"},"tone":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Tone"},"fast":{"type":"boolean","title":"Fast","default":false},"voice":{"type":"boolean","title":"Voice","default":false}},"type":"object","required":["message"],"title":"InboxReply"},"IntegrationToggle":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"config":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Config"}},"type":"object","required":["enabled"],"title":"IntegrationToggle"},"KnowledgeUpsert":{"properties":{"knowledge_base":{"type":"string","maxLength":20000,"title":"Knowledge Base","default":""},"house_rules":{"type":"string","maxLength":8000,"title":"House Rules","default":""}},"type":"object","title":"KnowledgeUpsert"},"Lead":{"properties":{"name":{"type":"string","maxLength":200,"title":"Name","default":""},"email":{"type":"string","maxLength":200,"title":"Email","default":""},"address":{"type":"string","maxLength":500,"title":"Address","default":""},"revenue":{"type":"string","maxLength":100,"title":"Revenue","default":""},"message":{"type":"string","maxLength":4000,"title":"Message","default":""}},"type":"object","title":"Lead"},"ListingCreate":{"properties":{"title":{"type":"string","maxLength":500,"minLength":1,"title":"Title"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"nightly_price_usd":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Nightly Price Usd"}},"type":"object","required":["title"],"title":"ListingCreate"},"ListingUpsert":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"airbnb_ical_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Airbnb Ical Url"},"vrbo_ical_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vrbo Ical Url"}},"type":"object","required":["id","title"],"title":"ListingUpsert"},"MagicStart":{"properties":{"email":{"type":"string","title":"Email"},"brand_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Slug"},"return_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return To"}},"type":"object","required":["email"],"title":"MagicStart"},"MagicVerify":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"MagicVerify"},"PriceUpdate":{"properties":{"nightly_price_usd":{"type":"number","title":"Nightly Price Usd"},"currency":{"type":"string","title":"Currency","default":"USD"}},"type":"object","required":["nightly_price_usd"],"title":"PriceUpdate"},"PricingRecommendReq":{"properties":{"target_date":{"type":"string","title":"Target Date","description":"ISO date to price"},"base_price_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Base Price Usd"},"horizon_days":{"type":"integer","maximum":365.0,"minimum":7.0,"title":"Horizon Days","default":60},"explain":{"type":"boolean","title":"Explain","default":false}},"type":"object","required":["target_date"],"title":"PricingRecommendReq"},"ProvisionReq":{"properties":{"email":{"type":"string","maxLength":255,"title":"Email"},"name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Name"},"plan":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Plan"}},"type":"object","required":["email"],"title":"ProvisionReq"},"PushSubCreate":{"properties":{"url":{"type":"string","maxLength":2000,"minLength":8,"title":"Url"},"secret":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Secret"},"event_filter":{"type":"string","maxLength":32,"title":"Event Filter","default":"escalation"}},"type":"object","required":["url"],"title":"PushSubCreate"},"ReviewPost":{"properties":{"stars":{"type":"integer","title":"Stars"},"review_text":{"type":"string","title":"Review Text"}},"type":"object","required":["stars","review_text"],"title":"ReviewPost"},"ReviewWebhook":{"properties":{"tenant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"},"review_id":{"type":"string","maxLength":128,"minLength":1,"title":"Review Id"},"listing_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Listing Id"},"reviewer_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Reviewer Name"},"review_text":{"type":"string","maxLength":6000,"minLength":1,"title":"Review Text"},"rating":{"anyOf":[{"type":"number","maximum":5.0,"minimum":0.0},{"type":"null"}],"title":"Rating"}},"type":"object","required":["review_id","review_text"],"title":"ReviewWebhook"},"RewriteReq":{"properties":{"text":{"type":"string","maxLength":8000,"minLength":1,"title":"Text"},"instruction":{"type":"string","maxLength":300,"minLength":1,"title":"Instruction"}},"type":"object","required":["text","instruction"],"title":"RewriteReq"},"RuleCreate":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"match_intent":{"anyOf":[{"type":"string","maxLength":48},{"type":"null"}],"title":"Match Intent"},"match_keyword":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Match Keyword"},"tag":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Tag"},"assign_team":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Assign Team"},"priority":{"type":"string","maxLength":16,"title":"Priority","default":"normal"},"sla_minutes":{"anyOf":[{"type":"integer","maximum":525600.0,"minimum":1.0},{"type":"null"}],"title":"Sla Minutes"},"priority_order":{"type":"integer","maximum":100000.0,"minimum":0.0,"title":"Priority Order","default":100},"active":{"type":"boolean","title":"Active","default":true}},"type":"object","required":["name"],"title":"RuleCreate"},"RuleUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Name"},"match_intent":{"anyOf":[{"type":"string","maxLength":48},{"type":"null"}],"title":"Match Intent"},"match_keyword":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Match Keyword"},"tag":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Tag"},"assign_team":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Assign Team"},"priority":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Priority"},"sla_minutes":{"anyOf":[{"type":"integer","maximum":525600.0,"minimum":1.0},{"type":"null"}],"title":"Sla Minutes"},"priority_order":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":0.0},{"type":"null"}],"title":"Priority Order"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"}},"type":"object","title":"RuleUpdate"},"SmartlockCode":{"properties":{"code":{"type":"string","title":"Code"},"valid_from":{"type":"string","title":"Valid From"},"valid_until":{"type":"string","title":"Valid Until"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},"type":"object","required":["code","valid_from","valid_until"],"title":"SmartlockCode"},"SuggestReq":{"properties":{"listing_id":{"type":"string","title":"Listing Id"},"target_date":{"type":"string","title":"Target Date"},"horizon_days":{"type":"integer","maximum":365.0,"minimum":1.0,"title":"Horizon Days","default":30},"base_price_usd":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Base Price Usd"},"include_explanation":{"type":"boolean","title":"Include Explanation","default":false}},"type":"object","required":["listing_id","target_date"],"title":"SuggestReq"},"SummarizeReq":{"properties":{"messages":{"items":{"type":"string"},"type":"array","maxItems":200,"minItems":1,"title":"Messages"}},"type":"object","required":["messages"],"title":"SummarizeReq"},"SupportChatRequest":{"properties":{"message":{"type":"string","title":"Message"},"history":{"items":{"type":"object"},"type":"array","title":"History","default":[]}},"type":"object","required":["message"],"title":"SupportChatRequest"},"TaskPatch":{"properties":{"status":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Status"},"assignee":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Assignee"}},"type":"object","title":"TaskPatch"},"TenantCreate":{"properties":{"id":{"type":"string","maxLength":64,"title":"Id"},"name":{"type":"string","maxLength":255,"title":"Name"},"contact_email":{"type":"string","maxLength":255,"title":"Contact Email"}},"type":"object","required":["id","name","contact_email"],"title":"TenantCreate"},"TokenIssue":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"label":{"type":"string","title":"Label","default":"default"},"ttl_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ttl Seconds"}},"type":"object","required":["tenant_id"],"title":"TokenIssue"},"TokenMint":{"properties":{"label":{"type":"string","maxLength":255,"minLength":1,"title":"Label"},"role":{"type":"string","maxLength":16,"title":"Role","default":"agent"},"ttl_seconds":{"anyOf":[{"type":"integer","minimum":60.0},{"type":"null"}],"title":"Ttl Seconds"},"totp_code":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Totp Code"},"recovery_code":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Recovery Code"},"webauthn_assertion":{"anyOf":[{"$ref":"#/components/schemas/WebAuthnAssertionIn"},{"type":"null"}]}},"type":"object","required":["label"],"title":"TokenMint"},"TotpVerify":{"properties":{"code":{"type":"string","maxLength":12,"minLength":6,"title":"Code"}},"type":"object","required":["code"],"title":"TotpVerify"},"TranslateReq":{"properties":{"text":{"type":"string","maxLength":8000,"minLength":1,"title":"Text"},"target_language":{"type":"string","maxLength":64,"minLength":1,"title":"Target Language"}},"type":"object","required":["text","target_language"],"title":"TranslateReq"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WebAuthnAssertion":{"properties":{"credential_id":{"type":"string","maxLength":1000,"minLength":1,"title":"Credential Id"},"client_data_json":{"type":"string","minLength":1,"title":"Client Data Json"},"authenticator_data":{"type":"string","minLength":1,"title":"Authenticator Data"},"signature":{"type":"string","minLength":1,"title":"Signature"}},"type":"object","required":["credential_id","client_data_json","authenticator_data","signature"],"title":"WebAuthnAssertion"},"WebAuthnAssertionIn":{"properties":{"credential_id":{"type":"string","title":"Credential Id"},"client_data_json":{"type":"string","title":"Client Data Json"},"authenticator_data":{"type":"string","title":"Authenticator Data"},"signature":{"type":"string","title":"Signature"}},"type":"object","required":["credential_id","client_data_json","authenticator_data","signature"],"title":"WebAuthnAssertionIn"},"WebAuthnRegisterVerify":{"properties":{"credential_id":{"type":"string","maxLength":1000,"minLength":1,"title":"Credential Id"},"client_data_json":{"type":"string","minLength":1,"title":"Client Data Json"},"attestation_object":{"type":"string","minLength":1,"title":"Attestation Object"},"nickname":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Nickname"}},"type":"object","required":["credential_id","client_data_json","attestation_object"],"title":"WebAuthnRegisterVerify"},"WebPushKeys":{"properties":{"p256dh":{"type":"string","maxLength":255,"minLength":8,"title":"P256Dh"},"auth":{"type":"string","maxLength":255,"minLength":4,"title":"Auth"}},"type":"object","required":["p256dh","auth"],"title":"WebPushKeys"},"WebPushSubCreate":{"properties":{"endpoint":{"type":"string","maxLength":4000,"minLength":8,"title":"Endpoint"},"keys":{"$ref":"#/components/schemas/WebPushKeys"},"event_filter":{"type":"string","maxLength":32,"title":"Event Filter","default":"escalation"}},"type":"object","required":["endpoint","keys"],"title":"WebPushSubCreate"},"WebPushTest":{"properties":{"title":{"type":"string","maxLength":200,"title":"Title","default":"InboxPilot test notification"},"body":{"type":"string","maxLength":500,"title":"Body","default":"This is a test push."}},"type":"object","title":"WebPushTest"},"WidgetChatReq":{"properties":{"widget_key":{"type":"string","maxLength":128,"minLength":8,"title":"Widget Key"},"message":{"type":"string","maxLength":4000,"minLength":1,"title":"Message"}},"type":"object","required":["widget_key","message"],"title":"WidgetChatReq"},"app__routes__mobile__MessageSend":{"properties":{"body":{"type":"string","maxLength":4000,"minLength":1,"title":"Body"}},"type":"object","required":["body"],"title":"MessageSend"},"app__routes__v1__MessageSend":{"properties":{"reservation_id":{"type":"string","title":"Reservation Id"},"message_body":{"type":"string","title":"Message Body"},"listing_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Listing Id"},"to_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Email"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"channel":{"type":"string","title":"Channel","default":"email"}},"type":"object","required":["reservation_id","message_body"],"title":"MessageSend"}}}}