{"info":{"_postman_id":"965e0117-4a1f-40b2-878b-a84a001e0003","name":"API Docs","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"8538142","collectionId":"965e0117-4a1f-40b2-878b-a84a001e0003","publishedId":"2s9Ykn8gvj","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-12-16T17:28:41.000Z"},"item":[{"name":"Auth","item":[{"name":"Login","id":"2e3193bd-6f56-45b7-b16f-82014268968a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"daniel@mobidonia.com","type":"text"},{"key":"password","value":"secret","type":"text"}]},"url":"{{api_endpoint}}api/login","urlObject":{"path":["login"],"host":["{{api_endpoint}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"2e3193bd-6f56-45b7-b16f-82014268968a"},{"name":"Me","id":"41216578-a863-4112-b28a-b1f8a48c5a76","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{api_endpoint}}api/wpbox/me?token={{token}}","description":"<p>This endpoint makes an HTTP GET request to retrieve templates from the API. It requires a token parameter in the query string for authentication.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li>Method: GET</li>\n<li>Endpoint: {{api_endpoint}}api/wpbox/getTemplates</li>\n<li>Query Parameters:<ul>\n<li>token (string, required): The authentication token.</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li><p>Status: 200 OK</p>\n</li>\n<li><p>Body:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">      {\n        \"status\": \"\",\n        \"templates\": [\n          {\n            \"id\": 0,\n            \"name\": \"\",\n            \"status\": \"\",\n            \"category\": \"\",\n            \"language\": \"\",\n            \"components\": \"\",\n            \"company_id\": 0,\n            \"created_at\": \"\",\n            \"updated_at\": \"\"\n          }\n        ]\n      }\n\n</code></pre>\n</li>\n</ul>\n<p>The response contains a status field and an array of templates, each with an ID, name, status, category, language, components, company ID, creation timestamp, and last update timestamp.</p>\n","urlObject":{"path":["wpbox","me"],"host":["{{api_endpoint}}api"],"query":[{"key":"token","value":"{{token}}"}],"variable":[]}},"response":[],"_postman_id":"41216578-a863-4112-b28a-b1f8a48c5a76"}],"id":"eb8cff72-bc2a-4304-95da-89e694830b7c","_postman_id":"eb8cff72-bc2a-4304-95da-89e694830b7c","description":""},{"name":"Templates","item":[{"name":"SendTemplateMessage","id":"c325faed-b823-4212-bd4e-c6d833c1672f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"token\":\"{{token}}\",\n    \"phone\":\"{{phone}}\",\n    \"template_name\":\"{{template_name}}\",\n    \"template_language\":\"{{template_language}}\",\n    \"components\":[\n        {\n        \"type\": \"header\",\n        \"parameters\": [\n          {\n            \"type\": \"document\",\n            \"document\": {\n              \"link\": \"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf\"\n            }\n          }\n        ]\n      },{\n            \"type\": \"body\",\n            \"parameters\": [\n            {\n                \"type\": \"text\",\n                \"text\": \"Daniel\"\n            },\n            {\n                \"type\": \"text\",\n                \"text\": \"May\"\n            },\n            {\n                \"type\": \"text\",\n                \"text\": \"203\"\n            }        \n            ]\n      }\n      \n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{api_endpoint}}api/wpbox/sendtemplatemessage","description":"<p>This endpoint allows you to send a template message to WhatsApp phone number</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><p>token (text, required): The token for authentication.</p>\n</li>\n<li><p>phone (text, required): The phone number of the recipient.s</p>\n</li>\n<li><p>template_name (text, required): The name of the template to be used.</p>\n</li>\n<li><p>template_language (text, required): The language of the template to be used.</p>\n</li>\n<li><p>components (array, required): An array of message components based on the Facebook WhatsApp API <a href=\"https://developers.facebook.com/docs/whatsapp/cloud-api/guides/send-message-templates\">https://developers.facebook.com/docs/whatsapp/cloud-api/guides/send-message-templates</a></p>\n</li>\n</ul>\n","urlObject":{"path":["wpbox","sendtemplatemessage"],"host":["{{api_endpoint}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"c325faed-b823-4212-bd4e-c6d833c1672f"},{"name":"GetTemplates","id":"f47d71de-251b-49d0-8d6e-068911b9268e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{api_endpoint}}api/wpbox/getTemplates?token={{token}}","description":"<p>This endpoint makes an HTTP GET request to retrieve templates from the API. It requires a token parameter in the query string for authentication.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li>Method: GET</li>\n<li>Endpoint: {{api_endpoint}}api/wpbox/getTemplates</li>\n<li>Query Parameters:<ul>\n<li>token (string, required): The authentication token.</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li><p>Status: 200 OK</p>\n</li>\n<li><p>Body:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">      {\n        \"status\": \"\",\n        \"templates\": [\n          {\n            \"id\": 0,\n            \"name\": \"\",\n            \"status\": \"\",\n            \"category\": \"\",\n            \"language\": \"\",\n            \"components\": \"\",\n            \"company_id\": 0,\n            \"created_at\": \"\",\n            \"updated_at\": \"\"\n          }\n        ]\n      }\n\n</code></pre>\n</li>\n</ul>\n<p>The response contains a status field and an array of templates, each with an ID, name, status, category, language, components, company ID, creation timestamp, and last update timestamp.</p>\n","urlObject":{"path":["wpbox","getTemplates"],"host":["{{api_endpoint}}api"],"query":[{"key":"token","value":"{{token}}"}],"variable":[]}},"response":[],"_postman_id":"f47d71de-251b-49d0-8d6e-068911b9268e"}],"id":"8dcfcb2d-b036-4473-bdac-1c3eb5ac6a9a","_postman_id":"8dcfcb2d-b036-4473-bdac-1c3eb5ac6a9a","description":""},{"name":"Contacts","item":[{"name":"GetGroups","id":"75ff0b2c-f29c-4a58-a2b4-5a630b7af2a6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{api_endpoint}}api/wpbox/getGroups?token={{token}}&showContacts=no","description":"<p>This endpoint makes an HTTP GET request to retrieve groups from the WPBox API. It requires a token parameter in the query string. The parameter showContacts can also be included in the query string with a value of \"no\". The request does not contain a request body.</p>\n<h3 id=\"response\">Response</h3>\n<p>The response to the request has a status code of 200 and returns a JSON object. The object includes a status field and an array of groups, where each group has an id, name, company_id, deleted_at, created_at, and updated_at fields.</p>\n","urlObject":{"path":["wpbox","getGroups"],"host":["{{api_endpoint}}api"],"query":[{"key":"token","value":"{{token}}"},{"key":"showContacts","value":"no"}],"variable":[]}},"response":[],"_postman_id":"75ff0b2c-f29c-4a58-a2b4-5a630b7af2a6"},{"name":"GetContacts","id":"f2d96d0f-f976-49db-bc84-19a7be1c54d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{api_endpoint}}api/wpbox/getContacts?token={{token}}","description":"<h1 id=\"get-contacts\">Get Contacts</h1>\n<p>This endpoint retrieves the list of contacts.</p>\n<h2 id=\"request\">Request</h2>\n<h3 id=\"endpoint\">Endpoint</h3>\n<p><code>GET</code> {{api_endpoint}}api/wpbox/getContacts</p>\n<h3 id=\"query-parameters\">Query Parameters</h3>\n<ul>\n<li><code>token</code> (string, required): The authentication token.</li>\n</ul>\n<h2 id=\"response\">Response</h2>\n<ul>\n<li><code>status</code> (string): The status of the response.</li>\n<li><code>contacts</code> (array): An array of contact objects with the following properties:<ul>\n<li><code>id</code> (integer): The unique identifier of the contact.</li>\n<li><code>name</code> (string): The name of the contact.</li>\n<li><code>phone</code> (string): The phone number of the contact.</li>\n<li><code>avatar</code> (string): The avatar URL of the contact.</li>\n<li><code>country_id</code> (integer): The ID of the country associated with the contact.</li>\n<li><code>company_id</code> (integer): The ID of the company associated with the contact.</li>\n<li><code>deleted_at</code> (string): The date and time when the contact was deleted, if applicable.</li>\n<li><code>created_at</code> (string): The date and time when the contact was created.</li>\n<li><code>updated_at</code> (string): The date and time when the contact was last updated.</li>\n<li><code>last_reply_at</code> (string): The date and time of the last reply from the contact.</li>\n<li><code>last_client_reply_at</code> (string): The date and time of the last reply from the client.</li>\n<li><code>last_support_reply_at</code> (string): The date and time of the last reply from the support team.</li>\n<li><code>last_message</code> (string): The last message sent by the contact.</li>\n<li><code>is_last_message_by_contact</code> (integer): Indicates if the last message was sent by the contact (1) or not (0).</li>\n<li><code>has_chat</code> (integer): Indicates if the contact has an active chat (1) or not (0).</li>\n<li><code>resolved_chat</code> (integer): Indicates if the chat with the contact is resolved (1) or not (0).</li>\n<li><code>user_id</code> (integer): The ID of the user associated with the contact, if applicable.</li>\n<li><code>enabled_ai_bot</code> (integer): Indicates if the AI bot is enabled for the contact (1) or not (0).</li>\n</ul>\n</li>\n</ul>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"status\": \"\",\n    \"contacts\": [\n        {\n            \"id\": 0,\n            \"name\": \"\",\n            \"phone\": \"\",\n            \"avatar\": \"\",\n            \"country_id\": 0,\n            \"company_id\": 0,\n            \"deleted_at\": null,\n            \"created_at\": \"\",\n            \"updated_at\": \"\",\n            \"last_reply_at\": \"\",\n            \"last_client_reply_at\": null,\n            \"last_support_reply_at\": \"\",\n            \"last_message\": \"\",\n            \"is_last_message_by_contact\": 0,\n            \"has_chat\": 0,\n            \"resolved_chat\": 0,\n            \"user_id\": null,\n            \"enabled_ai_bot\": 0\n        }\n    ]\n}\n\n</code></pre>\n","urlObject":{"path":["wpbox","getContacts"],"host":["{{api_endpoint}}api"],"query":[{"key":"token","value":"{{token}}"}],"variable":[]}},"response":[],"_postman_id":"f2d96d0f-f976-49db-bc84-19a7be1c54d8"},{"name":"GetContact","id":"0f259e3c-fa7b-4bcd-853a-f11de22a7f73","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{api_endpoint}}api/wpbox/getSingleContact?token={{token}}&phone={{phone}}&contact_id","description":"<h1 id=\"get-contact\">Get Contact</h1>\n<p>This endpoint retrieves data for single contact</p>\n<h2 id=\"request\">Request</h2>\n<h3 id=\"endpoint\">Endpoint</h3>\n<p><code>GET</code> {{api_endpoint}}api/wpbox/getSingleContact</p>\n<h3 id=\"query-parameters\">Query Parameters</h3>\n<ul>\n<li><p><code>token</code> (string, required): The authentication token.</p>\n</li>\n<li><p>phone ( string, optional if contact_id is there )</p>\n</li>\n<li><p>contact_d ( string, optional if phone_id is there )</p>\n</li>\n</ul>\n<h2 id=\"response\">Response</h2>\n<ul>\n<li><p><code>status</code> (string): The status of the response.</p>\n</li>\n<li><p><code>contact</code> (array): Contact objects with</p>\n</li>\n</ul>\n","urlObject":{"path":["wpbox","getSingleContact"],"host":["{{api_endpoint}}api"],"query":[{"key":"token","value":"{{token}}"},{"key":"phone","value":"{{phone}}"},{"key":"contact_id","value":null}],"variable":[]}},"response":[],"_postman_id":"0f259e3c-fa7b-4bcd-853a-f11de22a7f73"},{"name":"MakeContact","id":"45331033-59d6-4f8e-830e-8c71f8c26d19","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"token\":\"{{token}}\",\n    \"phone\":\"{{phone}}\",\n    \"name\":\"John Doe\",\n    \"groups\":\"Europe,Asia\",\n    \"custom\":{\n        \"email\":\"admin@example.com\",\n        \"location\":\"USA\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{api_endpoint}}api/wpbox/makeContact","description":"<h3 id=\"make-contact\">Make Contact</h3>\n<p>This endpoint allows you to make contact with a user.</p>\n<ul>\n<li>The request should be sent to <code>{{api_endpoint}}api/wpbox/makeContact</code> using the HTTP POST method.</li>\n</ul>\n<h4 id=\"request-body\">Request Body</h4>\n<p>The request body should be in the raw format and include the following parameters:</p>\n<ul>\n<li><p><code>token</code> (string): The token for authentication.</p>\n</li>\n<li><p><code>phone</code> (string): The phone number of the contact.</p>\n</li>\n<li><p><code>name</code> (string): The name of the contact. <em>Optional</em></p>\n</li>\n<li><p><code>groups</code> (string): Comma separated list of groups. <em>Optional</em></p>\n</li>\n<li><p><code>custom</code> (object): The custom fields of the contact. <em>Optional</em></p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li><p>Status: 200 OK</p>\n</li>\n<li><p><code>status</code> (string): The status of the contact request.</p>\n</li>\n<li><p><code>contact</code> (object): Details of the contact including id, name, phone, avatar, country_id, company_id, deleted_at, created_at, updated_at, last_reply_at, last_client_reply_at, last_support_reply_at, last_message, is_last_message_by_contact, has_chat, resolved_chat, user_id, and enabled_ai_bot.</p>\n</li>\n</ul>\n","urlObject":{"path":["wpbox","makeContact"],"host":["{{api_endpoint}}api"],"query":[],"variable":[]}},"response":[{"id":"0ce6b2fb-ba9d-44a9-bd98-714f37341af0","name":"Invalid Token","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"token\":\"{{token}}s\",\n    \"phone\":\"{{phone}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{api_endpoint}}api/wpbox/makeContact"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost"},{"key":"Date","value":"Mon, 25 Dec 2023 10:04:36 GMT"},{"key":"Date","value":"Mon, 25 Dec 2023 10:04:36 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.2.3"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Set-Cookie","value":"XSRF-TOKEN=eyJpdiI6ImhLMk5zU3lidFgvN2FaYzYxeFh1MWc9PSIsInZhbHVlIjoiVEpVeXhQV0FjVG5ERVl4VGtWMS9iYTNuQXZOK09rSnF3L09XbnpESVpDUDdjU1Z2SDMwUjdZTHpSUUs1bVU0SWZjOU1wNGxPMEJ2RHJyalZheW9MTGcwMFpBNXZnWnpIVWszMm9lMHo3eUVmaU1ZZUNuWnhGdUpBZS9FVFlGa0kiLCJtYWMiOiI4YjI2NjkxMDNlNGUzN2U2MDg5NzdmYWI0MGMxZTRmMjFiMDYwZWIzODYyZTI0YTY2MzZkMzkwZjkwNzRhYzE0IiwidGFnIjoiIn0%3D; expires=Mon, 25 Dec 2023 12:04:36 GMT; Max-Age=7200; path=/; samesite=lax"},{"key":"Set-Cookie","value":"site_session=eyJpdiI6Ii8zZ0liYjZSMnUyejBlUThRT0Noa0E9PSIsInZhbHVlIjoiNW9CRXZvczg3bXpsUGVqTmNJdmJXcXNYMDlXcjY2UENneUNzVjF5NzhIbXd3eHNwdXhyZ1VIdC9XYjlGV1BTWC9sWEI0WGpXQ04yZzZQOXJUdEFhOWgwakFRUW41MUZoVEJvKzV1UFlzTXlVRFFobFVXcWkyMDlYNWdIRkZqK0IiLCJtYWMiOiJjZmM0YmY0MDdlOTY2ZGMyOThjZWFjNGQwMzI3M2U4ZDcwYTdiODAwZTg0OTY3Zjg3NDgzMjEzMzQyNmIyNTI3IiwidGFnIjoiIn0%3D; expires=Mon, 25 Dec 2023 12:04:36 GMT; Max-Age=7200; path=/; httponly; samesite=lax"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"message\": \"Invalid token\"\n}"},{"id":"ee6b76ab-d269-4b5d-a8a9-3065efdb90dd","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"token\":\"{{token}}\",\n    \"phone\":\"{{phone}}\",\n    \"name\":\"John Doe\",\n    \"groups\":\"Europe,Asia\",\n    \"custom\":{\n        \"email\":\"admin@example.com\",\n        \"location\":\"USA\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{api_endpoint}}api/wpbox/makeContact"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.25.4"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.2.16"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Fri, 04 Oct 2024 14:34:36 GMT"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Set-Cookie","value":"XSRF-TOKEN=eyJpdiI6IjFvK0N4N1VlNnZUQWVWRXRTd3dXeHc9PSIsInZhbHVlIjoiYzRQWWNpaDJhR1VNTC9URmtiV0RDZUtRczFpbmhMUEFwUVZERzBzLzdHaXpOZDM4R3RBQ0xKMTZtdG5tOHQ1dW5QSCtkeEtQOUFzR1ozdElzWExZNGl2UVFxU0VDakloRG5za1hWemxramZ2c29YREZGc2dRWWlpaEVEcURKYUUiLCJtYWMiOiI4N2M4MDBhNDE0NjU1N2Q3YWQxNzE3NDI2NzhmNDhmMDhmMWJlMDIyNDA3NDFmOTcyMzVjNWEyMTFiYTUyNjAyIiwidGFnIjoiIn0%3D; expires=Fri, 04 Oct 2024 16:34:36 GMT; Max-Age=7200; path=/; secure; samesite=lax"},{"key":"Set-Cookie","value":"wpbox_session=eyJpdiI6IjgzVi8yR2MwdzNJSlYwK3JScC9oR2c9PSIsInZhbHVlIjoiendLVVkybVk3bTJZenVjYVpTUnVabXFqVDNpRmpQUFArL3paekpLNjBQUVIzZjA5eEU5dGpoL1hUTlU0UW1iRURYdHZzbE1SMW4xb3VZL0d4K05raTBkaUZwTlR5Y0J0WXJLNHhVNVVOZWpVZ2I4YWNqWlBhRmgwL2JGVC9pa2UiLCJtYWMiOiIwNjJjNDI1Mzk2ZWQ0YTE1NWUzMjA4YzQ4M2JjMmEzMWIyYTBiMDljYjk5ZWNjZGFhNmI1ZTQ3ZjgzMzU3ZDBjIiwidGFnIjoiIn0%3D; expires=Fri, 04 Oct 2024 16:34:36 GMT; Max-Age=7200; path=/; httponly; samesite=lax"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"contact\": {\n        \"id\": 4,\n        \"name\": \"John Doe\",\n        \"phone\": \"+38671246011\",\n        \"avatar\": null,\n        \"country_id\": 196,\n        \"company_id\": 1,\n        \"deleted_at\": null,\n        \"created_at\": \"2024-10-04T14:30:36.000000Z\",\n        \"updated_at\": \"2024-10-04T14:30:36.000000Z\",\n        \"last_reply_at\": null,\n        \"last_client_reply_at\": null,\n        \"last_support_reply_at\": null,\n        \"last_message\": \"\",\n        \"is_last_message_by_contact\": 0,\n        \"has_chat\": 0,\n        \"resolved_chat\": 0,\n        \"user_id\": null,\n        \"enabled_ai_bot\": 1,\n        \"subscribed\": 1,\n        \"email\": null,\n        \"language\": \"none\",\n        \"groups\": [\n            {\n                \"id\": 4,\n                \"name\": \"Europe\",\n                \"company_id\": 1,\n                \"deleted_at\": null,\n                \"created_at\": \"2024-10-04T14:24:54.000000Z\",\n                \"updated_at\": \"2024-10-04T14:24:54.000000Z\",\n                \"pivot\": {\n                    \"contact_id\": 4,\n                    \"group_id\": 4\n                }\n            },\n            {\n                \"id\": 5,\n                \"name\": \"Asia\",\n                \"company_id\": 1,\n                \"deleted_at\": null,\n                \"created_at\": \"2024-10-04T14:24:54.000000Z\",\n                \"updated_at\": \"2024-10-04T14:24:54.000000Z\",\n                \"pivot\": {\n                    \"contact_id\": 4,\n                    \"group_id\": 5\n                }\n            }\n        ],\n        \"fields\": [\n            {\n                \"id\": 3,\n                \"name\": \"email\",\n                \"type\": \"email\",\n                \"company_id\": 1,\n                \"deleted_at\": null,\n                \"created_at\": \"2024-10-04T14:24:52.000000Z\",\n                \"updated_at\": \"2024-10-04T14:24:52.000000Z\",\n                \"pivot\": {\n                    \"contact_id\": 4,\n                    \"custom_contacts_field_id\": 3,\n                    \"value\": \"admin@example.com\"\n                }\n            },\n            {\n                \"id\": 4,\n                \"name\": \"location\",\n                \"type\": \"text\",\n                \"company_id\": 1,\n                \"deleted_at\": null,\n                \"created_at\": \"2024-10-04T14:30:36.000000Z\",\n                \"updated_at\": \"2024-10-04T14:30:36.000000Z\",\n                \"pivot\": {\n                    \"contact_id\": 4,\n                    \"custom_contacts_field_id\": 4,\n                    \"value\": \"USA\"\n                }\n            }\n        ]\n    }\n}"}],"_postman_id":"45331033-59d6-4f8e-830e-8c71f8c26d19"}],"id":"d013ed4a-13be-4cbd-9619-3b38960d6d68","_postman_id":"d013ed4a-13be-4cbd-9619-3b38960d6d68","description":""},{"name":"Campaigns","item":[{"name":"GetCampaigns","event":[{"listen":"test","script":{"id":"36fc297e-8c2d-43b6-bdbe-d7e74e10817c","exec":["// Test to explain the fields in the response","pm.test(\"Explanation for the fields in the response\", function () {","    var responseJSON = pm.response.json();","","    // Check for the presence of status field","    pm.expect(responseJSON).to.have.property('status').that.is.a('string');","","    // Check for the presence of items field","    pm.expect(responseJSON).to.have.property('items').that.is.an('array');","","    // Check the structure of each group in the items array","    responseJSON.items.forEach((group) => {","        pm.expect(group).to.have.property('id').that.is.a('number');","        pm.expect(group).to.have.property('name').that.is.a('string');","        pm.expect(group).to.have.property('company_id').that.is.a('number');","        pm.expect(group).to.have.property('deleted_at').that.is.a('string');","        pm.expect(group).to.have.property('created_at').that.is.a('string');","        pm.expect(group).to.have.property('updated_at').that.is.a('string');","    });","});"],"type":"text/javascript","packages":{}}}],"id":"ccc6e3ae-90d1-4f6e-b9dd-a0e15f581935","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"{{api_endpoint}}api/wpbox/getCampaigns?token={{token}}&type=api","description":"<p>This endpoint makes an HTTP GET request to retrieve groups from the WPBox API. It requires a token parameter in the query string. The parameter showContacts can also be included in the query string with a value of \"no\". The request does not contain a request body.</p>\n<p>TYPE: bot,api,regular</p>\n<h3 id=\"response\">Response</h3>\n<p>The response to the request has a status code of 200 and returns a JSON object. The object includes a status field and an array of groups, where each group has an id, name, company_id, deleted_at, created_at, and updated_at fields.</p>\n","urlObject":{"path":["wpbox","getCampaigns"],"host":["{{api_endpoint}}api"],"query":[{"key":"token","value":"{{token}}"},{"key":"type","value":"api"}],"variable":[]}},"response":[],"_postman_id":"ccc6e3ae-90d1-4f6e-b9dd-a0e15f581935"},{"name":"SendCampaigns","id":"e3d2db10-7bc4-47aa-a8a9-3592705133da","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"campaing_id\":1,\n    \"token\":\"{{token}}\",\n    \"phone\":\"{{phone}}\",\n    \"data\":{\n        \"reservations\":{\n            \"id\":1232,\n            \"status\":\"confirmed\",\n            \"price\":\"45$\"\n        },\n        \"user\":{\n            \"name\":\"Daniel\",\n            \"id\":12\n        }\n    }\n\n}","options":{"raw":{"language":"json"}}},"url":"{{api_endpoint}}api/wpbox/sendcampaigns","urlObject":{"path":["wpbox","sendcampaigns"],"host":["{{api_endpoint}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"e3d2db10-7bc4-47aa-a8a9-3592705133da"}],"id":"12a58b5b-7102-4348-8402-783bab0c52af","_postman_id":"12a58b5b-7102-4348-8402-783bab0c52af","description":""},{"name":"Messages","item":[{"name":"SendMessage","event":[{"listen":"test","script":{"id":"31453ed3-c16a-4681-86c0-bb9bd8accce6","exec":["","pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response has the required fields\", function () {","  const responseData = pm.response.json();","  ","  pm.expect(responseData).to.be.an('object');","  pm.expect(responseData.status).to.exist;","  pm.expect(responseData.message_id).to.exist;","  pm.expect(responseData.message_wamid).to.exist;","});","","","pm.test(\"Status field must be a non-empty string\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.status).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Status should not be empty\");","});","","","pm.test(\"Message ID is a non-negative integer\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.message_id).to.be.a('number').and.to.satisfy((num) => num >= 0);","});","","","pm.test(\"Message_wamid is a non-empty string\", function () {","  const responseData = pm.response.json();","  ","  pm.expect(responseData.message_wamid).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Message_wamid should not be empty\");","});","",""],"type":"text/javascript","packages":{}}}],"id":"b0cc44d3-3457-4fe9-aac3-1e32e65b8233","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"token\":\"{{token}}\",\n    \"phone\":\"{{phone}}\",\n    \"message\":\"Do you like our service\",\n    \"header\":\"Hello there\",\n    \"footer\":\"Thanks\",\n    \"buttons\":[{\n        \"id\":\"yes_12\",\n        \"title\":\"Yes\"\n    },{\n        \"id\":\"no_12\",\n        \"title\":\"No\"\n    }]\n}","options":{"raw":{"language":"json"}}},"url":"{{api_endpoint}}api/wpbox/sendmessage","description":"<h3 id=\"send-message-to-whatsapp-box\">Send Message to WhatsApp Box</h3>\n<p>This endpoint allows you to send a custom message to a phone number.</p>\n<p>Use this API if you are sure client has responded / send you message in less than 24 hours.</p>\n<hr />\n<p><strong>Request Body</strong></p>\n<ul>\n<li><code>token</code> (string) - The token for authentication.</li>\n<li><code>phone</code> (string) - The phone number of the recipient.</li>\n<li><code>message</code> (string) - The message to be sent</li>\n<li><code>buttons</code> (array) - List of buttons</li>\n<li><code>header</code> (string) - Header - only applied if there are buttons</li>\n<li><code>footer</code> (string) - Header - only applied if there are buttons</li>\n</ul>\n<hr />\n<p><strong>Response</strong></p>\n<ul>\n<li><code>status</code> (string) - The status of the message delivery.</li>\n<li><code>message_id</code> (integer) - The ID of the sent message.</li>\n<li><code>message_wamid</code> (string) - The WhatsApp message ID.</li>\n</ul>\n<p><em>Note: A status code of 200 indicates a successful request.</em></p>\n","urlObject":{"path":["wpbox","sendmessage"],"host":["{{api_endpoint}}api"],"query":[],"variable":[]}},"response":[{"id":"a0add1ff-3c06-4a93-ac86-71d053a12937","name":"Send buttons","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"token\":\"{{token}}\",\n    \"phone\":\"{{phone}}\",\n    \"message\":\"Do you like our service\",\n    \"header\":\"Hello there\",\n    \"footer\":\"Thanks\",\n    \"buttons\":[{\n        \"id\":\"yes_12\",\n        \"title\":\"Yes\"\n    },{\n        \"id\":\"no_12\",\n        \"title\":\"No\"\n    }]\n}","options":{"raw":{"language":"json"}}},"url":"{{api_endpoint}}api/wpbox/sendmessage"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.25.4"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.3.17"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 14 Jul 2025 16:44:39 GMT"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Set-Cookie","value":"XSRF-TOKEN=eyJpdiI6IlZNSS9KcnhqY3g2TTQ3d3lCa2x1aEE9PSIsInZhbHVlIjoiOXYvOFJ4YlF2b1JzSnhpb0lodUVyN3NIemE3MlpCeVdxdDNrdG1EbmtiUUhmcnJNejhza2s3eitaQTZ2NGx4Mk9JOVVlR1dUdmxaWEhacWpHdDF4TGhJUzlIMDdnMXpmdnJKSGN3c2lBZXo2a3IxLzZ5V2FtaEowcHFmMVliL00iLCJtYWMiOiI4YTEwMjFiYWZkNTZjOTYwNjEwYzc5OTYzMzNmNjdiNWI3YzcxZGUyYTlkNzVlNzBkZmRiNGFmZTM5YzBmODhkIiwidGFnIjoiIn0%3D; expires=Mon, 14 Jul 2025 18:44:39 GMT; Max-Age=7200; path=/; secure; samesite=lax"},{"key":"Set-Cookie","value":"wpbox_session=eyJpdiI6Im5MWU90MmR4OW1XTnFJaUYyZnk1cEE9PSIsInZhbHVlIjoidjlJUWVreStRQjQ2QnRnZmZhOGwrbHBvNGh0Z1BmR0FuS0NqdlhkTEdPNDMrWG9UU0s3V3RPM0lzMS94NXVGOHNNTmo1S1lMaFRiUkh1R09PQmVjbGgxWXVISW5YRGJ4dDZzVUk5R3BpR3lQQXI1M0Y1ajBmMjlyVzVWQk9yTlIiLCJtYWMiOiIxZThmN2Q5OGYyNGZmMjQwN2FmZDBkOTE1NDdjNWE3NzlkY2IwZDA2Njg4YzBiOWFiMDg0NGQ2MTY3MjRkZmIzIiwidGFnIjoiIn0%3D; expires=Mon, 14 Jul 2025 18:44:39 GMT; Max-Age=7200; path=/; httponly; samesite=lax"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message_id\": 185,\n    \"message_wamid\": \"wamid.HBgLMzg5NzgyMDM2NzMVAgARGBI4MTkwQkQ4RjY5NDNCOEMwOTIA\"\n}"},{"id":"8f1c5b4b-86b3-41e3-b8d8-eb9f2e7c26a0","name":"Send text message","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"token\":\"{{token}}\",\n    \"phone\":\"{{phone}}\",\n    \"message\":\"Do you like our service?\"\n}","options":{"raw":{"language":"json"}}},"url":"{{api_endpoint}}api/wpbox/sendmessage"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.25.4"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.3.17"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 14 Jul 2025 16:45:46 GMT"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Set-Cookie","value":"XSRF-TOKEN=eyJpdiI6Ik44b1JodkQ3aDlmRmdYRzM0bHk3dkE9PSIsInZhbHVlIjoiVXhSTmxyU1d5NVZ2d0UwbVQ1S1MzbzdLTzBjMGJOSWxIeTU0VFY3dmFpMTliWUdkbHpqS2VHbDdHODYvaTZzQkpBT2NIbXh1Y0R6MDMvL1QzQlRIYXNVckJuMUhrOFNNWnpGQUQzOFdSeldyWllVRFl2QkRzaFlhZitzZDZPa28iLCJtYWMiOiJlYjNiMTY1ZWFiODAxNTJjNTZiZGI0ODk1MDFhMWMxZjQwMjUzOTg4OWEzYWUyZTQzNDQwNDQ0ZDA5OTFkNWQyIiwidGFnIjoiIn0%3D; expires=Mon, 14 Jul 2025 18:45:46 GMT; Max-Age=7200; path=/; secure; samesite=lax"},{"key":"Set-Cookie","value":"wpbox_session=eyJpdiI6IktBS0JJSWRJSDJEaHY0ZW1zUDVjS1E9PSIsInZhbHVlIjoiQTlENVJ4RlhTcEFXaEpMWlNIanBsclZOcmRRMSszS3I0MmZSazRweFk2WFRrY2NKbFhkSmdXajNQK0czSWdrUGVUcjdwbjdsOGtsVnBsTGFRczdJdkRCdWtsRnZxMUZHZDYrdnZDa1pBcmo3ODQ3SXVmZWFIN2RPQS9DbVFUelgiLCJtYWMiOiJkYzlkY2QwNDk5ZThiNDE4MjA1MDM0OTg3ZjkxMjRlZWYwYzdkMzNjNmRhYWVjNjUzYjg4NzhjYmNlNzdlODQ1IiwidGFnIjoiIn0%3D; expires=Mon, 14 Jul 2025 18:45:46 GMT; Max-Age=7200; path=/; httponly; samesite=lax"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message_id\": 187,\n    \"message_wamid\": \"wamid.HBgLMzg5NzgyMDM2NzMVAgARGBIwODgxRDBFRkJEQjBCQUQ4REUA\"\n}"}],"_postman_id":"b0cc44d3-3457-4fe9-aac3-1e32e65b8233"},{"name":"SendListMessage","event":[{"listen":"test","script":{"id":"31453ed3-c16a-4681-86c0-bb9bd8accce6","exec":["","pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response has the required fields\", function () {","  const responseData = pm.response.json();","  ","  pm.expect(responseData).to.be.an('object');","  pm.expect(responseData.status).to.exist;","  pm.expect(responseData.message_id).to.exist;","  pm.expect(responseData.message_wamid).to.exist;","});","","","pm.test(\"Status field must be a non-empty string\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.status).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Status should not be empty\");","});","","","pm.test(\"Message ID is a non-negative integer\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.message_id).to.be.a('number').and.to.satisfy((num) => num >= 0);","});","","","pm.test(\"Message_wamid is a non-empty string\", function () {","  const responseData = pm.response.json();","  ","  pm.expect(responseData.message_wamid).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Message_wamid should not be empty\");","});","",""],"type":"text/javascript","packages":{}}}],"id":"9416b9d0-32bc-4038-b82f-2e310e9b5679","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"token\":\"{{token}}\",\n    \"phone\":\"{{phone}}\",\n    \"message\":\"Do you like our service as list\",\n    \"header\":\"Hello there\",\n    \"footer\":\"Thanks\",\n    \"action\": {\n        \"button\": \"Choose an option\",\n        \"sections\": [\n            {\n                \"title\": \"Feedback Options\",\n                \"rows\": [\n                    {\n                        \"id\": \"positive_feedback\",\n                        \"title\": \"Yes, I love it!\",\n                        \"description\": \"I'm happy with the service.\"\n                    },\n                    {\n                        \"id\": \"neutral_feedback\",\n                        \"title\": \"It's okay\",\n                        \"description\": \"The service is fine, but could be better.\"\n                    }\n                ]\n            },\n            {\n                \"title\": \"More Help\",\n                \"rows\": [\n                    {\n                        \"id\": \"need_support\",\n                        \"title\": \"I need help\",\n                        \"description\": \"I'd like to speak with support.\"\n                    },\n                    {\n                        \"id\": \"feature_request\",\n                        \"title\": \"Suggest a feature\",\n                        \"description\": \"I have an idea for improvement.\"\n                    }\n                ]\n            }\n        ]\n    }\n   \n}","options":{"raw":{"language":"json"}}},"url":"{{api_endpoint}}api/wpbox/sendlistmessage","description":"<h3 id=\"send-message-to-whatsapp-box\">Send Message to WhatsApp Box</h3>\n<p>This endpoint allows you to send a custom message to a phone number.</p>\n<p>Use this API if you are sure client has responded / send you message in less than 24 hours.</p>\n<hr />\n<p><strong>Request Body</strong></p>\n<ul>\n<li><code>token</code> (string) - The token for authentication.</li>\n<li><code>phone</code> (string) - The phone number of the recipient.</li>\n<li><code>message</code> (string) - The message to be sent</li>\n<li><code>buttons</code> (array) - List of buttons</li>\n<li><code>header</code> (string) - Header - only applied if there are buttons</li>\n<li><code>footer</code> (string) - Header - only applied if there are buttons</li>\n</ul>\n<hr />\n<p><strong>Response</strong></p>\n<ul>\n<li><code>status</code> (string) - The status of the message delivery.</li>\n<li><code>message_id</code> (integer) - The ID of the sent message.</li>\n<li><code>message_wamid</code> (string) - The WhatsApp message ID.</li>\n</ul>\n<p><em>Note: A status code of 200 indicates a successful request.</em></p>\n","urlObject":{"path":["wpbox","sendlistmessage"],"host":["{{api_endpoint}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"9416b9d0-32bc-4038-b82f-2e310e9b5679"},{"name":"SendImage Message","event":[{"listen":"test","script":{"id":"31453ed3-c16a-4681-86c0-bb9bd8accce6","exec":["","pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response has the required fields\", function () {","  const responseData = pm.response.json();","  ","  pm.expect(responseData).to.be.an('object');","  pm.expect(responseData.status).to.exist;","  pm.expect(responseData.message_id).to.exist;","  pm.expect(responseData.message_wamid).to.exist;","});","","","pm.test(\"Status field must be a non-empty string\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.status).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Status should not be empty\");","});","","","pm.test(\"Message ID is a non-negative integer\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.message_id).to.be.a('number').and.to.satisfy((num) => num >= 0);","});","","","pm.test(\"Message_wamid is a non-empty string\", function () {","  const responseData = pm.response.json();","  ","  pm.expect(responseData.message_wamid).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Message_wamid should not be empty\");","});","",""],"type":"text/javascript","packages":{}}}],"id":"6e0b5b55-3225-445d-aefb-a44ef8f52b2a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"token","value":"{{token}}","type":"text"},{"key":"phone","value":"{{phone}}","type":"text"},{"key":"image","type":"file","src":"postman-cloud:///1ef4da76-e8ff-44e0-96db-6aa3a3e19c27","disabled":true},{"key":"media_url","value":"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf","type":"text","uuid":"9d5bf618-2340-4dd9-89b5-b2bc546e917c"}]},"url":"{{api_endpoint}}api/wpbox/sendmessage","description":"<h3 id=\"send-message-to-whatsapp-box\">Send Message to WhatsApp Box</h3>\n<p>This endpoint allows you to send a custom message to a phone number.</p>\n<p>Use this API if you are sure client has responded / send you message in less than 24 hours.</p>\n<hr />\n<p><strong>Request Body</strong></p>\n<ul>\n<li><p><code>token</code> (string) - The token for authentication.</p>\n</li>\n<li><p><code>phone</code> (string) - The phone number of the recipient.</p>\n</li>\n<li><p><code>message</code> (string) - The message to be sent</p>\n</li>\n<li><p><code>image</code> (file) - The image to be sent</p>\n</li>\n<li><p><code>buttons</code> (array) - List of buttons</p>\n</li>\n<li><p><code>header</code> (string) - Header - only applied if there are buttons</p>\n</li>\n<li><p><code>footer</code> (string) - Header - only applied if there are buttons</p>\n</li>\n</ul>\n<hr />\n<p><strong>Response</strong></p>\n<ul>\n<li><p><code>status</code> (string) - The status of the message delivery.</p>\n</li>\n<li><p><code>message_id</code> (integer) - The ID of the sent message.</p>\n</li>\n<li><p><code>message_wamid</code> (string) - The WhatsApp message ID.</p>\n</li>\n</ul>\n<p><em>Note: A status code of 200 indicates a successful request.</em></p>\n","urlObject":{"path":["wpbox","sendmessage"],"host":["{{api_endpoint}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"6e0b5b55-3225-445d-aefb-a44ef8f52b2a"},{"name":"GetConversations","event":[{"listen":"test","script":{"id":"31453ed3-c16a-4681-86c0-bb9bd8accce6","exec":["","pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response has the required fields\", function () {","  const responseData = pm.response.json();","  ","  pm.expect(responseData).to.be.an('object');","  pm.expect(responseData.status).to.exist;","  pm.expect(responseData.message_id).to.exist;","  pm.expect(responseData.message_wamid).to.exist;","});","","","pm.test(\"Status field must be a non-empty string\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.status).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Status should not be empty\");","});","","","pm.test(\"Message ID is a non-negative integer\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.message_id).to.be.a('number').and.to.satisfy((num) => num >= 0);","});","","","pm.test(\"Message_wamid is a non-empty string\", function () {","  const responseData = pm.response.json();","  ","  pm.expect(responseData.message_wamid).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Message_wamid should not be empty\");","});","",""],"type":"text/javascript","packages":{}}}],"id":"5fad9d37-d331-490e-be55-d38f43e75219","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"token\":\"{{token}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{api_endpoint}}api/wpbox/getConversations/none?mobile_api=true","description":"<h3 id=\"send-message-to-whatsapp-box\">Send Message to WhatsApp Box</h3>\n<p>This endpoint allows you to send a custom message to a phone number.</p>\n<p>Use this API if you are sure client has responded / send you message in less than 24 hours.</p>\n<hr />\n<p><strong>Request Body</strong></p>\n<ul>\n<li><code>token</code> (string) - The token for authentication.</li>\n<li><code>phone</code> (string) - The phone number of the recipient.</li>\n<li><code>message</code> (string) - The message to be sent</li>\n<li><code>buttons</code> (array) - List of buttons</li>\n<li><code>header</code> (string) - Header - only applied if there are buttons</li>\n<li><code>footer</code> (string) - Header - only applied if there are buttons</li>\n</ul>\n<hr />\n<p><strong>Response</strong></p>\n<ul>\n<li><code>status</code> (string) - The status of the message delivery.</li>\n<li><code>message_id</code> (integer) - The ID of the sent message.</li>\n<li><code>message_wamid</code> (string) - The WhatsApp message ID.</li>\n</ul>\n<p><em>Note: A status code of 200 indicates a successful request.</em></p>\n","urlObject":{"path":["wpbox","getConversations","none"],"host":["{{api_endpoint}}api"],"query":[{"key":"mobile_api","value":"true"}],"variable":[]}},"response":[],"_postman_id":"5fad9d37-d331-490e-be55-d38f43e75219"},{"name":"GetMessages","event":[{"listen":"test","script":{"id":"31453ed3-c16a-4681-86c0-bb9bd8accce6","exec":["","pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response has the required fields\", function () {","  const responseData = pm.response.json();","  ","  pm.expect(responseData).to.be.an('object');","  pm.expect(responseData.status).to.exist;","  pm.expect(responseData.message_id).to.exist;","  pm.expect(responseData.message_wamid).to.exist;","});","","","pm.test(\"Status field must be a non-empty string\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.status).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Status should not be empty\");","});","","","pm.test(\"Message ID is a non-negative integer\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.message_id).to.be.a('number').and.to.satisfy((num) => num >= 0);","});","","","pm.test(\"Message_wamid is a non-empty string\", function () {","  const responseData = pm.response.json();","  ","  pm.expect(responseData.message_wamid).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Message_wamid should not be empty\");","});","",""],"type":"text/javascript","packages":{}}}],"id":"ee6ad9f6-18ad-4e0d-b95b-19ee6a2f7e8b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"token\":\"{{token}}\",\n    \"contact_id\":1\n}","options":{"raw":{"language":"json"}}},"url":"{{api_endpoint}}api/wpbox/getMessages","description":"<h3 id=\"send-message-to-whatsapp-box\">Send Message to WhatsApp Box</h3>\n<p>This endpoint allows you to send a custom message to a phone number.</p>\n<p>Use this API if you are sure client has responded / send you message in less than 24 hours.</p>\n<hr />\n<p><strong>Request Body</strong></p>\n<ul>\n<li><code>token</code> (string) - The token for authentication.</li>\n<li><code>phone</code> (string) - The phone number of the recipient.</li>\n<li><code>message</code> (string) - The message to be sent</li>\n<li><code>buttons</code> (array) - List of buttons</li>\n<li><code>header</code> (string) - Header - only applied if there are buttons</li>\n<li><code>footer</code> (string) - Header - only applied if there are buttons</li>\n</ul>\n<hr />\n<p><strong>Response</strong></p>\n<ul>\n<li><code>status</code> (string) - The status of the message delivery.</li>\n<li><code>message_id</code> (integer) - The ID of the sent message.</li>\n<li><code>message_wamid</code> (string) - The WhatsApp message ID.</li>\n</ul>\n<p><em>Note: A status code of 200 indicates a successful request.</em></p>\n","urlObject":{"path":["wpbox","getMessages"],"host":["{{api_endpoint}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"ee6ad9f6-18ad-4e0d-b95b-19ee6a2f7e8b"},{"name":"SendMessagesViaContact","event":[{"listen":"test","script":{"id":"31453ed3-c16a-4681-86c0-bb9bd8accce6","exec":["","pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response has the required fields\", function () {","  const responseData = pm.response.json();","  ","  pm.expect(responseData).to.be.an('object');","  pm.expect(responseData.status).to.exist;","  pm.expect(responseData.message_id).to.exist;","  pm.expect(responseData.message_wamid).to.exist;","});","","","pm.test(\"Status field must be a non-empty string\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.status).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Status should not be empty\");","});","","","pm.test(\"Message ID is a non-negative integer\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.message_id).to.be.a('number').and.to.satisfy((num) => num >= 0);","});","","","pm.test(\"Message_wamid is a non-empty string\", function () {","  const responseData = pm.response.json();","  ","  pm.expect(responseData.message_wamid).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Message_wamid should not be empty\");","});","",""],"type":"text/javascript","packages":{}}}],"id":"9c1748b6-ca5f-4626-be2e-3b95241dea57","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"token\":\"{{token}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{api_endpoint}}api/wpbox/sendMessagesViaContact","description":"<h3 id=\"send-message-to-whatsapp-box\">Send Message to WhatsApp Box</h3>\n<p>This endpoint allows you to send a custom message to a phone number.</p>\n<p>Use this API if you are sure client has responded / send you message in less than 24 hours.</p>\n<hr />\n<p><strong>Request Body</strong></p>\n<ul>\n<li><code>token</code> (string) - The token for authentication.</li>\n<li><code>phone</code> (string) - The phone number of the recipient.</li>\n<li><code>message</code> (string) - The message to be sent</li>\n<li><code>buttons</code> (array) - List of buttons</li>\n<li><code>header</code> (string) - Header - only applied if there are buttons</li>\n<li><code>footer</code> (string) - Header - only applied if there are buttons</li>\n</ul>\n<hr />\n<p><strong>Response</strong></p>\n<ul>\n<li><code>status</code> (string) - The status of the message delivery.</li>\n<li><code>message_id</code> (integer) - The ID of the sent message.</li>\n<li><code>message_wamid</code> (string) - The WhatsApp message ID.</li>\n</ul>\n<p><em>Note: A status code of 200 indicates a successful request.</em></p>\n","urlObject":{"path":["wpbox","sendMessagesViaContact"],"host":["{{api_endpoint}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"9c1748b6-ca5f-4626-be2e-3b95241dea57"}],"id":"ba007210-cd3e-40a1-8d35-cd98e77770fb","_postman_id":"ba007210-cd3e-40a1-8d35-cd98e77770fb","description":""},{"name":"Reservations","item":[{"name":"MakeReservation","id":"99fe75d7-b216-4873-813a-88bcee20ed2e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"token\":\"{{token}}\",\n    \"phone\":\"{{phone}}\",\n    \"name\":\"Daniel\",\n    \"source\":\"web\",\n    \"start_date\":\"2024-09-20 00:42:00\",\n    \"end_date\":\"2024-09-30 00:42:00\",\n    \"format\":\"Y-m-d H:i:s\",\n    \"external_id\":\"12\"\n}","options":{"raw":{"language":"json"}}},"url":"{{api_endpoint}}api/reminders/reservation/makeReservation","description":"<h3 id=\"make-contact\">Make Contact</h3>\n<p>This endpoint allows you to make contact with a user.</p>\n<ul>\n<li>The request should be sent to <code>{{api_endpoint}}api/wpbox/makeContact</code> using the HTTP POST method.</li>\n</ul>\n<h4 id=\"request-body\">Request Body</h4>\n<p>The request body should be in the raw format and include the following parameters:</p>\n<ul>\n<li><code>token</code> (string): The token for authentication.</li>\n<li><code>phone</code> (string): The phone number of the contact.</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li>Status: 200 OK</li>\n<li><code>status</code> (string): The status of the contact request.</li>\n<li><code>contact</code> (object): Details of the contact including id, name, phone, avatar, country_id, company_id, deleted_at, created_at, updated_at, last_reply_at, last_client_reply_at, last_support_reply_at, last_message, is_last_message_by_contact, has_chat, resolved_chat, user_id, and enabled_ai_bot.</li>\n</ul>\n","urlObject":{"path":["reminders","reservation","makeReservation"],"host":["{{api_endpoint}}api"],"query":[],"variable":[]}},"response":[{"id":"fc3324ff-a1f0-4d77-a5f1-127d219b0f73","name":"SendMessage Example","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"token\":\"{{token}}\",\n    \"phone\":\"{{phone}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{api_endpoint}}api/wpbox/makeContact"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost"},{"key":"Date","value":"Mon, 25 Dec 2023 10:02:06 GMT"},{"key":"Date","value":"Mon, 25 Dec 2023 10:02:06 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.2.3"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Set-Cookie","value":"XSRF-TOKEN=eyJpdiI6Img2eHlkaGhTVDY1d3RQSmE5R0Y3VVE9PSIsInZhbHVlIjoiK0JCWWxhdlZFM2U5aEVEeWxndTNSNFEvNlYzR0VsdmlIVmIvdHpjaEtyWWlOOUF0SHRpY2p1enRwZmYyZ1N4eFZ4OTFMdDVnZzBZVzdWQm1ZRkRrMDlIbVVJTzA3SlF5MzRZS1RSdnVseXpuZlV2OUtscElSa2ZyTmRKOE9lK2ciLCJtYWMiOiI5OWY0YzkxODEzOTIwYjdkNmRhODQxZWVlNDU0ZmUwNjY1ZDIzMmVjYTExNTU0ZDkzYzBlMjFlMzQ4ZDAwMDQyIiwidGFnIjoiIn0%3D; expires=Mon, 25 Dec 2023 12:02:06 GMT; Max-Age=7200; path=/; samesite=lax"},{"key":"Set-Cookie","value":"site_session=eyJpdiI6IjdBZW1PaTJ2QUcvN2s0QU5ydWRpeXc9PSIsInZhbHVlIjoiR3VyZkVpL3FSb1k1d1NYejhzN1V4NVMwOVNUWS9ROXBpalIvRHVzR0pqSmhuWXBUdHRvS29CdEdRODd6Y09Vb29sU0ZJQU8wVE1mOC8vcFg4Ym0zMm1lRXR2a1pKN2QxTkhKR00rZ1B2TUxKL1VmWE5GVVI2dGZyYzh5dGhOVlIiLCJtYWMiOiJjOGNjZjJiNjAyNjA1ZDcwMDJkNmM1MWQ5YjAwODRlMjA4ZmU5Y2QwMDZiMzBjMTVlMjE1MTQ1MWE0MTc3YjdjIiwidGFnIjoiIn0%3D; expires=Mon, 25 Dec 2023 12:02:06 GMT; Max-Age=7200; path=/; httponly; samesite=lax"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"contact\": {\n        \"id\": 1,\n        \"name\": \"Daniel Dimov\",\n        \"phone\": \"+38978203673\",\n        \"avatar\": \"https://secure.gravatar.com/avatar/e2909c35cdbad84bf2b6059fe7eab2444cd6bd9fbf8af59918a1d0f4901c8ad2?s=128\",\n        \"country_id\": 124,\n        \"company_id\": 1,\n        \"deleted_at\": null,\n        \"created_at\": \"2023-12-25T08:42:08.000000Z\",\n        \"updated_at\": \"2023-12-25T08:42:08.000000Z\",\n        \"last_reply_at\": \"2023-12-25 09:42:08\",\n        \"last_client_reply_at\": null,\n        \"last_support_reply_at\": \"2023-12-25 09:42:08\",\n        \"last_message\": \"Sure, you can visit us from 09AM - 08PM\",\n        \"is_last_message_by_contact\": 0,\n        \"has_chat\": 1,\n        \"resolved_chat\": 0,\n        \"user_id\": null,\n        \"enabled_ai_bot\": 1\n    }\n}"},{"id":"28e8b966-6f7e-44df-b53f-74bae45a320d","name":"Invalid Token","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"token\":\"{{token}}s\",\n    \"phone\":\"{{phone}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{api_endpoint}}api/wpbox/makeContact"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost"},{"key":"Date","value":"Mon, 25 Dec 2023 10:04:36 GMT"},{"key":"Date","value":"Mon, 25 Dec 2023 10:04:36 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.2.3"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Set-Cookie","value":"XSRF-TOKEN=eyJpdiI6ImhLMk5zU3lidFgvN2FaYzYxeFh1MWc9PSIsInZhbHVlIjoiVEpVeXhQV0FjVG5ERVl4VGtWMS9iYTNuQXZOK09rSnF3L09XbnpESVpDUDdjU1Z2SDMwUjdZTHpSUUs1bVU0SWZjOU1wNGxPMEJ2RHJyalZheW9MTGcwMFpBNXZnWnpIVWszMm9lMHo3eUVmaU1ZZUNuWnhGdUpBZS9FVFlGa0kiLCJtYWMiOiI4YjI2NjkxMDNlNGUzN2U2MDg5NzdmYWI0MGMxZTRmMjFiMDYwZWIzODYyZTI0YTY2MzZkMzkwZjkwNzRhYzE0IiwidGFnIjoiIn0%3D; expires=Mon, 25 Dec 2023 12:04:36 GMT; Max-Age=7200; path=/; samesite=lax"},{"key":"Set-Cookie","value":"site_session=eyJpdiI6Ii8zZ0liYjZSMnUyejBlUThRT0Noa0E9PSIsInZhbHVlIjoiNW9CRXZvczg3bXpsUGVqTmNJdmJXcXNYMDlXcjY2UENneUNzVjF5NzhIbXd3eHNwdXhyZ1VIdC9XYjlGV1BTWC9sWEI0WGpXQ04yZzZQOXJUdEFhOWgwakFRUW41MUZoVEJvKzV1UFlzTXlVRFFobFVXcWkyMDlYNWdIRkZqK0IiLCJtYWMiOiJjZmM0YmY0MDdlOTY2ZGMyOThjZWFjNGQwMzI3M2U4ZDcwYTdiODAwZTg0OTY3Zjg3NDgzMjEzMzQyNmIyNTI3IiwidGFnIjoiIn0%3D; expires=Mon, 25 Dec 2023 12:04:36 GMT; Max-Age=7200; path=/; httponly; samesite=lax"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"message\": \"Invalid token\"\n}"}],"_postman_id":"99fe75d7-b216-4873-813a-88bcee20ed2e"}],"id":"23e9e689-2057-4bed-a514-ad09abbf3817","_postman_id":"23e9e689-2057-4bed-a514-ad09abbf3817","description":""},{"name":"Blog","item":[{"name":"New Request","id":"10dc054b-22a3-49a8-bd76-fc5dfbabca4d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"10dc054b-22a3-49a8-bd76-fc5dfbabca4d"}],"id":"4b74d7c7-fe45-4407-989a-30731998d088","_postman_id":"4b74d7c7-fe45-4407-989a-30731998d088","description":""},{"name":"Loyalty","item":[{"name":"Me","id":"f623f4f6-accd-46bb-ad71-57221aaff6a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{api_endpoint}}api/v2/loyalty/me?token={{token}}","description":"<p>This endpoint makes an HTTP GET request to retrieve templates from the API. It requires a token parameter in the query string for authentication.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li>Method: GET</li>\n<li>Endpoint: {{api_endpoint}}api/wpbox/getTemplates</li>\n<li>Query Parameters:<ul>\n<li>token (string, required): The authentication token.</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li><p>Status: 200 OK</p>\n</li>\n<li><p>Body:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">      {\n        \"status\": \"\",\n        \"templates\": [\n          {\n            \"id\": 0,\n            \"name\": \"\",\n            \"status\": \"\",\n            \"category\": \"\",\n            \"language\": \"\",\n            \"components\": \"\",\n            \"company_id\": 0,\n            \"created_at\": \"\",\n            \"updated_at\": \"\"\n          }\n        ]\n      }\n\n</code></pre>\n</li>\n</ul>\n<p>The response contains a status field and an array of templates, each with an ID, name, status, category, language, components, company ID, creation timestamp, and last update timestamp.</p>\n","urlObject":{"path":["v2","loyalty","me"],"host":["{{api_endpoint}}api"],"query":[{"key":"token","value":"{{token}}"}],"variable":[]}},"response":[],"_postman_id":"f623f4f6-accd-46bb-ad71-57221aaff6a8"},{"name":"My Cards","id":"e53f1a4a-e641-4b06-b9de-6b3664346f1b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"token\":{{token}}\n}","options":{"raw":{"language":"json"}}},"url":"{{api_endpoint}}api/loyalty/mycards?token={{token}}","description":"<p>This endpoint makes an HTTP GET request to retrieve templates from the API. It requires a token parameter in the query string for authentication.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li>Method: GET</li>\n<li>Endpoint: {{api_endpoint}}api/wpbox/getTemplates</li>\n<li>Query Parameters:<ul>\n<li>token (string, required): The authentication token.</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li><p>Status: 200 OK</p>\n</li>\n<li><p>Body:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">      {\n        \"status\": \"\",\n        \"templates\": [\n          {\n            \"id\": 0,\n            \"name\": \"\",\n            \"status\": \"\",\n            \"category\": \"\",\n            \"language\": \"\",\n            \"components\": \"\",\n            \"company_id\": 0,\n            \"created_at\": \"\",\n            \"updated_at\": \"\"\n          }\n        ]\n      }\n\n</code></pre>\n</li>\n</ul>\n<p>The response contains a status field and an array of templates, each with an ID, name, status, category, language, components, company ID, creation timestamp, and last update timestamp.</p>\n","urlObject":{"path":["loyalty","mycards"],"host":["{{api_endpoint}}api"],"query":[{"key":"token","value":"{{token}}"}],"variable":[]}},"response":[],"_postman_id":"e53f1a4a-e641-4b06-b9de-6b3664346f1b"},{"name":"My Movments","id":"f852483a-c4c4-49ef-a7c7-97c9c4add4ae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"token\":{{token}}\n}","options":{"raw":{"language":"json"}}},"url":"{{api_endpoint}}api/loyalty/mycards?token={{token}}","description":"<p>This endpoint makes an HTTP GET request to retrieve templates from the API. It requires a token parameter in the query string for authentication.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li>Method: GET</li>\n<li>Endpoint: {{api_endpoint}}api/wpbox/getTemplates</li>\n<li>Query Parameters:<ul>\n<li>token (string, required): The authentication token.</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li><p>Status: 200 OK</p>\n</li>\n<li><p>Body:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">      {\n        \"status\": \"\",\n        \"templates\": [\n          {\n            \"id\": 0,\n            \"name\": \"\",\n            \"status\": \"\",\n            \"category\": \"\",\n            \"language\": \"\",\n            \"components\": \"\",\n            \"company_id\": 0,\n            \"created_at\": \"\",\n            \"updated_at\": \"\"\n          }\n        ]\n      }\n\n</code></pre>\n</li>\n</ul>\n<p>The response contains a status field and an array of templates, each with an ID, name, status, category, language, components, company ID, creation timestamp, and last update timestamp.</p>\n","urlObject":{"path":["loyalty","mycards"],"host":["{{api_endpoint}}api"],"query":[{"key":"token","value":"{{token}}"}],"variable":[]}},"response":[],"_postman_id":"f852483a-c4c4-49ef-a7c7-97c9c4add4ae"},{"name":"Make card","id":"9dca9282-cd45-4f54-a2f2-0bb02a56b276","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"token\":{{token}}\n}","options":{"raw":{"language":"json"}}},"url":"{{api_endpoint}}api/loyalty/mycards?token={{token}}","description":"<p>This endpoint makes an HTTP GET request to retrieve templates from the API. It requires a token parameter in the query string for authentication.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li>Method: GET</li>\n<li>Endpoint: {{api_endpoint}}api/wpbox/getTemplates</li>\n<li>Query Parameters:<ul>\n<li>token (string, required): The authentication token.</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li><p>Status: 200 OK</p>\n</li>\n<li><p>Body:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">      {\n        \"status\": \"\",\n        \"templates\": [\n          {\n            \"id\": 0,\n            \"name\": \"\",\n            \"status\": \"\",\n            \"category\": \"\",\n            \"language\": \"\",\n            \"components\": \"\",\n            \"company_id\": 0,\n            \"created_at\": \"\",\n            \"updated_at\": \"\"\n          }\n        ]\n      }\n\n</code></pre>\n</li>\n</ul>\n<p>The response contains a status field and an array of templates, each with an ID, name, status, category, language, components, company ID, creation timestamp, and last update timestamp.</p>\n","urlObject":{"path":["loyalty","mycards"],"host":["{{api_endpoint}}api"],"query":[{"key":"token","value":"{{token}}"}],"variable":[]}},"response":[],"_postman_id":"9dca9282-cd45-4f54-a2f2-0bb02a56b276"},{"name":"Card","id":"fc45c08a-920f-49c7-a4e2-6baa70039820","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{api_endpoint}}api/loyalty/card/1?token={{token}}","description":"<p>This endpoint makes an HTTP GET request to retrieve templates from the API. It requires a token parameter in the query string for authentication.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li>Method: GET</li>\n<li>Endpoint: {{api_endpoint}}api/wpbox/getTemplates</li>\n<li>Query Parameters:<ul>\n<li>token (string, required): The authentication token.</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li><p>Status: 200 OK</p>\n</li>\n<li><p>Body:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">      {\n        \"status\": \"\",\n        \"templates\": [\n          {\n            \"id\": 0,\n            \"name\": \"\",\n            \"status\": \"\",\n            \"category\": \"\",\n            \"language\": \"\",\n            \"components\": \"\",\n            \"company_id\": 0,\n            \"created_at\": \"\",\n            \"updated_at\": \"\"\n          }\n        ]\n      }\n\n</code></pre>\n</li>\n</ul>\n<p>The response contains a status field and an array of templates, each with an ID, name, status, category, language, components, company ID, creation timestamp, and last update timestamp.</p>\n","urlObject":{"path":["loyalty","card","1"],"host":["{{api_endpoint}}api"],"query":[{"key":"token","value":"{{token}}"}],"variable":[]}},"response":[],"_postman_id":"fc45c08a-920f-49c7-a4e2-6baa70039820"},{"name":"Companies","id":"96a32000-76dd-47ba-a8c9-f25fedd475e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{api_endpoint}}api/loyalty/companies/?token={{token}}","description":"<p>This endpoint makes an HTTP GET request to retrieve templates from the API. It requires a token parameter in the query string for authentication.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li>Method: GET</li>\n<li>Endpoint: {{api_endpoint}}api/wpbox/getTemplates</li>\n<li>Query Parameters:<ul>\n<li>token (string, required): The authentication token.</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li><p>Status: 200 OK</p>\n</li>\n<li><p>Body:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">      {\n        \"status\": \"\",\n        \"templates\": [\n          {\n            \"id\": 0,\n            \"name\": \"\",\n            \"status\": \"\",\n            \"category\": \"\",\n            \"language\": \"\",\n            \"components\": \"\",\n            \"company_id\": 0,\n            \"created_at\": \"\",\n            \"updated_at\": \"\"\n          }\n        ]\n      }\n\n</code></pre>\n</li>\n</ul>\n<p>The response contains a status field and an array of templates, each with an ID, name, status, category, language, components, company ID, creation timestamp, and last update timestamp.</p>\n","urlObject":{"path":["loyalty","companies",""],"host":["{{api_endpoint}}api"],"query":[{"key":"token","value":"{{token}}"}],"variable":[]}},"response":[],"_postman_id":"96a32000-76dd-47ba-a8c9-f25fedd475e9"},{"name":"Categories","id":"f5152040-f80b-4c1a-a957-35406851bcc4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{api_endpoint}}api/loyalty/companies/?token={{token}}","description":"<p>This endpoint makes an HTTP GET request to retrieve templates from the API. It requires a token parameter in the query string for authentication.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li>Method: GET</li>\n<li>Endpoint: {{api_endpoint}}api/wpbox/getTemplates</li>\n<li>Query Parameters:<ul>\n<li>token (string, required): The authentication token.</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li><p>Status: 200 OK</p>\n</li>\n<li><p>Body:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">      {\n        \"status\": \"\",\n        \"templates\": [\n          {\n            \"id\": 0,\n            \"name\": \"\",\n            \"status\": \"\",\n            \"category\": \"\",\n            \"language\": \"\",\n            \"components\": \"\",\n            \"company_id\": 0,\n            \"created_at\": \"\",\n            \"updated_at\": \"\"\n          }\n        ]\n      }\n\n</code></pre>\n</li>\n</ul>\n<p>The response contains a status field and an array of templates, each with an ID, name, status, category, language, components, company ID, creation timestamp, and last update timestamp.</p>\n","urlObject":{"path":["loyalty","companies",""],"host":["{{api_endpoint}}api"],"query":[{"key":"token","value":"{{token}}"}],"variable":[]}},"response":[],"_postman_id":"f5152040-f80b-4c1a-a957-35406851bcc4"},{"name":"Company","id":"6b702248-c686-4fe0-820f-11a5f14356c5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{api_endpoint}}api/loyalty/company/1?token={{token}}","description":"<p>This endpoint makes an HTTP GET request to retrieve templates from the API. It requires a token parameter in the query string for authentication.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li>Method: GET</li>\n<li>Endpoint: {{api_endpoint}}api/wpbox/getTemplates</li>\n<li>Query Parameters:<ul>\n<li>token (string, required): The authentication token.</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li><p>Status: 200 OK</p>\n</li>\n<li><p>Body:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">      {\n        \"status\": \"\",\n        \"templates\": [\n          {\n            \"id\": 0,\n            \"name\": \"\",\n            \"status\": \"\",\n            \"category\": \"\",\n            \"language\": \"\",\n            \"components\": \"\",\n            \"company_id\": 0,\n            \"created_at\": \"\",\n            \"updated_at\": \"\"\n          }\n        ]\n      }\n\n</code></pre>\n</li>\n</ul>\n<p>The response contains a status field and an array of templates, each with an ID, name, status, category, language, components, company ID, creation timestamp, and last update timestamp.</p>\n","urlObject":{"path":["loyalty","company","1"],"host":["{{api_endpoint}}api"],"query":[{"key":"token","value":"{{token}}"}],"variable":[]}},"response":[],"_postman_id":"6b702248-c686-4fe0-820f-11a5f14356c5"}],"id":"9dd98d32-3fec-4f46-a489-73815ed8f532","_postman_id":"9dd98d32-3fec-4f46-a489-73815ed8f532","description":""}],"event":[{"listen":"prerequest","script":{"id":"c800516b-8986-467c-b3ba-51648a57d711","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"d99125d1-2732-4b1b-bcee-c4313af5d366","type":"text/javascript","exec":[""]}}]}