{"openapi":"3.1.0","info":{"title":"QuoteFind Agent API","description":"External AI agent API for a worldwide multi-industry quote concierge.","version":"0.1.0"},"paths":{"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/":{"get":{"summary":"Homepage","operationId":"homepage__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/request":{"get":{"summary":"New Request","operationId":"new_request_request_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Create Request","operationId":"create_request_request_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_create_request_request_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/request/form":{"get":{"summary":"Classic Request","operationId":"classic_request_request_form_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/api/jobs":{"post":{"tags":["Customer"],"summary":"Create Job Api","operationId":"create_job_api_api_jobs_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/track/{token}":{"get":{"summary":"Tracking","operationId":"tracking_track__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/track/{token}/photo/{filename}":{"get":{"summary":"Private Photo","operationId":"private_photo_track__token__photo__filename__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/track/{token}/message":{"post":{"summary":"Customer Message","operationId":"customer_message_track__token__message_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_customer_message_track__token__message_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/track/{token}/accept/{quote_id}":{"post":{"summary":"Accept Quote","operationId":"accept_quote_track__token__accept__quote_id__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"quote_id","in":"path","required":true,"schema":{"type":"string","title":"Quote Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/login":{"get":{"summary":"Admin Login Page","operationId":"admin_login_page_admin_login_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Admin Login","operationId":"admin_login_admin_login_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_admin_login_admin_login_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/logout":{"post":{"summary":"Logout","operationId":"logout_admin_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin":{"get":{"summary":"Admin Home","operationId":"admin_home_admin_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/jobs/{job_id}":{"get":{"summary":"Admin Job","operationId":"admin_job_admin_jobs__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/jobs/{job_id}/status":{"post":{"summary":"Admin Change Status","operationId":"admin_change_status_admin_jobs__job_id__status_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_admin_change_status_admin_jobs__job_id__status_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/jobs/{job_id}/attach":{"post":{"summary":"Admin Attach","operationId":"admin_attach_admin_jobs__job_id__attach_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_admin_attach_admin_jobs__job_id__attach_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/jobs/{job_id}/quote":{"post":{"summary":"Admin Add Quote","operationId":"admin_add_quote_admin_jobs__job_id__quote_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_admin_add_quote_admin_jobs__job_id__quote_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/tradies":{"get":{"summary":"Admin Tradies","operationId":"admin_tradies_admin_tradies_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Admin Add Tradie","operationId":"admin_add_tradie_admin_tradies_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_admin_add_tradie_admin_tradies_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/tradies/{tradie_id}/permission":{"post":{"summary":"Admin Permission","operationId":"admin_permission_admin_tradies__tradie_id__permission_post","parameters":[{"name":"tradie_id","in":"path","required":true,"schema":{"type":"string","title":"Tradie Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_admin_permission_admin_tradies__tradie_id__permission_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/events":{"get":{"summary":"Admin Events","operationId":"admin_events_admin_events_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/api/agent/jobs":{"get":{"tags":["Grok Agent"],"summary":"Agent Jobs","operationId":"agent_jobs_api_agent_jobs_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":25,"title":"Limit"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/jobs/{job_id}":{"get":{"tags":["Grok Agent"],"summary":"Agent Job","operationId":"agent_job_api_agent_jobs__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Grok Agent"],"summary":"Agent Update Job","operationId":"agent_update_job_api_agent_jobs__job_id__patch","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"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/agent/tradies":{"get":{"tags":["Grok Agent"],"summary":"Agent Tradies","operationId":"agent_tradies_api_agent_tradies_get","parameters":[{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"suburb","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suburb"}},{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Grok Agent"],"summary":"Agent Create Tradie","operationId":"agent_create_tradie_api_agent_tradies_post","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TradieCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/jobs/{job_id}/tradies":{"post":{"tags":["Grok Agent"],"summary":"Agent Link Tradie","operationId":"agent_link_tradie_api_agent_jobs__job_id__tradies_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TradieLink"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/jobs/{job_id}/quotes":{"post":{"tags":["Grok Agent"],"summary":"Agent Quote","operationId":"agent_quote_api_agent_jobs__job_id__quotes_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/jobs/{job_id}/messages":{"get":{"tags":["Grok Agent"],"summary":"Agent Messages","operationId":"agent_messages_api_agent_jobs__job_id__messages_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/outreach/prepare":{"post":{"tags":["Grok Agent"],"summary":"Prepare Outreach","operationId":"prepare_outreach_api_agent_outreach_prepare_post","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutboundMessage"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/outreach/send":{"post":{"tags":["Grok Agent"],"summary":"Send Outreach","operationId":"send_outreach_api_agent_outreach_send_post","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutboundMessage"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/messages/inbound/mock":{"post":{"tags":["Grok Agent"],"summary":"Simulate Reply","operationId":"simulate_reply_api_agent_messages_inbound_mock_post","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MockReply"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/events":{"get":{"tags":["Grok Agent"],"summary":"Agent Events","operationId":"agent_events_api_agent_events_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"pending","title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/events/{event_id}/ack":{"post":{"tags":["Grok Agent"],"summary":"Agent Ack","operationId":"agent_ack_api_agent_events__event_id__ack_post","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-guide":{"get":{"summary":"Agent Guide","operationId":"agent_guide_agent_guide_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/api/agent/tradies/{tradie_id}":{"patch":{"tags":["Grok Agent"],"summary":"Update Tradie","operationId":"update_tradie_api_agent_tradies__tradie_id__patch","parameters":[{"name":"tradie_id","in":"path","required":true,"schema":{"type":"string","title":"Tradie Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TradieUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/quotes/{quote_id}":{"patch":{"tags":["Grok Agent"],"summary":"Update Quote","operationId":"update_quote_api_agent_quotes__quote_id__patch","parameters":[{"name":"quote_id","in":"path","required":true,"schema":{"type":"string","title":"Quote Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/twilio/inbound":{"post":{"tags":["Messaging"],"summary":"Twilio Inbound","description":"Twilio webhook receiver: verifies signatures and conservatively matches replies.","operationId":"twilio_inbound_api_webhooks_twilio_inbound_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/chat/sessions":{"post":{"tags":["ChatGPT intake"],"summary":"Start","operationId":"start_api_chat_sessions_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/chat/sessions/{token}":{"get":{"tags":["ChatGPT intake"],"summary":"Resume","operationId":"resume_api_chat_sessions__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/sessions/{token}/messages":{"post":{"tags":["ChatGPT intake"],"summary":"Turn","operationId":"turn_api_chat_sessions__token__messages_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Turn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/sessions/{token}/submit":{"post":{"tags":["ChatGPT intake"],"summary":"Submit","operationId":"submit_api_chat_sessions__token__submit_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_submit_api_chat_sessions__token__submit_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/sessions/{token}/preferences":{"post":{"tags":["Contact verification"],"summary":"Choose","operationId":"choose_api_chat_sessions__token__preferences_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Preferences"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/sessions/{token}/verification/send":{"post":{"tags":["Contact verification"],"summary":"Send","operationId":"send_api_chat_sessions__token__verification_send_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendCode"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/sessions/{token}/verification/check":{"post":{"tags":["Contact verification"],"summary":"Check","operationId":"check_api_chat_sessions__token__verification_check_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckCode"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"Body_admin_add_quote_admin_jobs__job_id__quote_post":{"properties":{"tradie_id":{"type":"string","title":"Tradie Id"},"amount":{"type":"string","title":"Amount"},"description":{"type":"string","title":"Description"},"inclusions":{"type":"string","title":"Inclusions","default":""},"exclusions":{"type":"string","title":"Exclusions","default":""},"availability":{"type":"string","title":"Availability","default":""}},"type":"object","required":["tradie_id","amount","description"],"title":"Body_admin_add_quote_admin_jobs__job_id__quote_post"},"Body_admin_add_tradie_admin_tradies_post":{"properties":{"business_name":{"type":"string","title":"Business Name"},"category":{"type":"string","title":"Category"},"suburb":{"type":"string","title":"Suburb"},"phone":{"type":"string","title":"Phone","default":""},"email":{"type":"string","title":"Email","default":""},"website":{"type":"string","title":"Website","default":""},"source_url":{"type":"string","title":"Source Url","default":""},"country":{"type":"string","title":"Country","default":"Australia"},"state":{"type":"string","title":"State","default":""}},"type":"object","required":["business_name","category","suburb"],"title":"Body_admin_add_tradie_admin_tradies_post"},"Body_admin_attach_admin_jobs__job_id__attach_post":{"properties":{"tradie_id":{"type":"string","title":"Tradie Id"}},"type":"object","required":["tradie_id"],"title":"Body_admin_attach_admin_jobs__job_id__attach_post"},"Body_admin_change_status_admin_jobs__job_id__status_post":{"properties":{"status":{"type":"string","title":"Status"}},"type":"object","required":["status"],"title":"Body_admin_change_status_admin_jobs__job_id__status_post"},"Body_admin_login_admin_login_post":{"properties":{"password":{"type":"string","title":"Password"}},"type":"object","required":["password"],"title":"Body_admin_login_admin_login_post"},"Body_admin_permission_admin_tradies__tradie_id__permission_post":{"properties":{"action":{"type":"string","title":"Action"},"details":{"type":"string","title":"Details","default":""}},"type":"object","required":["action"],"title":"Body_admin_permission_admin_tradies__tradie_id__permission_post"},"Body_create_request_request_post":{"properties":{"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email","default":""},"phone":{"type":"string","title":"Phone","default":""},"category":{"type":"string","title":"Category"},"description":{"type":"string","title":"Description"},"suburb":{"type":"string","title":"Suburb"},"state":{"type":"string","title":"State","default":"NSW"},"postcode":{"type":"string","title":"Postcode","default":""},"country":{"type":"string","title":"Country","default":"Australia"},"currency":{"type":"string","title":"Currency","default":"AUD"},"budget":{"type":"string","title":"Budget","default":""},"timeframe":{"type":"string","title":"Timeframe","default":""},"consent":{"type":"boolean","title":"Consent","default":false},"photos":{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array","title":"Photos","default":[]}},"type":"object","required":["name","category","description","suburb"],"title":"Body_create_request_request_post"},"Body_customer_message_track__token__message_post":{"properties":{"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"Body_customer_message_track__token__message_post"},"Body_submit_api_chat_sessions__token__submit_post":{"properties":{"consent":{"type":"boolean","title":"Consent","default":false},"photos":{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array","title":"Photos","default":[]}},"type":"object","title":"Body_submit_api_chat_sessions__token__submit_post"},"CheckCode":{"properties":{"code":{"type":"string","pattern":"^\\d{4,10}$","title":"Code"}},"type":"object","required":["code"],"title":"CheckCode"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"JobCreate":{"properties":{"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email","default":""},"phone":{"type":"string","title":"Phone","default":""},"category":{"type":"string","title":"Category"},"description":{"type":"string","title":"Description"},"suburb":{"type":"string","title":"Suburb"},"state":{"type":"string","title":"State","default":"NSW"},"postcode":{"type":"string","title":"Postcode","default":""},"country":{"type":"string","title":"Country","default":"Australia"},"currency":{"type":"string","title":"Currency","default":"AUD"},"budget":{"type":"string","title":"Budget","default":""},"timeframe":{"type":"string","title":"Timeframe","default":""},"consent":{"type":"boolean","title":"Consent"}},"type":"object","required":["name","category","description","suburb","consent"],"title":"JobCreate"},"MockReply":{"properties":{"job_id":{"type":"string","title":"Job Id"},"tradie_id":{"type":"string","title":"Tradie Id"},"channel":{"type":"string","title":"Channel","default":"sms"},"body":{"type":"string","maxLength":2000,"minLength":1,"title":"Body"}},"type":"object","required":["job_id","tradie_id","body"],"title":"MockReply"},"OutboundMessage":{"properties":{"job_id":{"type":"string","title":"Job Id"},"tradie_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tradie Id"},"customer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Id"},"channel":{"type":"string","title":"Channel"},"body":{"type":"string","maxLength":2000,"minLength":2,"title":"Body"},"idempotency_key":{"type":"string","maxLength":180,"minLength":8,"title":"Idempotency Key"}},"type":"object","required":["job_id","channel","body","idempotency_key"],"title":"OutboundMessage"},"Preferences":{"properties":{"channels":{"items":{"type":"string"},"type":"array","maxItems":3,"minItems":1,"title":"Channels"}},"type":"object","required":["channels"],"title":"Preferences"},"QuoteCreate":{"properties":{"tradie_id":{"type":"string","title":"Tradie Id"},"amount":{"anyOf":[{"type":"number","maximum":1000000.0,"minimum":0.0},{"type":"string"},{"type":"null"}],"title":"Amount"},"amount_aud":{"anyOf":[{"type":"number","maximum":1000000.0,"minimum":0.0},{"type":"string"},{"type":"null"}],"title":"Amount Aud"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"description":{"type":"string","maxLength":5000,"minLength":3,"title":"Description"},"inclusions":{"type":"string","title":"Inclusions","default":""},"exclusions":{"type":"string","title":"Exclusions","default":""},"availability":{"type":"string","title":"Availability","default":""},"original_response":{"type":"string","title":"Original Response","default":""}},"type":"object","required":["tradie_id","description"],"title":"QuoteCreate"},"QuoteUpdate":{"properties":{"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"inclusions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inclusions"},"exclusions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exclusions"},"availability":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Availability"},"original_response":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Response"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","title":"QuoteUpdate"},"SendCode":{"properties":{"channel":{"type":"string","title":"Channel"}},"type":"object","required":["channel"],"title":"SendCode"},"StatusUpdate":{"properties":{"status":{"type":"string","title":"Status"}},"type":"object","required":["status"],"title":"StatusUpdate"},"TradieCreate":{"properties":{"business_name":{"type":"string","maxLength":180,"minLength":2,"title":"Business Name"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"suburb":{"type":"string","title":"Suburb","default":""},"state":{"type":"string","title":"State","default":""},"country":{"type":"string","maxLength":100,"minLength":1,"title":"Country","default":"Australia"},"categories":{"items":{"type":"string"},"type":"array","title":"Categories"},"service_areas":{"items":{"type":"string"},"type":"array","title":"Service Areas"},"discovery_source":{"type":"string","title":"Discovery Source","default":"Agent research"},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url"}},"type":"object","required":["business_name"],"title":"TradieCreate"},"TradieLink":{"properties":{"tradie_id":{"type":"string","title":"Tradie Id"}},"type":"object","required":["tradie_id"],"title":"TradieLink"},"TradieUpdate":{"properties":{"country":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Country"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"contact_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Name"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"suburb":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suburb"},"service_areas":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Service Areas"},"categories":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Categories"},"verification_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verification Status"}},"type":"object","title":"TradieUpdate"},"Turn":{"properties":{"message":{"type":"string","maxLength":2500,"minLength":1,"title":"Message"}},"type":"object","required":["message"],"title":"Turn"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}