one_msg_sdk 2.0.2 → 2.0.3

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 (284) hide show
  1. checksums.yaml +4 -4
  2. data/AGENTS.md +62 -16
  3. data/README.md +97 -29
  4. data/docs/AddTemplate200Response.md +18 -0
  5. data/docs/AddTemplateRequest.md +7 -7
  6. data/docs/CallingApi.md +1 -1
  7. data/docs/CatalogApi.md +1 -1
  8. data/docs/ChannelApi.md +151 -5
  9. data/docs/CreateFlowsRequest.md +26 -0
  10. data/docs/CreateGroupsGroupIdRequest.md +22 -0
  11. data/docs/CreateGroupsRequest.md +20 -0
  12. data/docs/CreateSettingsRequest.md +28 -0
  13. data/docs/CreateSettingsRequestWebhookUrl.md +49 -0
  14. data/docs/CreateUploadMedia200Response.md +18 -0
  15. data/docs/CreateUploadMediaRequest.md +20 -0
  16. data/docs/FlowsApi.md +32 -16
  17. data/docs/GetStatus200Response.md +26 -0
  18. data/docs/GetWebhook200Response.md +24 -2
  19. data/docs/GetWebhook200ResponseWebhookUrl.md +49 -0
  20. data/docs/GroupsApi.md +38 -18
  21. data/docs/ListSettings200Response.md +52 -0
  22. data/docs/ListSettings200ResponseWebhookUrl.md +49 -0
  23. data/docs/MessagingApi.md +140 -35
  24. data/docs/PatchFlowsFlowIdAssetsRequest.md +18 -0
  25. data/docs/PatchFlowsFlowIdMetadataRequest.md +22 -0
  26. data/docs/ProfileApi.md +9 -11
  27. data/docs/RemoveTemplateRequest.md +18 -0
  28. data/docs/SendButtonRequest.md +9 -1
  29. data/docs/SendCarouselRequest1.md +4 -2
  30. data/docs/SendContactInfoRequest.md +26 -0
  31. data/docs/SendContactRequest.md +7 -1
  32. data/docs/SendContactRequestContact.md +26 -0
  33. data/docs/SendContactRequestContactName.md +49 -0
  34. data/docs/SendContactRequestContactsInner.md +3 -3
  35. data/docs/SendContactRequestContactsInnerPhonesInner.md +1 -1
  36. data/docs/SendListRequest.md +5 -1
  37. data/docs/SendLocationRequestRequest.md +5 -1
  38. data/docs/SendMessageRequest.md +6 -2
  39. data/docs/SendMessageRequestDirectSend.md +20 -0
  40. data/docs/SendProductRequest.md +30 -0
  41. data/docs/SendReactionRequest.md +3 -1
  42. data/docs/SendTemplateRequest.md +9 -5
  43. data/docs/SendTemplateRequestLanguage.md +3 -3
  44. data/docs/SetWebhook200Response.md +20 -0
  45. data/docs/SetWebhook200ResponseWebhookUrl.md +49 -0
  46. data/docs/SetWebhookRequest.md +18 -0
  47. data/docs/SetWebhookRequestWebhookUrl.md +49 -0
  48. data/docs/TemplatesApi.md +29 -17
  49. data/docs/UpdateMe200Response.md +18 -0
  50. data/docs/UpdateMeRequest.md +6 -6
  51. data/docs/WebhookUrlStatus.md +34 -0
  52. data/docs/WebhooksApi.md +10 -12
  53. data/lib/one_msg_sdk/api/calling_api.rb +4 -4
  54. data/lib/one_msg_sdk/api/catalog_api.rb +4 -4
  55. data/lib/one_msg_sdk/api/channel_api.rb +146 -7
  56. data/lib/one_msg_sdk/api/flows_api.rb +58 -14
  57. data/lib/one_msg_sdk/api/groups_api.rb +48 -10
  58. data/lib/one_msg_sdk/api/messaging_api.rb +163 -38
  59. data/lib/one_msg_sdk/api/profile_api.rb +17 -13
  60. data/lib/one_msg_sdk/api/templates_api.rb +36 -13
  61. data/lib/one_msg_sdk/api/users_api.rb +2 -2
  62. data/lib/one_msg_sdk/api/webhooks_api.rb +19 -15
  63. data/lib/one_msg_sdk/api_client.rb +2 -2
  64. data/lib/one_msg_sdk/api_error.rb +2 -2
  65. data/lib/one_msg_sdk/api_model_base.rb +2 -2
  66. data/lib/one_msg_sdk/configuration.rb +2 -2
  67. data/lib/one_msg_sdk/models/add_template200_response.rb +150 -0
  68. data/lib/one_msg_sdk/models/add_template_request.rb +6 -2
  69. data/lib/one_msg_sdk/models/block_user_request.rb +2 -2
  70. data/lib/one_msg_sdk/models/calling_settings.rb +2 -2
  71. data/lib/one_msg_sdk/models/calling_settings_calling.rb +2 -2
  72. data/lib/one_msg_sdk/models/calling_settings_calling_audio.rb +2 -2
  73. data/lib/one_msg_sdk/models/calling_settings_calling_call_hours.rb +2 -2
  74. data/lib/one_msg_sdk/models/calling_settings_calling_sip.rb +2 -2
  75. data/lib/one_msg_sdk/models/calling_settings_calling_sip_servers_inner.rb +2 -2
  76. data/lib/one_msg_sdk/models/calling_settings_calling_video.rb +2 -2
  77. data/lib/one_msg_sdk/models/conversational_automation.rb +2 -2
  78. data/lib/one_msg_sdk/models/conversational_automation_commands_inner.rb +2 -2
  79. data/lib/one_msg_sdk/models/create_commerce200_response.rb +2 -2
  80. data/lib/one_msg_sdk/models/create_commerce_request.rb +2 -2
  81. data/lib/one_msg_sdk/models/create_commerce_request_params.rb +2 -2
  82. data/lib/one_msg_sdk/models/create_flows_request.rb +238 -0
  83. data/lib/one_msg_sdk/models/create_groups200_response.rb +2 -2
  84. data/lib/one_msg_sdk/models/create_groups_group_id_request.rb +168 -0
  85. data/lib/one_msg_sdk/models/create_groups_request.rb +175 -0
  86. data/lib/one_msg_sdk/models/create_read_message200_response.rb +2 -2
  87. data/lib/one_msg_sdk/models/create_read_message401_response.rb +2 -2
  88. data/lib/one_msg_sdk/models/create_read_message_request.rb +2 -2
  89. data/lib/one_msg_sdk/models/create_settings_request.rb +192 -0
  90. data/lib/one_msg_sdk/models/create_settings_request_webhook_url.rb +105 -0
  91. data/lib/one_msg_sdk/models/create_upload_media200_response.rb +147 -0
  92. data/lib/one_msg_sdk/models/create_upload_media_request.rb +158 -0
  93. data/lib/one_msg_sdk/models/delete_flows_flow_id200_response.rb +2 -2
  94. data/lib/one_msg_sdk/models/delete_groups_group_id200_response.rb +2 -2
  95. data/lib/one_msg_sdk/models/delete_media_legacy_request.rb +2 -2
  96. data/lib/one_msg_sdk/models/error_response.rb +2 -2
  97. data/lib/one_msg_sdk/models/get_commerce200_response_inner.rb +2 -2
  98. data/lib/one_msg_sdk/models/get_mm_lite_status200_response.rb +2 -2
  99. data/lib/one_msg_sdk/models/get_status200_response.rb +185 -0
  100. data/lib/one_msg_sdk/models/get_webhook200_response.rb +155 -6
  101. data/lib/one_msg_sdk/models/get_webhook200_response_webhook_url.rb +105 -0
  102. data/lib/one_msg_sdk/models/get_whatsapp_business_encryption200_response.rb +2 -2
  103. data/lib/one_msg_sdk/models/initiate_call_request.rb +2 -2
  104. data/lib/one_msg_sdk/models/initiate_call_request_session.rb +2 -2
  105. data/lib/one_msg_sdk/models/initiate_call_response.rb +2 -2
  106. data/lib/one_msg_sdk/models/initiate_call_response_calls_inner.rb +2 -2
  107. data/lib/one_msg_sdk/models/initiate_call_response_response.rb +2 -2
  108. data/lib/one_msg_sdk/models/list_blocked_users200_response.rb +2 -2
  109. data/lib/one_msg_sdk/models/list_flows200_response.rb +2 -2
  110. data/lib/one_msg_sdk/models/list_messages200_response.rb +2 -2
  111. data/lib/one_msg_sdk/models/list_settings200_response.rb +352 -0
  112. data/lib/one_msg_sdk/models/list_settings200_response_webhook_url.rb +105 -0
  113. data/lib/one_msg_sdk/models/list_templates200_response.rb +2 -2
  114. data/lib/one_msg_sdk/models/message_sent_response.rb +2 -2
  115. data/lib/one_msg_sdk/models/patch_flows_flow_id_assets200_response.rb +2 -2
  116. data/lib/one_msg_sdk/models/patch_flows_flow_id_assets_request.rb +167 -0
  117. data/lib/one_msg_sdk/models/patch_flows_flow_id_metadata_request.rb +190 -0
  118. data/lib/one_msg_sdk/models/profile_info.rb +2 -2
  119. data/lib/one_msg_sdk/models/remove_template_request.rb +165 -0
  120. data/lib/one_msg_sdk/models/retrieve_media200_response.rb +2 -2
  121. data/lib/one_msg_sdk/models/send_address_message_request.rb +2 -2
  122. data/lib/one_msg_sdk/models/send_button_request.rb +48 -3
  123. data/lib/one_msg_sdk/models/send_button_request_sections_inner.rb +2 -2
  124. data/lib/one_msg_sdk/models/send_button_request_sections_inner_reply.rb +2 -2
  125. data/lib/one_msg_sdk/models/send_carousel_request1.rb +38 -13
  126. data/lib/one_msg_sdk/models/send_contact_info_request.rb +222 -0
  127. data/lib/one_msg_sdk/models/send_contact_request.rb +32 -3
  128. data/lib/one_msg_sdk/models/send_contact_request_contact.rb +221 -0
  129. data/lib/one_msg_sdk/models/send_contact_request_contact_name.rb +105 -0
  130. data/lib/one_msg_sdk/models/send_contact_request_contacts_inner.rb +5 -5
  131. data/lib/one_msg_sdk/models/send_contact_request_contacts_inner_name.rb +2 -2
  132. data/lib/one_msg_sdk/models/send_contact_request_contacts_inner_org.rb +2 -2
  133. data/lib/one_msg_sdk/models/send_contact_request_contacts_inner_phones_inner.rb +3 -2
  134. data/lib/one_msg_sdk/models/send_cta_url_request.rb +2 -2
  135. data/lib/one_msg_sdk/models/send_file_request.rb +2 -2
  136. data/lib/one_msg_sdk/models/send_flow_request1.rb +2 -2
  137. data/lib/one_msg_sdk/models/send_flow_request1_header.rb +2 -2
  138. data/lib/one_msg_sdk/models/send_flow_request_header.rb +2 -2
  139. data/lib/one_msg_sdk/models/send_list_request.rb +23 -3
  140. data/lib/one_msg_sdk/models/send_list_request_sections_inner.rb +2 -2
  141. data/lib/one_msg_sdk/models/send_list_request_sections_inner_rows_inner.rb +2 -2
  142. data/lib/one_msg_sdk/models/send_location_request1.rb +2 -2
  143. data/lib/one_msg_sdk/models/send_location_request_request.rb +23 -3
  144. data/lib/one_msg_sdk/models/send_message_request.rb +60 -28
  145. data/lib/one_msg_sdk/models/send_message_request_direct_send.rb +189 -0
  146. data/lib/one_msg_sdk/models/send_order_details_request.rb +2 -2
  147. data/lib/one_msg_sdk/models/send_order_details_request_language.rb +2 -2
  148. data/lib/one_msg_sdk/models/send_order_details_request_order.rb +2 -2
  149. data/lib/one_msg_sdk/models/send_order_details_request_order_items_inner.rb +2 -2
  150. data/lib/one_msg_sdk/models/send_order_details_request_order_items_inner_amount.rb +2 -2
  151. data/lib/one_msg_sdk/models/send_payment_request_request.rb +2 -2
  152. data/lib/one_msg_sdk/models/send_product_request.rb +225 -0
  153. data/lib/one_msg_sdk/models/send_reaction_request.rb +14 -3
  154. data/lib/one_msg_sdk/models/send_sticker_request.rb +2 -2
  155. data/lib/one_msg_sdk/models/send_template_request.rb +29 -5
  156. data/lib/one_msg_sdk/models/send_template_request_language.rb +6 -2
  157. data/lib/one_msg_sdk/models/set_webhook200_response.rb +157 -0
  158. data/lib/one_msg_sdk/models/set_webhook200_response_webhook_url.rb +105 -0
  159. data/lib/one_msg_sdk/models/set_webhook_request.rb +164 -0
  160. data/lib/one_msg_sdk/models/set_webhook_request_webhook_url.rb +105 -0
  161. data/lib/one_msg_sdk/models/set_whatsapp_business_encryption_request.rb +2 -2
  162. data/lib/one_msg_sdk/models/success_response.rb +2 -2
  163. data/lib/one_msg_sdk/models/update_calling_settings200_response.rb +2 -2
  164. data/lib/one_msg_sdk/models/update_calling_settings200_response_response.rb +2 -2
  165. data/lib/one_msg_sdk/models/update_me200_response.rb +147 -0
  166. data/lib/one_msg_sdk/models/update_me_request.rb +6 -3
  167. data/lib/one_msg_sdk/models/webhook_url_status.rb +287 -0
  168. data/lib/one_msg_sdk/platform_client.rb +182 -0
  169. data/lib/one_msg_sdk/version.rb +3 -3
  170. data/lib/one_msg_sdk.rb +30 -2
  171. data/one_msg_sdk.gemspec +2 -2
  172. data/spec/api/calling_api_spec.rb +3 -3
  173. data/spec/api/catalog_api_spec.rb +3 -3
  174. data/spec/api/channel_api_spec.rb +29 -4
  175. data/spec/api/flows_api_spec.rb +10 -2
  176. data/spec/api/groups_api_spec.rb +10 -2
  177. data/spec/api/messaging_api_spec.rb +37 -9
  178. data/spec/api/profile_api_spec.rb +5 -5
  179. data/spec/api/templates_api_spec.rb +11 -5
  180. data/spec/api/users_api_spec.rb +2 -2
  181. data/spec/api/webhooks_api_spec.rb +6 -6
  182. data/spec/models/add_template200_response_spec.rb +36 -0
  183. data/spec/models/add_template_request_spec.rb +2 -2
  184. data/spec/models/block_user_request_spec.rb +2 -2
  185. data/spec/models/calling_settings_calling_audio_spec.rb +2 -2
  186. data/spec/models/calling_settings_calling_call_hours_spec.rb +2 -2
  187. data/spec/models/calling_settings_calling_sip_servers_inner_spec.rb +2 -2
  188. data/spec/models/calling_settings_calling_sip_spec.rb +2 -2
  189. data/spec/models/calling_settings_calling_spec.rb +2 -2
  190. data/spec/models/calling_settings_calling_video_spec.rb +2 -2
  191. data/spec/models/calling_settings_spec.rb +2 -2
  192. data/spec/models/conversational_automation_commands_inner_spec.rb +2 -2
  193. data/spec/models/conversational_automation_spec.rb +2 -2
  194. data/spec/models/create_commerce200_response_spec.rb +2 -2
  195. data/spec/models/create_commerce_request_params_spec.rb +2 -2
  196. data/spec/models/create_commerce_request_spec.rb +2 -2
  197. data/spec/models/create_flows_request_spec.rb +64 -0
  198. data/spec/models/create_groups200_response_spec.rb +2 -2
  199. data/spec/models/create_groups_group_id_request_spec.rb +48 -0
  200. data/spec/models/create_groups_request_spec.rb +42 -0
  201. data/spec/models/create_read_message200_response_spec.rb +2 -2
  202. data/spec/models/create_read_message401_response_spec.rb +2 -2
  203. data/spec/models/create_read_message_request_spec.rb +2 -2
  204. data/spec/models/create_settings_request_spec.rb +66 -0
  205. data/spec/models/create_settings_request_webhook_url_spec.rb +32 -0
  206. data/spec/models/create_upload_media200_response_spec.rb +36 -0
  207. data/spec/models/create_upload_media_request_spec.rb +42 -0
  208. data/spec/models/delete_flows_flow_id200_response_spec.rb +2 -2
  209. data/spec/models/delete_groups_group_id200_response_spec.rb +2 -2
  210. data/spec/models/delete_media_legacy_request_spec.rb +2 -2
  211. data/spec/models/error_response_spec.rb +2 -2
  212. data/spec/models/get_commerce200_response_inner_spec.rb +2 -2
  213. data/spec/models/get_mm_lite_status200_response_spec.rb +2 -2
  214. data/spec/models/get_status200_response_spec.rb +60 -0
  215. data/spec/models/get_webhook200_response_spec.rb +72 -2
  216. data/spec/models/get_webhook200_response_webhook_url_spec.rb +32 -0
  217. data/spec/models/get_whatsapp_business_encryption200_response_spec.rb +2 -2
  218. data/spec/models/initiate_call_request_session_spec.rb +2 -2
  219. data/spec/models/initiate_call_request_spec.rb +2 -2
  220. data/spec/models/initiate_call_response_calls_inner_spec.rb +2 -2
  221. data/spec/models/initiate_call_response_response_spec.rb +2 -2
  222. data/spec/models/initiate_call_response_spec.rb +2 -2
  223. data/spec/models/list_blocked_users200_response_spec.rb +2 -2
  224. data/spec/models/list_flows200_response_spec.rb +2 -2
  225. data/spec/models/list_messages200_response_spec.rb +2 -2
  226. data/spec/models/list_settings200_response_spec.rb +142 -0
  227. data/spec/models/list_settings200_response_webhook_url_spec.rb +32 -0
  228. data/spec/models/list_templates200_response_spec.rb +2 -2
  229. data/spec/models/message_sent_response_spec.rb +2 -2
  230. data/spec/models/patch_flows_flow_id_assets200_response_spec.rb +2 -2
  231. data/spec/models/patch_flows_flow_id_assets_request_spec.rb +36 -0
  232. data/spec/models/patch_flows_flow_id_metadata_request_spec.rb +52 -0
  233. data/spec/models/profile_info_spec.rb +2 -2
  234. data/spec/models/remove_template_request_spec.rb +36 -0
  235. data/spec/models/retrieve_media200_response_spec.rb +2 -2
  236. data/spec/models/send_address_message_request_spec.rb +2 -2
  237. data/spec/models/send_button_request_sections_inner_reply_spec.rb +2 -2
  238. data/spec/models/send_button_request_sections_inner_spec.rb +2 -2
  239. data/spec/models/send_button_request_spec.rb +26 -2
  240. data/spec/models/send_carousel_request1_spec.rb +8 -2
  241. data/spec/models/send_contact_info_request_spec.rb +60 -0
  242. data/spec/models/send_contact_request_contact_name_spec.rb +32 -0
  243. data/spec/models/send_contact_request_contact_spec.rb +60 -0
  244. data/spec/models/send_contact_request_contacts_inner_name_spec.rb +2 -2
  245. data/spec/models/send_contact_request_contacts_inner_org_spec.rb +2 -2
  246. data/spec/models/send_contact_request_contacts_inner_phones_inner_spec.rb +2 -2
  247. data/spec/models/send_contact_request_contacts_inner_spec.rb +2 -2
  248. data/spec/models/send_contact_request_spec.rb +20 -2
  249. data/spec/models/send_cta_url_request_spec.rb +2 -2
  250. data/spec/models/send_file_request_spec.rb +2 -2
  251. data/spec/models/send_flow_request1_header_spec.rb +2 -2
  252. data/spec/models/send_flow_request1_spec.rb +2 -2
  253. data/spec/models/send_flow_request_header_spec.rb +2 -2
  254. data/spec/models/send_list_request_sections_inner_rows_inner_spec.rb +2 -2
  255. data/spec/models/send_list_request_sections_inner_spec.rb +2 -2
  256. data/spec/models/send_list_request_spec.rb +14 -2
  257. data/spec/models/send_location_request1_spec.rb +2 -2
  258. data/spec/models/send_location_request_request_spec.rb +14 -2
  259. data/spec/models/send_message_request_direct_send_spec.rb +42 -0
  260. data/spec/models/send_message_request_spec.rb +18 -2
  261. data/spec/models/send_order_details_request_language_spec.rb +2 -2
  262. data/spec/models/send_order_details_request_order_items_inner_amount_spec.rb +2 -2
  263. data/spec/models/send_order_details_request_order_items_inner_spec.rb +2 -2
  264. data/spec/models/send_order_details_request_order_spec.rb +2 -2
  265. data/spec/models/send_order_details_request_spec.rb +2 -2
  266. data/spec/models/send_payment_request_request_spec.rb +2 -2
  267. data/spec/models/send_product_request_spec.rb +72 -0
  268. data/spec/models/send_reaction_request_spec.rb +8 -2
  269. data/spec/models/send_sticker_request_spec.rb +2 -2
  270. data/spec/models/send_template_request_language_spec.rb +2 -2
  271. data/spec/models/send_template_request_spec.rb +14 -2
  272. data/spec/models/set_webhook200_response_spec.rb +42 -0
  273. data/spec/models/set_webhook200_response_webhook_url_spec.rb +32 -0
  274. data/spec/models/set_webhook_request_spec.rb +36 -0
  275. data/spec/models/set_webhook_request_webhook_url_spec.rb +32 -0
  276. data/spec/models/set_whatsapp_business_encryption_request_spec.rb +2 -2
  277. data/spec/models/success_response_spec.rb +2 -2
  278. data/spec/models/update_calling_settings200_response_response_spec.rb +2 -2
  279. data/spec/models/update_calling_settings200_response_spec.rb +2 -2
  280. data/spec/models/update_me200_response_spec.rb +36 -0
  281. data/spec/models/update_me_request_spec.rb +2 -2
  282. data/spec/models/webhook_url_status_spec.rb +88 -0
  283. data/spec/spec_helper.rb +2 -2
  284. metadata +204 -31
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #1MSG WhatsApp Business API (Public)
3
3
 
