one-msg-sdk 1.0.2__tar.gz → 2.0.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/PKG-INFO +98 -30
  2. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/README.md +97 -29
  3. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/__init__.py +55 -3
  4. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/api/calling_api.py +5 -5
  5. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/api/catalog_api.py +5 -5
  6. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/api/channel_api.py +579 -10
  7. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/api/flows_api.py +130 -2
  8. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/api/groups_api.py +136 -4
  9. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/api/messaging_api.py +571 -62
  10. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/api/profile_api.py +17 -17
  11. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/api/templates_api.py +88 -26
  12. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/api/users_api.py +2 -2
  13. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/api/webhooks_api.py +30 -29
  14. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/api_client.py +3 -3
  15. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/configuration.py +4 -4
  16. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/exceptions.py +2 -2
  17. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/__init__.py +28 -2
  18. one_msg_sdk-2.0.3/one_msg_sdk/models/add_template200_response.py +102 -0
  19. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/add_template_request.py +7 -7
  20. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/block_user_request.py +2 -2
  21. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/calling_settings.py +2 -2
  22. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/calling_settings_calling.py +2 -2
  23. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/calling_settings_calling_audio.py +2 -2
  24. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/calling_settings_calling_call_hours.py +2 -2
  25. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/calling_settings_calling_sip.py +2 -2
  26. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/calling_settings_calling_sip_servers_inner.py +2 -2
  27. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/calling_settings_calling_video.py +2 -2
  28. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/conversational_automation.py +2 -2
  29. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/conversational_automation_commands_inner.py +2 -2
  30. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/create_commerce200_response.py +2 -2
  31. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/create_commerce_request.py +2 -2
  32. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/create_commerce_request_params.py +2 -2
  33. one_msg_sdk-2.0.3/one_msg_sdk/models/create_flows_request.py +105 -0
  34. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/create_groups200_response.py +2 -2
  35. one_msg_sdk-2.0.3/one_msg_sdk/models/create_groups_group_id_request.py +93 -0
  36. one_msg_sdk-2.0.3/one_msg_sdk/models/create_groups_request.py +91 -0
  37. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/create_read_message200_response.py +2 -2
  38. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/create_read_message401_response.py +2 -2
  39. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/create_read_message_request.py +2 -2
  40. one_msg_sdk-2.0.3/one_msg_sdk/models/create_settings_request.py +116 -0
  41. one_msg_sdk-2.0.3/one_msg_sdk/models/create_settings_request_webhook_url.py +144 -0
  42. one_msg_sdk-1.0.2/one_msg_sdk/models/get_webhook200_response.py → one_msg_sdk-2.0.3/one_msg_sdk/models/create_upload_media200_response.py +9 -9
  43. one_msg_sdk-2.0.3/one_msg_sdk/models/create_upload_media_request.py +91 -0
  44. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/delete_flows_flow_id200_response.py +2 -2
  45. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/delete_groups_group_id200_response.py +2 -2
  46. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/delete_media_legacy_request.py +2 -2
  47. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/error_response.py +2 -2
  48. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/get_commerce200_response_inner.py +2 -2
  49. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/get_mm_lite_status200_response.py +2 -2
  50. one_msg_sdk-2.0.3/one_msg_sdk/models/get_status200_response.py +110 -0
  51. one_msg_sdk-2.0.3/one_msg_sdk/models/get_webhook200_response.py +151 -0
  52. one_msg_sdk-2.0.3/one_msg_sdk/models/get_webhook200_response_webhook_url.py +150 -0
  53. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/get_whatsapp_business_encryption200_response.py +2 -2
  54. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/initiate_call_request.py +2 -2
  55. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/initiate_call_request_session.py +2 -2
  56. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/initiate_call_response.py +2 -2
  57. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/initiate_call_response_calls_inner.py +2 -2
  58. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/initiate_call_response_response.py +2 -2
  59. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/list_blocked_users200_response.py +2 -2
  60. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/list_flows200_response.py +2 -2
  61. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/list_messages200_response.py +2 -2
  62. one_msg_sdk-2.0.3/one_msg_sdk/models/list_settings200_response.py +158 -0
  63. one_msg_sdk-2.0.3/one_msg_sdk/models/list_settings200_response_webhook_url.py +144 -0
  64. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/list_templates200_response.py +2 -2
  65. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/message_sent_response.py +2 -2
  66. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/patch_flows_flow_id_assets200_response.py +2 -2
  67. one_msg_sdk-2.0.3/one_msg_sdk/models/patch_flows_flow_id_assets_request.py +89 -0
  68. one_msg_sdk-2.0.3/one_msg_sdk/models/patch_flows_flow_id_metadata_request.py +104 -0
  69. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/profile_info.py +2 -2
  70. one_msg_sdk-2.0.3/one_msg_sdk/models/remove_template_request.py +89 -0
  71. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/retrieve_media200_response.py +2 -2
  72. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/send_address_message_request.py +2 -2
  73. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/send_button_request.py +13 -5
  74. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/send_button_request_sections_inner.py +2 -2
  75. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/send_button_request_sections_inner_reply.py +2 -2
  76. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/send_carousel_request1.py +8 -5
  77. one_msg_sdk-2.0.3/one_msg_sdk/models/send_contact_info_request.py +98 -0
  78. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/send_contact_request.py +15 -5
  79. one_msg_sdk-2.0.3/one_msg_sdk/models/send_contact_request_contact.py +101 -0
  80. one_msg_sdk-2.0.3/one_msg_sdk/models/send_contact_request_contact_name.py +144 -0
  81. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/send_contact_request_contacts_inner.py +5 -5
  82. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/send_contact_request_contacts_inner_name.py +2 -2
  83. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/send_contact_request_contacts_inner_org.py +2 -2
  84. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/send_contact_request_contacts_inner_phones_inner.py +4 -4
  85. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/send_cta_url_request.py +2 -2
  86. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/send_file_request.py +2 -2
  87. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/send_flow_request1.py +2 -2
  88. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/send_flow_request1_header.py +2 -2
  89. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/send_flow_request_header.py +2 -2
  90. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/send_list_request.py +8 -4
  91. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/send_list_request_sections_inner.py +2 -2
  92. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/send_list_request_sections_inner_rows_inner.py +2 -2
  93. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/send_location_request1.py +2 -2
  94. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/send_location_request_request.py +9 -5
  95. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/send_message_request.py +19 -14
  96. one_msg_sdk-2.0.3/one_msg_sdk/models/send_message_request_direct_send.py +105 -0
  97. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/send_order_details_request.py +2 -2
  98. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/send_order_details_request_language.py +2 -2
  99. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/send_order_details_request_order.py +2 -2
  100. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/send_order_details_request_order_items_inner.py +2 -2
  101. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/send_order_details_request_order_items_inner_amount.py +2 -2
  102. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/send_payment_request_request.py +2 -2
  103. one_msg_sdk-2.0.3/one_msg_sdk/models/send_product_request.py +114 -0
  104. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/send_reaction_request.py +6 -4
  105. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/send_sticker_request.py +2 -2
  106. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/send_template_request.py +12 -8
  107. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/send_template_request_language.py +6 -6
  108. one_msg_sdk-2.0.3/one_msg_sdk/models/set_webhook200_response.py +108 -0
  109. one_msg_sdk-2.0.3/one_msg_sdk/models/set_webhook200_response_webhook_url.py +144 -0
  110. one_msg_sdk-2.0.3/one_msg_sdk/models/set_webhook_request.py +106 -0
  111. one_msg_sdk-2.0.3/one_msg_sdk/models/set_webhook_request_webhook_url.py +145 -0
  112. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/set_whatsapp_business_encryption_request.py +2 -2
  113. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/success_response.py +2 -2
  114. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/update_calling_settings200_response.py +2 -2
  115. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/update_calling_settings200_response_response.py +2 -2
  116. one_msg_sdk-2.0.3/one_msg_sdk/models/update_me200_response.py +102 -0
  117. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/models/update_me_request.py +6 -6
  118. one_msg_sdk-2.0.3/one_msg_sdk/models/webhook_url_status.py +125 -0
  119. one_msg_sdk-2.0.3/one_msg_sdk/platform_client.py +180 -0
  120. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/rest.py +2 -2
  121. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk.egg-info/PKG-INFO +98 -30
  122. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk.egg-info/SOURCES.txt +53 -0
  123. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/pyproject.toml +1 -1
  124. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/setup.py +3 -3
  125. one_msg_sdk-2.0.3/test/test_add_template200_response.py +52 -0
  126. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_add_template_request.py +5 -5
  127. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_block_user_request.py +2 -2
  128. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_calling_api.py +2 -2
  129. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_calling_settings.py +2 -2
  130. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_calling_settings_calling.py +2 -2
  131. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_calling_settings_calling_audio.py +2 -2
  132. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_calling_settings_calling_call_hours.py +2 -2
  133. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_calling_settings_calling_sip.py +2 -2
  134. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_calling_settings_calling_sip_servers_inner.py +2 -2
  135. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_calling_settings_calling_video.py +2 -2
  136. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_catalog_api.py +2 -2
  137. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_channel_api.py +16 -2
  138. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_conversational_automation.py +2 -2
  139. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_conversational_automation_commands_inner.py +2 -2
  140. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_create_commerce200_response.py +2 -2
  141. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_create_commerce_request.py +2 -2
  142. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_create_commerce_request_params.py +2 -2
  143. one_msg_sdk-2.0.3/test/test_create_flows_request.py +62 -0
  144. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_create_groups200_response.py +2 -2
  145. one_msg_sdk-2.0.3/test/test_create_groups_group_id_request.py +54 -0
  146. one_msg_sdk-2.0.3/test/test_create_groups_request.py +54 -0
  147. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_create_read_message200_response.py +2 -2
  148. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_create_read_message401_response.py +2 -2
  149. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_create_read_message_request.py +2 -2
  150. one_msg_sdk-2.0.3/test/test_create_settings_request.py +57 -0
  151. one_msg_sdk-2.0.3/test/test_create_settings_request_webhook_url.py +51 -0
  152. one_msg_sdk-2.0.3/test/test_create_upload_media200_response.py +52 -0
  153. one_msg_sdk-2.0.3/test/test_create_upload_media_request.py +53 -0
  154. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_delete_flows_flow_id200_response.py +2 -2
  155. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_delete_groups_group_id200_response.py +2 -2
  156. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_delete_media_legacy_request.py +2 -2
  157. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_error_response.py +2 -2
  158. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_flows_api.py +2 -2
  159. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_get_commerce200_response_inner.py +2 -2
  160. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_get_mm_lite_status200_response.py +2 -2
  161. one_msg_sdk-2.0.3/test/test_get_status200_response.py +56 -0
  162. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_get_webhook200_response.py +18 -3
  163. one_msg_sdk-2.0.3/test/test_get_webhook200_response_webhook_url.py +51 -0
  164. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_get_whatsapp_business_encryption200_response.py +2 -2
  165. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_groups_api.py +2 -2
  166. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_initiate_call_request.py +2 -2
  167. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_initiate_call_request_session.py +2 -2
  168. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_initiate_call_response.py +2 -2
  169. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_initiate_call_response_calls_inner.py +2 -2
  170. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_initiate_call_response_response.py +2 -2
  171. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_list_blocked_users200_response.py +2 -2
  172. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_list_flows200_response.py +2 -2
  173. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_list_messages200_response.py +2 -2
  174. one_msg_sdk-2.0.3/test/test_list_settings200_response.py +73 -0
  175. one_msg_sdk-2.0.3/test/test_list_settings200_response_webhook_url.py +51 -0
  176. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_list_templates200_response.py +2 -2
  177. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_message_sent_response.py +2 -2
  178. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_messaging_api.py +9 -2
  179. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_patch_flows_flow_id_assets200_response.py +2 -2
  180. one_msg_sdk-2.0.3/test/test_patch_flows_flow_id_assets_request.py +53 -0
  181. one_msg_sdk-2.0.3/test/test_patch_flows_flow_id_metadata_request.py +56 -0
  182. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_profile_api.py +2 -2
  183. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_profile_info.py +2 -2
  184. one_msg_sdk-2.0.3/test/test_remove_template_request.py +53 -0
  185. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_retrieve_media200_response.py +2 -2
  186. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_send_address_message_request.py +2 -2
  187. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_send_button_request.py +8 -2
  188. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_send_button_request_sections_inner.py +2 -2
  189. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_send_button_request_sections_inner_reply.py +2 -2
  190. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_send_carousel_request1.py +5 -5
  191. one_msg_sdk-2.0.3/test/test_send_contact_info_request.py +57 -0
  192. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_send_contact_request.py +13 -5
  193. one_msg_sdk-2.0.3/test/test_send_contact_request_contact.py +58 -0
  194. one_msg_sdk-2.0.3/test/test_send_contact_request_contact_name.py +51 -0
  195. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_send_contact_request_contacts_inner.py +5 -5
  196. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_send_contact_request_contacts_inner_name.py +2 -2
  197. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_send_contact_request_contacts_inner_org.py +2 -2
  198. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_send_contact_request_contacts_inner_phones_inner.py +2 -2
  199. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_send_cta_url_request.py +2 -2
  200. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_send_file_request.py +2 -2
  201. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_send_flow_request1.py +2 -2
  202. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_send_flow_request1_header.py +2 -2
  203. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_send_flow_request_header.py +2 -2
  204. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_send_list_request.py +4 -2
  205. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_send_list_request_sections_inner.py +2 -2
  206. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_send_list_request_sections_inner_rows_inner.py +2 -2
  207. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_send_location_request1.py +2 -2
  208. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_send_location_request_request.py +4 -2
  209. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_send_message_request.py +7 -3
  210. one_msg_sdk-2.0.3/test/test_send_message_request_direct_send.py +53 -0
  211. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_send_order_details_request.py +2 -2
  212. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_send_order_details_request_language.py +2 -2
  213. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_send_order_details_request_order.py +2 -2
  214. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_send_order_details_request_order_items_inner.py +2 -2
  215. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_send_order_details_request_order_items_inner_amount.py +2 -2
  216. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_send_payment_request_request.py +2 -2
  217. one_msg_sdk-2.0.3/test/test_send_product_request.py +59 -0
  218. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_send_reaction_request.py +3 -2
  219. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_send_sticker_request.py +2 -2
  220. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_send_template_request.py +7 -5
  221. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_send_template_request_language.py +4 -4
  222. one_msg_sdk-2.0.3/test/test_set_webhook200_response.py +53 -0
  223. one_msg_sdk-2.0.3/test/test_set_webhook200_response_webhook_url.py +51 -0
  224. one_msg_sdk-2.0.3/test/test_set_webhook_request.py +53 -0
  225. one_msg_sdk-2.0.3/test/test_set_webhook_request_webhook_url.py +51 -0
  226. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_set_whatsapp_business_encryption_request.py +2 -2
  227. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_success_response.py +2 -2
  228. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_templates_api.py +2 -2
  229. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_update_calling_settings200_response.py +2 -2
  230. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_update_calling_settings200_response_response.py +2 -2
  231. one_msg_sdk-2.0.3/test/test_update_me200_response.py +52 -0
  232. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_update_me_request.py +4 -4
  233. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_users_api.py +2 -2
  234. one_msg_sdk-2.0.3/test/test_webhook_url_status.py +62 -0
  235. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/test/test_webhooks_api.py +2 -2
  236. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/LICENSE +0 -0
  237. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/api/__init__.py +0 -0
  238. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/api_response.py +0 -0
  239. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk/py.typed +0 -0
  240. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk.egg-info/dependency_links.txt +0 -0
  241. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk.egg-info/requires.txt +0 -0
  242. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/one_msg_sdk.egg-info/top_level.txt +0 -0
  243. {one_msg_sdk-1.0.2 → one_msg_sdk-2.0.3}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: one_msg_sdk
