{"openapi":"3.1.0","info":{"title":"TrustField Technologies","description":"Workflow infrastructure for financial operators — intake, checklist, audit, Telegram ops (pre-PSP)","version":"trustA-1.0.0"},"paths":{"/api/corridors":{"get":{"tags":["api"],"summary":"List Corridors","operationId":"list_corridors_api_corridors_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/settlement-partners":{"get":{"tags":["api"],"summary":"List Settlement Partners","description":"Partner integration catalog (infra reference) — MOU targets, not live payment execution by TrustField.","operationId":"list_settlement_partners_api_settlement_partners_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/execution-partners":{"get":{"tags":["api"],"summary":"List Execution Partners","description":"Alias for settlement-partners (execution on licensed infrastructure, not TrustField).","operationId":"list_execution_partners_api_execution_partners_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/integrations/health":{"get":{"tags":["api"],"summary":"Integrations Health","description":"Phase 1 adapter configuration status (no secrets). See docs/internal/PRODUCT_ROADMAP_V2.md.","operationId":"integrations_health_api_integrations_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/venues":{"get":{"tags":["api"],"summary":"List Venues","description":"Customer-safe venue catalog (public labels; slug when for_portal or include_slug).","operationId":"list_venues_api_venues_get","parameters":[{"name":"include_slug","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Slug"}},{"name":"for_portal","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"For Portal"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/readiness":{"get":{"tags":["api"],"summary":"Readiness","description":"Config readiness for production (trustA) — no secrets returned.","operationId":"readiness_api_readiness_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/stats":{"get":{"tags":["api"],"summary":"Platform Stats","operationId":"platform_stats_api_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/partners/{slug}":{"get":{"tags":["api"],"summary":"Partner Public","description":"Public partner metadata for branded intake (no secrets).","operationId":"partner_public_api_partners__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/register":{"post":{"tags":["api"],"summary":"Api Register","operationId":"api_register_api_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistrationCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistrationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/register/{reference}/compliance-report.html":{"get":{"tags":["api"],"summary":"Compliance Report","description":"Board-ready report: checklist, documents, audit timestamps (print to PDF).","operationId":"compliance_report_api_register__reference__compliance_report_html_get","parameters":[{"name":"reference","in":"path","required":true,"schema":{"type":"string","title":"Reference"}},{"name":"X-Admin-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}},{"name":"tf_admin","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tf Admin"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/programs":{"post":{"tags":["api"],"summary":"Api Create Program","operationId":"api_create_program_api_programs_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistrationCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistrationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/programs/{reference}":{"get":{"tags":["api"],"summary":"Get Program Status","operationId":"get_program_status_api_programs__reference__get","parameters":[{"name":"reference","in":"path","required":true,"schema":{"type":"string","title":"Reference"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistrationStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/programs/{reference}/instructions":{"get":{"tags":["api"],"summary":"List Program Instructions","operationId":"list_program_instructions_api_programs__reference__instructions_get","parameters":[{"name":"reference","in":"path","required":true,"schema":{"type":"string","title":"Reference"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstructionsList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/programs/{reference}/events":{"get":{"tags":["api"],"summary":"List Program Events","operationId":"list_program_events_api_programs__reference__events_get","parameters":[{"name":"reference","in":"path","required":true,"schema":{"type":"string","title":"Reference"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"since_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Since Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProgramEventsList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/register/{reference}":{"get":{"tags":["api"],"summary":"Get Status","operationId":"get_status_api_register__reference__get","parameters":[{"name":"reference","in":"path","required":true,"schema":{"type":"string","title":"Reference"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistrationStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/register/{reference}/audit.json":{"get":{"tags":["api"],"summary":"Export Registration Audit","description":"Operator audit bundle: registration, checklist, instructions, program_events.","operationId":"export_registration_audit_api_register__reference__audit_json_get","parameters":[{"name":"reference","in":"path","required":true,"schema":{"type":"string","title":"Reference"}},{"name":"X-Admin-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}},{"name":"tf_admin","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tf Admin"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/registrations/{reference}/audit.json":{"get":{"tags":["api"],"summary":"Admin Export Registration Audit","operationId":"admin_export_registration_audit_api_admin_registrations__reference__audit_json_get","parameters":[{"name":"reference","in":"path","required":true,"schema":{"type":"string","title":"Reference"}},{"name":"X-Admin-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}},{"name":"tf_admin","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tf Admin"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/register/{reference}/portal-step":{"post":{"tags":["api"],"summary":"Portal Step","description":"Customer portal: record verify/fund progress (demo-friendly).","operationId":"portal_step_api_register__reference__portal_step_post","parameters":[{"name":"reference","in":"path","required":true,"schema":{"type":"string","title":"Reference"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalStepBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/instructions":{"post":{"tags":["api"],"summary":"Post Instruction","operationId":"post_instruction_api_instructions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstructionCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstructionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/instructions/{instruction_id}":{"get":{"tags":["api"],"summary":"Get Instruction","operationId":"get_instruction_api_instructions__instruction_id__get","parameters":[{"name":"instruction_id","in":"path","required":true,"schema":{"type":"integer","title":"Instruction Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstructionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["api"],"summary":"Patch Instruction","operationId":"patch_instruction_api_instructions__instruction_id__patch","parameters":[{"name":"instruction_id","in":"path","required":true,"schema":{"type":"integer","title":"Instruction Id"}},{"name":"X-Admin-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}},{"name":"tf_admin","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tf Admin"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstructionPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstructionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/operator/webhooks":{"post":{"tags":["api"],"summary":"Register Operator Webhook","operationId":"register_operator_webhook_api_operator_webhooks_post","parameters":[{"name":"X-Admin-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}},{"name":"tf_admin","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tf Admin"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperatorWebhookCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/operator/api-keys":{"post":{"tags":["api"],"summary":"Create Operator Api Key","operationId":"create_operator_api_key_api_operator_api_keys_post","parameters":[{"name":"X-Admin-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}},{"name":"tf_admin","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tf Admin"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperatorApiKeyCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/trulioo":{"post":{"tags":["api"],"summary":"Webhook Trulioo","operationId":"webhook_trulioo_api_webhooks_trulioo_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/webhooks/vopay":{"post":{"tags":["api"],"summary":"Webhook Vopay","operationId":"webhook_vopay_api_webhooks_vopay_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/checklist/{reference}":{"get":{"tags":["api"],"summary":"Get Checklist","operationId":"get_checklist_api_checklist__reference__get","parameters":[{"name":"reference","in":"path","required":true,"schema":{"type":"string","title":"Reference"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/checklist/{reference}/export.html":{"get":{"tags":["api"],"summary":"Export Checklist Html","description":"Printable checklist for MSB compliance teams (Save as PDF from browser).","operationId":"export_checklist_html_api_checklist__reference__export_html_get","parameters":[{"name":"reference","in":"path","required":true,"schema":{"type":"string","title":"Reference"}},{"name":"X-Admin-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}},{"name":"tf_admin","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tf Admin"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/checklist/{reference}/items/{item_id}":{"patch":{"tags":["api"],"summary":"Patch Checklist Item","operationId":"patch_checklist_item_api_checklist__reference__items__item_id__patch","parameters":[{"name":"reference","in":"path","required":true,"schema":{"type":"string","title":"Reference"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChecklistItemPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/documents/{reference}":{"get":{"tags":["api"],"summary":"List Documents","operationId":"list_documents_api_documents__reference__get","parameters":[{"name":"reference","in":"path","required":true,"schema":{"type":"string","title":"Reference"}},{"name":"X-Admin-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}},{"name":"tf_admin","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tf Admin"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["api"],"summary":"Upload Document","operationId":"upload_document_api_documents__reference__post","parameters":[{"name":"reference","in":"path","required":true,"schema":{"type":"string","title":"Reference"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_document_api_documents__reference__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/registrations":{"get":{"tags":["api"],"summary":"Admin List","operationId":"admin_list_api_admin_registrations_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"corridor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Corridor"}},{"name":"settlement_path","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Settlement Path"}},{"name":"has_documents","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Documents"}},{"name":"partner","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Partner"}},{"name":"X-Admin-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}},{"name":"tf_admin","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tf Admin"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/registrations/{reference}":{"patch":{"tags":["api"],"summary":"Admin Update Registration","operationId":"admin_update_registration_api_admin_registrations__reference__patch","parameters":[{"name":"reference","in":"path","required":true,"schema":{"type":"string","title":"Reference"}},{"name":"X-Admin-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}},{"name":"tf_admin","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tf Admin"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminRegistrationUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/registrations/{reference}/status":{"patch":{"tags":["api"],"summary":"Admin Update Status Legacy","operationId":"admin_update_status_legacy_api_admin_registrations__reference__status_patch","parameters":[{"name":"reference","in":"path","required":true,"schema":{"type":"string","title":"Reference"}},{"name":"X-Admin-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}},{"name":"tf_admin","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tf Admin"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/export.csv":{"get":{"tags":["api"],"summary":"Admin Export Csv","operationId":"admin_export_csv_api_admin_export_csv_get","parameters":[{"name":"partner","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Partner"}},{"name":"X-Admin-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}},{"name":"tf_admin","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tf Admin"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/partner/stats":{"get":{"tags":["api"],"summary":"Partner Stats Api","operationId":"partner_stats_api_api_partner_stats_get","parameters":[{"name":"X-Partner-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Partner-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/partner/registrations":{"get":{"tags":["api"],"summary":"Partner Registrations","operationId":"partner_registrations_api_partner_registrations_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"X-Partner-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Partner-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/partner/export.csv":{"get":{"tags":["api"],"summary":"Partner Export Csv","operationId":"partner_export_csv_api_partner_export_csv_get","parameters":[{"name":"X-Partner-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Partner-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/status":{"post":{"tags":["admin-web"],"summary":"Admin Set Status","operationId":"admin_set_status_admin_status_post","parameters":[{"name":"X-Admin-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}},{"name":"tf_admin","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tf Admin"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_admin_set_status_admin_status_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/export.csv":{"get":{"tags":["admin-web"],"summary":"Admin Export Csv","operationId":"admin_export_csv_admin_export_csv_get","parameters":[{"name":"partner","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Partner"}},{"name":"X-Admin-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}},{"name":"tf_admin","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tf Admin"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/telegram/health":{"get":{"tags":["telegram"],"summary":"Telegram Health","operationId":"telegram_health_api_telegram_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/telegram/webhook":{"post":{"tags":["telegram"],"summary":"Telegram Webhook","operationId":"telegram_webhook_api_telegram_webhook_post","parameters":[{"name":"x-telegram-bot-api-secret-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Telegram-Bot-Api-Secret-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AdminRegistrationUpdate":{"properties":{"status":{"anyOf":[{"$ref":"#/components/schemas/ApplicationStatus"},{"type":"null"}]},"settlement_path":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Settlement Path"},"status_note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Status Note"}},"type":"object","title":"AdminRegistrationUpdate"},"ApplicationStatus":{"type":"string","enum":["pending","kyc_pending","rpaa_review","reviewing","approved","declined"],"title":"ApplicationStatus"},"Body_admin_set_status_admin_status_post":{"properties":{"reference":{"type":"string","title":"Reference"},"status":{"type":"string","title":"Status"},"status_note":{"type":"string","title":"Status Note","default":""},"settlement_path":{"type":"string","title":"Settlement Path","default":""},"partner_filter":{"type":"string","title":"Partner Filter","default":""},"csrf_token":{"type":"string","title":"Csrf Token","default":""}},"type":"object","required":["reference","status"],"title":"Body_admin_set_status_admin_status_post"},"Body_upload_document_api_documents__reference__post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_document_api_documents__reference__post"},"ChecklistItemPatch":{"properties":{"done":{"type":"boolean","title":"Done"}},"type":"object","required":["done"],"title":"ChecklistItemPatch"},"ClientRole":{"type":"string","enum":["individual","business","partner"],"title":"ClientRole"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"InstructionCreate":{"properties":{"reference":{"type":"string","maxLength":20,"minLength":4,"title":"Reference"},"provider":{"type":"string","maxLength":32,"minLength":2,"title":"Provider"},"action":{"type":"string","maxLength":64,"title":"Action","default":"submit_order"},"payload":{"type":"object","title":"Payload"}},"type":"object","required":["reference","provider"],"title":"InstructionCreate"},"InstructionPatch":{"properties":{"status":{"type":"string","enum":["draft","submitted","venue_ack","filled","failed"],"title":"Status"},"external_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"External Id"}},"type":"object","required":["status"],"title":"InstructionPatch"},"InstructionResponse":{"properties":{"id":{"type":"integer","title":"Id"},"instruction_ref":{"type":"string","title":"Instruction Ref"},"reference":{"type":"string","title":"Reference"},"provider":{"type":"string","title":"Provider"},"action":{"type":"string","title":"Action"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Id"},"status":{"type":"string","title":"Status"},"payload":{"type":"object","title":"Payload"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","instruction_ref","reference","provider","action","external_id","status","created_at","updated_at"],"title":"InstructionResponse"},"InstructionsList":{"properties":{"reference":{"type":"string","title":"Reference"},"instructions":{"items":{"$ref":"#/components/schemas/InstructionResponse"},"type":"array","title":"Instructions"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["reference","instructions","count"],"title":"InstructionsList"},"OperatorApiKeyCreate":{"properties":{"slug":{"type":"string","maxLength":64,"minLength":2,"title":"Slug"},"rotate":{"type":"boolean","title":"Rotate","default":false}},"type":"object","required":["slug"],"title":"OperatorApiKeyCreate"},"OperatorWebhookCreate":{"properties":{"reference":{"type":"string","maxLength":20,"minLength":4,"title":"Reference"},"url":{"type":"string","maxLength":500,"minLength":8,"title":"Url"},"secret":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Secret"}},"type":"object","required":["reference","url"],"title":"OperatorWebhookCreate"},"PortalStepBody":{"properties":{"step":{"type":"string","enum":["verify","fund"],"title":"Step"}},"type":"object","required":["step"],"title":"PortalStepBody"},"ProgramEventOut":{"properties":{"id":{"type":"integer","title":"Id"},"event_type":{"type":"string","title":"Event Type"},"source":{"type":"string","title":"Source"},"instruction_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Instruction Id"},"payload":{"type":"object","title":"Payload"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","event_type","source"],"title":"ProgramEventOut"},"ProgramEventsList":{"properties":{"reference":{"type":"string","title":"Reference"},"events":{"items":{"$ref":"#/components/schemas/ProgramEventOut"},"type":"array","title":"Events"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["reference","events","count"],"title":"ProgramEventsList"},"RegistrationCreate":{"properties":{"full_name":{"type":"string","maxLength":200,"minLength":2,"title":"Full Name"},"email":{"type":"string","format":"email","title":"Email"},"turnstile_token":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Turnstile Token"},"company":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Company"},"phone":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Phone"},"legal_entity_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Legal Entity Name"},"business_number":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Business Number"},"rpaa_target_date":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Rpaa Target Date"},"incident_contact_email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Incident Contact Email"},"consent_accepted":{"type":"boolean","title":"Consent Accepted","default":false},"corridor":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Corridor"},"settlement_path":{"type":"string","maxLength":32,"title":"Settlement Path","default":"fiat"},"client_role":{"$ref":"#/components/schemas/ClientRole","default":"individual"},"fintrac_msb":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Fintrac Msb"},"registration_type":{"$ref":"#/components/schemas/RegistrationType","default":"program"},"notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Notes"},"telegram_user_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Telegram User Id"},"telegram_username":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Telegram Username"},"partner_slug":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Partner Slug"}},"type":"object","required":["full_name","email"],"title":"RegistrationCreate"},"RegistrationResponse":{"properties":{"id":{"type":"integer","title":"Id"},"reference":{"type":"string","title":"Reference"},"full_name":{"type":"string","title":"Full Name"},"email":{"type":"string","title":"Email"},"corridor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Corridor"},"status":{"$ref":"#/components/schemas/ApplicationStatus"},"registration_type":{"$ref":"#/components/schemas/RegistrationType"},"message":{"type":"string","title":"Message"}},"type":"object","required":["id","reference","full_name","email","corridor","status","registration_type","message"],"title":"RegistrationResponse"},"RegistrationStatus":{"properties":{"id":{"type":"integer","title":"Id"},"reference":{"type":"string","title":"Reference"},"full_name":{"type":"string","title":"Full Name"},"email":{"type":"string","title":"Email"},"corridor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Corridor"},"settlement_path":{"type":"string","title":"Settlement Path"},"client_role":{"type":"string","title":"Client Role"},"status":{"$ref":"#/components/schemas/ApplicationStatus"},"lifecycle":{"type":"string","title":"Lifecycle","default":"created"},"legal_entity_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legal Entity Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"recent_events":{"items":{"$ref":"#/components/schemas/ProgramEventOut"},"type":"array","title":"Recent Events"},"instruction_count":{"type":"integer","title":"Instruction Count","default":0}},"type":"object","required":["id","reference","full_name","email","corridor","settlement_path","client_role","status","created_at","updated_at"],"title":"RegistrationStatus"},"RegistrationType":{"type":"string","enum":["rpaa","program","msp_waitlist"],"title":"RegistrationType"},"StatusUpdate":{"properties":{"status":{"$ref":"#/components/schemas/ApplicationStatus"}},"type":"object","required":["status"],"title":"StatusUpdate"},"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"}}}}