4
- #Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** All requests require `token` query parameter with JWT or API key. **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
4
+ #Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** Pass the channel token in **one** place. The API checks JSON body (`token`), then query string (`?token=`), then `Authorization: Bearer` header (preferred in production). **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document: 2.0.0
7
7
  Contact: support@1msg.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -47,7 +47,7 @@ describe 'CatalogApi' do
47
47
 
48
48
  # unit tests for get_commerce
49
49
  # Get Commerce Settings
50
- # 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`).
50
+ # 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`).
51
51
  # @param token JWT token or API key for authorization
52
52
  # @param [Hash] opts the optional parameters
53
53
  # @return [Array<GetCommerce200ResponseInner>]
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #1MSG WhatsApp Business API (Public)
3
3
 
4
- #Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** All requests require `token` query parameter with JWT or API key. **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
4
+ #Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** Pass the channel token in **one** place. The API checks JSON body (`token`), then query string (`?token=`), then `Authorization: Bearer` header (preferred in production). **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document: 2.0.0
7
7
  Contact: support@1msg.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -32,6 +32,19 @@ describe 'ChannelApi' do
32
32
  end
33
33
  end
34
34
 
35
+ # unit tests for create_settings
36
+ # Update channel settings
37
+ # Update channel settings. Only send fields you want to change. &#x60;webhookUrl&#x60; **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.
38
+ # @param token JWT token or API key for authorization
39
+ # @param create_settings_request
40
+ # @param [Hash] opts the optional parameters
41
+ # @return [Hash<String, Object>]
42
+ describe 'create_settings test' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
35
48
  # unit tests for get_conversational_automation
