{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/customers/current/id":{"get":{"summary":"Get Customer Id","description":"Get customer ID","operationId":"get_customer_id_customers_current_id_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetCustomerIDResponse"}}}}},"security":[{"APIKeyHeader":[]}]}},"/phone-calls":{"get":{"summary":"Get Phone Calls","description":"Get phone calls with optional filters","operationId":"get_phone_calls_phone_calls_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"start_date","in":"query","required":false,"schema":{"type":"string","format":"UTC datetime in ISO format","description":"Include phone calls made from this datetime forward","title":"Start Date"},"description":"Include phone calls made from this datetime forward"},{"name":"end_date","in":"query","required":false,"schema":{"type":"string","format":"UTC datetime in ISO format","description":"Exclude phone calls made after this datetime. Defaults to the current datetime","title":"End Date"},"description":"Exclude phone calls made after this datetime. Defaults to the current datetime"},{"name":"follow_up_status","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/FollowUpStatus"}},{"type":"null"}],"description":"Filter on phone calls follow_up_status attribute","title":"Follow Up Status"},"description":"Filter on phone calls follow_up_status attribute"},{"name":"caller_phone_number","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter on phone calls caller_phone_number attribute","title":"Caller Phone Number"},"description":"Filter on phone calls caller_phone_number attribute"},{"name":"callee_phone_number","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter on phone calls callee_phone_number attribute","title":"Callee Phone Number"},"description":"Filter on phone calls callee_phone_number attribute"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of phone calls per page","default":50,"title":"Page Size"},"description":"Number of phone calls per page"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPhoneCallsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/phone-calls/count":{"get":{"summary":"Get Phone Calls Count","description":"Get count of phone calls with optional filters","operationId":"get_phone_calls_count_phone_calls_count_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"start_date","in":"query","required":false,"schema":{"type":"string","format":"UTC datetime in ISO format","description":"Include phone calls made from this datetime forward","title":"Start Date"},"description":"Include phone calls made from this datetime forward"},{"name":"end_date","in":"query","required":false,"schema":{"type":"string","format":"UTC datetime in ISO format","description":"Exclude phone calls made after this datetime. Defaults to the current datetime","title":"End Date"},"description":"Exclude phone calls made after this datetime. Defaults to the current datetime"},{"name":"follow_up_status","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/FollowUpStatus"}},{"type":"null"}],"description":"Filter on phone calls follow_up_status attribute","title":"Follow Up Status"},"description":"Filter on phone calls follow_up_status attribute"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPhoneCallsCountResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/phone-calls/{phone_call_id}/follow-up-status":{"patch":{"summary":"Update Phone Call Follow Up Status","operationId":"update_phone_call_follow_up_status_phone_calls__phone_call_id__follow_up_status_patch","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"phone_call_id","in":"path","required":true,"schema":{"type":"string","description":"The ID of the phone call to update","title":"Phone Call Id"},"description":"The ID of the phone call to update"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_update_phone_call_follow_up_status_phone_calls__phone_call_id__follow_up_status_patch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePhoneCallFollowUpStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/phone-calls/{phone_call_id}/recording":{"get":{"summary":"Get Phone Call Recording","operationId":"get_phone_call_recording_phone_calls__phone_call_id__recording_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"phone_call_id","in":"path","required":true,"schema":{"type":"string","description":"The ID of the phone call to get the recording for","title":"Phone Call Id"},"description":"The ID of the phone call to get the recording for"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/twilio/inbound-phone-call":{"post":{"summary":"Twilio Inbound Phone Call","operationId":"twilio_inbound_phone_call_twilio_inbound_phone_call_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/twilio-credentials":{"get":{"summary":"Get Twilio Credentials","description":"Get active Twilio credentials for the authenticated customer.","operationId":"get_twilio_credentials_twilio_credentials_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwilioCredentialsResponse"}}}}},"security":[{"APIKeyHeader":[]}]},"post":{"summary":"Create Twilio Credentials","description":"Create new Twilio credentials for the authenticated customer.\n\nMultiple credentials can be active simultaneously.","operationId":"create_twilio_credentials_twilio_credentials_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTwilioCredentialsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwilioCredentialsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyHeader":[]}]}},"/twilio-credentials/list":{"get":{"summary":"List Twilio Credentials","description":"List all Twilio credentials (including inactive) for the authenticated customer.","operationId":"list_twilio_credentials_twilio_credentials_list_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/TwilioCredentialsResponse"},"type":"array","title":"Response List Twilio Credentials Twilio Credentials List Get"}}}}},"security":[{"APIKeyHeader":[]}]}},"/twilio-credentials/{credentials_id}":{"put":{"summary":"Update Twilio Credentials","description":"Update existing Twilio credentials.","operationId":"update_twilio_credentials_twilio_credentials__credentials_id__put","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"credentials_id","in":"path","required":true,"schema":{"type":"string","title":"Credentials Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTwilioCredentialsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwilioCredentialsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Twilio Credentials","description":"Delete Twilio credentials.","operationId":"delete_twilio_credentials_twilio_credentials__credentials_id__delete","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"credentials_id","in":"path","required":true,"schema":{"type":"string","title":"Credentials Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/communication-configurations":{"get":{"summary":"List Communication Configurations","description":"List all communication configurations for the authenticated customer.","operationId":"list_communication_configurations_communication_configurations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"items":{"$ref":"#/components/schemas/CommunicationConfigurationResponse"},"type":"array"},"type":"object","title":"Response List Communication Configurations Communication Configurations Get"}}}}},"security":[{"APIKeyHeader":[]}]},"post":{"summary":"Create Communication Configuration","description":"Create a new communication configuration for the authenticated customer.","operationId":"create_communication_configuration_communication_configurations_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCommunicationConfigurationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommunicationConfigurationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyHeader":[]}]}},"/communication-configurations/{config_id}":{"get":{"summary":"Get Communication Configuration","description":"Get a specific communication configuration by ID.","operationId":"get_communication_configuration_communication_configurations__config_id__get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"config_id","in":"path","required":true,"schema":{"type":"string","title":"Config Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommunicationConfigurationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Update Communication Configuration","description":"Update an existing communication configuration.","operationId":"update_communication_configuration_communication_configurations__config_id__patch","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"config_id","in":"path","required":true,"schema":{"type":"string","title":"Config Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCommunicationConfigurationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommunicationConfigurationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Communication Configuration","description":"Delete a communication configuration.","operationId":"delete_communication_configuration_communication_configurations__config_id__delete","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"config_id","in":"path","required":true,"schema":{"type":"string","title":"Config Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/communication-configurations/validate":{"post":{"summary":"Validate Communication Configuration","description":"Validate a communication configuration before creation/update.","operationId":"validate_communication_configuration_communication_configurations_validate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateCommunicationConfigurationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Validate Communication Configuration Communication Configurations Validate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyHeader":[]}]}},"/locations":{"get":{"summary":"List Locations","description":"List all locations for the authenticated customer.","operationId":"list_locations_locations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/LocationResponse"},"type":"array","title":"Response List Locations Locations Get"}}}}},"security":[{"APIKeyHeader":[]}]},"post":{"summary":"Create Location","description":"Create a new location.","operationId":"create_location_locations_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLocationRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyHeader":[]}]}},"/locations/{location_id}/config/drx":{"patch":{"summary":"Update Drx Config","description":"Add or update DRX configuration for a location.","operationId":"update_drx_config_locations__location_id__config_drx_patch","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"string","title":"Location Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DrxLocationConfig"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/locations/{location_id}/config/scriptly":{"patch":{"summary":"Update Scriptly Config","description":"Add or update Scriptly configuration for a location.","operationId":"update_scriptly_config_locations__location_id__config_scriptly_patch","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"string","title":"Location Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScriptlyConfig"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/locations/{location_id}/config/regalo":{"patch":{"summary":"Update Regalo Config","description":"Add or update Regalo configuration for a location.","operationId":"update_regalo_config_locations__location_id__config_regalo_patch","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"string","title":"Location Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegaloConfig"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/locations/{location_id}/config/{config_type}":{"delete":{"summary":"Delete Config","description":"Remove a specific configuration type (drx, scriptly, outbound) from a location.","operationId":"delete_config_locations__location_id__config__config_type__delete","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"string","title":"Location Id"}},{"name":"config_type","in":"path","required":true,"schema":{"type":"string","title":"Config Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/locations/{location_id}":{"get":{"summary":"Get Location","description":"Get a specific location by ID.","operationId":"get_location_locations__location_id__get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"string","title":"Location Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Update Location","description":"Partially update a location. Set transfer_config to null to remove it.","operationId":"update_location_locations__location_id__patch","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"string","title":"Location Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLocationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Location","description":"Delete a location by ID.","operationId":"delete_location_locations__location_id__delete","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"string","title":"Location Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/twilio/sms":{"post":{"summary":"Twilio Sms Webhook","description":"Handles incoming SMS messages from Twilio.\n\nIt immediately returns a 200 OK to Twilio and processes the message\nin the background to avoid timeouts.","operationId":"twilio_sms_webhook_webhooks_twilio_sms_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhooks/twilio/sms-status":{"post":{"summary":"Twilio Sms Status Webhook","operationId":"twilio_sms_status_webhook_webhooks_twilio_sms_status_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhooks/twilio/payment-status":{"post":{"summary":"Twilio Payment Status Webhook","description":"Handles payment status callbacks from Twilio.\nPublishes callback data to Redis for real-time delivery to payment flow.","operationId":"twilio_payment_status_webhook_webhooks_twilio_payment_status_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhooks/twilio/phone-call-status":{"post":{"summary":"Twilio Phone Call Status Webhook","operationId":"twilio_phone_call_status_webhook_webhooks_twilio_phone_call_status_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhooks/stytch/organization":{"post":{"summary":"Stytch Organization Webhook","description":"Handle Stytch organization webhooks.\nCurrently processes organization creation events.","operationId":"stytch_organization_webhook_webhooks_stytch_organization_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/campaigns/prior-auth/process-email":{"post":{"tags":["campaigns"],"summary":"Create Prior Auth Campaigns From Csv","description":"Fetch today's prior auth CSV from email and create campaigns.\nDesigned to be called by Cloud Scheduler daily.","operationId":"create_prior_auth_campaigns_from_csv_campaigns_prior_auth_process_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePriorAuthCampaignsFromCSVRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePriorAuthCampaignsFromCSVResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/campaigns/prior-auth/send-patient-phone-call":{"post":{"tags":["campaigns"],"summary":"Send Patient Phone Call","description":"Send a patient phone call for a prior authorization campaign.","operationId":"send_patient_phone_call_campaigns_prior_auth_send_patient_phone_call_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendPatientPhoneCallRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendPatientPhoneCallResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/campaigns/prior-auth":{"get":{"tags":["campaigns"],"summary":"Get Prior Auth Campaigns","description":"Get prior auth campaigns with optional filters","operationId":"get_prior_auth_campaigns_campaigns_prior_auth_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"start_date","in":"query","required":false,"schema":{"type":"string","format":"UTC datetime in ISO format","description":"Include campaigns created from this datetime forward","title":"Start Date"},"description":"Include campaigns created from this datetime forward"},{"name":"end_date","in":"query","required":false,"schema":{"type":"string","format":"UTC datetime in ISO format","description":"Exclude campaigns created after this datetime. Defaults to the current datetime","title":"End Date"},"description":"Exclude campaigns created after this datetime. Defaults to the current datetime"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of campaigns per page","default":50,"title":"Page Size"},"description":"Number of campaigns per page"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPriorAuthCampaignsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows":{"get":{"summary":"Get Workflows","description":"Get workflows with optional filters","operationId":"get_workflows_workflows_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"start_date","in":"query","required":false,"schema":{"type":"string","format":"UTC datetime in ISO format","description":"Include workflows created from this datetime forward","title":"Start Date"},"description":"Include workflows created from this datetime forward"},{"name":"end_date","in":"query","required":false,"schema":{"type":"string","format":"UTC datetime in ISO format","description":"Exclude workflows created after this datetime. Defaults to the current datetime","title":"End Date"},"description":"Exclude workflows created after this datetime. Defaults to the current datetime"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of workflows per page","default":50,"title":"Page Size"},"description":"Number of workflows per page"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetWorkflowsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rpa/credentials":{"post":{"summary":"Create Rpa Credentials","description":"Create new RPA credentials for a tenant.\n\nCreates Scriptly login credentials for a customer/location pair.\nIf credentials already exist for the location, they are deactivated.\n\nThe customer_id and location_id are validated against Firestore.","operationId":"create_rpa_credentials_rpa_credentials_post","security":[{"APIKeyHeader":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRPACredentialRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RPACredentialResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Rpa Credentials","description":"List all RPA credentials.\n\nOptionally filter by customer_id query parameter.","operationId":"list_rpa_credentials_rpa_credentials_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"customer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by customer ID","title":"Customer Id"},"description":"Filter by customer ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RPACredentialResponse"},"title":"Response List Rpa Credentials Rpa Credentials Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rpa/credentials/{credentials_id}":{"get":{"summary":"Get Rpa Credentials","description":"Get RPA credentials by ID.","operationId":"get_rpa_credentials_rpa_credentials__credentials_id__get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"credentials_id","in":"path","required":true,"schema":{"type":"string","title":"Credentials Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RPACredentialResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Update Rpa Credentials","description":"Update existing RPA credentials.\n\nAny field can be updated. Password will be re-encrypted if provided.","operationId":"update_rpa_credentials_rpa_credentials__credentials_id__patch","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"credentials_id","in":"path","required":true,"schema":{"type":"string","title":"Credentials Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRPACredentialRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RPACredentialResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Rpa Credentials","description":"Delete RPA credentials.\n\nThis permanently removes the credentials. Use toggle instead to\ntemporarily disable polling.","operationId":"delete_rpa_credentials_rpa_credentials__credentials_id__delete","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"credentials_id","in":"path","required":true,"schema":{"type":"string","title":"Credentials Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rpa/credentials/{credentials_id}/toggle":{"post":{"summary":"Toggle Rpa Credentials","description":"Toggle the is_active flag for RPA credentials.\n\nThe RPA dispatcher polls for active credentials every 5 minutes.\nToggling is_active to false will stop polling for that tenant.","operationId":"toggle_rpa_credentials_rpa_credentials__credentials_id__toggle_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"credentials_id","in":"path","required":true,"schema":{"type":"string","title":"Credentials Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RPACredentialResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/drx/sms":{"post":{"summary":"Drx Sms Webhook","description":"Handles incoming SMS messages from DRX.\nIt immediately returns a 200 OK and processes the message\nin the background to avoid timeouts.","operationId":"drx_sms_webhook_webhooks_drx_sms_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyHeader":[]}]}},"/webhooks/drx/prescription-fill":{"post":{"summary":"Drx Prescription Fill Webhook","description":"Handles incoming prescription fill status webhooks from DRX.\nIt immediately returns a 204 No Content and processes the webhook\nin the background to send SMS notifications.","operationId":"drx_prescription_fill_webhook_webhooks_drx_prescription_fill_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyHeader":[]}]}},"/conversations/search":{"get":{"tags":["Conversations"],"summary":"Search Conversations","description":"Search for SMS conversations using phone numbers.","operationId":"search_conversations_conversations_search_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"phone_number_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"From phone number to search for","title":"Phone Number From"},"description":"From phone number to search for"},{"name":"phone_number_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"To phone number to search for","title":"Phone Number To"},"description":"To phone number to search for"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Maximum number of results","default":10,"title":"Limit"},"description":"Maximum number of results"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of results to skip","default":0,"title":"Offset"},"description":"Number of results to skip"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationSearchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/conversations/{conversation_id}":{"get":{"tags":["Conversations"],"summary":"Get Conversation Details","description":"Retrieve complete conversation details including metadata and identifiers.","operationId":"get_conversation_details_conversations__conversation_id__get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Chat"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/conversations/by-phone/{phone_number}":{"get":{"tags":["Conversations"],"summary":"Find Conversations by Phone Number","description":"Find SMS conversations by phone number. Convenience endpoint for phone-based lookup.","operationId":"find_conversations_by_phone_conversations_by_phone__phone_number__get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"phone_number","in":"path","required":true,"schema":{"type":"string","title":"Phone Number"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationSearchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/drx/surescript":{"post":{"summary":"Drx Surescript Webhook","description":"Handles incoming Surescript webhooks from DRX.","operationId":"drx_surescript_webhook_webhooks_drx_surescript_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyHeader":[]}]}}},"components":{"schemas":{"ActionConversationEntry":{"properties":{"participant":{"$ref":"#/components/schemas/ConversationParticipant","default":"ai_assistant"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"action":{"type":"string","title":"Action"},"result":{"type":"string","title":"Result"},"conversation_entry_type":{"$ref":"#/components/schemas/ConversationEntryType","readOnly":true}},"type":"object","required":["timestamp","action","result","conversation_entry_type"],"title":"ActionConversationEntry"},"AfterHoursBehavior":{"type":"string","enum":["take_message","recommend_call_back","send_to_voicemail"],"title":"AfterHoursBehavior","description":"Behavior for after hours when the agent can't handle the current request"},"AuthType":{"type":"string","enum":["username_password","oauth2","api_key","bearer_token","hmac_sha256","custom"],"title":"AuthType","description":"Authentication types supported by sources."},"BasePhoneCallResults":{"properties":{"data_points":{"additionalProperties":true,"type":"object","title":"Data Points"},"outcome":{"anyOf":[{"$ref":"#/components/schemas/ConversationOutcome"},{"type":"null"}]},"needs":{"anyOf":[{"items":{"$ref":"#/components/schemas/ConversationNeed"},"type":"array"},{"type":"null"}],"title":"Needs"},"disposition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition"},"call_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Summary"},"transfer_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transfer Reason"},"caller_sentiment":{"anyOf":[{"$ref":"#/components/schemas/CallerSentiment"},{"type":"null"}]}},"type":"object","required":["data_points"],"title":"BasePhoneCallResults"},"Body_update_phone_call_follow_up_status_phone_calls__phone_call_id__follow_up_status_patch":{"properties":{"follow_up_status":{"$ref":"#/components/schemas/FollowUpStatus","description":"The new follow up status"},"updated_by":{"type":"string","minLength":1,"title":"Updated By","description":"The user who is updating the follow up status"}},"type":"object","required":["follow_up_status","updated_by"],"title":"Body_update_phone_call_follow_up_status_phone_calls__phone_call_id__follow_up_status_patch"},"BusinessHours":{"properties":{"monday":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Monday"},"tuesday":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tuesday"},"wednesday":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Wednesday"},"thursday":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Thursday"},"friday":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Friday"},"saturday":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Saturday"},"sunday":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Sunday"}},"type":"object","title":"BusinessHours","description":"Model for business hours"},"CallerSentiment":{"type":"string","enum":["frustrated","confused","neutral","satisfied","appreciative"],"title":"CallerSentiment"},"CampaignStatus":{"type":"string","enum":["active","patient_pursuing_medication","patient_not_pursuing_medication","max_contact_attempts_reached"],"title":"CampaignStatus","description":"Status of a prior authorization campaign"},"Chat":{"properties":{"id":{"type":"string","title":"Id"},"customer_id":{"type":"string","title":"Customer Id"},"identifiers":{"items":{"$ref":"#/components/schemas/ConversationIdentifier"},"type":"array","title":"Identifiers"},"metadata":{"$ref":"#/components/schemas/ConversationMetadata"},"channel_details":{"$ref":"#/components/schemas/SmsChannelDetails"},"conversation":{"items":{"$ref":"#/components/schemas/ChatMessage"},"type":"array","title":"Conversation"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["customer_id","metadata","channel_details"],"title":"Chat","description":"Represents a conversation that can be discovered and accessed."},"ChatMessage":{"properties":{"role":{"type":"string","title":"Role"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content"},"tool_calls":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Tool Calls"},"tool_call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tool Call Id"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Id"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"participant_id":{"$ref":"#/components/schemas/ParticipantId"}},"type":"object","required":["role","participant_id"],"title":"ChatMessage","description":"Represents a single message in a chat conversation."},"CommType":{"type":"string","enum":["sms","phone_call"],"title":"CommType","description":"Communication type enum."},"CommunicationConfigurationResponse":{"properties":{"id":{"type":"string","title":"Id"},"identifier":{"type":"string","title":"Identifier"},"channel":{"type":"string","title":"Channel"},"config_path_qualifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Config Path Qualifier"},"customer_id":{"type":"string","title":"Customer Id"},"location_id":{"type":"string","title":"Location Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"voice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Id"},"voice_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Name"}},"type":"object","required":["id","identifier","channel","config_path_qualifier","customer_id","location_id","created_at","updated_at"],"title":"CommunicationConfigurationResponse","description":"Model for returning communication configuration"},"ConversationEntryType":{"type":"string","enum":["message","action"],"title":"ConversationEntryType"},"ConversationIdentifier":{"properties":{"type":{"$ref":"#/components/schemas/ConversationIdentifierType"},"value":{"type":"string","title":"Value"}},"type":"object","required":["type","value"],"title":"ConversationIdentifier","description":"Represents an identifier that can be used to find a conversation."},"ConversationIdentifierType":{"type":"string","enum":["phone_number","external_id"],"title":"ConversationIdentifierType","description":"Types of identifiers that can be used to find conversations."},"ConversationMetadata":{"properties":{"channel_type":{"type":"string","title":"Channel Type"},"participants":{"items":{"type":"string"},"type":"array","title":"Participants"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"external_conversation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Conversation Id"},"last_message_sent":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Message Sent"},"last_message_received":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Message Received"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["channel_type"],"title":"ConversationMetadata","description":"Metadata about a conversation for discovery and filtering."},"ConversationNeed":{"properties":{"need_type":{"type":"string","title":"Need Type"},"supported":{"type":"boolean","title":"Supported"},"resolved":{"type":"boolean","title":"Resolved"},"reasoning":{"type":"string","title":"Reasoning","default":""}},"type":"object","required":["need_type","supported","resolved"],"title":"ConversationNeed"},"ConversationOutcome":{"type":"string","enum":["no_interaction","immediate_escalation_requested","resolved","partially_resolved","unresolved"],"title":"ConversationOutcome"},"ConversationParticipant":{"type":"string","enum":["ai_assistant","user"],"title":"ConversationParticipant"},"ConversationSearchResponse":{"properties":{"conversations":{"items":{"$ref":"#/components/schemas/ConversationSearchResult"},"type":"array","title":"Conversations"},"total":{"type":"integer","title":"Total"},"has_more":{"type":"boolean","title":"Has More"}},"type":"object","required":["conversations","total","has_more"],"title":"ConversationSearchResponse","description":"Response model for conversation search."},"ConversationSearchResult":{"properties":{"conversation_id":{"type":"string","title":"Conversation Id"},"metadata":{"$ref":"#/components/schemas/ConversationMetadata"},"identifiers":{"items":{"$ref":"#/components/schemas/ConversationIdentifier"},"type":"array","title":"Identifiers"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["conversation_id","metadata","identifiers","created_at","updated_at"],"title":"ConversationSearchResult","description":"Result of a conversation search."},"CreateCommunicationConfigurationRequest":{"properties":{"identifier":{"type":"string","title":"Identifier","description":"The identifier (e.g., phone number) for this configuration"},"channel":{"type":"string","title":"Channel","description":"The communication channel (phone, sms, webchat)"},"config_path_qualifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Config Path Qualifier","description":"The configuration path qualifier (e.g., drx_retail_inbound)"},"customer_id":{"type":"string","title":"Customer Id","description":"The customer ID this configuration belongs to"},"location_id":{"type":"string","title":"Location Id","description":"The location ID associated with this configuration"},"voice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Id","description":"Cartesia voice override for this client"},"voice_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Name","description":"Google voice override for this client"}},"type":"object","required":["identifier","channel","customer_id","location_id"],"title":"CreateCommunicationConfigurationRequest","description":"Model for creating a new communication configuration"},"CreateLocationRequest":{"properties":{"customer_id":{"type":"string","title":"Customer Id"},"name":{"type":"string","title":"Name"},"phone_numbers":{"items":{"type":"string"},"type":"array","title":"Phone Numbers"},"business_hours":{"$ref":"#/components/schemas/BusinessHours"},"config":{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object","title":"Config","default":{}},"transfer_config":{"anyOf":[{"$ref":"#/components/schemas/TransferConfig"},{"type":"null"}]},"feature_flags":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Feature Flags"}},"type":"object","required":["customer_id","name","phone_numbers"],"title":"CreateLocationRequest","description":"Model for creating a new location"},"CreatePriorAuthCampaignsFromCSVRequest":{"properties":{"sender_email":{"type":"string","title":"Sender Email"},"customer_id":{"type":"string","title":"Customer Id"},"location_id":{"type":"string","title":"Location Id"}},"type":"object","required":["sender_email","customer_id","location_id"],"title":"CreatePriorAuthCampaignsFromCSVRequest"},"CreatePriorAuthCampaignsFromCSVResponse":{"properties":{"campaigns_created":{"type":"integer","title":"Campaigns Created"}},"type":"object","required":["campaigns_created"],"title":"CreatePriorAuthCampaignsFromCSVResponse"},"CreateRPACredentialRequest":{"properties":{"customer_id":{"type":"string","title":"Customer Id","description":"Customer ID"},"location_id":{"type":"string","title":"Location Id","description":"Pharmacy location ID"},"source_type":{"type":"string","title":"Source Type","description":"Source type (e.g., 'scriptly', 'scriptly_public')"},"auth_type":{"$ref":"#/components/schemas/AuthType","description":"Authentication type","default":"username_password"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username","description":"Username (email) - required for username_password auth"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password","description":"Password (will be encrypted) - required for username_password auth"},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id","description":"OAuth2 client ID - required for oauth2 auth"},"client_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Secret","description":"OAuth2 client secret (will be encrypted) - required for oauth2 auth"},"oauth_token_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oauth Token Url","description":"OAuth2 token endpoint URL"},"oauth_scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oauth Scope","description":"OAuth2 scope(s) to request"},"base_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Url","description":"Web app URL"},"api_base_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Base Url","description":"Internal API URL"}},"type":"object","required":["customer_id","location_id","source_type"],"title":"CreateRPACredentialRequest","description":"Request model for creating RPA credentials."},"CreateTwilioCredentialsRequest":{"properties":{"account_sid":{"type":"string","title":"Account Sid","description":"Twilio Account SID"},"auth_token":{"type":"string","title":"Auth Token","description":"Twilio Auth Token"},"phone_numbers":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Phone Numbers","description":"List of phone numbers owned by this customer"},"twilio_pay_config":{"anyOf":[{"$ref":"#/components/schemas/TwilioPayConfig"},{"type":"null"}],"description":"Twilio Pay configuration for this account"}},"type":"object","required":["account_sid","auth_token"],"title":"CreateTwilioCredentialsRequest","description":"Model for creating new customer Twilio credentials"},"DrxLocationConfig":{"properties":{"api_key":{"type":"string","title":"Api Key"},"slug":{"type":"string","title":"Slug"},"forwarding_phone_number":{"type":"string","title":"Forwarding Phone Number"},"voicemail_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voicemail Number"},"voicemail_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Voicemail Enabled"},"after_hours_behavior":{"anyOf":[{"$ref":"#/components/schemas/AfterHoursBehavior"},{"type":"null"}],"default":"recommend_call_back"},"inbound_greeting":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inbound Greeting"},"hours_of_operation":{"anyOf":[{"$ref":"#/components/schemas/StoreHours"},{"type":"null"}]},"iana_timezone_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Iana Timezone Id"},"secondary_location_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Secondary Location Ids"},"dispensing_pharmacy":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Dispensing Pharmacy"},"store_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Store Name"},"supported_delivery_methods":{"$ref":"#/components/schemas/SupportedDeliveryMethods"},"collect_payment":{"type":"boolean","title":"Collect Payment","default":true}},"type":"object","required":["api_key","slug","forwarding_phone_number"],"title":"DrxLocationConfig","description":"Configuration for DRX locations"},"FlexTransferConfig":{"properties":{"workspace_sid":{"type":"string","title":"Workspace Sid","description":"Twilio TaskRouter Workspace SID (starts with WS)"},"workflow_sid":{"type":"string","title":"Workflow Sid","description":"Twilio TaskRouter Workflow SID (starts with WW)"}},"type":"object","required":["workspace_sid","workflow_sid"],"title":"FlexTransferConfig","description":"Configuration for Twilio Flex TaskRouter transfers."},"FollowUpStatus":{"type":"string","enum":["no_action","requires_follow_up","in_progress","completed"],"title":"FollowUpStatus"},"FollowUpStatusUpdate":{"properties":{"id":{"type":"string","title":"Id"},"status":{"$ref":"#/components/schemas/FollowUpStatus"},"updated_by":{"type":"string","title":"Updated By"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","status","updated_by","created_at"],"title":"FollowUpStatusUpdate"},"GetCustomerIDResponse":{"properties":{"customer_id":{"type":"string","title":"Customer Id"}},"type":"object","required":["customer_id"],"title":"GetCustomerIDResponse"},"GetPhoneCallsCountResponse":{"properties":{"count":{"type":"integer","title":"Count"}},"type":"object","required":["count"],"title":"GetPhoneCallsCountResponse"},"GetPhoneCallsResponse":{"properties":{"phone_calls":{"items":{"$ref":"#/components/schemas/PhoneCall"},"type":"array","title":"Phone Calls"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"},"total_pages":{"type":"integer","title":"Total Pages"}},"type":"object","required":["phone_calls","total","page","page_size","total_pages"],"title":"GetPhoneCallsResponse","description":"API response model for paginated phone calls"},"GetPriorAuthCampaignsResponse":{"properties":{"campaigns":{"items":{"$ref":"#/components/schemas/PriorAuthCampaign"},"type":"array","title":"Campaigns"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"},"total_pages":{"type":"integer","title":"Total Pages"},"patient_contact_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Patient Contact Rate"}},"type":"object","required":["campaigns","total","page","page_size","total_pages"],"title":"GetPriorAuthCampaignsResponse"},"GetWorkflowsResponse":{"properties":{"workflows":{"items":{"$ref":"#/components/schemas/Workflow"},"type":"array","title":"Workflows"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"},"total_pages":{"type":"integer","title":"Total Pages"}},"type":"object","required":["workflows","total","page","page_size","total_pages"],"title":"GetWorkflowsResponse","description":"API response model for paginated workflows."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"LocationResponse":{"properties":{"id":{"type":"string","title":"Id"},"customer_id":{"type":"string","title":"Customer Id"},"name":{"type":"string","title":"Name"},"phone_numbers":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Phone Numbers"},"business_hours":{"anyOf":[{"$ref":"#/components/schemas/BusinessHours"},{"type":"null"}]},"config":{"anyOf":[{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object"},{"type":"null"}],"title":"Config"},"transfer_config":{"anyOf":[{"$ref":"#/components/schemas/TransferConfig"},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","customer_id","name"],"title":"LocationResponse","description":"Response model for location."},"MessageConversationEntry":{"properties":{"participant":{"$ref":"#/components/schemas/ConversationParticipant"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"message":{"type":"string","title":"Message"},"conversation_entry_type":{"$ref":"#/components/schemas/ConversationEntryType","readOnly":true}},"type":"object","required":["participant","timestamp","message","conversation_entry_type"],"title":"MessageConversationEntry"},"OrderEvaluationRules":{"properties":{"patient_pay_transfer_threshold":{"type":"number","title":"Patient Pay Transfer Threshold","default":350.0}},"type":"object","title":"OrderEvaluationRules","description":"Rules for determining when orders need human intervention"},"ParticipantId":{"properties":{"type":{"$ref":"#/components/schemas/ParticipantIdType"},"value":{"type":"string","title":"Value"}},"type":"object","required":["type","value"],"title":"ParticipantId","description":"Represents a participant identifier with type and value."},"ParticipantIdType":{"type":"string","enum":["phone_number","user_id","email"],"title":"ParticipantIdType","description":"Types of participant identifiers."},"PatientCommStep":{"properties":{"planned_send_at":{"type":"string","format":"date-time","title":"Planned Send At"},"sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent At"},"comm_type":{"$ref":"#/components/schemas/CommType"},"status":{"$ref":"#/components/schemas/StepStatus"},"comm_id":{"type":"integer","title":"Comm Id"},"message_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Content"}},"type":"object","required":["planned_send_at","sent_at","comm_type","status","comm_id"],"title":"PatientCommStep","description":"Represents a patient communication step in a workflow."},"PatientCommsWorkflow":{"properties":{"status":{"$ref":"#/components/schemas/WorkflowStatus"},"steps":{"items":{"$ref":"#/components/schemas/PatientCommStep"},"type":"array","title":"Steps","default":[]},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outcome"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"}},"type":"object","required":["status"],"title":"PatientCommsWorkflow","description":"Represents the patient communications workflow."},"PatientProfileCreationStep":{"properties":{"patient_created":{"type":"boolean","title":"Patient Created"},"status":{"$ref":"#/components/schemas/StepStatus"},"patient_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Patient Id"}},"type":"object","required":["patient_created","status"],"title":"PatientProfileCreationStep","description":"Represents the patient profile creation step in a workflow."},"PhoneCall":{"properties":{"id":{"type":"string","title":"Id"},"phone_call_type":{"type":"string","title":"Phone Call Type"},"callee_phone_number":{"type":"string","title":"Callee Phone Number"},"caller_phone_number":{"type":"string","title":"Caller Phone Number"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"phone_call_status":{"anyOf":[{"$ref":"#/components/schemas/PhoneCallStatusEnum"},{"type":"null"}]},"disposition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition"},"duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Seconds"},"conversation_log":{"anyOf":[{"items":{"anyOf":[{"$ref":"#/components/schemas/MessageConversationEntry"},{"$ref":"#/components/schemas/ActionConversationEntry"}]},"type":"array"},{"type":"null"}],"title":"Conversation Log"},"follow_up_status":{"anyOf":[{"$ref":"#/components/schemas/FollowUpStatus"},{"type":"null"}]},"follow_up_status_updates":{"anyOf":[{"items":{"$ref":"#/components/schemas/FollowUpStatusUpdate"},"type":"array"},{"type":"null"}],"title":"Follow Up Status Updates"},"follow_up_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Follow Up Message"},"results":{"anyOf":[{"$ref":"#/components/schemas/BasePhoneCallResults"},{"type":"null"}]},"direction":{"anyOf":[{"$ref":"#/components/schemas/PhoneCallDirection"},{"type":"null"}]},"call_received_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Call Received At"},"connected_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Connected At"},"first_ai_audio_sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Ai Audio Sent At"},"ai_session_ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ai Session Ended At"},"transferred_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Transferred At"}},"type":"object","required":["id","phone_call_type","callee_phone_number","caller_phone_number","created_at"],"title":"PhoneCall"},"PhoneCallDirection":{"type":"string","enum":["inbound","outbound"],"title":"PhoneCallDirection"},"PhoneCallStatusEnum":{"type":"string","enum":["queued","initiated","ringing","in-progress","answered","completed","unknown","busy","no-answer","canceled","failed"],"title":"PhoneCallStatusEnum","description":"Enum for phone call statuses based on Twilio and internal states"},"PriorAuthCampaign":{"properties":{"id":{"type":"string","title":"Id"},"status":{"$ref":"#/components/schemas/CampaignStatus"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"rx_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rx Number"},"patient_phone_calls":{"items":{"$ref":"#/components/schemas/PhoneCall"},"type":"array","title":"Patient Phone Calls","default":[]}},"type":"object","required":["id","status","created_at"],"title":"PriorAuthCampaign","description":"API-specific PriorAuthCampaign model with limited exposed fields"},"ProgramQueueRule":{"properties":{"program_ids":{"items":{"type":"integer"},"type":"array","uniqueItems":true,"title":"Program Ids"},"queue_name":{"type":"string","title":"Queue Name"}},"type":"object","required":["program_ids","queue_name"],"title":"ProgramQueueRule","description":"Single rule mapping program IDs to a queue"},"ProgramReferralRule":{"properties":{"program_id":{"type":"integer","title":"Program Id"},"message":{"type":"string","title":"Message"},"transfer_phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transfer Phone Number"}},"type":"object","required":["program_id","message"],"title":"ProgramReferralRule","description":"Single rule mapping one program ID to static caller instructions."},"QueueConfig":{"properties":{"queue_id":{"type":"string","title":"Queue Id","description":"Logical queue identifier"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number","description":"Phone number to dial (E.164 format)"},"task_queue_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Queue Name","description":"TaskRouter queue name for routing (friendly name; optional if task_queue_sid provided)"},"task_queue_sid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Queue Sid","description":"TaskRouter Queue SID for routing (preferred; use instead of name when possible)"}},"type":"object","required":["queue_id"],"title":"QueueConfig","description":"Configuration for a specific transfer destination/queue."},"QueueRoutingRules":{"properties":{"program_rules":{"items":{"$ref":"#/components/schemas/ProgramQueueRule"},"type":"array","title":"Program Rules","default":[]},"default_queue":{"type":"string","title":"Default Queue","default":"default"}},"type":"object","title":"QueueRoutingRules","description":"Rules for determining which queue to route transfers to"},"RPACredentialResponse":{"properties":{"id":{"type":"string","title":"Id"},"customer_id":{"type":"string","title":"Customer Id"},"location_id":{"type":"string","title":"Location Id"},"source_type":{"type":"string","title":"Source Type"},"auth_type":{"$ref":"#/components/schemas/AuthType"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"oauth_token_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oauth Token Url"},"oauth_scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oauth Scope"},"base_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Url"},"api_base_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Base Url"},"extra_config":{"additionalProperties":true,"type":"object","title":"Extra Config","default":{}},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","customer_id","location_id","source_type","auth_type","is_active","created_at","updated_at"],"title":"RPACredentialResponse","description":"Response model for RPA credentials (without sensitive data)."},"RegaloConfig":{"properties":{"pharmacy_name":{"type":"string","title":"Pharmacy Name"},"api_base_url":{"type":"string","title":"Api Base Url"},"credentials":{"$ref":"#/components/schemas/RegaloCredentials"},"token_ttl_seconds":{"type":"integer","title":"Token Ttl Seconds","default":86400},"token_refresh_buffer_seconds":{"type":"integer","title":"Token Refresh Buffer Seconds","default":300},"request_timeout_seconds":{"type":"integer","title":"Request Timeout Seconds","default":20},"max_retries":{"type":"integer","title":"Max Retries","default":3},"use_stub_client":{"type":"boolean","title":"Use Stub Client","default":false}},"type":"object","required":["pharmacy_name","api_base_url","credentials"],"title":"RegaloConfig","description":"High-level Regalo integration configuration."},"RegaloCredentials":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"RegaloCredentials","description":"Authentication parameters for Regalo's JWT-based API.\n\nNote: The password field always stores encrypted data for security.\nUse get_password() to retrieve the decrypted plaintext password."},"ScriptlyConfig":{"properties":{"forwarding_phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Forwarding Phone Number"},"pharmacy_name":{"type":"string","title":"Pharmacy Name"},"inbound_greeting":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inbound Greeting"},"contact_center_scheduler_url":{"type":"string","title":"Contact Center Scheduler Url"},"oauth_token_url":{"type":"string","title":"Oauth Token Url"},"oauth_client_id":{"type":"string","title":"Oauth Client Id"},"oauth_client_secret":{"type":"string","title":"Oauth Client Secret"},"oauth_scope":{"type":"string","title":"Oauth Scope"},"api_base_url":{"type":"string","title":"Api Base Url"},"schedule_name":{"type":"string","title":"Schedule Name","default":"Standard"},"timezone":{"type":"string","title":"Timezone","default":"America/New_York"},"order_evaluation_rules":{"$ref":"#/components/schemas/OrderEvaluationRules","default":{"patient_pay_transfer_threshold":350.0}},"queue_routing_rules":{"$ref":"#/components/schemas/QueueRoutingRules","default":{"program_rules":[],"default_queue":"default"}},"program_referral_rules":{"items":{"$ref":"#/components/schemas/ProgramReferralRule"},"type":"array","title":"Program Referral Rules","default":[]},"transfer_when_closed":{"type":"boolean","title":"Transfer When Closed","default":false},"closed_transfer_phrase":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Closed Transfer Phrase"},"unshipped_refills_as_refillable":{"type":"boolean","title":"Unshipped Refills As Refillable","default":false}},"type":"object","required":["pharmacy_name","contact_center_scheduler_url","oauth_token_url","oauth_client_id","oauth_client_secret","oauth_scope","api_base_url"],"title":"ScriptlyConfig","description":"Configuration for Scriptly integration"},"SendPatientPhoneCallRequest":{"properties":{"campaign_id":{"type":"string","title":"Campaign Id"},"customer_id":{"type":"string","title":"Customer Id"},"location_id":{"type":"string","title":"Location Id"}},"type":"object","required":["campaign_id","customer_id","location_id"],"title":"SendPatientPhoneCallRequest"},"SendPatientPhoneCallResponse":{"properties":{"phone_call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Call Id"}},"type":"object","title":"SendPatientPhoneCallResponse"},"SmsChannelDetails":{"properties":{"channel_type":{"type":"string","const":"sms","title":"Channel Type","default":"sms"},"user_phone":{"type":"string","title":"User Phone"},"service_phone":{"type":"string","title":"Service Phone"}},"type":"object","required":["user_phone","service_phone"],"title":"SmsChannelDetails"},"StepStatus":{"type":"string","enum":["scheduled","in_progress","completed"],"title":"StepStatus","description":"Status enum for workflow steps."},"StoreHours":{"properties":{"monday_open":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Monday Open"},"monday_close":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Monday Close"},"tuesday_open":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tuesday Open"},"tuesday_close":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tuesday Close"},"wednesday_open":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wednesday Open"},"wednesday_close":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wednesday Close"},"thursday_open":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thursday Open"},"thursday_close":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thursday Close"},"friday_open":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Friday Open"},"friday_close":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Friday Close"},"saturday_open":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Saturday Open"},"saturday_close":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Saturday Close"},"sunday_open":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sunday Open"},"sunday_close":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sunday Close"},"christmas_day_open":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Christmas Day Open"},"christmas_day_close":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Christmas Day Close"},"christmas_eve_open":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Christmas Eve Open"},"christmas_eve_close":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Christmas Eve Close"},"columbus_day_open":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Columbus Day Open"},"columbus_day_close":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Columbus Day Close"},"easter_open":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Easter Open"},"easter_close":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Easter Close"},"independence_day_open":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Independence Day Open"},"independence_day_close":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Independence Day Close"},"labor_day_open":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Labor Day Open"},"labor_day_close":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Labor Day Close"},"memorial_day_open":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Memorial Day Open"},"memorial_day_close":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Memorial Day Close"},"newyears_day_open":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Newyears Day Open"},"newyears_day_close":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Newyears Day Close"},"newyears_eve_open":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Newyears Eve Open"},"newyears_eve_close":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Newyears Eve Close"},"thanksgiving_day_open":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thanksgiving Day Open"},"thanksgiving_day_close":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thanksgiving Day Close"},"veterans_day_open":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Veterans Day Open"},"veterans_day_close":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Veterans Day Close"}},"type":"object","title":"StoreHours","description":"Store operating hours with validation for proper open/close time pairs"},"SupportedDeliveryMethods":{"properties":{"pickup":{"type":"boolean","title":"Pickup","default":true},"delivery":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Delivery"},"ship":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ship"}},"type":"object","title":"SupportedDeliveryMethods","description":"Delivery methods supported by a pharmacy location."},"TransferConfig":{"properties":{"transfer_type":{"$ref":"#/components/schemas/TransferType","description":"Transfer mechanism to use"},"queue_mappings":{"additionalProperties":{"$ref":"#/components/schemas/QueueConfig"},"type":"object","title":"Queue Mappings","description":"Map of queue names to queue configurations"},"flex_config":{"anyOf":[{"$ref":"#/components/schemas/FlexTransferConfig"},{"type":"null"}],"description":"Twilio Flex configuration (required when transfer_type=FLEX)"}},"type":"object","required":["transfer_type","queue_mappings"],"title":"TransferConfig","description":"Transfer configuration for a location.\n\nDefines how calls should be transferred for a location, including\nthe transfer mechanism (Dial, Flex, etc.) and available queues.\n\nThis is stored as a nested field on Location documents, not as\na separate collection."},"TransferType":{"type":"string","enum":["dial","flex"],"title":"TransferType","description":"Type of transfer mechanism to use."},"TwilioCredentialsResponse":{"properties":{"id":{"type":"string","title":"Id"},"customer_id":{"type":"string","title":"Customer Id"},"account_sid":{"type":"string","title":"Account Sid"},"phone_numbers":{"items":{"type":"string"},"type":"array","title":"Phone Numbers"},"twilio_pay_config":{"anyOf":[{"$ref":"#/components/schemas/TwilioPayConfig"},{"type":"null"}]},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","customer_id","account_sid","phone_numbers","is_active","created_at","updated_at"],"title":"TwilioCredentialsResponse","description":"Model for returning Twilio credentials (without sensitive data)"},"TwilioPayConfig":{"properties":{"connector":{"$ref":"#/components/schemas/TwilioPayConnector"},"connector_unique_name":{"type":"string","title":"Connector Unique Name"}},"type":"object","required":["connector","connector_unique_name"],"title":"TwilioPayConfig","description":"Configuration for Twilio Pay integration"},"TwilioPayConnector":{"type":"string","enum":["stripe"],"title":"TwilioPayConnector","description":"Supported Twilio Pay payment connectors"},"UpdateCommunicationConfigurationRequest":{"properties":{"identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Identifier"},"channel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"},"config_path_qualifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Config Path Qualifier"},"location_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Id"},"voice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Id"},"voice_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Name"}},"type":"object","title":"UpdateCommunicationConfigurationRequest","description":"Model for updating a communication configuration"},"UpdateLocationRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"phone_numbers":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Phone Numbers"},"business_hours":{"anyOf":[{"$ref":"#/components/schemas/BusinessHours"},{"type":"null"}]},"transfer_config":{"anyOf":[{"$ref":"#/components/schemas/TransferConfig"},{"type":"null"}]}},"type":"object","title":"UpdateLocationRequest","description":"Request model for updating a location."},"UpdatePhoneCallFollowUpStatusResponse":{"properties":{"follow_up_status_update":{"$ref":"#/components/schemas/FollowUpStatusUpdate"}},"type":"object","required":["follow_up_status_update"],"title":"UpdatePhoneCallFollowUpStatusResponse"},"UpdateRPACredentialRequest":{"properties":{"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"},"base_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Url"},"api_base_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Base Url"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"UpdateRPACredentialRequest","description":"Request model for updating RPA credentials."},"UpdateTwilioCredentialsRequest":{"properties":{"account_sid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Sid"},"auth_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth Token"},"phone_numbers":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Phone Numbers"},"twilio_pay_config":{"anyOf":[{"$ref":"#/components/schemas/TwilioPayConfig"},{"type":"null"}]},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"UpdateTwilioCredentialsRequest","description":"Model for updating customer Twilio credentials"},"ValidateCommunicationConfigurationRequest":{"properties":{"identifier":{"type":"string","title":"Identifier","description":"The identifier to validate"},"channel":{"type":"string","title":"Channel","description":"The communication channel"},"config_path_qualifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Config Path Qualifier","description":"The configuration path qualifier"},"customer_id":{"type":"string","title":"Customer Id","description":"The customer ID"},"location_id":{"type":"string","title":"Location Id","description":"The location ID"}},"type":"object","required":["identifier","channel","customer_id","location_id"],"title":"ValidateCommunicationConfigurationRequest","description":"Model for validating a communication configuration before creation/update"},"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"},"Workflow":{"properties":{"id":{"type":"string","title":"Id"},"program_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Program Name"},"status":{"$ref":"#/components/schemas/WorkflowStatus"},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outcome"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"patient_profile_creation_step":{"$ref":"#/components/schemas/PatientProfileCreationStep"},"patient_comms_workflow":{"$ref":"#/components/schemas/PatientCommsWorkflow"}},"type":"object","required":["id","status","created_at","patient_profile_creation_step","patient_comms_workflow"],"title":"Workflow","description":"API model for workflow."},"WorkflowStatus":{"type":"string","enum":["in_progress","completed","scheduled"],"title":"WorkflowStatus","description":"Status enum for workflows."}},"securitySchemes":{"APIKeyHeader":{"type":"apiKey","in":"header","name":"X-Api-Key"},"HTTPBearer":{"type":"http","scheme":"bearer"}}}}