@@ -366,7 +366,7 @@ def update(
366366
367367 sending_phone_number: Direct phone number for SMS sending (optional)
368368
369- sending_phone_number_profile_id: Reference to another profile to use for SMS/Telnyx configuration (optional)
369+ sending_phone_number_profile_id: Reference to another profile to use for SMS configuration (optional)
370370
371371 sending_whatsapp_number_profile_id: Reference to another profile to use for WhatsApp configuration (optional)
372372
@@ -521,26 +521,38 @@ def complete(
521521 extra_body : Body | None = None ,
522522 timeout : float | httpx .Timeout | None | NotGiven = not_given ,
523523 ) -> ProfileCompleteResponse :
524- """Final step in profile compliance workflow.
525-
526- Validates all prerequisites (general
527- data, brand, campaigns), connects profile to Telnyx/WhatsApp, and sets status
528- based on configuration. The process runs in the background and calls the
529- provided webhook URL when finished.
530-
531- Prerequisites:
532- - Profile must be completed
533- - If inheritTcrBrand=false: Profile must have existing brand
534- - If inheritTcrBrand=true: Parent must have existing brand
535- - If TCR application: Must have at least one campaign (own or inherited)
536- - If inheritTcrCampaign=false: Profile should have campaigns
537- - If inheritTcrCampaign=true: Parent must have campaigns
538-
539- Status Logic:
540- - If both SMS and WhatsApp channels are missing → SUBMITTED
541- - If TCR application and not inheriting brand/campaigns → SUBMITTED
542- - If non-TCR with destination country (IsMain=true) → SUBMITTED
543- - Otherwise → COMPLETED
524+ """Final step in the profile compliance workflow.
525+
526+ Validates all prerequisites (KYC,
527+ brand, campaigns, required documents), connects the profile to the SMS and
528+ WhatsApp channels, and sets its status based on configuration. Prerequisites are
529+ always validated first: if any fail the call returns 400. If they pass and the
530+ profile is already completed, the call returns 200 and does nothing. Otherwise
531+ it returns 202 and calls the provided webhook URL when background processing
532+ finishes.
533+
534+ Prerequisites:
535+
536+ - Profile must have a name, short name, and description (short name max 50
537+ characters, description max 5000)
538+ - webHookUrl must be supplied on the request
539+ - A KYC form submission is required
540+ - A brand is required, either on the profile or inherited from the parent
541+ organization
542+ - TCR applications must have at least one campaign, own or inherited
543+ - Destination countries marked as main must have their required compliance
544+ documents uploaded
545+
546+ Resulting status:
547+
548+ - If either the SMS or WhatsApp channel is unconfigured, the profile is
549+ SUBMITTED
550+ - For a TCR application that inherits both its brand and its campaigns, the
551+ profile is COMPLETED
552+ - For a TCR application that owns either its brand or its campaigns, the profile
553+ is COMPLETED once both have been submitted to TCR, and SUBMITTED until then
554+ - For a non-TCR application, the profile is SUBMITTED when a main destination
555+ country is set, and COMPLETED otherwise
544556
545557 Args:
546558 web_hook_url: Webhook URL to call when profile completion finishes (success or failure)
@@ -908,7 +920,7 @@ async def update(
908920
909921 sending_phone_number: Direct phone number for SMS sending (optional)
910922
911- sending_phone_number_profile_id: Reference to another profile to use for SMS/Telnyx configuration (optional)
923+ sending_phone_number_profile_id: Reference to another profile to use for SMS configuration (optional)
912924
913925 sending_whatsapp_number_profile_id: Reference to another profile to use for WhatsApp configuration (optional)
914926
@@ -1063,26 +1075,38 @@ async def complete(
10631075 extra_body : Body | None = None ,
10641076 timeout : float | httpx .Timeout | None | NotGiven = not_given ,
10651077 ) -> ProfileCompleteResponse :
1066- """Final step in profile compliance workflow.
1067-
1068- Validates all prerequisites (general
1069- data, brand, campaigns), connects profile to Telnyx/WhatsApp, and sets status
1070- based on configuration. The process runs in the background and calls the
1071- provided webhook URL when finished.
1072-
1073- Prerequisites:
1074- - Profile must be completed
1075- - If inheritTcrBrand=false: Profile must have existing brand
1076- - If inheritTcrBrand=true: Parent must have existing brand
1077- - If TCR application: Must have at least one campaign (own or inherited)
1078- - If inheritTcrCampaign=false: Profile should have campaigns
1079- - If inheritTcrCampaign=true: Parent must have campaigns
1080-
1081- Status Logic:
1082- - If both SMS and WhatsApp channels are missing → SUBMITTED
1083- - If TCR application and not inheriting brand/campaigns → SUBMITTED
1084- - If non-TCR with destination country (IsMain=true) → SUBMITTED
1085- - Otherwise → COMPLETED
1078+ """Final step in the profile compliance workflow.
1079+
1080+ Validates all prerequisites (KYC,
1081+ brand, campaigns, required documents), connects the profile to the SMS and
1082+ WhatsApp channels, and sets its status based on configuration. Prerequisites are
1083+ always validated first: if any fail the call returns 400. If they pass and the
1084+ profile is already completed, the call returns 200 and does nothing. Otherwise
1085+ it returns 202 and calls the provided webhook URL when background processing
1086+ finishes.
1087+
1088+ Prerequisites:
1089+
1090+ - Profile must have a name, short name, and description (short name max 50
1091+ characters, description max 5000)
1092+ - webHookUrl must be supplied on the request
1093+ - A KYC form submission is required
1094+ - A brand is required, either on the profile or inherited from the parent
1095+ organization
1096+ - TCR applications must have at least one campaign, own or inherited
1097+ - Destination countries marked as main must have their required compliance
1098+ documents uploaded
1099+
1100+ Resulting status:
1101+
1102+ - If either the SMS or WhatsApp channel is unconfigured, the profile is
1103+ SUBMITTED
1104+ - For a TCR application that inherits both its brand and its campaigns, the
1105+ profile is COMPLETED
1106+ - For a TCR application that owns either its brand or its campaigns, the profile
1107+ is COMPLETED once both have been submitted to TCR, and SUBMITTED until then
1108+ - For a non-TCR application, the profile is SUBMITTED when a main destination
1109+ country is set, and COMPLETED otherwise
10861110
10871111 Args:
10881112 web_hook_url: Webhook URL to call when profile completion finishes (success or failure)
0 commit comments