36
49
  # Get conversational automation settings
37
50
  # Get WhatsApp conversational components for the channel (welcome message, ice-breaker prompts, and slash commands). Proxies Meta/360dialog &#x60;GET /conversational_automation&#x60;. When &#x60;enable_welcome_message&#x60; is true and a user opens chat for the first time, Meta delivers a webhook message with &#x60;type: request_welcome&#x60;. The inbound formatter exposes that as &#x60;type: \&quot;request_welcome\&quot;&#x60; and &#x60;meta.request_welcome: true&#x60; so your webhook can send a custom welcome reply.
@@ -46,16 +59,28 @@ describe 'ChannelApi' do
46
59
 
47
60
  # unit tests for get_status
48
61
  # Get channel status
49
- # Returns WhatsApp Business API client connection status.
62
+ # Return WhatsApp Cloud API connection status for this channel (&#x60;connected&#x60; when the number can send). May include &#x60;accountStatus&#x60;, messaging limit, and MM Lite availability. Optional &#x60;health_status_warning&#x60; appears only when Meta Graph health could not be loaded and a soft &#x60;connected&#x60; response is returned. Omitted on the normal path and when health details are not applicable for the channel — never an internal provider/transport name.
50
63
  # @param token JWT token or API key for authorization
51
64
  # @param [Hash] opts the optional parameters