3
- Version: 1.0.2
3
+ Version: 2.0.3
4
4
  Summary: Official Python SDK for the 1msg WhatsApp Business API
5
5
  Home-page: https://github.com/1msg/1msg-sdk
6
6
  Author: 1MSG API Support
@@ -25,32 +25,35 @@ Official Python SDK for the **1MSG WhatsApp Business API**.
25
25
  This document is generated from the public OpenAPI contract. It covers install,
26
26
  auth, quick start, and every public operation available in the client.
27
27
 
28
- | | |
29
- |---|---|
30
- | **PyPI** | [`one-msg-sdk`](https://pypi.org/project/one-msg-sdk/) |
31
- | **Source** | [github.com/1msg/1msg-sdk/python](https://github.com/1msg/1msg-sdk/tree/main/python) |
32
- | **API docs** | [docs.1msg.io](https://docs.1msg.io/) |
33
- | **Platform** | [platform.1msg.io](https://platform.1msg.io/) |
34
- | **Support** | support@1msg.io |
35
- | **OpenAPI version** | 1.0.0 |
36
- | **Operations** | 60 |
37
- | **AI agent guide** | [AGENTS.md](./AGENTS.md) |
28
+ | | |
29
+ | ------------------------- | ------------------------------------------------------------------------------------------------------- |
30
+ | **PyPI** | [`one-msg-sdk`](https://pypi.org/project/one-msg-sdk/) |
31
+ | **Source** | [github.com/1msg/1msg-sdk/python](https://github.com/1msg/1msg-sdk/tree/main/python) |
32
+ | **API docs** | [docs.1msg.io](https://docs.1msg.io/) |
33
+ | **Platform API** | [Inbox](https://1msg.io/docs/reference/inbox) and [Campaigns](https://1msg.io/docs/reference/campaigns) |
34
+ | **Platform** | [platform.1msg.io](https://platform.1msg.io/) |
35
+ | **Support** | support@1msg.io |
36
+ | **OpenAPI version** | 2.0.0 |
37
+ | **Operations** | 63 |
38
+ | **AI agent guide** | [AGENTS.md](./AGENTS.md) |
39
+
40
+ Inbox and Campaigns ship in this package as `PlatformClient` (Bearer API key, not the channel token). Reference: [Inbox](https://1msg.io/docs/reference/inbox) and [Campaigns](https://1msg.io/docs/reference/campaigns). CLI: `1msg inbox` and `1msg campaigns`.
38
41
 
39
42
  ---
40
43
 
41
44
  ## Install
42
45
 
43
46
  ```bash
44
- pip install one-msg-sdk==1.0.2
47
+ pip install one-msg-sdk==2.0.3
45
48
  ```
46
49
 
47
50
  ## Requirements
48
51
 
49
- | Variable | Where to get it | Example |
50
- |----------|-----------------|---------|
51
- | `baseUrl` | Platform → channel → API host | `https://api.1msg.io` |
52
- | `instanceId` | Platform → channel id | `ODI371267300` |
53
- | `token` | Platform → channel → API token | JWT or API key |
52
+ | Variable | Where to get it | Example |
53
+ | ------------ | ------------------------------ | --------------------- |
54
+ | `baseUrl` | Platform → channel → API host | `https://api.1msg.io` |
55
+ | `instanceId` | Platform → channel id | `ODI371267300` |
56
+ | `token` | Platform → channel → API token | JWT or API key |
54
57
 
55
58
  Use environment variables (`MSG_API_TOKEN`, `MSG_INSTANCE_ID`). Never commit tokens.
56
59
 
@@ -137,7 +140,7 @@ responses: 200, 401, 500
137
140
 
138
141
  Call action (connect / pre_accept / accept / reject / terminate)
139
142
 
140
- Perform a WhatsApp Calling action (beta). Proxies upstream `POST /calling/calls`. Despite the historical path name `/initiateCall`, this endpoint handles **all** call actions: | action | Use | Required | |--------|-----|----------| | `connect` | Outbound business → user | `to` + `session` (`sdp_type: offer`) | | `pre_accept` | Inbound (optional, reduces audio clipping) | `call_id` + `session` (`sdp_type: answer`) | | `accept` | Inbound answer | `call_id` + `session` (`sdp_type: answer`) | | `reject` | Decline inbound | `call_id` | | `terminate` | Hang up | `call_id` | **SDP / media (critical)** - `accept` / `pre_accept` require a **WebRTC-generated SDP answer**. - Do **not** send Meta's offer SDP back as the answer. - Postman (or curl) alone **cannot** establish real media — you need a WebRTC or SIP stack. 1msg only proxies signaling. Answer within ~**30–60 seconds** of an inbound `connect` webhook or Meta terminates as unanswered. Common Meta errors include Calling not enabled (`138000`), no permission (`138006`), SDP validation failures. **Outbound** requires a prior Call Permission Request (CPR) acceptance. See the **Calling** tag overview for the full outbound flow and CPR limits. Trial / `subscriptionBlocked` → **403** plain text. Upstream failures often return HTTP 200 with `{ "response": { "error": "..." } }`.
143
+ Perform a WhatsApp Calling action (beta). Proxies upstream `POST /calling/calls`. Despite the historical path name `/initiateCall`, this endpoint handles **all** call actions: | action | Use | Required | |--------|-----|----------| | `connect` | Outbound business → user | `to` + `session` (`sdp_type: offer`) | | `pre_accept` | Inbound (optional, reduces audio clipping) | `call_id` + `session` (`sdp_type: answer`) | | `accept` | Inbound answer | `call_id` + `session` (`sdp_type: answer`) | | `reject` | Decline inbound | `call_id` | | `terminate` | Hang up | `call_id` | **SDP / media (critical)** - `accept` / `pre_accept` require a **WebRTC-generated SDP answer**. - Do **not** send Meta's offer SDP back as the answer. - Postman (or curl) alone **cannot** establish real media — you need a WebRTC or SIP stack. 1msg only proxies signaling. Answer within ~**30–60 seconds** of an inbound `connect` webhook or Meta terminates as unanswered. Common Meta errors include Calling not enabled (`138000`), no permission (`138006`), SDP validation failures. **Outbound** requires a prior Call Permission Request (CPR) acceptance. See the **Calling** tag overview for the full outbound flow and CPR limits. Trial / `subscriptionBlocked` → **403** plain text. Upstream failures often return HTTP 200 with `{ "response": { "error": "<upstream message>" } }`. `Invalid API KEY` is used only when Meta/360 body actually indicates an invalid API key or token. Other upstream 401s (notably call permission `138006`) pass through `error.message` / `error_user_msg`.
141
144
 
142
145
  ```yaml
143
146
  http: POST /initiateCall
@@ -178,7 +181,7 @@ responses: 200, 401, 500
178
181
 
179
182
  Get Commerce Settings
180
183
 
181
- Returns catalog/cart commerce settings for the channel. - `is_catalog_visible` — show catalog storefront icon (`true`) or hide it (`false`). - `is_cart_enabled` — enable cart (`true`) or disable it (`false`).
184
+ Returns catalog/cart commerce settings for the channel. Fails with a provider error when the WABA has no catalog linked — that is an API/account limitation, not an MCP schema bug. - `is_catalog_visible` — show catalog storefront icon (`true`) or hide it (`false`). - `is_cart_enabled` — enable cart (`true`) or disable it (`false`).
182
185
 
183
186
  ```yaml
184
187
  http: GET /commerce
@@ -189,6 +192,19 @@ responses: 200, 401, 500
189
192
 
190
193
  ### channel
191
194
 
195
+ #### `createSettings`
196
+
197
+ Update channel settings
198
+
199
+ Update channel settings. Only send fields you want to change. `webhookUrl` **replaces** the stored list (one URL string, or up to 5 URLs as an array). Passing an empty value clears webhooks. Repeating the same URL(s) also clears a sticky auto-disable. With several URLs, send the complete array to re-enable one of them — omitting a URL removes it from the channel.
200
+
201
+ ```yaml
202
+ http: POST /settings
203
+ operationId: createSettings
204
+ clientGroup: channel
205
+ responses: 200, 401, 500
206
+ ```
207
+
192
208
  #### `getConversationalAutomation`
193
209
 
194
210
  Get conversational automation settings
@@ -206,7 +222,7 @@ responses: 200, 401, 500
206
222
 
207
223
  Get channel status
208
224
 
209
- Returns WhatsApp Business API client connection status.
225
+ Return WhatsApp Cloud API connection status for this channel (`connected` when the number can send). May include `accountStatus`, messaging limit, and MM Lite availability. Optional `health_status_warning` appears only when Meta Graph health could not be loaded and a soft `connected` response is returned. Omitted on the normal path and when health details are not applicable for the channel — never an internal provider/transport name.
210
226
 
211
227
  ```yaml
212
228
  http: GET /status
@@ -215,6 +231,19 @@ clientGroup: channel
215
231
  responses: 200, 401, 500
216
232
  ```
217
233
 
234
+ #### `listSettings`
235
+
236
+ Get channel settings
237
+
238
+ Return channel settings: webhook URL(s), delivery flags, and analytics toggles. Auto-disable / circuit state matches `GET /webhook`. **Prefer `webhookStatuses`** (one row per configured URL). The breaker is per URL, not per channel. Channel-level `haveDisabledWebhooks` is `true` when **at least one** URL in `webhookUrl` is sticky auto-disabled — not "the channel is dead". Live URLs still receive events. Top-level `circuitState` / `reason` / `fails` / `trips` are a compatibility summary of one URL (first sticky-disabled, else first configured). This is the same `GET /settings` endpoint as the REST API (previously missing from MCP).
239
+
240
+ ```yaml
241
+ http: GET /settings
242
+ operationId: listSettings
243
+ clientGroup: channel
244
+ responses: 200, 401, 500
245
+ ```
246
+
218
247
  #### `setConversationalAutomation`
219
248
 
220
249
  Set conversational automation settings
@@ -234,11 +263,13 @@ responses: 200, 401, 500
234
263
 
235
264
  Create Flow
236
265
 
266
+ Create a WhatsApp Flow (`name` + `categories` required). Currently returns HTTP 501 until the Meta Graph Flows rewrite is available.
267
+
237
268
  ```yaml
238
269
  http: POST /flows
239
270
  operationId: createFlows
240
271
  clientGroup: flows
241
- responses: 200
272
+ responses: 200, 501
242
273
  ```
243
274
 
244
275
  #### `createFlowsFlowIdDeprecate`
@@ -313,33 +344,39 @@ responses: 200, 401, 500
313
344
 
314
345
  List Flows
315
346
 
347
+ List WhatsApp Flows for the WABA. Currently returns HTTP 501 until the Meta Graph Flows rewrite is available.
348
+
316
349
  ```yaml
317
350
  http: GET /flows
318
351
  operationId: listFlows
319
352
  clientGroup: flows
320
- responses: 200
353
+ responses: 200, 501
321
354
  ```
322
355
 
323
356
  #### `patchFlowsFlowIdAssets`
324
357
 
325
358
  Update Flow Structure
326
359
 
360
+ Replace the Flow JSON document (`flowJson`). Currently returns HTTP 501 until the Meta Graph Flows rewrite is available.
361
+
327
362
  ```yaml
328
363
  http: PATCH /flows/{flowId}/assets
329
364
  operationId: patchFlowsFlowIdAssets
330
365
  clientGroup: flows
331
- responses: 200
366
+ responses: 200, 501
332
367
  ```
333
368
 
334
369
  #### `patchFlowsFlowIdMetadata`
335
370
 
336
371
  Update Flow Metadata
337
372
 
373
+ Update Flow `name`, `categories`, and/or `endpointUri`. Currently returns HTTP 501 until the Meta Graph Flows rewrite is available.
374
+
338
375
  ```yaml
339
376
  http: PATCH /flows/{flowId}/metadata
340
377
  operationId: patchFlowsFlowIdMetadata
341
378
  clientGroup: flows
342
- responses: 200
379
+ responses: 200, 501
343
380
  ```
344
381
 
345
382
  #### `setWhatsappBusinessEncryption`
@@ -372,6 +409,8 @@ responses: 200
372
409
 
373
410
  Update Group Info
374
411
 
412
+ Update group subject, description, and/or profile picture. Path `groupId` is the WABA group id (without `@g.us`).
413
+
375
414
  ```yaml
376
415
  http: POST /groups/{groupId}
377
416
  operationId: createGroupsGroupId
@@ -427,6 +466,8 @@ responses: 200
427
466
 
428
467
  Get Groups List
429
468
 
469
+ List WhatsApp groups for this channel. Paginate with `limit`, `before`, and `after`.
470
+
430
471
  ```yaml
431
472
  http: GET /groups
432
473
  operationId: listGroups
@@ -451,6 +492,8 @@ responses: 200, 401
451
492
 
452
493
  Upload media
453
494
 
495
+ Upload a file to WhatsApp media storage and get a numeric `mediaId` for later use with `send_file` / `send_sticker` (`mediaId` field, not `body`). Pass the file as `body` **or** `url` — an HTTP(S) URL or a base64 data URI. The `mediaId` in the response is a numeric string (keep it as a string).
496
+
454
497
  ```yaml
455
498
  http: POST /uploadMedia
456
499
  operationId: createUploadMedia
@@ -499,6 +542,8 @@ responses: 200, 401, 500
499
542
 
500
543
  Get messages list
501
544
 
545
+ List stored chat history for this channel (requires history storage). Filter with `chatId`, `limit`, `last`, message numbers, or time bounds.
546
+
502
547
  ```yaml
503
548
  http: GET /messages
504
549
  operationId: listMessages
@@ -547,7 +592,7 @@ responses: 200, 400, 401, 429, 500
547
592
 
548
593
  Send Carousel
549
594
 
550
- You can send product cards via Carousel in two ways: Template messages: do not require a 24-hour customer service window between you and the recipient. Use sendTemplate. Free-form messages: can be sent only when a customer service window is open between you and the recipient. Use sendCarousel. The message structure in /sendCarousel is largely similar to sending a template. However, in this case you must explicitly specify all elements that are created in advance when working with templates. This is because the message is sent without using a template. In /sendCarousel, for sending a Catalog Carousel there can be either 1 URL button or one or more quick reply buttons.
595
+ You can send product cards via Carousel in two ways: Template messages: do not require a 24-hour customer service window between you and the recipient. Use sendTemplate. Free-form messages: can be sent only when a customer service window is open between you and the recipient. Use sendCarousel. The message structure in /sendCarousel is largely similar to sending a template. However, in this case you must explicitly specify all elements that are created in advance when working with templates. This is because the message is sent without using a template. In /sendCarousel, for a Catalog Carousel there can be either 1 URL button or one or more quick reply buttons. Prefer the simple `cards` array (2–10 cards). Each card needs a header media/product plus a CTA URL or quick-reply buttons. Example: ```json { "phone": "79001234567", "body": "Pick a product", "cards": [ { "header": { "type": "image", "image": { "link": "https://example.com/1.jpg" } }, "body": { "text": "Card one" }, "type": "cta_url", "action": { "name": "cta_url", "parameters": { "url": "https://example.com/p1", "display_text": "Open" } } }, { "header": { "type": "image", "image": { "link": "https://example.com/2.jpg" } }, "body": { "text": "Card two" }, "type": "cta_url", "action": { "name": "cta_url", "parameters": { "url": "https://example.com/p2", "display_text": "Open" } } } ] } ``` `params` with a `CAROUSEL` component is the template-like alternative.
551
596
 
552
597
  ```yaml
553
598
  http: POST /sendCarousel
@@ -560,6 +605,8 @@ responses: 200, 400, 401, 429, 500
560
605
 
561
606
  Send a Contact
562
607
 
608
+ Send a WhatsApp contact card. Preferred simple body (legacy-compatible): ```json { "phone": "79001234567", "contact": { "name": "Lida", "phone": "+79181976551" } } ``` Cloud API shape also works: `contacts` is an array of objects with `name.formatted_name` and `phones[].phone` (E.164 string, **not** a timestamp).
609
+
563
610
  ```yaml
564
611
  http: POST /sendContact
565
612
  operationId: sendContact
@@ -567,6 +614,19 @@ clientGroup: messaging
567
614
  responses: 200, 400, 401, 429, 500
568
615
  ```
569
616
 
617
+ #### `sendContactInfo`
618
+
619
+ Request the user's phone number
620
+
621
+ Send a service-window interactive message that asks the WhatsApp user to share their phone number (`request_contact_info`). Use this when you only know the user by BSUID (WhatsApp username) and the 24-hour customer service window is open. Outside that window, create a UTILITY or MARKETING template with a `REQUEST_CONTACT_INFO` button (`POST /addTemplate`) and send it with `POST /sendTemplate`. `body` is the text shown above the button (1–1024 characters). WhatsApp chooses the button label. This method has no button-text field — do not send one. ```json { "bsuid": "US.13491208655302741918", "body": "Please share your phone number so we can reach you." } ``` `phone`, `chatId` (`…@c.us`, `…@lid`, `…@username`), or `bsuid` identifies the recipient. One of them is enough. After Meta accepts the send, the outgoing webhook and stored history message use this same text as `messages[].body` (`type: interactive`). When the user taps the button, Meta sends an inbound `contacts` message. The sender stays the BSUID. The shared number is on the card with `origin: contact_request`. We write that phone onto the existing BSUID contact automatically — there is no separate “link phone” call. ```json { "contacts": [ { "profile": { "name": "Ada", "username": "ada" }, "user_id": "US.13491208655302741918" } ], "messages": [ { "from_user_id": "US.13491208655302741918", "type": "contacts", "contacts": [ { "origin": "contact_request", "phones": [{ "phone": "+1 202-555-0123", "wa_id": "12025550123" }] } ] } ] } ``` The stored inbound message body is the digits (`12025550123`). If Meta later includes a phone on an ordinary message or status for that same BSUID (`wa_id`, `from`, or `recipient_id`, together with `user_id` / `recipient_user_id`), that phone is merged onto the same contact. A contact card the user forwards (`origin` other than `contact_request`) is someone else's number and is not stored as this sender's phone.
622
+
623
+ ```yaml
624
+ http: POST /sendContactInfo
625
+ operationId: sendContactInfo
626
+ clientGroup: messaging
627
+ responses: 200, 400, 401, 429, 500
628
+ ```
629
+
570
630
  #### `sendCtaUrl`
571
631
 
572
632
  Send CTA URL interactive message
@@ -645,7 +705,7 @@ responses: 200, 400, 401, 429, 500
645
705
 
646
706
  Send a Message
647
707
 
648
- Send a message to an existing chat. (Only if the dialogue has an Open Session). The message will be added to the queue for sending and delivered even if the phone is disconnected from the Internet or authorization is not passed. Only one of two parameters is needed to determine the destination - chatId or phone.
708
+ Send a message to an existing chat. (Only if the dialogue has an Open Session). The message will be added to the queue for sending and delivered even if the phone is disconnected from the Internet or authorization is not passed. Only one of two parameters is needed to determine the destination - chatId or phone. Direct Send is in beta. Meta has not enabled it on every business portfolio, so `category` and `directSend` are a beta option: watch delivery errors before relying on them. Set `category` to `utility` or `authentication` to send outside the 24-hour window as a Meta Direct Send template instead of the 1MSG marketing auto-template. `authentication` is part of that beta and is not recommended. `directSend.serviceFirst: true` tries a free service message first and uses Direct Send only when Meta rejects it because the window is closed (131047). `directSend.templateName` is only valid with `utility` (`^[a-z0-9_]+$`, max 512). Direct Send text is limited to 1024 characters. Without `templateName`, the first unseen phrase may be delivered as Meta's onboarding template. A named template does not guarantee delivery — wait for webhook errors 131000 or 132021. An open 24-hour window is still billed as utility when `category` is set and `serviceFirst` is not true.
649
709
 
650
710
  ```yaml
651
711
  http: POST /sendMessage
@@ -684,6 +744,8 @@ responses: 200, 400, 401, 500
684
744
 
685
745
  Send a Product
686
746
 
747
+ Send a single catalog product or a product list. Destination is `chatId` or `phone`. `action` is required: - single product: `{ "catalog_id": "...", "product_retailer_id": "..." }` - product list: `{ "catalog_id": "...", "sections": [{ "title": "...", "product_items": [{ "product_retailer_id": "..." }] }] }`
748
+
687
749
  ```yaml
688
750
  http: POST /sendProduct
689
751
  operationId: sendProduct
@@ -721,7 +783,7 @@ responses: 200, 400, 401, 429, 500
721
783
 
722
784
  Get Profile Info
723
785
 
724
- Get WhatsApp Business Account profile information
786
+ Return the WhatsApp Business profile for this channel: About, address, description, email, phone, websites, industry (`vertical`), and profile photo URL.
725
787
 
726
788
  ```yaml
727
789
  http: GET /me
@@ -749,6 +811,8 @@ responses: 200, 401, 422, 500
749
811
 
750
812
  Create message template
751
813
 
814
+ Create a WABA message template (`name`, `category`, `language`, `components`). After create, Meta reviews the template; list it with `GET /templates`. Authentication OTP templates (`category: AUTHENTICATION`, copy-code / OTP button) can later be sent only to a phone number. Meta does not accept a BSUID recipient for them (error 131062). If the recipient is known only by BSUID — for example they use a username and their phone number is not in your Business Portfolio — that template cannot be sent. To ask a BSUID user for their phone number, add a `REQUEST_CONTACT_INFO` button on a `UTILITY` or `MARKETING` template. Do not send `text` on that button — WhatsApp sets the label (and rejects a custom one). The button also has no send-time parameters: `POST /sendTemplate` does not take a button component for it. Inside an open 24-hour window, call `POST /sendContactInfo` instead of a template. When the user shares the number, the inbound webhook is a `contacts` message with `origin: contact_request`. The phone is stored on that BSUID automatically. See `POST /sendContactInfo`. ```json { "name": "request_phone", "category": "UTILITY", "language": "en_US", "components": [ { "type": "BODY", "text": "Please share your phone number so we can continue." }, { "type": "BUTTONS", "buttons": [{ "type": "REQUEST_CONTACT_INFO" }] } ] } ```
815
+
752
816
  ```yaml
753
817
  http: POST /addTemplate
754
818
  operationId: addTemplate
@@ -760,6 +824,8 @@ responses: 200, 401, 500
760
824
 
761
825
  Get templates list
762
826
 
827
+ List message templates. Paginate with `limit` / `offset`; sort by `id`, `name`, or `status`.
828
+
763
829
  ```yaml
764
830
  http: GET /templates
765
831
  operationId: listTemplates
@@ -771,6 +837,8 @@ responses: 200
771
837
 
772
838
  Remove message template
773
839
 
840
+ Delete a message template by `name` (all language versions of that name).
841
+
774
842
  ```yaml
775
843
  http: POST /removeTemplate
776
844
  operationId: removeTemplate
@@ -782,7 +850,7 @@ responses: 200, 401, 500
782
850
 
783
851
  Send Template Message
784
852
 
785
- Send a WhatsApp template message (works outside the 24-hour session window). Supported `params` button `sub_type` values include: `url`, `quick_reply`, `copy_code` / `coupon_code`, `catalog`, `flow`, `limited_time_offer`, and **`order_details`** (WhatsApp Payments **India only** — requires an approved Utility template with an ORDER_DETAILS button). For India order/invoice payments outside 24h, include a button component: ```json { "type": "button", "sub_type": "order_details", "index": 0, "parameters": [{ "type": "action", "action": { "order_details": { "reference_id": "...", "currency": "INR", "order": {} } } }] } ``` Convenience wrapper with structured fields: `POST /sendOrderDetails`.
853
+ Send a WhatsApp **template** message (works outside the 24-hour session window). Use this tool — not `send_message` — when the 24h session is closed. `params` MUST be Cloud API **component objects**, never a flat list of strings and never the old On-Prem `hsm` / `localizable_params` format. Example body variable `{{1}}`: ```json { "type": "body", "parameters": [{ "type": "text", "text": "Ivan" }] } ``` Do not send `"type": "hsm"` and do not send `params: ["Ivan", "123"]`. Supported `params` button `sub_type` values include: `url`, `quick_reply`, `copy_code` / `coupon_code`, `catalog`, `flow`, `limited_time_offer`, and **`order_details`** (WhatsApp Payments **India only** — requires an approved Utility template with an ORDER_DETAILS button). Convenience wrapper with structured fields: `POST /sendOrderDetails`. Authentication OTP templates (category `AUTHENTICATION`, or a template with an OTP / copy-code button) can only be sent to a phone number (`phone` or a phone `chatId`). Meta rejects a BSUID `recipient` for these templates with error 131062. If the recipient is known only by BSUID — for example they use a username and their phone number is not in your Business Portfolio — the template cannot be sent. A `REQUEST_CONTACT_INFO` button (UTILITY or MARKETING only) has no send-time parameters. Do not add a button component for it in `params`, and do not send button text — WhatsApp sets that label on the template. Create the button with `POST /addTemplate` as `{ "type": "REQUEST_CONTACT_INFO" }` with no `text`. Inside an open 24-hour window, `POST /sendContactInfo` asks for the number without a template.
786
854
 
787
855
  ```yaml
788
856
  http: POST /sendTemplate
@@ -834,7 +902,7 @@ responses: 200, 400, 401, 500
834
902
 
835
903
  Get webhook URL
836
904
 
837
- Returns the configured client webhook URL for this channel.
905
+ Return the webhook URL(s) currently configured for this channel, plus delivery status for each URL. `webhookUrl` is a string when a single URL is set, an array of strings when multiple URLs are configured, or `null` if none is set. **Prefer `webhookStatuses`.** The circuit breaker is per URL, not per channel. If 1 of 4 URLs is sticky-disabled, that URL is skipped; the other three still receive events. Send/receive are not affected. Channel-level `haveDisabledWebhooks`, `circuitState`, `reason`, `fails`, `trips`, and timestamps are a compatibility summary of **one** URL (the first sticky-disabled URL, else the first configured URL). They are not "the channel is dead". - `haveDisabledWebhooks` — `true` when **at least one** URL in `webhookUrl` is sticky auto-disabled. Live URLs still get events. - `circuitState` — compressed scalar for that same primary URL: `ok` | `degraded` | `open` | `half_open` | `disabled`. - `disabledWebhooks` — currently configured URLs that are sticky-disabled (subset of `webhookUrl`). - `webhookStatuses` — one row per currently configured URL. Use this array to see which endpoints are live vs skipped. - `fails` / `trips` / `firstFailAt` — **diagnostics for support**, not product UI. `fails` = failures in a rolling ~10 minute window (not lifetime). `trips` = failed recovery probes on the 15 min → 1 h → 6 h schedule (sticky disable after 3). Clients can ignore these and use `webhookStatuses` + `disabledWebhooks` only. Sticky disable skips delivery; it does not unconfigure the URL (it stays in `webhookUrl`). Re-enable with `POST /webhook` or `POST /settings`. Those endpoints **replace** the whole list — with multiple URLs, send the full array.
838
906
 
839
907
  ```yaml
840
908
  http: GET /webhook
@@ -847,7 +915,7 @@ responses: 200, 401, 500
847
915
 
848
916
  Set webhook URL
849
917
 
850
- Configure the client webhook URL for inbound events. WhatsApp **Calling** events (`field=calls`) are forwarded as passthrough payloads with `type: "calls"` and `instanceId` (connect / status / terminate). Call permission replies arrive on the normal messages path (`call_permission_reply`). Details: **Calling** tag.
918
+ Set the client webhook URL that receives inbound events for this channel. **Replaces** the stored webhook list (it does not append). To deliver the same events to several endpoints, pass an array in `webhookUrl` (max 5) or use `POST /settings`. With several URLs already configured, posting only the disabled URL **drops the others** — send the complete array to re-enable one of many. Incoming payloads include messages, delivery ACKs, group updates, coexistence echoes, and calling events. WhatsApp Calling payloads (`type: "calls"`) are documented under the **Calling** tag. Call permission replies arrive on the normal messages path (`call_permission_reply`). Repeating `POST /webhook` with the same URL(s) clears an auto-disable (self-serve re-enable). Send/receive are not affected by webhook auto-disable.
851
919
 
852
920
  ```yaml
853
921
  http: POST /webhook