52
- # @return [Hash<String, Object>]
65
+ # @return [GetStatus200Response]
53
66
  describe 'get_status test' do
54
67
  it 'should work' do
55
68
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
56
69
  end
57
70
  end
58
71
 
72
+ # unit tests for list_settings
73
+ # Get channel settings
74
+ # Return channel settings: webhook URL(s), delivery flags, and analytics toggles. Auto-disable / circuit state matches &#x60;GET /webhook&#x60;. **Prefer &#x60;webhookStatuses&#x60;** (one row per configured URL). The breaker is per URL, not per channel. Channel-level &#x60;haveDisabledWebhooks&#x60; is &#x60;true&#x60; when **at least one** URL in &#x60;webhookUrl&#x60; is sticky auto-disabled — not \&quot;the channel is dead\&quot;. Live URLs still receive events. Top-level &#x60;circuitState&#x60; / &#x60;reason&#x60; / &#x60;fails&#x60; / &#x60;trips&#x60; are a compatibility summary of one URL (first sticky-disabled, else first configured). This is the same &#x60;GET /settings&#x60; endpoint as the REST API (previously missing from MCP).
75
+ # @param token JWT token or API key for authorization
76
+ # @param [Hash] opts the optional parameters
77
+ # @return [ListSettings200Response]
78
+ describe 'list_settings test' do
79
+ it 'should work' do
80
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
81
+ end
82
+ end
83
+
59
84
  # unit tests for set_conversational_automation
60
85
  # Set conversational automation settings
61
86
  # Update WhatsApp conversational components. Allowed body fields (others are ignored): - &#x60;enable_welcome_message&#x60; (boolean) - &#x60;prompts&#x60; (string[], max 4, each ≤ 80 chars) - &#x60;commands&#x60; (&#x60;{ command_name, command_description }[]&#x60;) Proxies Meta/360dialog &#x60;POST /conversational_automation&#x60;.
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #1MSG WhatsApp Business API (Public)
3
3
 
4
- #Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** All requests require `token` query parameter with JWT or API key. **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
4
+ #Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** Pass the channel token in **one** place. The API checks JSON body (`token`), then query string (`?token=`), then `Authorization: Bearer` header (preferred in production). **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document: 2.0.0
7
7
  Contact: support@1msg.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -34,7 +34,9 @@ describe 'FlowsApi' do
34
34
 
35
35
  # unit tests for create_flows
36
36
  # Create Flow
37
+ # Create a WhatsApp Flow (&#x60;name&#x60; + &#x60;categories&#x60; required). Currently returns HTTP 501 until the Meta Graph Flows rewrite is available.
37
38
  # @param token JWT token or API key for authorization
39
+ # @param create_flows_request
38
40
  # @param [Hash] opts the optional parameters
39
41
  # @option opts [String] :waba_account_id
40
42
  # @return [CreateGroups200Response]
@@ -123,9 +125,11 @@ describe 'FlowsApi' do
123
125
 
124
126
  # unit tests for list_flows
125
127
  # List Flows
128
+ # List WhatsApp Flows for the WABA. Currently returns HTTP 501 until the Meta Graph Flows rewrite is available.
126
129
  # @param token JWT token or API key for authorization
127
130
  # @param [Hash] opts the optional parameters
128
131
  # @option opts [String] :waba_account_id
132
+ # @option opts [String] :fields Comma-separated Flow fields to return
129
133
  # @return [ListFlows200Response]
130
134
  describe 'list_flows test' do
131
135
  it 'should work' do
@@ -135,8 +139,10 @@ describe 'FlowsApi' do
135
139
 
136
140
  # unit tests for patch_flows_flow_id_assets
137
141
  # Update Flow Structure
142
+ # Replace the Flow JSON document (&#x60;flowJson&#x60;). Currently returns HTTP 501 until the Meta Graph Flows rewrite is available.
138
143
  # @param flow_id Flow ID
139
144
  # @param token JWT token or API key for authorization
145
+ # @param patch_flows_flow_id_assets_request
140
146
  # @param [Hash] opts the optional parameters
141
147
  # @option opts [String] :waba_account_id
142
148
  # @return [PatchFlowsFlowIdAssets200Response]
@@ -148,8 +154,10 @@ describe 'FlowsApi' do
148
154
 
149
155
  # unit tests for patch_flows_flow_id_metadata
150
156
  # Update Flow Metadata
157
+ # Update Flow &#x60;name&#x60;, &#x60;categories&#x60;, and/or &#x60;endpointUri&#x60;. Currently returns HTTP 501 until the Meta Graph Flows rewrite is available.
151
158
  # @param flow_id Flow ID
152
159
  # @param token JWT token or API key for authorization
160
+ # @param patch_flows_flow_id_metadata_request
153
161
  # @param [Hash] opts the optional parameters
154
162
  # @option opts [String] :waba_account_id
155
163
  # @return [Hash<String, Object>]
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #1MSG WhatsApp Business API (Public)
3
3
 
4
- #Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** All requests require `token` query parameter with JWT or API key. **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
4
+ #Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** Pass the channel token in **one** place. The API checks JSON body (`token`), then query string (`?token=`), then `Authorization: Bearer` header (preferred in production). **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document: 2.0.0
7
7
  Contact: support@1msg.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -35,6 +35,7 @@ describe 'GroupsApi' do
35
35
  # unit tests for create_groups
36
36
  # Create Group
37
37
  # @param token JWT token or API key for authorization
38
+ # @param create_groups_request
38
39
  # @param [Hash] opts the optional parameters
39
40
  # @return [CreateGroups200Response]
40
41
  describe 'create_groups test' do
@@ -45,8 +46,10 @@ describe 'GroupsApi' do
45
46
 
46
47
  # unit tests for create_groups_group_id
47
48
  # Update Group Info
49
+ # Update group subject, description, and/or profile picture. Path &#x60;groupId&#x60; is the WABA group id (without &#x60;@g.us&#x60;).
48
50
  # @param group_id
49
51
  # @param token JWT token or API key for authorization
52
+ # @param create_groups_group_id_request
50
53
  # @param [Hash] opts the optional parameters
51
54
  # @return [Hash<String, Object>]
52
55
  describe 'create_groups_group_id test' do
@@ -84,6 +87,7 @@ describe 'GroupsApi' do
84
87
  # @param group_id
85
88
  # @param token JWT token or API key for authorization
86
89
  # @param [Hash] opts the optional parameters
90
+ # @option opts [String] :fields Comma-separated group fields to return
87
91
  # @return [Hash<String, Object>]
88
92
  describe 'get_groups_group_id test' do
89
93
  it 'should work' do
@@ -105,8 +109,12 @@ describe 'GroupsApi' do
105
109
 
106
110
  # unit tests for list_groups
107
111
  # Get Groups List
112
+ # List WhatsApp groups for this channel. Paginate with &#x60;limit&#x60;, &#x60;before&#x60;, and &#x60;after&#x60;.
108
113
  # @param token JWT token or API key for authorization
109
114
  # @param [Hash] opts the optional parameters
115
+ # @option opts [Integer] :limit Max groups to return
116
+ # @option opts [String] :before Cursor for the previous page
117
+ # @option opts [String] :after Cursor for the next page
110
118
  # @return [Hash<String, Object>]
111
119
  describe 'list_groups test' do
112
120
  it 'should work' do
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #1MSG WhatsApp Business API (Public)
3
3
 
4
- #Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** All requests require `token` query parameter with JWT or API key. **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
4
+ #Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** Pass the channel token in **one** place. The API checks JSON body (`token`), then query string (`?token=`), then `Authorization: Bearer` header (preferred in production). **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document: 2.0.0
7
7
  Contact: support@1msg.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -48,10 +48,11 @@ describe 'MessagingApi' do
48
48
 
49
49
  # unit tests for create_upload_media
50
50
  # Upload media
51
+ # Upload a file to WhatsApp media storage and get a numeric &#x60;mediaId&#x60; for later use with &#x60;send_file&#x60; / &#x60;send_sticker&#x60; (&#x60;mediaId&#x60; field, not &#x60;body&#x60;). Pass the file as &#x60;body&#x60; **or** &#x60;url&#x60; — an HTTP(S) URL or a base64 data URI. The &#x60;mediaId&#x60; in the response is a numeric string (keep it as a string).
51
52
  # @param token JWT token or API key for authorization
53
+ # @param create_upload_media_request
52
54
  # @param [Hash] opts the optional parameters
53
- # @option opts [Hash<String, Object>] :request_body
54
- # @return [nil]
55
+ # @return [CreateUploadMedia200Response]
55
56
  describe 'create_upload_media test' do
56
57
  it 'should work' do
57
58
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -97,8 +98,17 @@ describe 'MessagingApi' do
97
98
 
98
99
  # unit tests for list_messages
99
100
  # Get messages list
101
+ # List stored chat history for this channel (requires history storage). Filter with &#x60;chatId&#x60;, &#x60;limit&#x60;, &#x60;last&#x60;, message numbers, or time bounds.
100
102
  # @param token JWT token or API key for authorization
101
103
  # @param [Hash] opts the optional parameters
104
+ # @option opts [String] :chat_id Filter messages for one chat (&#x60;phone@c.us&#x60;, group &#x60;@g.us&#x60;, or BSUID &#x60;@lid&#x60;)
105
+ # @option opts [Integer] :limit Max rows to return (default 100)
106
+ # @option opts [Boolean] :last If true, return the latest messages (DESC). Default false.
107
+ # @option opts [Integer] :last_message_number
108
+ # @option opts [Integer] :first_message_number
109
+ # @option opts [Integer] :min_time Unix timestamp lower bound
110
+ # @option opts [Integer] :max_time Unix timestamp upper bound
111
+ # @option opts [String] :msg_id Filter by stored message id
102
112
  # @return [ListMessages200Response]
103
113
  describe 'list_messages test' do
104
114
  it 'should work' do
@@ -146,11 +156,12 @@ describe 'MessagingApi' do
146
156
 
147
157
  # unit tests for send_carousel
148
158
  # Send Carousel
149
- # 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.
159
+ # 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 &#x60;cards&#x60; array (2–10 cards). Each card needs a header media/product plus a CTA URL or quick-reply buttons. Example: &#x60;&#x60;&#x60;json { \&quot;phone\&quot;: \&quot;79001234567\&quot;, \&quot;body\&quot;: \&quot;Pick a product\&quot;, \&quot;cards\&quot;: [ { \&quot;header\&quot;: { \&quot;type\&quot;: \&quot;image\&quot;, \&quot;image\&quot;: { \&quot;link\&quot;: \&quot;https://example.com/1.jpg\&quot; } }, \&quot;body\&quot;: { \&quot;text\&quot;: \&quot;Card one\&quot; }, \&quot;type\&quot;: \&quot;cta_url\&quot;, \&quot;action\&quot;: { \&quot;name\&quot;: \&quot;cta_url\&quot;, \&quot;parameters\&quot;: { \&quot;url\&quot;: \&quot;https://example.com/p1\&quot;, \&quot;display_text\&quot;: \&quot;Open\&quot; } } }, { \&quot;header\&quot;: { \&quot;type\&quot;: \&quot;image\&quot;, \&quot;image\&quot;: { \&quot;link\&quot;: \&quot;https://example.com/2.jpg\&quot; } }, \&quot;body\&quot;: { \&quot;text\&quot;: \&quot;Card two\&quot; }, \&quot;type\&quot;: \&quot;cta_url\&quot;, \&quot;action\&quot;: { \&quot;name\&quot;: \&quot;cta_url\&quot;, \&quot;parameters\&quot;: { \&quot;url\&quot;: \&quot;https://example.com/p2\&quot;, \&quot;display_text\&quot;: \&quot;Open\&quot; } } } ] } &#x60;&#x60;&#x60; &#x60;params&#x60; with a &#x60;CAROUSEL&#x60; component is the template-like alternative.
150
160
  # @param token JWT token or API key for authorization
151
- # @param params Required. Template-like structure (same as sendTemplate params). Must include a CAROUSEL component and its cards. Structure: - params[] item with type CAROUSEL and cards (2..10) - cards[] item: - components[] items: - header: parameters[0] with type image/video/product - image: {\\\&quot;image\\\&quot;: {\\\&quot;link\\\&quot;: \\\&quot;https://...\\\&quot;}} - video: {\\\&quot;video\\\&quot;: {\\\&quot;link\\\&quot;: \\\&quot;https://...\\\&quot;}} - product: {\\\&quot;product\\\&quot;: {\\\&quot;catalog_id\\\&quot;: \\\&quot;...\\\&quot;, \\\&quot;product_retailer_id\\\&quot;: \\\&quot;...\\\&quot;}} - button: sub_type url or quick_reply - url: parameters {\\\&quot;text\\\&quot;: \\\&quot;Button\\\&quot;, \\\&quot;url\\\&quot;: \\\&quot;https://...\\\&quot;} - quick_reply: parameters[] of {\\\&quot;id\\\&quot;: \\\&quot;...\\\&quot;, \\\&quot;text\\\&quot;: \\\&quot;...\\\&quot;}
152
161
  # @param [Hash] opts the optional parameters
153
162
  # @option opts [String] :body Text shown above the carousel. Optional. If omitted and params include a body component, the body will be taken from params.
163
+ # @option opts [Array<Hash<String, Object>>] :cards Preferred. 2–10 carousel cards (header + body + CTA or quick replies).
164
+ # @option opts [Array<Object>] :params Required. Template-like structure (same as sendTemplate params). Must include a CAROUSEL component and its cards. Structure: - params[] item with type CAROUSEL and cards (2..10) - cards[] item: - components[] items: - header: parameters[0] with type image/video/product - image: {\\\&quot;image\\\&quot;: {\\\&quot;link\\\&quot;: \\\&quot;https://...\\\&quot;}} - video: {\\\&quot;video\\\&quot;: {\\\&quot;link\\\&quot;: \\\&quot;https://...\\\&quot;}} - product: {\\\&quot;product\\\&quot;: {\\\&quot;catalog_id\\\&quot;: \\\&quot;...\\\&quot;, \\\&quot;product_retailer_id\\\&quot;: \\\&quot;...\\\&quot;}} - button: sub_type url or quick_reply - url: parameters {\\\&quot;text\\\&quot;: \\\&quot;Button\\\&quot;, \\\&quot;url\\\&quot;: \\\&quot;https://...\\\&quot;} - quick_reply: parameters[] of {\\\&quot;id\\\&quot;: \\\&quot;...\\\&quot;, \\\&quot;text\\\&quot;: \\\&quot;...\\\&quot;}
154
165
  # @option opts [String] :quoted_msg_id Quoted message ID (Cloud API)
155
166
  # @option opts [String] :chat_id Required if phone is not set. Chat ID from the message list. Examples: 12020721369@c.us or 120363046942338209@g.us(group)
156
167
  # @option opts [Integer] :phone Required if chatId is not set. A phone number starting with the country code. USA example: 12020721369.
@@ -163,6 +174,7 @@ describe 'MessagingApi' do
163
174
 
164
175
  # unit tests for send_contact
165
176
  # Send a Contact
177
+ # Send a WhatsApp contact card. Preferred simple body (legacy-compatible): &#x60;&#x60;&#x60;json { \&quot;phone\&quot;: \&quot;79001234567\&quot;, \&quot;contact\&quot;: { \&quot;name\&quot;: \&quot;Lida\&quot;, \&quot;phone\&quot;: \&quot;+79181976551\&quot; } } &#x60;&#x60;&#x60; Cloud API shape also works: &#x60;contacts&#x60; is an array of objects with &#x60;name.formatted_name&#x60; and &#x60;phones[].phone&#x60; (E.164 string, **not** a timestamp).
166
178
  # @param token JWT token or API key for authorization
167
179
  # @param [Hash] opts the optional parameters
168
180
  # @option opts [SendContactRequest] :send_contact_request
@@ -173,6 +185,19 @@ describe 'MessagingApi' do
173
185
  end
174
186
  end
175
187
 
188
+ # unit tests for send_contact_info
189
+ # Request the user&#39;s phone number
190
+ # Send a service-window interactive message that asks the WhatsApp user to share their phone number (&#x60;request_contact_info&#x60;). 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 &#x60;REQUEST_CONTACT_INFO&#x60; button (&#x60;POST /addTemplate&#x60;) and send it with &#x60;POST /sendTemplate&#x60;. &#x60;body&#x60; 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. &#x60;&#x60;&#x60;json { \&quot;bsuid\&quot;: \&quot;US.13491208655302741918\&quot;, \&quot;body\&quot;: \&quot;Please share your phone number so we can reach you.\&quot; } &#x60;&#x60;&#x60; &#x60;phone&#x60;, &#x60;chatId&#x60; (&#x60;…@c.us&#x60;, &#x60;…@lid&#x60;, &#x60;…@username&#x60;), or &#x60;bsuid&#x60; 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 &#x60;messages[].body&#x60; (&#x60;type: interactive&#x60;). When the user taps the button, Meta sends an inbound &#x60;contacts&#x60; message. The sender stays the BSUID. The shared number is on the card with &#x60;origin: contact_request&#x60;. We write that phone onto the existing BSUID contact automatically — there is no separate “link phone” call. &#x60;&#x60;&#x60;json { \&quot;contacts\&quot;: [ { \&quot;profile\&quot;: { \&quot;name\&quot;: \&quot;Ada\&quot;, \&quot;username\&quot;: \&quot;ada\&quot; }, \&quot;user_id\&quot;: \&quot;US.13491208655302741918\&quot; } ], \&quot;messages\&quot;: [ { \&quot;from_user_id\&quot;: \&quot;US.13491208655302741918\&quot;, \&quot;type\&quot;: \&quot;contacts\&quot;, \&quot;contacts\&quot;: [ { \&quot;origin\&quot;: \&quot;contact_request\&quot;, \&quot;phones\&quot;: [{ \&quot;phone\&quot;: \&quot;+1 202-555-0123\&quot;, \&quot;wa_id\&quot;: \&quot;12025550123\&quot; }] } ] } ] } &#x60;&#x60;&#x60; The stored inbound message body is the digits (&#x60;12025550123&#x60;). If Meta later includes a phone on an ordinary message or status for that same BSUID (&#x60;wa_id&#x60;, &#x60;from&#x60;, or &#x60;recipient_id&#x60;, together with &#x60;user_id&#x60; / &#x60;recipient_user_id&#x60;), that phone is merged onto the same contact. A contact card the user forwards (&#x60;origin&#x60; other than &#x60;contact_request&#x60;) is someone else&#39;s number and is not stored as this sender&#39;s phone.
191
+ # @param token JWT token or API key for authorization
192
+ # @param [Hash] opts the optional parameters
193
+ # @option opts [SendContactInfoRequest] :send_contact_info_request
194
+ # @return [MessageSentResponse]
195
+ describe 'send_contact_info test' do
196
+ it 'should work' do
197
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
198
+ end
199
+ end
200
+
176
201
  # unit tests for send_cta_url
177
202
  # Send CTA URL interactive message
178
203
  # Send an interactive message with a single call-to-action URL button.
@@ -279,13 +304,15 @@ describe 'MessagingApi' do
279
304
 
280
305
  # unit tests for send_message
281
306
  # Send a Message
282
- # 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.
307
+ # 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 &#x60;category&#x60; and &#x60;directSend&#x60; are a beta option: watch delivery errors before relying on them. Set &#x60;category&#x60; to &#x60;utility&#x60; or &#x60;authentication&#x60; to send outside the 24-hour window as a Meta Direct Send template instead of the 1MSG marketing auto-template. &#x60;authentication&#x60; is part of that beta and is not recommended. &#x60;directSend.serviceFirst: true&#x60; tries a free service message first and uses Direct Send only when Meta rejects it because the window is closed (131047). &#x60;directSend.templateName&#x60; is only valid with &#x60;utility&#x60; (&#x60;^[a-z0-9_]+$&#x60;, max 512). Direct Send text is limited to 1024 characters. Without &#x60;templateName&#x60;, the first unseen phrase may be delivered as Meta&#39;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 &#x60;category&#x60; is set and &#x60;serviceFirst&#x60; is not true.
283
308
  # @param token JWT token or API key for authorization
284
309
  # @param body Message text, UTF-8 or UTF-16 string with emoji
285
310
  # @param [Hash] opts the optional parameters
286
311
  # @option opts [String] :quoted_msg_id Message ID to quote/reply to (Cloud API wamid)
287
- # @option opts [String] :chat_id Chat ID in format: phone@c.us (individual) or phone@g.us (group)
312
+ # @option opts [String] :chat_id Recipient chat ID: phone@c.us, group@g.us, or BSUID@lid
288
313
  # @option opts [Integer] :phone Phone number starting with country code (alternative to chatId)
314
+ # @option opts [String] :category Optional Direct Send category. Direct Send is in beta: Meta has not enabled it on every business portfolio. &#x60;utility&#x60; or &#x60;authentication&#x60; enables it. &#x60;authentication&#x60; is part of that beta and is not recommended. Omit or &#x60;service&#x60; keeps a normal service message (and the marketing auto-template outside the 24-hour window). &#x60;marketing&#x60; is rejected.
315
+ # @option opts [SendMessageRequestDirectSend] :direct_send
289
316
  # @return [MessageSentResponse]
290
317
  describe 'send_message test' do
291
318
  it 'should work' do
@@ -321,9 +348,10 @@ describe 'MessagingApi' do
321
348
 
322
349
  # unit tests for send_product
323
350
  # Send a Product
351
+ # Send a single catalog product or a product list. Destination is &#x60;chatId&#x60; or &#x60;phone&#x60;. &#x60;action&#x60; is required: - single product: &#x60;{ \&quot;catalog_id\&quot;: \&quot;...\&quot;, \&quot;product_retailer_id\&quot;: \&quot;...\&quot; }&#x60; - product list: &#x60;{ \&quot;catalog_id\&quot;: \&quot;...\&quot;, \&quot;sections\&quot;: [{ \&quot;title\&quot;: \&quot;...\&quot;, \&quot;product_items\&quot;: [{ \&quot;product_retailer_id\&quot;: \&quot;...\&quot; }] }] }&#x60;
324
352
  # @param token JWT token or API key for authorization
353
+ # @param send_product_request
325
354
  # @param [Hash] opts the optional parameters
326
- # @option opts [Hash<String, Object>] :request_body
327
355
  # @return [MessageSentResponse]
328
356
  describe 'send_product test' do
329
357
  it 'should work' do
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #1MSG WhatsApp Business API (Public)
3
3
 
4
- #Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** All requests require `token` query parameter with JWT or API key. **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
4
+ #Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** Pass the channel token in **one** place. The API checks JSON body (`token`), then query string (`?token=`), then `Authorization: Bearer` header (preferred in production). **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document: 2.0.0
7
7
  Contact: support@1msg.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -34,7 +34,7 @@ describe 'ProfileApi' do
34
34
 
35
35
  # unit tests for get_me
36
36
  # Get Profile Info
37
- # Get WhatsApp Business Account profile information
37
+ # Return the WhatsApp Business profile for this channel: About, address, description, email, phone, websites, industry (&#x60;vertical&#x60;), and profile photo URL.
38
38
  # @param token JWT token or API key for authorization
39
39
  # @param [Hash] opts the optional parameters
40
40
  # @return [ProfileInfo]
@@ -48,9 +48,9 @@ describe 'ProfileApi' do
48
48
  # Update profile info
49
49
  # Update WhatsApp Business Account profile fields. At least one of about, description, email, photo, address, vertical, websites is required. Blocked when the channel subscription limit is exceeded.
50
50
  # @param token JWT token or API key for authorization
51
+ # @param update_me_request
51
52
  # @param [Hash] opts the optional parameters
52
- # @option opts [UpdateMeRequest] :update_me_request
53
- # @return [Hash<String, Object>]
53
+ # @return [UpdateMe200Response]
54
54
  describe 'update_me test' do
55
55
  it 'should work' do
56
56
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #1MSG WhatsApp Business API (Public)
3
3
 
4
- #Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** All requests require `token` query parameter with JWT or API key. **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
4
+ #Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** Pass the channel token in **one** place. The API checks JSON body (`token`), then query string (`?token=`), then `Authorization: Bearer` header (preferred in production). **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document: 2.0.0
7
7
  Contact: support@1msg.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -34,10 +34,11 @@ describe 'TemplatesApi' do
34
34
 
35
35
  # unit tests for add_template
36
36
  # Create message template
37
+ # Create a WABA message template (&#x60;name&#x60;, &#x60;category&#x60;, &#x60;language&#x60;, &#x60;components&#x60;). After create, Meta reviews the template; list it with &#x60;GET /templates&#x60;. Authentication OTP templates (&#x60;category: AUTHENTICATION&#x60;, 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 &#x60;REQUEST_CONTACT_INFO&#x60; button on a &#x60;UTILITY&#x60; or &#x60;MARKETING&#x60; template. Do not send &#x60;text&#x60; on that button — WhatsApp sets the label (and rejects a custom one). The button also has no send-time parameters: &#x60;POST /sendTemplate&#x60; does not take a button component for it. Inside an open 24-hour window, call &#x60;POST /sendContactInfo&#x60; instead of a template. When the user shares the number, the inbound webhook is a &#x60;contacts&#x60; message with &#x60;origin: contact_request&#x60;. The phone is stored on that BSUID automatically. See &#x60;POST /sendContactInfo&#x60;. &#x60;&#x60;&#x60;json { \&quot;name\&quot;: \&quot;request_phone\&quot;, \&quot;category\&quot;: \&quot;UTILITY\&quot;, \&quot;language\&quot;: \&quot;en_US\&quot;, \&quot;components\&quot;: [ { \&quot;type\&quot;: \&quot;BODY\&quot;, \&quot;text\&quot;: \&quot;Please share your phone number so we can continue.\&quot; }, { \&quot;type\&quot;: \&quot;BUTTONS\&quot;, \&quot;buttons\&quot;: [{ \&quot;type\&quot;: \&quot;REQUEST_CONTACT_INFO\&quot; }] } ] } &#x60;&#x60;&#x60;
37
38
  # @param token JWT token or API key for authorization
38
39
  # @param [Hash] opts the optional parameters
39
40
  # @option opts [AddTemplateRequest] :add_template_request
40
- # @return [Hash<String, Object>]
41
+ # @return [AddTemplate200Response]
41
42
  describe 'add_template test' do
42
43
  it 'should work' do
43
44
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -46,8 +47,12 @@ describe 'TemplatesApi' do
46
47
 
47
48
  # unit tests for list_templates
48
49
  # Get templates list
50
+ # List message templates. Paginate with &#x60;limit&#x60; / &#x60;offset&#x60;; sort by &#x60;id&#x60;, &#x60;name&#x60;, or &#x60;status&#x60;.
49
51
  # @param token JWT token or API key for authorization
50
52
  # @param [Hash] opts the optional parameters
53
+ # @option opts [Integer] :limit
54
+ # @option opts [Integer] :offset
55
+ # @option opts [String] :sort Sort field (&#x60;id&#x60;, &#x60;name&#x60;, or &#x60;status&#x60;)
51
56
  # @return [ListTemplates200Response]
52
57
  describe 'list_templates test' do
53
58
  it 'should work' do
@@ -57,9 +62,10 @@ describe 'TemplatesApi' do
57
62
 
58
63
  # unit tests for remove_template
59
64
  # Remove message template
65
+ # Delete a message template by &#x60;name&#x60; (all language versions of that name).
60
66
  # @param token JWT token or API key for authorization
67
+ # @param remove_template_request
61
68
  # @param [Hash] opts the optional parameters
62
- # @option opts [Hash<String, Object>] :request_body
63
69
  # @return [Hash<String, Object>]
64
70
  describe 'remove_template test' do
65
71
  it 'should work' do
@@ -69,7 +75,7 @@ describe 'TemplatesApi' do
69
75
 
70
76
  # unit tests for send_template
71
77
  # Send Template Message
72
- # Send a WhatsApp template message (works outside the 24-hour session window). Supported &#x60;params&#x60; button &#x60;sub_type&#x60; values include: &#x60;url&#x60;, &#x60;quick_reply&#x60;, &#x60;copy_code&#x60; / &#x60;coupon_code&#x60;, &#x60;catalog&#x60;, &#x60;flow&#x60;, &#x60;limited_time_offer&#x60;, and **&#x60;order_details&#x60;** (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: &#x60;&#x60;&#x60;json { \&quot;type\&quot;: \&quot;button\&quot;, \&quot;sub_type\&quot;: \&quot;order_details\&quot;, \&quot;index\&quot;: 0, \&quot;parameters\&quot;: [{ \&quot;type\&quot;: \&quot;action\&quot;, \&quot;action\&quot;: { \&quot;order_details\&quot;: { \&quot;reference_id\&quot;: \&quot;...\&quot;, \&quot;currency\&quot;: \&quot;INR\&quot;, \&quot;order\&quot;: {} } } }] } &#x60;&#x60;&#x60; Convenience wrapper with structured fields: &#x60;POST /sendOrderDetails&#x60;.
78
+ # Send a WhatsApp **template** message (works outside the 24-hour session window). Use this tool — not &#x60;send_message&#x60; — when the 24h session is closed. &#x60;params&#x60; MUST be Cloud API **component objects**, never a flat list of strings and never the old On-Prem &#x60;hsm&#x60; / &#x60;localizable_params&#x60; format. Example body variable &#x60;{{1}}&#x60;: &#x60;&#x60;&#x60;json { \&quot;type\&quot;: \&quot;body\&quot;, \&quot;parameters\&quot;: [{ \&quot;type\&quot;: \&quot;text\&quot;, \&quot;text\&quot;: \&quot;Ivan\&quot; }] } &#x60;&#x60;&#x60; Do not send &#x60;\&quot;type\&quot;: \&quot;hsm\&quot;&#x60; and do not send &#x60;params: [\&quot;Ivan\&quot;, \&quot;123\&quot;]&#x60;. Supported &#x60;params&#x60; button &#x60;sub_type&#x60; values include: &#x60;url&#x60;, &#x60;quick_reply&#x60;, &#x60;copy_code&#x60; / &#x60;coupon_code&#x60;, &#x60;catalog&#x60;, &#x60;flow&#x60;, &#x60;limited_time_offer&#x60;, and **&#x60;order_details&#x60;** (WhatsApp Payments **India only** — requires an approved Utility template with an ORDER_DETAILS button). Convenience wrapper with structured fields: &#x60;POST /sendOrderDetails&#x60;. Authentication OTP templates (category &#x60;AUTHENTICATION&#x60;, or a template with an OTP / copy-code button) can only be sent to a phone number (&#x60;phone&#x60; or a phone &#x60;chatId&#x60;). Meta rejects a BSUID &#x60;recipient&#x60; 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 &#x60;REQUEST_CONTACT_INFO&#x60; button (UTILITY or MARKETING only) has no send-time parameters. Do not add a button component for it in &#x60;params&#x60;, and do not send button text — WhatsApp sets that label on the template. Create the button with &#x60;POST /addTemplate&#x60; as &#x60;{ \&quot;type\&quot;: \&quot;REQUEST_CONTACT_INFO\&quot; }&#x60; with no &#x60;text&#x60;. Inside an open 24-hour window, &#x60;POST /sendContactInfo&#x60; asks for the number without a template.
73
79
  # @param token JWT token or API key for authorization
74
80
  # @param [Hash] opts the optional parameters
75
81
  # @option opts [SendTemplateRequest] :send_template_request
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #1MSG WhatsApp Business API (Public)
3
3
 
4
- #Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** All requests require `token` query parameter with JWT or API key. **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
4
+ #Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** Pass the channel token in **one** place. The API checks JSON body (`token`), then query string (`?token=`), then `Authorization: Bearer` header (preferred in production). **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document: 2.0.0
7
7
  Contact: support@1msg.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #1MSG WhatsApp Business API (Public)
3
3
 
4
- #Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** All requests require `token` query parameter with JWT or API key. **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
4
+ #Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** Pass the channel token in **one** place. The API checks JSON body (`token`), then query string (`?token=`), then `Authorization: Bearer` header (preferred in production). **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document: 2.0.0
7
7
  Contact: support@1msg.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -34,7 +34,7 @@ describe 'WebhooksApi' do
34
34
 
35
35
  # unit tests for get_webhook
36
36
  # Get webhook URL
37
- # Returns the configured client webhook URL for this channel.
37
+ # Return the webhook URL(s) currently configured for this channel, plus delivery status for each URL. &#x60;webhookUrl&#x60; is a string when a single URL is set, an array of strings when multiple URLs are configured, or &#x60;null&#x60; if none is set. **Prefer &#x60;webhookStatuses&#x60;.** 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 &#x60;haveDisabledWebhooks&#x60;, &#x60;circuitState&#x60;, &#x60;reason&#x60;, &#x60;fails&#x60;, &#x60;trips&#x60;, and timestamps are a compatibility summary of **one** URL (the first sticky-disabled URL, else the first configured URL). They are not \&quot;the channel is dead\&quot;. - &#x60;haveDisabledWebhooks&#x60; — &#x60;true&#x60; when **at least one** URL in &#x60;webhookUrl&#x60; is sticky auto-disabled. Live URLs still get events. - &#x60;circuitState&#x60; — compressed scalar for that same primary URL: &#x60;ok&#x60; | &#x60;degraded&#x60; | &#x60;open&#x60; | &#x60;half_open&#x60; | &#x60;disabled&#x60;. - &#x60;disabledWebhooks&#x60; — currently configured URLs that are sticky-disabled (subset of &#x60;webhookUrl&#x60;). - &#x60;webhookStatuses&#x60; — one row per currently configured URL. Use this array to see which endpoints are live vs skipped. - &#x60;fails&#x60; / &#x60;trips&#x60; / &#x60;firstFailAt&#x60; — **diagnostics for support**, not product UI. &#x60;fails&#x60; &#x3D; failures in a rolling ~10 minute window (not lifetime). &#x60;trips&#x60; &#x3D; failed recovery probes on the 15 min → 1 h → 6 h schedule (sticky disable after 3). Clients can ignore these and use &#x60;webhookStatuses&#x60; + &#x60;disabledWebhooks&#x60; only. Sticky disable skips delivery; it does not unconfigure the URL (it stays in &#x60;webhookUrl&#x60;). Re-enable with &#x60;POST /webhook&#x60; or &#x60;POST /settings&#x60;. Those endpoints **replace** the whole list — with multiple URLs, send the full array.
38
38
  # @param token JWT token or API key for authorization
39
39
  # @param [Hash] opts the optional parameters
40
40
  # @return [GetWebhook200Response]
@@ -46,11 +46,11 @@ describe 'WebhooksApi' do
46
46
 
47
47
  # unit tests for set_webhook
48
48
  # Set webhook URL
49
- # Configure the client webhook URL for inbound events. WhatsApp **Calling** events (&#x60;field&#x3D;calls&#x60;) are forwarded as passthrough payloads with &#x60;type: \&quot;calls\&quot;&#x60; and &#x60;instanceId&#x60; (connect / status / terminate). Call permission replies arrive on the normal messages path (&#x60;call_permission_reply&#x60;). Details: **Calling** tag.
49
+ # 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 &#x60;webhookUrl&#x60; (max 5) or use &#x60;POST /settings&#x60;. 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 (&#x60;type: \&quot;calls\&quot;&#x60;) are documented under the **Calling** tag. Call permission replies arrive on the normal messages path (&#x60;call_permission_reply&#x60;). Repeating &#x60;POST /webhook&#x60; with the same URL(s) clears an auto-disable (self-serve re-enable). Send/receive are not affected by webhook auto-disable.
50
50
  # @param token JWT token or API key for authorization
51
+ # @param set_webhook_request
51
52
  # @param [Hash] opts the optional parameters
52
- # @option opts [GetWebhook200Response] :get_webhook200_response
53
- # @return [Hash<String, Object>]
53
+ # @return [SetWebhook200Response]
54
54
  describe 'set_webhook test' do
55
55
  it 'should work' do
56
56
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -0,0 +1,36 @@
1
+ =begin
2
+ #1MSG WhatsApp Business API (Public)
3
+
4
+ #Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** Pass the channel token in **one** place. The API checks JSON body (`token`), then query string (`?token=`), then `Authorization: Bearer` header (preferred in production). **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+ Contact: support@1msg.io
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.22.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for OneMsgSdk::AddTemplate200Response
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe OneMsgSdk::AddTemplate200Response do
21
+ #let(:instance) { OneMsgSdk::AddTemplate200Response.new }
22
+
23
+ describe 'test an instance of AddTemplate200Response' do
24
+ it 'should create an instance of AddTemplate200Response' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(OneMsgSdk::AddTemplate200Response)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "response"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ end
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #1MSG WhatsApp Business API (Public)
3
3
 
4
- #Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** All requests require `token` query parameter with JWT or API key. **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
4
+ #Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** Pass the channel token in **one** place. The API checks JSON body (`token`), then query string (`?token=`), then `Authorization: Bearer` header (preferred in production). **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document: 2.0.0
7
7
  Contact: support@1msg.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #1MSG WhatsApp Business API (Public)
3
3
 
4
- #Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** All requests require `token` query parameter with JWT or API key. **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
4
+ #Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** Pass the channel token in **one** place. The API checks JSON body (`token`), then query string (`?token=`), then `Authorization: Bearer` header (preferred in production). **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document: 2.0.0
7
7
  Contact: support@1msg.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #1MSG WhatsApp Business API (Public)
3
3
 
4
- #Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** All requests require `token` query parameter with JWT or API key. **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
4
+ #Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** Pass the channel token in **one** place. The API checks JSON body (`token`), then query string (`?token=`), then `Authorization: Bearer` header (preferred in production). **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document: 2.0.0
7
7
  Contact: support@1msg.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #1MSG WhatsApp Business API (Public)
3
3
 
4
- #Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** All requests require `token` query parameter with JWT or API key. **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
4
+ #Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** Pass the channel token in **one** place. The API checks JSON body (`token`), then query string (`?token=`), then `Authorization: Bearer` header (preferred in production). **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document: 2.0.0
7
7
  Contact: support@1msg.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #1MSG WhatsApp Business API (Public)
3
3
 
4
- #Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** All requests require `token` query parameter with JWT or API key. **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
4
+ #Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** Pass the channel token in **one** place. The API checks JSON body (`token`), then query string (`?token=`), then `Authorization: Bearer` header (preferred in production). **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document: 2.0.0
7
7
  Contact: support@1msg.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #1MSG WhatsApp Business API (Public)
3
3
 
4
- #Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** All requests require `token` query parameter with JWT or API key. **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
4
+ #Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** Pass the channel token in **one** place. The API checks JSON body (`token`), then query string (`?token=`), then `Authorization: Bearer` header (preferred in production). **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document: 2.0.0
7
7
  Contact: support@1msg.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0