{"info":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","description":"<html><head></head><body><p>Welcome to the magnews REST API Postman collection!</p>\n<p>Use the magnews API to integrate your platform with marketing automation workflows, contact management, and data-driven campaigns.</p>\n<hr>\n<h1 id=\"getting-started\">Getting Started</h1>\n<p>Follow our <a href=\"https://help.magnews.it/hc/en-us/articles/33134583369362-Magnews-REST-API#oauth-postman:~:text=Authentication-,OAuth%202.0%3A%20quick%20setup,-Token%20refresh\">quick setup</a> guide to quickly configure your Postman environment and start testing the requests included in this collection.</p>\n<h2 id=\"environment-setup\">Environment setup</h2>\n<p>In the <strong>Postman collection variables</strong>, set the following values:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Variable</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>mn-baseurl</code></td>\n<td>REST API base URL, e.g. <code>https://ws-mn1.mag-news.it/ws/rest/api</code></td>\n</tr>\n<tr>\n<td><code>mn-accesstoken</code></td>\n<td>Your access token</td>\n</tr>\n<tr>\n<td><code>mn-refreshtoken</code></td>\n<td>Your refresh token (<strong>optional</strong>). Recommended if you're using the interactive flow with short-lived access tokens.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"youre-ready\">You're ready!</h2>\n<p>Once your environment and authentication are set up, you can start testing the requests in this collection.</p>\n<p>Explore the available folders to interact with contacts, communications, transactional messages, audiences, and other resources.</p>\n<hr>\n<h1 id=\"support\">Support</h1>\n<ul>\n<li>Need help? <a href=\"https://help.magnews.it\"><b>Contact our support team</b></a></li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Getting Started","slug":"getting-started"},{"content":"Support","slug":"support"}],"owner":"44530038","collectionId":"c41301cc-4697-4aad-a300-3dff8accc11f","publishedId":"2sB2j4fWsn","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"E5405C"},"publishDate":"2025-05-06T10:17:06.000Z"},"item":[{"name":"Token Management","item":[{"name":"Authorization code flow","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","packages":{},"id":"731d7b58-0098-427a-95f1-651bfd583c1e"}}],"id":"90b713b9-1805-4f63-9366-105feba5ace0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"scope","value":"<scope>"},{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"clientSecret","value":""},{"key":"clientId","value":""}]},"isInherited":false},"method":"GET","header":[],"url":"/v19","description":"<p><strong>This request is part of the OAuth 2.0 authorization code flow (interactive). It allows you to:</strong></p>\n<ul>\n<li><p>Authorize a user by redirecting them to the magnews login page.</p>\n</li>\n<li><p>Obtain an access token and refresh token upon successful login and consent.</p>\n</li>\n</ul>\n<h2 id=\"set-up-postman-collection-variables\">Set up Postman collection variables</h2>\n<blockquote>\n<p>⚠️ Before using this request, you must setup additional environment variables </p>\n</blockquote>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Variable</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>mn-clientid</code></td>\n<td>Application ID from the digital certificate</td>\n</tr>\n<tr>\n<td><code>mn-clientsecret</code></td>\n<td>App secret from the certificate. If not available, you can reset it</td>\n</tr>\n<tr>\n<td><code>mn-account</code></td>\n<td>Your customer login (same used for manual login)</td>\n</tr>\n<tr>\n<td><code>mn-authserver</code></td>\n<td>This variable is already set to a default value. It defines the base URL of the authorization server and is used in:  <br />- The authorization dialog endpoint: <a href=\"https://be-mn1.mag-news.it/be/oauth/dialog\">https://be-mn1.mag-news.it/be/oauth/dialog</a>  <br />- The token endpoint: <a href=\"https://be-mn1.mag-news.it/be/oauth/token\">https://be-mn1.mag-news.it/be/oauth/token</a></td>\n</tr>\n</tbody>\n</table>\n</div><p>Always set the OAuth scope parameter to <code>full</code>, which grants access to all available API operations.</p>\n<h1 id=\"generate-access-token-and-refresh-token\">Generate access token and refresh token</h1>\n<p>Click on <strong>Get New Access Token</strong> in the Authorization tab and insert your user's credentials.</p>\n<img src=\"https://content.pstmn.io/36b81b96-483f-4bee-b5cd-70dbc0c4c383/U2NyZWVuc2hvdCAyMDI1LTA1LTAyIGFsbGUgMTAuNDkuMTcucG5n\" alt=\"magnews%20OAuth%202.0%20login\" width=\"550\" height=\"308\" />\n\n<p>The Postman Authorization tab handles the flow by redirecting to the login URL and exchanging the authorization code for tokens.<br />Once completed, Postman can automatically store the access and refresh tokens and you can copy them from the <strong>Manage Tokens</strong> window.</p>\n<p>Set collection variables <code>mn-accesstoken</code> e <code>mn-refreshtoken</code> with obtained tokens in order to reuse them in subsequent requests.</p>\n<hr />\n<p>You are now ready to use the authenticated endpoints in this collection.</p>\n","urlObject":{"path":["v19"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"13708b27-2d0c-4de7-a88f-30474beec030","name":"Authorization code flow","originalRequest":{"method":"GET","header":[],"url":"https://ws-mn1.mag-news.it/ws/rest/api/v19"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"X-Mn-PageType","value":"Webservice"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"qapatch:6"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Type","value":"text/plain"},{"key":"Date","value":"Wed, 30 Apr 2025 19:57:33 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"},{"key":"content-encoding","value":"gzip"},{"key":"transfer-encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"v19"}],"_postman_id":"90b713b9-1805-4f63-9366-105feba5ace0"},{"name":"Refresh token","event":[{"listen":"test","script":{"id":"6ad39f5a-6af2-4e27-a10a-8cd7731be5b3","exec":["// Parse the JSON response body","let response = pm.response.json();","","// Check if access_token exists and save it as a collection variable","if (response.access_token) {","    pm.collectionVariables.set(\"mn-accesstoken\", response.access_token);","    console.log(\"Access token saved in collection variable: mn-accesstoken\");","} else {","    console.warn(\"Access token not found in response\");","}","","// Check if refresh_token exists and save it as a collection variable","if (response.refresh_token) {","    pm.collectionVariables.set(\"mn-refreshtoken\", response.refresh_token);","    console.log(\"Refresh token saved in collection variable: mn-refreshtoken\");","} else {","    console.warn(\"Refresh token not found in response\");","}",""],"type":"text/javascript","packages":{}}}],"id":"514a7cb0-57a6-4091-9a35-baed77b0b489","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"client_id","value":"","description":"<p>The client ID found in the magnews digital certificate</p>\n","type":"text"},{"key":"client_secret","value":"","description":"<p>The client secret found in the magnews digital certificate</p>\n","type":"text"},{"key":"refresh_token","value":"","description":"<p>The refresh token obtained from the previous access token request</p>\n","type":"text"},{"key":"grant_type","value":"refresh_token","description":"<p>Must be set to refresh_token</p>\n","type":"text"}]},"url":"/be/oauth/token","description":"<p>This call is part of the <strong>OAuth 2.0 token refresh process</strong>. It allows you to:</p>\n<ul>\n<li><p>Renew the access to protected APIs without re-authenticating the user.</p>\n</li>\n<li><p>Receive a <strong>new access token</strong> and <strong>refresh token</strong>.</p>\n</li>\n</ul>\n<p>The post request scripts, will automatically update collection variables <code>mn-accesstoken</code>and <code>mn-refreshtoken</code>.</p>\n<p>The new access token will have the same expiration time as the original one, typically <strong>4 hours</strong> (14399 seconds). After this period, you will need to refresh the token again to continue making authenticated API requests.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["be","oauth","token"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"262759c8-8ae0-4470-ab4c-a6705445cdd3","name":"Success Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Authorization","value":"Bearer {{AccessToken}}"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"client_id","value":"","type":"text"},{"key":"client_secret","value":"","type":"text"},{"key":"refresh_token","value":"","type":"text"},{"key":"grant_type","value":"refresh_token","type":"text"}]},"url":"https://be-mn1.mag-news.it/be/oauth/token"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Mn-PageType","value":"Backend"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; script-src * 'unsafe-inline' 'unsafe-eval'; style-src * 'unsafe-inline' 'unsafe-eval'; img-src * data: blob:; font-src * data: blob:; media-src * blob:; object-src *; connect-src * blob:; frame-src *; frame-ancestors 'self'; worker-src * blob:; report-uri https://csp-reporting.mag-news.it"},{"key":"Pragma","value":"no-cache"},{"key":"Cache-Control","value":"no-cache, no-store"},{"key":"Content-Type","value":"application/json;charset=ISO-8859-1"},{"key":"Date","value":"Tue, 29 Apr 2025 13:41:21 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"},{"key":"content-encoding","value":"gzip"},{"key":"transfer-encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"access_token\": \"A9C3E1B57DF4C993E24A1087EA6C9B3517B4D782B31FCA2DCD31BB75FE98C4F10375C1D5C972B9AA2A10F6C3D5EBB8FC54C89EA3166F08DA9F1E4742D3FBC123456D0E97856D97CE99A347EA7C5FA1B64794AB650DF2EA13B1DA908FF33C614AA7F8801F9C263AFED8B3C0B5EDE7696DF9E105B7A472F79C5BAA12978D3E1F\",\n    \"refresh_token\": \"6A76FCD1A3BE4928E7D5C88A52F91BE3C12594A3B07AFD2E4B30C1D8F9A2B3C84D7EBA12C4F8E7616A9F1DBE3C7B645FA27CBE8497F320A1C4F72FEC89D4A11EAC49FBBA0D78CA73F191EE23BF7A914663C7F64B8D5C0225A478D933E2177EBAB1A75F089D3EEBAAC4CDAA4B9E9F23399B4A15A772A340B983D4616F0AE3DC7B59F39C3\",\n    \"token_type\": \"Bearer\",\n    \"expires_in\": 14399\n}"},{"id":"e022e5a8-3b9e-4ddb-aad9-505d36db6da9","name":"Invalid refresh token response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Authorization","value":"Bearer {{AccessToken}}"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"client_id","value":"","type":"text"},{"key":"client_secret","value":"","type":"text"},{"key":"refresh_token","value":"6A76FCD1A3BE4928E7D5C88A52F91BE3C12594A3B07AFD2E4B30C1D8F9A2B3C84D7EBA12C4F8E7616A9F1DBE3C7B645FA27CBE8497F320A1C4F72FEC89D4A11EAC49FBBA0D78CA73F191EE23BF7A914663C7F64B8D5C0225A478D933E2177EBAB1A75F089D3EEBAAC4CDAA4B9E9F23399B4A15A772A340B983D4616F0AE3DC7B59F39C3","type":"text"},{"key":"grant_type","value":"refresh_token","type":"text"}]},"url":"/be/oauth/token"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Mn-PageType","value":"Backend"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; script-src * 'unsafe-inline' 'unsafe-eval'; style-src * 'unsafe-inline' 'unsafe-eval'; img-src * data: blob:; font-src * data: blob:; media-src * blob:; object-src *; connect-src * blob:; frame-src *; frame-ancestors 'self'; worker-src * blob:; report-uri https://csp-reporting.mag-news.it"},{"key":"Pragma","value":"no-cache"},{"key":"Cache-Control","value":"no-cache, no-store"},{"key":"Content-Type","value":"application/json;charset=ISO-8859-1"},{"key":"Date","value":"Tue, 29 Apr 2025 13:45:27 GMT"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"},{"key":"connection","value":"close"},{"key":"content-encoding","value":"gzip"},{"key":"transfer-encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"error_description\": \"Invalid refresh_token, cannot refresh the token.\",\n    \"error\": \"invalid_grant\"\n}"}],"_postman_id":"514a7cb0-57a6-4091-9a35-baed77b0b489"}],"id":"755ea0da-8fb4-4f03-9a6f-d7ce7d56e42e","description":"<p>Magnews APIs use OAuth 2.0 for authentication.</p>\n","_postman_id":"755ea0da-8fb4-4f03-9a6f-d7ce7d56e42e","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}}},{"name":"Transactional","item":[{"name":"Get simple message status","id":"4096bbb4-48b1-43bc-b7e9-f514871d19d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/v19/simplemessages/message/:idmessage","description":"<h3 id=\"query-parameters\">Query Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>address</code></td>\n<td>String</td>\n<td>Email or SMS recipient.</td>\n</tr>\n<tr>\n<td><code>actualStatus</code></td>\n<td>String</td>\n<td>Status of the transactional message. Possible values: <code>internalError</code>, <code>hardBounce</code>, <code>waiting</code>, <code>sent</code>, <code>notSent</code>, <code>softBounce</code>.</td>\n</tr>\n<tr>\n<td><code>sentDate</code></td>\n<td>Date</td>\n<td>Delivery date.</td>\n</tr>\n<tr>\n<td><code>opened</code></td>\n<td>Boolean</td>\n<td><code>true</code> if the message was opened.</td>\n</tr>\n<tr>\n<td><code>lastOpenedTs</code></td>\n<td>Date</td>\n<td>Timestamp of the last open event.</td>\n</tr>\n<tr>\n<td><code>clicked</code></td>\n<td>Boolean</td>\n<td><code>true</code> if the message was clicked.</td>\n</tr>\n<tr>\n<td><code>lastClickedTs</code></td>\n<td>Date</td>\n<td>Timestamp of the last click event.</td>\n</tr>\n<tr>\n<td><code>idbouncecategory</code></td>\n<td>Integer</td>\n<td>The ID of the bounce category.</td>\n</tr>\n<tr>\n<td><code>complainted</code></td>\n<td>Boolean</td>\n<td><code>true</code> if the message resulted in a complaint.</td>\n</tr>\n<tr>\n<td><code>notSentCause</code></td>\n<td>String</td>\n<td>Detailed reason if <code>actualStatus</code> is <code>notSent</code>. Possible values: <code>unknown</code>, <code>blacklisted_recipient</code>, <code>cancelled</code>, <code>unsubscribed</code>, <code>forbidden_from</code>, <code>forbidden_replyto</code>, <code>maxsize_exceeded</code>, <code>phonerecipient_notallowed</code>, <code>empty_recipient</code>, <code>forbidden_smsfrom</code>, <code>forbidden_smsnumericfrom</code>, <code>no_credit</code>.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","simplemessages","message",":idmessage"],"host":[""],"query":[],"variable":[{"description":{"content":"<p>id of a transactional message</p>\n","type":"text/plain"},"type":"string","value":"27335","key":"idmessage"}]}},"response":[{"id":"c3cb7d3b-5737-4034-9215-c18ec95bf2b5","name":"Get simple message status","originalRequest":{"method":"GET","header":[],"url":{"raw":"/v19/simplemessages/message/:idmessage","host":[""],"path":["v19","simplemessages","message",":idmessage"],"variable":[{"key":"idmessage","value":"27335","description":"id of a transactional message","type":"string"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Permissions-Policy","value":"camera=(), geolocation=(), accelerometer=(), gyroscope=(), magnetometer=(), microphone=(), autoplay=(), usb=(), payment=(), fullscreen=()"},{"key":"X-Mn-PageType","value":"Webservice"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"qapg:7"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Type","value":"application/json","description":"","type":"text"},{"key":"Date","value":"Tue, 17 Mar 2026 11:27:19 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"},{"key":"X-Proxy-Path","value":"qapg_route_https;qapg_action_https;qapg_director_https;qapg_tomcat_mn03_https"},{"key":"content-encoding","value":"gzip"},{"key":"transfer-encoding","value":"chunked"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"messageId\": \"27335\",\n    \"address\": \"test@example.com\",\n    \"actualStatus\": \"sent\",\n    \"notSentCause\": null,\n    \"sentDate\": 1773658427452,\n    \"opened\": true,\n    \"lastOpenedTs\": 1773675603586,\n    \"clicked\": true,\n    \"lastClickedTs\": 1773675603586,\n    \"idbouncecategory\": null,\n    \"complainted\": false,\n    \"converted\": false,\n    \"lastConversionTs\": null,\n    \"expectedDeliveryTs\": 1773658412517,\n    \"messageRetention\": \"full\",\n    \"externalId\": null\n}"}],"_postman_id":"4096bbb4-48b1-43bc-b7e9-f514871d19d8"},{"name":"Get simple message status by external id","id":"17a12548-215e-4733-9bf1-6324ad95f1e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/v19/simplemessages/messagebyexternalid/:externalId","description":"<p>Get the status of a simple message by external ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","simplemessages","messagebyexternalid",":externalId"],"host":[""],"query":[],"variable":[{"id":"ecbf27e5-4e88-4e52-a95b-49f81fc0f9f2","type":"any","key":"externalId"}]}},"response":[{"id":"ecfa5afd-aecb-41ea-8993-364560238933","name":"Success Response","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://ws-mn1.mag-news.it/ws/rest/api/v19/simplemessages/messagebyexternalid/:externalId","protocol":"https","host":["ws-mn1","mag-news","it"],"path":["ws","rest","api","v19","simplemessages","messagebyexternalid",":externalId"],"variable":[{"key":"externalId","value":"ext-123456"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"messageId\": \"27335\",\n    \"address\": \"test@example.com\",\n    \"actualStatus\": \"sent\",\n    \"notSentCause\": null,\n    \"sentDate\": 1773658427452,\n    \"opened\": true,\n    \"lastOpenedTs\": 1773675603586,\n    \"clicked\": true,\n    \"lastClickedTs\": 1773675603586,\n    \"idbouncecategory\": null,\n    \"complainted\": false,\n    \"converted\": false,\n    \"lastConversionTs\": null,\n    \"expectedDeliveryTs\": 1773658412517,\n    \"messageRetention\": \"full\",\n    \"externalId\": null\n}"}],"_postman_id":"17a12548-215e-4733-9bf1-6324ad95f1e1"},{"name":"Get simple message info","id":"570c79c9-6d11-4c1d-8457-af97f07d02c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/v19/simplemessages/message/:idmessage/info","description":"<p>Get information about a simple message by ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","simplemessages","message",":idmessage","info"],"host":[""],"query":[],"variable":[{"id":"f3655c46-534b-47f8-9e9c-292abc57f063","type":"any","key":"idmessage"}]}},"response":[{"id":"5b2a9be1-6c09-433c-a536-3ad019fc23a2","name":"Success Response","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://ws-mn1.mag-news.it/ws/rest/api/v19/simplemessages/message/:idmessage/info","protocol":"https","host":["ws-mn1","mag-news","it"],"path":["ws","rest","api","v19","simplemessages","message",":idmessage","info"],"variable":[{"key":"idmessage","value":"123456"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"messageId\": \"27335\",\n    \"address\": \"test@example.com\",\n    \"actualStatus\": \"sent\",\n    \"notSentCause\": null,\n    \"sentDate\": 1773658427452,\n    \"opened\": true,\n    \"lastOpenedTs\": 1773675603586,\n    \"clicked\": true,\n    \"lastClickedTs\": 1773675603586,\n    \"idbouncecategory\": null,\n    \"complainted\": false,\n    \"converted\": false,\n    \"lastConversionTs\": null,\n    \"expectedDeliveryTs\": 1773658412517,\n    \"messageRetention\": \"full\",\n    \"externalId\": null\n}"}],"_postman_id":"570c79c9-6d11-4c1d-8457-af97f07d02c3"},{"name":"Send simple message","id":"f153dcc8-d828-41a7-8bff-fdfc700501bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"options\": {\n    \"usecontactemail\": false,\n    \"nospool\": false\n  },\n  \"values\": {\n    \"type\": \"email\",\n    \"fromemail\": \"sender@example.com\",\n    \"fromname\": \"Sender Name\",\n    \"to\": \"recipient@example.com\",\n    \"subject\": \"Test Email\",\n    \"htmlbody\": \"This is a <i>test</i> email\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"/v19/simplemessages/message","description":"<p>Send a transactional message</p>\n<h2 id=\"request-body\">Request Body</h2>\n<h3 id=\"options\"><code>options</code></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Option</th>\n<th>Type</th>\n<th>Default Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>idcontact</code></td>\n<td>Integer</td>\n<td><code>null</code></td>\n<td>Lookup contact profile by internal ID.</td>\n</tr>\n<tr>\n<td><code>iddatabase</code></td>\n<td>Integer</td>\n<td><code>null</code></td>\n<td>If contact not found, renders email as if sent to a contact in this database.</td>\n</tr>\n<tr>\n<td><code>contactprimarykey</code></td>\n<td>String</td>\n<td><code>null</code></td>\n<td>Lookup contact profile by primary key in the specified database (see <code>iddatabase</code>).</td>\n</tr>\n<tr>\n<td><code>contactprimarykeyoptional</code></td>\n<td>Boolean</td>\n<td><code>false</code></td>\n<td>If contact isn’t found, uses <code>message.to</code> as recipient instead of failing. <strong>Note:</strong> No statistics are recorded if contact is not found.</td>\n</tr>\n<tr>\n<td><code>usecontactemail</code></td>\n<td>Boolean</td>\n<td><code>false</code></td>\n<td>Override <code>message.to</code> with the contact’s email.</td>\n</tr>\n<tr>\n<td><code>cssinline</code></td>\n<td>Boolean</td>\n<td><code>false</code></td>\n<td>Apply CSS inline to HTML content.</td>\n</tr>\n<tr>\n<td><code>embeddedimages</code></td>\n<td>Boolean</td>\n<td><code>false</code></td>\n<td>Download and embed images from HTML content.</td>\n</tr>\n<tr>\n<td><code>idwebsite</code></td>\n<td>Integer</td>\n<td>(default website ID)</td>\n<td>Website ID used to render absolute URLs (images, unsubscribe links, etc.).</td>\n</tr>\n<tr>\n<td><code>usenewsletterastemplate</code></td>\n<td>Boolean</td>\n<td><code>false</code></td>\n<td>Use a communication template (notification template) as the message body.</td>\n</tr>\n<tr>\n<td><code>renderatsend</code></td>\n<td>Boolean</td>\n<td><code>false</code></td>\n<td>Render the message at send time (preferred with <code>usenewsletterastemplate</code>; no DB persistence).</td>\n</tr>\n<tr>\n<td><code>usehtmlcodeastemplate</code></td>\n<td>Boolean</td>\n<td><code>false</code></td>\n<td>Use provided HTML code as the message body (allows Giotto conditions).</td>\n</tr>\n<tr>\n<td><code>idnewsletter</code></td>\n<td>Integer</td>\n<td><code>null</code></td>\n<td>Communication template ID for rendering (requires <code>usenewsletterastemplate=true</code>).</td>\n</tr>\n<tr>\n<td><code>newsletterkey</code></td>\n<td>String</td>\n<td><code>null</code></td>\n<td>Communication template key for rendering (requires <code>usenewsletterastemplate=true</code>). If both <code>idnewsletter</code> and <code>newsletterkey</code> are set, <code>idnewsletter</code> takes precedence.</td>\n</tr>\n<tr>\n<td><code>format</code></td>\n<td>String</td>\n<td><code>\"html\"</code></td>\n<td>Message format: <code>\"html\"</code>, <code>\"text\"</code>, or <code>\"multipart\"</code>.</td>\n</tr>\n<tr>\n<td><code>validatesmslength</code></td>\n<td>Boolean</td>\n<td><code>true</code></td>\n<td>Validate SMS parts count against <code>maxsmsparts</code> and account settings.</td>\n</tr>\n<tr>\n<td><code>maxsmsparts</code></td>\n<td>Integer</td>\n<td>(account max SMS parts)</td>\n<td>Maximum allowed SMS parts; messages exceeding this limit are not sent.</td>\n</tr>\n<tr>\n<td><code>expectedDeliveryTs</code></td>\n<td>Timestamp</td>\n<td>(empty = ASAP)</td>\n<td>Schedule message delivery; empty means send immediately.</td>\n</tr>\n<tr>\n<td><code>temp.xxx</code></td>\n<td>String</td>\n<td><code>\"\"</code></td>\n<td>Set initial value of <code>temp.xxx</code> Giotto variables (<code>[temp:xxx]</code> syntax).</td>\n</tr>\n<tr>\n<td><code>messageRetention</code></td>\n<td>String</td>\n<td><code>\"minimal\"</code></td>\n<td>Retention policy: <code>\"minimal\"</code> (discard body), <code>\"full\"</code> (keep body &amp; headers), <code>\"reserved\"</code>.</td>\n</tr>\n<tr>\n<td><code>externalId</code></td>\n<td>String</td>\n<td><code>\"null\"</code></td>\n<td>Assign an external ID to the message.</td>\n</tr>\n<tr>\n<td><code>inputparam.xxx</code></td>\n<td>String</td>\n<td><code>\"\"</code></td>\n<td>Set <code>inputparam.xxx</code> Giotto variables (<code>[inputparam:xxx]</code> syntax).</td>\n</tr>\n<tr>\n<td><code>nospool</code></td>\n<td>Boolean</td>\n<td><code>false</code></td>\n<td>Attempt to send without spooling for timelier delivery.</td>\n</tr>\n<tr>\n<td><code>idlanguage</code></td>\n<td>String</td>\n<td><code>null</code></td>\n<td>Language ID: <code>\"ITA\"</code>, <code>\"ENG\"</code>, <code>\"FRA\"</code>, or <code>null</code>.</td>\n</tr>\n<tr>\n<td><code>usecontactcell</code></td>\n<td>Boolean</td>\n<td><code>false</code></td>\n<td>Override <code>message.to</code> with contact’s phone number for SMS.</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h3 id=\"values\"><code>values</code></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Default Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>type</code></td>\n<td>String</td>\n<td><code>null</code></td>\n<td>Message type: <code>\"email\"</code> or <code>\"sms\"</code>.</td>\n</tr>\n<tr>\n<td><code>to</code></td>\n<td>String</td>\n<td><code>null</code></td>\n<td>Recipient email address or phone number.</td>\n</tr>\n<tr>\n<td><code>fromemail</code></td>\n<td>String</td>\n<td><code>null</code></td>\n<td>From header email address (email messages only).</td>\n</tr>\n<tr>\n<td><code>fromname</code></td>\n<td>String</td>\n<td><code>null</code></td>\n<td>From header name (email messages only).</td>\n</tr>\n<tr>\n<td><code>replyto</code></td>\n<td>String</td>\n<td><code>null</code></td>\n<td>Reply-To header email address (email messages only).</td>\n</tr>\n<tr>\n<td><code>subject</code></td>\n<td>String</td>\n<td><code>null</code></td>\n<td>Email subject (email messages only).</td>\n</tr>\n<tr>\n<td><code>preheader</code></td>\n<td>String</td>\n<td><code>null</code></td>\n<td>Preview text (email messages only).</td>\n</tr>\n<tr>\n<td><code>charset</code></td>\n<td>String</td>\n<td><code>null</code></td>\n<td>Email charset (email messages only).</td>\n</tr>\n<tr>\n<td><code>htmlbody</code></td>\n<td>String</td>\n<td><code>null</code></td>\n<td>HTML content (email messages only).</td>\n</tr>\n<tr>\n<td><code>textbody</code></td>\n<td>String</td>\n<td><code>null</code></td>\n<td>Plain-text content (email messages only).</td>\n</tr>\n<tr>\n<td><code>from</code></td>\n<td>String</td>\n<td><code>null</code></td>\n<td>SMS sender ID (phone number or name, SMS only).</td>\n</tr>\n<tr>\n<td><code>smsbody</code></td>\n<td>String</td>\n<td><code>null</code></td>\n<td>SMS message text (SMS only).</td>\n</tr>\n<tr>\n<td><code>idmessagetype</code></td>\n<td>Integer</td>\n<td>(none)</td>\n<td>Transactional message type ID for stats aggregation.</td>\n</tr>\n<tr>\n<td><code>attachments</code></td>\n<td>Array</td>\n<td><code>null</code></td>\n<td>Array of attachment objects (see below).</td>\n</tr>\n<tr>\n<td><code>header.xxxx</code></td>\n<td>String</td>\n<td>(none)</td>\n<td>Custom header lines, e.g. <code>header.Message-ID=MyID@server</code> (email messages only).</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"attachment-object\">Attachment object</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>filename</code></td>\n<td>String</td>\n<td>Attachment file name.</td>\n</tr>\n<tr>\n<td><code>contenttype</code></td>\n<td>String</td>\n<td>MIME type; inferred from filename if omitted.</td>\n</tr>\n<tr>\n<td><code>body</code></td>\n<td>String</td>\n<td>File content as Base64-encoded string.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","simplemessages","message"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"901d22b2-1e3e-49aa-b8be-9b260987b51e","name":"Success Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"options\": {\n    \"usecontactemail\": false,\n    \"nospool\": false\n  },\n  \"values\": {\n    \"type\": \"email\",\n    \"fromemail\": \"sender@example.com\",\n    \"fromname\": \"Sender Name\",\n    \"to\": \"recipient@example.com\",\n    \"subject\": \"Test Email\",\n    \"htmlbody\": \"This is a <i>test</i> email\"\n  }\n}"},"url":"https://ws-mn1.mag-news.it/ws/rest/api/v19/simplemessages/message"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"messageId\": \"123456\",\n  \"address\": \"recipient@example.com\",\n  \"actualStatus\": \"waiting\",\n  \"sentDate\": \"2023-06-15T10:30:00.000Z\",\n  \"opened\": false,\n  \"clicked\": false,\n  \"complainted\": false,\n  \"converted\": false,\n  \"messageRetention\": \"full\",\n  \"externalId\": null\n}"},{"id":"13186789-7c41-4c7f-b4f0-2627ac4cb7ec","name":"Error Response - Empty From Email","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"options\": {\n    \"usecontactemail\": false,\n    \"nospool\": false\n  },\n  \"values\": {\n    \"type\": \"email\",\n    \"to\": \"recipient@example.com\",\n    \"subject\": \"Test Email\",\n    \"htmlbody\": \"This is a <i>test</i> email\"\n  }\n}"},"url":"/v19/simplemessages/message"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"error\": \"an empty fromemail is not valid\"\n}"},{"id":"a2337666-cb85-44a2-857a-bb8c2b52050c","name":"Server Error Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"options\": {\n    \"usecontactemail\": false,\n    \"nospool\": false\n  },\n  \"values\": {\n    \"type\": \"email\",\n    \"fromemail\": \"sender@example.com\",\n    \"fromname\": \"Sender Name\",\n    \"to\": \"recipient@example.com\",\n    \"subject\": \"Test Email\",\n    \"htmlbody\": \"This is a <i>test</i> email\"\n  }\n}"},"url":"/v19/simplemessages/message"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"error\": \"Internal server error\",\n  \"message\": \"An unexpected error occurred while processing your request\"\n}"}],"_postman_id":"f153dcc8-d828-41a7-8bff-fdfc700501bb"},{"name":"Send simple message using contact data","id":"f93219f7-8f23-4bfe-b37a-7381a0f36ba7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"options\": {\n    \"usecontactemail\": true,\n    \"idcontact\": 1,\n    \"nospool\": false\n  },\n  \"values\": {\n    \"type\": \"email\",\n    \"fromemail\": \"sender@example.com\",\n    \"fromname\": \"Sender Name\",\n    \"subject\": \"Test Email for Contact\",\n    \"htmlbody\": \"This is a <i>test</i> email for contact\",\n    \"attachments\": [\n      {\n        \"filename\": \"hello.csv\",\n        \"contenttype\": \"text/csv\",\n        \"body\": \"bmFtZSxlbWFpbAp0ZXN0LHRlc3RAZXhhbXBsZS5jb20=\"\n      }\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"/v19/simplemessages/message","description":"<p>Send a transactional message with an attachment to a platform contact</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","simplemessages","message"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"5f2f2c2e-80ae-4631-8a41-6a803df4866b","name":"Success Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"options\": {\n    \"usecontactemail\": true,\n    \"idcontact\": 1,\n    \"nospool\": false\n  },\n  \"values\": {\n    \"type\": \"email\",\n    \"fromemail\": \"sender@example.com\",\n    \"fromname\": \"Sender Name\",\n    \"subject\": \"Test Email for Contact\",\n    \"htmlbody\": \"This is a <i>test</i> email for contact\",\n    \"attachments\": [\n      {\n        \"filename\": \"hello.csv\",\n        \"contenttype\": \"text/csv\",\n        \"body\": \"bmFtZSxlbWFpbAp0ZXN0LHRlc3RAZXhhbXBsZS5jb20=\"\n      }\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://ws-mn1.mag-news.it/ws/rest/api/v19/simplemessages/message"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"messageId\": \"123456\",\n  \"address\": \"contact@example.com\",\n  \"actualStatus\": \"waiting\",\n  \"sentDate\": \"2023-06-15T10:30:00.000Z\",\n  \"opened\": false,\n  \"clicked\": false,\n  \"complainted\": false,\n  \"converted\": false,\n  \"messageRetention\": \"full\",\n  \"externalId\": null\n}"}],"_postman_id":"f93219f7-8f23-4bfe-b37a-7381a0f36ba7"},{"name":"Send simple message using template","id":"e663d1b5-b7ec-409d-94f5-291c85a374a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"options\": {\n        \"usenewsletterastemplate\": \"true\",\n        \"idnewsletter\": 5,\n        \"renderatsend\": \"true\",\n\t\t\t\t\"temp.myvar1\": \"hello\",\n\t\t\t\t\"temp.myvar2\": \"world\"\n    },\n    \"values\": {\n        \"type\": \"email\",\n        \"fromemail\": \"email@test.informatica.it\",\n        \"fromname\": \"Test\",\n        \"replyto\": \"email@test.informatica.it\",\n        \"to\": \"recipient@domain.it\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"/v19/simplemessages/message","description":"<p>Send a transactional message using a communication as a template filled with temp vars</p>\n<blockquote>\n<p><strong>Note:</strong> If you specify the <code>subject</code> value, you must remove the <code>renderatsend</code> option (and vice versa).</p>\n</blockquote>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","simplemessages","message"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"9e7092a1-d236-4cef-90ea-f684538dc798","name":"Success Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"options\": {\n    \"usecontactemail\": true,\n    \"idcontact\": 1,\n    \"nospool\": false\n  },\n  \"values\": {\n    \"type\": \"email\",\n    \"fromemail\": \"sender@example.com\",\n    \"fromname\": \"Sender Name\",\n    \"subject\": \"Test Email for Contact\",\n    \"htmlbody\": \"This is a <i>test</i> email for contact\",\n    \"attachments\": [\n      {\n        \"filename\": \"hello.csv\",\n        \"contenttype\": \"text/csv\",\n        \"body\": \"bmFtZSxlbWFpbAp0ZXN0LHRlc3RAZXhhbXBsZS5jb20=\"\n      }\n    ]\n  }\n}"},"url":"https://ws-mn1.mag-news.it/ws/rest/api/v19/simplemessages/message"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","uuid":"0dfa699b-2411-4b8e-bafc-82749962e4d9"}],"cookie":[],"responseTime":null,"body":"{\n  \"messageId\": \"123456\",\n  \"address\": \"contact@example.com\",\n  \"actualStatus\": \"waiting\",\n  \"sentDate\": \"2023-06-15T10:30:00.000Z\",\n  \"opened\": false,\n  \"clicked\": false,\n  \"complainted\": false,\n  \"converted\": false,\n  \"messageRetention\": \"full\",\n  \"externalId\": null\n}"}],"_postman_id":"e663d1b5-b7ec-409d-94f5-291c85a374a7"},{"name":"Send SMS message","id":"90971fc2-ac7b-4f8a-9850-d92e3e71696e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"options\": {\n        \"usenewsletterastemplate\": \"true\",\n        \"idnewsletter\": 5\n    },\n    \"values\": {\n        \"type\": \"sms\",\n        \"from\": \"smssender\",\n        \"smsbody\": \"helloooo\",\n        \"to\": \"+390000000\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"/v19/simplemessages/message","description":"<p>Send transactional SMS message</p>\n<p>Send a single SMS message using the same options as the email message request.<br />See <a href=\"https://documenter.getpostman.com/view/44530038/2sB2j4fWsn#f153dcc8-d828-41a7-8bff-fdfc700501bb\">Send simple message</a> options for full details.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","simplemessages","message"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"e098c311-fad6-449a-8a75-0c1fa6f04c50","name":"Success Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"options\": {\n        \"usenewsletterastemplate\": \"true\",\n        \"idnewsletter\": 5\n    },\n    \"values\": {\n        \"type\": \"sms\",\n        \"from\": \"smssender\",\n        \"smsbody\": \"helloooo\",\n        \"to\": \"+390000000\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"/v19/simplemessages/message","description":"Send transactional SMS message\n\nSend a single SMS message using the same options as the email message request.  \nSee [Send simple message](https://documenter.getpostman.com/view/44530038/2sB2j4fWsn#f153dcc8-d828-41a7-8bff-fdfc700501bb) options for full details."},"_postman_previewlanguage":"","header":[""],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":""}],"_postman_id":"90971fc2-ac7b-4f8a-9850-d92e3e71696e"},{"name":"Send WhatsApp message","id":"6cc8c28e-d0d2-4a1c-af4c-48b993d988ec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"options\": {\n        \"usecontactemail\": false,\n        \"usenewsletterastemplate\": true,\n        \"idnewsletter\": 1,\n        \"usehtmlcodeastemplate\": false,\n        \"renderatsend\": true,\n        \"nospool\": false,\n        \"temp.myvar\": \"hello\"\n    },\n    \"values\": {\n        \"type\": \"custom\",\n        \"customchannel\": \"whatsappbusiness\",\n        \"to\": \"+39....\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"/v19/simplemessages/message","description":"<p>Send transactional WhatsApp message</p>\n<p>Send a single WhatsApp message using the same options as the email message request.<br />See <a href=\"https://documenter.getpostman.com/view/44530038/2sB2j4fWsn#f153dcc8-d828-41a7-8bff-fdfc700501bb\">Send simple message</a> options for full details.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","simplemessages","message"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"ed32abe5-1d24-47b3-bcb6-3a6ed57b2f79","name":"Success Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"options\": {\n        \"usecontactemail\": false,\n        \"usenewsletterastemplate\": true,\n        \"idnewsletter\": 1,\n        \"usehtmlcodeastemplate\": false,\n        \"renderatsend\": true,\n        \"nospool\": false,\n        \"temp.myvar\": \"hello\"\n    },\n    \"values\": {\n        \"type\": \"custom\",\n        \"customchannel\": \"whatsappbusiness\",\n        \"to\": \"+39340000000\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://ws-mn1.mag-news.it/ws/rest/api/v19/simplemessages/message"},"_postman_previewlanguage":"json","header":[{},{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"messageId\": \"2\",\n    \"address\": \"+39340000000\",\n    \"actualStatus\": \"waiting\",\n    \"notSentCause\": null,\n    \"sentDate\": null,\n    \"opened\": false,\n    \"lastOpenedTs\": null,\n    \"clicked\": false,\n    \"lastClickedTs\": null,\n    \"idbouncecategory\": null,\n    \"complainted\": false,\n    \"converted\": false,\n    \"lastConversionTs\": null,\n    \"expectedDeliveryTs\": 1725372853855,\n    \"messageRetention\": \"minimal\",\n    \"externalId\": null\n}"}],"_postman_id":"6cc8c28e-d0d2-4a1c-af4c-48b993d988ec"},{"name":"Send MIME message","id":"8f1bfbd4-5b6b-43ed-95f3-b0d9e77e70ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"message/rfc822"}],"body":{"mode":"raw","raw":"From: \"MN test\" <sender@example.com>\nMessage-ID: <5bec11c119194c14999e592feb46e3cf@localhost>\nSubject: Test Email\nTo: recipient@example.com\nMIME-Version: 1.0\nContent-Type: multipart/alternative; \n boundary=\"start\"\n\n--start\nContent-type: text/html; charset=iso-8859-1\nContent-Transfer-Encoding: quoted-printable\n\n<html>\n<head>\n</head>\n<body>\n<div>This is a test email</div>\n</body>\n</html>\n\n--start--","options":{"raw":{"language":"text"}}},"url":"/v19/simplemessages/mimemessage?recipient=recipient@example.com&cssinline=false&idmessagetype=0&retention=full&destination=frontend","description":"<p>Send a MIME transactional message</p>\n<p>If the message is sent successfully, this function returns the message ID; otherwise it returns an error.</p>\n<p><strong>Prerequisites:</strong></p>\n<ul>\n<li><p>Define the mandatory <code>recipient</code> query parameter.</p>\n</li>\n<li><p>Include the header: <code>Content-Type: message/rfc822</code>.</p>\n</li>\n</ul>\n<hr />\n<h4 id=\"query-parameters\">Query parameters</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>recipient</code></td>\n<td>String</td>\n<td>Recipient email address (mandatory).</td>\n</tr>\n<tr>\n<td><code>idcontact</code></td>\n<td>Integer</td>\n<td>ID of the contact to link to the message (optional).</td>\n</tr>\n<tr>\n<td><code>expectedDeliveryTs</code></td>\n<td>Timestamp</td>\n<td>Unix timestamp in milliseconds (default <code>null</code>) to schedule future delivery.</td>\n</tr>\n<tr>\n<td><code>destination</code></td>\n<td>String</td>\n<td>Specifies delivery channel: <code>frontend</code> (contact), <code>backend</code> (platform user), or <code>bulk</code> (Simply-SMTP). Default is <code>frontend</code>.</td>\n</tr>\n<tr>\n<td><code>idmessagetype</code></td>\n<td>Integer</td>\n<td>Message type for statistics aggregation.</td>\n</tr>\n<tr>\n<td><code>cssinline</code></td>\n<td>Boolean</td>\n<td>Whether to apply CSS inline to the HTML content.</td>\n</tr>\n<tr>\n<td><code>retention</code></td>\n<td>String</td>\n<td>Retention policy: <code>minimal</code> (discard body), <code>full</code> (store body &amp; headers), or <code>reserved</code>.</td>\n</tr>\n<tr>\n<td><code>externalId</code></td>\n<td>String</td>\n<td>Custom external ID (up to 1000 chars) for mapping the message to another system.</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h4 id=\"result\">Result</h4>\n<p>Returns a JSON object:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>ok</code></td>\n<td><code>true</code> or <code>false</code></td>\n</tr>\n<tr>\n<td><code>error</code></td>\n<td>Error description (if <code>ok</code> is <code>false</code>)</td>\n</tr>\n<tr>\n<td><code>messageId</code></td>\n<td>ID of the transactional message (if <code>ok</code> is <code>true</code>)</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","simplemessages","mimemessage"],"host":[""],"query":[{"key":"recipient","value":"recipient@example.com"},{"key":"cssinline","value":"false"},{"key":"idmessagetype","value":"0"},{"key":"retention","value":"full"},{"key":"destination","value":"frontend"}],"variable":[]}},"response":[{"id":"208011ed-9bcb-485a-ba17-a6a065965d7b","name":"Success Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"message/rfc822"}],"body":{"mode":"raw","raw":"From: \"MN test\" <sender@example.com>\nMessage-ID: <5bec11c119194c14999e592feb46e3cf@localhost>\nSubject: Test Email\nTo: recipient@example.com\nMIME-Version: 1.0\nContent-Type: multipart/alternative; \n boundary=\"start\"\n\n--start\nContent-type: text/html; charset=iso-8859-1\nContent-Transfer-Encoding: quoted-printable\n\n<html>\n<head>\n</head>\n<body>\n<div>This is a test email</div>\n</body>\n</html>\n\n--start--"},"url":{"raw":"/v19/simplemessages/mimemessage?recipient=recipient@example.com&cssinline=false&idmessagetype=0&retention=full&destination=frontend","host":[""],"path":["v19","simplemessages","mimemessage"],"query":[{"key":"recipient","value":"recipient@example.com"},{"key":"cssinline","value":"false"},{"key":"idmessagetype","value":"0"},{"key":"retention","value":"full"},{"key":"destination","value":"frontend"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"messageId\": \"1\",\n  \"ok\": true,\n  \"error\": \"\"\n}"},{"id":"3b812765-8839-4d35-ac5f-d4bf512d9214","name":"Error Response - Empty From Email","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"message/rfc822"}],"body":{"mode":"raw","raw":"Subject: Test Email\nTo: recipient@example.com\nMIME-Version: 1.0\nContent-Type: text/plain; charset=utf-8\n\nThis is a test email"},"url":{"raw":"/v19/simplemessages/mimemessage?recipient=recipient@example.com&cssinline=false&idmessagetype=0&retention=full&destination=frontend","host":[""],"path":["v19","simplemessages","mimemessage"],"query":[{"key":"recipient","value":"recipient@example.com"},{"key":"cssinline","value":"false"},{"key":"idmessagetype","value":"0"},{"key":"retention","value":"full"},{"key":"destination","value":"frontend"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"messageId\": null,\n  \"ok\": false,\n  \"error\": \"Empty from in body message\"\n}"},{"id":"f8ab6b0d-aa46-4574-a170-69cf1f54f380","name":"Server Error Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"message/rfc822"}],"body":{"mode":"raw","raw":"From: \"MN test\" <sender@example.com>\nMessage-ID: <5bec11c119194c14999e592feb46e3cf@localhost>\nSubject: Test Email\nTo: recipient@example.com\nMIME-Version: 1.0\nContent-Type: multipart/alternative; \n boundary=\"start\"\n\n--start\nContent-type: text/html; charset=iso-8859-1\nContent-Transfer-Encoding: quoted-printable\n\n<html>\n<head>\n</head>\n<body>\n<div>This is a test email</div>\n</body>\n</html>\n\n--start--"},"url":{"raw":"/v19/simplemessages/mimemessage?recipient=recipient@example.com&cssinline=false&idmessagetype=0&retention=full&destination=frontend","host":[""],"path":["v19","simplemessages","mimemessage"],"query":[{"key":"recipient","value":"recipient@example.com"},{"key":"cssinline","value":"false"},{"key":"idmessagetype","value":"0"},{"key":"retention","value":"full"},{"key":"destination","value":"frontend"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"messageId\": null,\n  \"ok\": false,\n  \"error\": \"Error: Internal server error\"\n}"}],"_postman_id":"8f1bfbd4-5b6b-43ed-95f3-b0d9e77e70ac"},{"name":"Batch Send simple messages","id":"670a934d-0618-41ad-902f-9dff50463ce3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"messages\": [\n    {\n      \"options\": {\n        \"usecontactemail\": false,\n        \"nospool\": false\n      },\n      \"values\": {\n        \"type\": \"email\",\n        \"fromemail\": \"sender@example.com\",\n        \"fromname\": \"Sender Name\",\n        \"to\": \"recipient1@example.com\",\n        \"subject\": \"Test Email 1\",\n        \"htmlbody\": \"This is a <i>test</i> email 1\"\n      }\n    },\n    {\n      \"options\": {\n        \"usecontactemail\": false,\n        \"nospool\": false\n      },\n      \"values\": {\n        \"type\": \"email\",\n        \"fromemail\": \"sender@example.com\",\n        \"fromname\": \"Sender Name\",\n        \"to\": \"recipient2@example.com\",\n        \"subject\": \"Test Email 2\",\n        \"htmlbody\": \"This is a <i>test</i> email 2\"\n      }\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"/v19/simplemessages/messages","description":"<p>Send multiple simple messages in a batch.</p>\n<p>Options are the same as Send simple messages.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","simplemessages","messages"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"9de080aa-9e82-4de3-9c28-d5346799802d","name":"Success Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"messages\": [\n    {\n      \"options\": {\n        \"usecontactemail\": false,\n        \"nospool\": false\n      },\n      \"values\": {\n        \"type\": \"email\",\n        \"fromemail\": \"sender@example.com\",\n        \"fromname\": \"Sender Name\",\n        \"to\": \"recipient1@example.com\",\n        \"subject\": \"Test Email 1\",\n        \"htmlbody\": \"This is a <i>test</i> email 1\"\n      }\n    },\n    {\n      \"options\": {\n        \"usecontactemail\": false,\n        \"nospool\": false\n      },\n      \"values\": {\n        \"type\": \"email\",\n        \"fromemail\": \"sender@example.com\",\n        \"fromname\": \"Sender Name\",\n        \"to\": \"recipient2@example.com\",\n        \"subject\": \"Test Email 2\",\n        \"htmlbody\": \"This is a <i>test</i> email 2\"\n      }\n    }\n  ]\n}"},"url":"https://ws-mn1.mag-news.it/ws/rest/api/v19/simplemessages/messages"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"results\": [\n    {\n      \"result\": {\n        \"messageId\": \"123456\",\n        \"address\": \"recipient1@example.com\",\n        \"actualStatus\": \"waiting\",\n        \"sentDate\": \"2023-06-15T10:30:00.000Z\",\n        \"opened\": false,\n        \"clicked\": false,\n        \"complainted\": false,\n        \"converted\": false,\n        \"messageRetention\": \"full\",\n        \"externalId\": null\n      }\n    },\n    {\n      \"result\": {\n        \"messageId\": \"123457\",\n        \"address\": \"recipient2@example.com\",\n        \"actualStatus\": \"waiting\",\n        \"sentDate\": \"2023-06-15T10:30:00.000Z\",\n        \"opened\": false,\n        \"clicked\": false,\n        \"complainted\": false,\n        \"converted\": false,\n        \"messageRetention\": \"full\",\n        \"externalId\": null\n      }\n    }\n  ]\n}"},{"id":"c311477d-2bf3-488a-8f1d-beaa39c56cb0","name":"Error Response - Empty From Email","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"messages\": [\n    {\n      \"options\": {\n        \"usecontactemail\": false,\n        \"nospool\": false\n      },\n      \"values\": {\n        \"type\": \"email\",\n        \"to\": \"recipient1@example.com\",\n        \"subject\": \"Test Email 1\",\n        \"htmlbody\": \"This is a <i>test</i> email 1\"\n      }\n    }\n  ]\n}"},"url":"/v19/simplemessages/messages"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"error\": \"an empty fromemail is not valid\"\n}"},{"id":"3c40708c-130f-481a-899a-b5420cc6cd2e","name":"Server Error Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"messages\": [\n    {\n      \"options\": {\n        \"usecontactemail\": false,\n        \"nospool\": false\n      },\n      \"values\": {\n        \"type\": \"email\",\n        \"fromemail\": \"sender@example.com\",\n        \"fromname\": \"Sender Name\",\n        \"to\": \"recipient1@example.com\",\n        \"subject\": \"Test Email 1\",\n        \"htmlbody\": \"This is a <i>test</i> email 1\"\n      }\n    }\n  ]\n}"},"url":"/v19/simplemessages/messages"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"error\": \"Internal server error\",\n  \"message\": \"An unexpected error occurred while processing your request\"\n}"}],"_postman_id":"670a934d-0618-41ad-902f-9dff50463ce3"}],"id":"579b9e5e-f32c-424b-a92d-eda247ee8d70","description":"<blockquote>\n<p><strong>Note:</strong> What magnews refers to as “Transactional messages” are called <strong>Simple messages</strong> in the API.</p>\n</blockquote>\n","_postman_id":"579b9e5e-f32c-424b-a92d-eda247ee8d70","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}}},{"name":"Communications","item":[{"name":"Get newsletter basic information","id":"8ae64365-340f-498e-9c37-a3e1be19f2b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/v19/newsletters/:id/info","description":"<p>Get newsletter (communication or transactional template) basic information such as name, type, status, thumbnail image, channel details (like email headers), etc.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","newsletters",":id","info"],"host":[""],"query":[],"variable":[{"description":{"content":"<p>the newsletter id (communication or template id)</p>\n","type":"text/plain"},"type":"any","value":"372","key":"id"}]}},"response":[{"id":"c5c84827-0e24-49a8-8976-581d7689c5bc","name":"Communication example","originalRequest":{"method":"GET","header":[],"url":{"raw":"/v19/newsletters/:id/info","host":[""],"path":["v19","newsletters",":id","info"],"variable":[{"key":"id","value":"1","description":"the communication id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Mn-PageType","value":"Webservice"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"qapatch:6"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Fri, 25 Jul 2025 07:48:39 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"},{"key":"content-encoding","value":"gzip"},{"key":"transfer-encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": 101,\n  \"name\": \"Summer Deals Newsletter\",\n  \"type\": \"communication\",\n  \"status\": \"draft\",\n  \"idjourney\": 202,\n  \"journey\": \"Summer Campaign 2025\",\n  \"idworkflow\": 0,\n  \"idlandingpage\": 0,\n  \"creationDate\": 1730707200000,\n  \"lastUpdateDate\": 1731285600000,\n  \"sentDate\": null,\n  \"scheduledSendDate\": null,\n  \"channels\": [\n    {\n      \"preheader\": \"Save big on your summer essentials\",\n      \"from_email\": \"offers@magnews.com\",\n      \"channel\": \"email\",\n      \"absplit\": false,\n      \"from_name\": \"Magnews Marketing Team\"\n    }\n  ],\n  \"thumbnail\": \"http://myfrontendinstance/newsletterthumb/6/101?_cv=704942055&s=b3ffd470b2e15490d33eb314a1e7102ef6fe760c401120982a9df241fdcf849e\"\n}\n"},{"id":"d35e8d48-50b6-4f1f-a1a4-10d37e0e1f38","name":"Transactional example","originalRequest":{"method":"GET","header":[],"url":{"raw":"/v19/newsletters/:id/info","host":[""],"path":["v19","newsletters",":id","info"],"variable":[{"key":"id","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Mn-PageType","value":"Webservice"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"qapatch:6"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Fri, 25 Jul 2025 09:40:52 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"},{"key":"content-encoding","value":"gzip"},{"key":"transfer-encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 337,\n    \"name\": \"WhatsApp test Rest API\",\n    \"type\": \"transactional\",\n    \"status\": \"active\",\n    \"idjourney\": 11,\n    \"journey\": \"My journey\",\n    \"idworkflow\": 0,\n    \"idlandingpage\": 0,\n    \"creationDate\": 1725360693687,\n    \"lastUpdateDate\": 1725370784810,\n    \"sentDate\": null,\n    \"scheduledSendDate\": null,\n    \"channels\": [\n        {\n            \"channel\": \"whatsappbusiness\"\n        }\n    ],\n    \"thumbnail\": \"http://myfrontendsite/newsletterthumb/6/337?_cv=1419749233&s=4db29bf46d558cd9f5226e1fd19bc547f04a7060526747fa4c799122aab8288f\"\n}"}],"_postman_id":"8ae64365-340f-498e-9c37-a3e1be19f2b2"},{"name":"Update newsletter basic information","id":"4d20e0ed-6517-49cf-8636-853910d838a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"Newsletter Promozionale Gennaio 2026\",\n  \"subject\": \"Sconti esclusivi solo per te!\",\n  \"fromEmail\": \"marketing@example.com\",\n  \"fromName\": \"Team Marketing MagNews\",\n  \"emailReplyTo\": \"supporto@example.com\",\n  \"preheader\": \"Scopri le offerte riservate ai nostri migliori clienti.\",\n  \"usersDescription\": \"Campagna per il lancio dei saldi invernali 2026.\",\n  \"contactsDescription\": \"Comunicazioni periodiche su sconti e promozioni.\"\n}","options":{"raw":{"language":"json"}}},"url":"/v19/newsletters/:id/update","description":"<p>Updates an existing newsletter. This endpoint allows modifying fields such as the name, subject, sender information, and descriptions. If the newsletter has an A/B split test enabled, you can target a specific variant for the update.</p>\n<h5 id=\"usage-notes\">Usage Notes</h5>\n<ol>\n<li><p>Transactional Newsletters: The <code>newsletterKey</code> field can only be set if the newsletter is configured as a transactional template.</p>\n</li>\n<li><p>A/B Split Test: If the newsletter has an active A/B test, the <code>subject</code>, <code>preheader</code>, <code>fromEmail</code> and <code>fromName</code> fields will update the specific variant if the endpoint is called with the <code>absplitversion</code> query parameter (e.g., <code>/update?absplitversion=b</code>).</p>\n</li>\n<li><p>Optionality: It is not necessary to send all fields; you can include only the ones you actually intend to modify in the JSON body.</p>\n</li>\n</ol>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","newsletters",":id","update"],"host":[""],"query":[],"variable":[{"description":{"content":"<p>the newsletter id (communication or template id)</p>\n","type":"text/plain"},"type":"any","value":"372","key":"id"}]}},"response":[{"id":"658afb5c-ae96-4d72-b4f1-143337b40c58","name":"Update newsletter basic information","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"Newsletter Promozionale Gennaio 2026\",\n  \"subject\": \"Sconti esclusivi solo per te!\",\n  \"fromEmail\": \"marketing@example.com\",\n  \"fromName\": \"Team Marketing MagNews\",\n  \"emailReplyTo\": \"supporto@example.com\",\n  \"preheader\": \"Scopri le offerte riservate ai nostri migliori clienti.\",\n  \"usersDescription\": \"Campagna per il lancio dei saldi invernali 2026.\",\n  \"contactsDescription\": \"Comunicazioni periodiche su sconti e promozioni.\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"/v19/newsletters/:id/update","host":[""],"path":["v19","newsletters",":id","update"],"variable":[{"key":"id","value":"372","description":"the newsletter id (communication or template id)"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Mn-PageType","value":"Webservice"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"qapatch:6"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Length","value":"0"},{"key":"Date","value":"Mon, 26 Jan 2026 15:29:12 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"4d20e0ed-6517-49cf-8636-853910d838a7"},{"name":"Send communication (create delivery)","id":"c843cd45-f4a5-455e-8007-35a17b892c8a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"enableEmail\": true,\n  \"skipConfirmation\": true,\n  \"target\": [\n    129\n  ],\n  \"schedule\": {\n    \"type\": \"immediate\"\n  },\n  \"options\": {\n    \"failOnEmptyTarget\": true,\n    \"useAllChannels\": true,\n    \"email\": {\n      \"useNewsletterOptions\": true,\n      \"allowDuplicatedRecipients\": false\n    },\n    \"additionalTargetFilterQuery\": \"SELECT * FROM CONTACTS WHERE email like '%diennea.com'\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"/v19/communications/communication/:id/send","description":"<p>Triggers the sending of a communication (newsletter) to a specified target. This creates a new Delivery instance. You can configure scheduling (immediate, postponed, periodic, or partitioned) and various delivery options for different channels (email, sms).</p>\n<p>Request body includes this fields:</p>\n<ul>\n<li><p><code>enableEmail</code>: Whether to enable email channel.</p>\n</li>\n<li><p><code>enableSms</code>: Whether to enable sms channel.</p>\n</li>\n<li><p><code>customChannels</code>: List of custom channels to enable (comma separated).</p>\n</li>\n<li><p><code>target</code>: List of target group IDs.</p>\n</li>\n<li><p><code>skipConfirmation</code>: If true, skips the confirmation step if required by the campaign.</p>\n</li>\n<li><p><code>schedule</code>: Scheduling configuration (see below)</p>\n</li>\n<li><p><code>options</code>: Delivery options (see below)</p>\n</li>\n</ul>\n<p>Scheduling configuration:</p>\n<ul>\n<li><p><code>type</code>: Type of schedule: <code>immediate</code>, <code>scheduled</code>, <code>periodic</code>, <code>partitioned</code>.</p>\n</li>\n<li><p><code>period</code>: For periodic: <code>daily</code>, <code>weekly</code>, <code>monthly</code>, <code>yearly</code>.</p>\n</li>\n<li><p><code>year</code>, <code>month</code>, <code>day</code>, <code>hour</code>, <code>minute</code>: Date and time components for the schedule.</p>\n</li>\n<li><p><code>sendtimeOptimization</code>: If true, enable send-time optimization.</p>\n</li>\n<li><p><code>useContactsTimeZone</code>: If true, use the contacts' time zone for delivery time.</p>\n</li>\n<li><p><code>weekDays</code>: For weekly period: <code>monday</code>, <code>tuesday</code>,..</p>\n</li>\n<li><p><code>partitions</code>: For partitioned deliveries: list of { \"<code>delta</code>\": long, \"<code>percent</code>\": int }</p>\n</li>\n<li><p><code>startInterval</code>, <code>endInterval</code>: Dates used to define a range for periodic deliveries.</p>\n</li>\n</ul>\n<p>Options:</p>\n<ul>\n<li><p><code>recall</code>: Whether this is a recall delivery.</p>\n</li>\n<li><p><code>failOnEmptyTarget</code>: If true, the request fails if the target has no contacts.</p>\n</li>\n<li><p><code>ignoreUserPreferencesOnChannels</code>: Ignore global user channel preferences and send the message anyway.</p>\n</li>\n<li><p><code>additionalTargetFilterQuery</code>: MQL filter to further restrict the target.</p>\n</li>\n<li><p><code>email</code>: Email specific options (subject override, encoding, images embedding, etc.).</p>\n</li>\n<li><p><code>sms</code>: SMS specific options (from override, encoding).</p>\n</li>\n<li><p><code>speedLimiter</code>: Limit the sending speed (<code>enabled</code>, <code>maxSpeedPerMinute</code>).</p>\n</li>\n<li><p><code>authorization</code>: Configure authorization workflow.</p>\n</li>\n<li><p><code>report</code>: Configure delivery report notification.</p>\n</li>\n</ul>\n<p>Response:</p>\n<ul>\n<li><p><code>iddelivery</code>: id of the delivery to use in <code>/delivery/:iddelivery/status</code>|<code>pause</code>|<code>stop</code>|<code>resume</code> endpoints</p>\n</li>\n<li><p><code>errors</code>: detailed errors (no channels enabled for communication, missing required parameters, no target for sending,...)</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","communications","communication",":id","send"],"host":[""],"query":[],"variable":[{"type":"any","value":"372","key":"id"}]}},"response":[{"id":"1310818e-d575-4f38-9a28-7825066be351","name":"Send communication","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"enableEmail\": true,\n  \"skipConfirmation\": true,\n  \"target\": [\n    129\n  ],\n  \"schedule\": {\n    \"type\": \"immediate\"\n  },\n  \"options\": {\n    \"failOnEmptyTarget\": true,\n    \"useAllChannels\": true,\n    \"email\": {\n      \"useNewsletterOptions\": true,\n      \"allowDuplicatedRecipients\": false\n    },\n    \"additionalTargetFilterQuery\": \"SELECT * FROM CONTACTS WHERE email like '%diennea.com'\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"/v19/communications/communication/:idnewsletter/send","host":[""],"path":["v19","communications","communication",":idnewsletter","send"],"variable":[{"key":"idnewsletter","value":"372","description":"ID of the communication (newsletter) to send."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Mn-PageType","value":"Webservice"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"qapatch:6"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Type","value":"application/json","description":"","type":"text"},{"key":"Date","value":"Fri, 23 Jan 2026 13:56:01 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"},{"key":"content-encoding","value":"gzip"},{"key":"transfer-encoding","value":"chunked"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"iddelivery\": 81,\n    \"errors\": null\n}"}],"_postman_id":"c843cd45-f4a5-455e-8007-35a17b892c8a"},{"name":"Get delivery status","id":"f120dc7e-0267-47a2-b523-3cd26a484a30","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/v19/deliveries/delivery/:iddelivery/status","description":"<p>Retrieves the detailed status and configuration of a specific delivery. Returns information about the current state, scheduling, and target audience.</p>\n<p>Response Body</p>\n<p>The response is a JSON object with the following fields:</p>\n<ul>\n<li><p><code>iddelivery</code> (int): The unique identifier of the delivery.</p>\n</li>\n<li><p><code>idnewsletter</code> (int): The identifier of the newsletter associated with the delivery.</p>\n</li>\n<li><p><code>trial</code> (boolean): Indicates if it's a trial delivery.</p>\n</li>\n<li><p><code>status</code> (string): The current status of the delivery. Possible values are:</p>\n<ul>\n<li><p><code>unconfirmed</code>: The delivery has not been confirmed.</p>\n</li>\n<li><p><code>scheduled</code>: The delivery is waiting to be sent at the scheduled time.</p>\n</li>\n<li><p><code>sending</code>: The delivery is being prepared or sent.</p>\n</li>\n<li><p><code>error</code>: An error occurred during preparation or sending.</p>\n</li>\n<li><p><code>finished</code>: The delivery has completed successfully.</p>\n</li>\n<li><p><code>paused</code>: The delivery has been paused.</p>\n</li>\n<li><p><code>stopped</code>: The delivery was interrupted or stopped.</p>\n</li>\n</ul>\n</li>\n<li><p><code>target</code> (list of integers): A list of audience IDs that are the target of this delivery.</p>\n</li>\n<li><p><code>targetUsesAdditionalFilter</code> (boolean): Indicates if additional filters are applied to the target</p>\n</li>\n<li><p><code>requestedMessages</code> (map): A map showing the number of requested messages per channel (e.g., \"email\", \"sms\").</p>\n</li>\n<li><p><code>startDate</code> (date): The timestamp when the delivery started or is scheduled to start.</p>\n</li>\n<li><p><code>schedule</code> (object): An object describing the scheduling configuration.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","deliveries","delivery",":iddelivery","status"],"host":[""],"query":[],"variable":[{"description":{"content":"<p>The unique integer ID of the delivery</p>\n","type":"text/plain"},"type":"any","value":"81","key":"iddelivery"}]}},"response":[{"id":"01396769-3aa2-41c2-8e40-22f99652c2e2","name":"Get delivery status","originalRequest":{"method":"GET","header":[],"url":{"raw":"/v19/deliveries/delivery/:iddelivery/status","host":[""],"path":["v19","deliveries","delivery",":iddelivery","status"],"variable":[{"key":"iddelivery","value":"81","description":"The unique integer ID of the delivery"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Mn-PageType","value":"Webservice"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"qapatch:6"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Fri, 23 Jan 2026 14:51:23 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"},{"key":"content-encoding","value":"gzip"},{"key":"transfer-encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"iddelivery\": 81,\n    \"idnewsletter\": 372,\n    \"trial\": false,\n    \"status\": \"sending\",\n    \"target\": [\n        129\n    ],\n    \"targetUsesAdditionalFilter\": true,\n    \"requestedMessages\": {\n        \"sms\": 0,\n        \"email\": 12\n    },\n    \"startDate\": 1769176616187,\n    \"schedule\": {\n        \"type\": \"immediate\"\n    }\n}"}],"_postman_id":"f120dc7e-0267-47a2-b523-3cd26a484a30"},{"name":"Pause delivery","id":"841bc179-7299-4d21-9483-2b692c1b030a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"/v19/deliveries/delivery/:iddelivery/pause","description":"<p>Pauses an active delivery. Suspends the execution of a delivery. The delivery must be active and not yet completed or moved to history. Requires \"send newsletter\" permissions.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","deliveries","delivery",":iddelivery","pause"],"host":[""],"query":[],"variable":[{"description":{"content":"<p>The unique integer ID of the delivery</p>\n","type":"text/plain"},"type":"any","value":"82","key":"iddelivery"}]}},"response":[{"id":"9e0716b0-5151-4359-9772-712386132d74","name":"Pause delivery","originalRequest":{"method":"POST","header":[],"url":{"raw":"/v19/deliveries/delivery/:iddelivery/pause","host":[""],"path":["v19","deliveries","delivery",":iddelivery","pause"],"variable":[{"key":"iddelivery","value":"82","description":"The unique integer ID of the delivery"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Mn-PageType","value":"Webservice"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"qapatch:6"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Length","value":"0"},{"key":"Date","value":"Mon, 26 Jan 2026 11:14:18 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"841bc179-7299-4d21-9483-2b692c1b030a"},{"name":"Resume delivery","id":"8d725097-d885-4a5f-a37e-196285202f04","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"/v19/deliveries/delivery/:iddelivery/resume","description":"<p>Resumes a previously paused delivery. Restarts a delivery that was suspended. It sets the resume time to the current system time. Requires \"send newsletter\" permissions.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","deliveries","delivery",":iddelivery","resume"],"host":[""],"query":[],"variable":[{"description":{"content":"<p>The unique integer ID of the delivery</p>\n","type":"text/plain"},"type":"any","value":"82","key":"iddelivery"}]}},"response":[{"id":"7221eb5a-ac92-4990-bb05-300e5d1ccac5","name":"Resume delivery","originalRequest":{"method":"POST","header":[],"url":{"raw":"/v19/deliveries/delivery/:iddelivery/resume","host":[""],"path":["v19","deliveries","delivery",":iddelivery","resume"],"variable":[{"key":"iddelivery","value":"82","description":"The unique integer ID of the delivery"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Mn-PageType","value":"Webservice"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"qapatch:6"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Length","value":"0"},{"key":"Date","value":"Mon, 26 Jan 2026 11:14:39 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"8d725097-d885-4a5f-a37e-196285202f04"},{"name":"Stop delivery","id":"02ffa33f-e3ee-4b72-9806-8eebdf079fc8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"/v19/deliveries/delivery/:iddelivery/stop","description":"<p>Stops an active delivery. This method attempts to cancel an ongoing delivery. It requires \"send newsletter\" permissions for the campaign associated with the delivery.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","deliveries","delivery",":iddelivery","stop"],"host":[""],"query":[],"variable":[{"description":{"content":"<p>The unique integer ID of the delivery</p>\n","type":"text/plain"},"type":"any","value":"82","key":"iddelivery"}]}},"response":[{"id":"51991bed-b335-40ab-9cbf-59e9bae15d25","name":"Stop delivery","originalRequest":{"method":"POST","header":[],"url":{"raw":"/v19/deliveries/delivery/:iddelivery/stop","host":[""],"path":["v19","deliveries","delivery",":iddelivery","stop"],"variable":[{"key":"iddelivery","value":"82","description":"The unique integer ID of the delivery"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Mn-PageType","value":"Webservice"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"qapatch:6"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Length","value":"0"},{"key":"Date","value":"Mon, 26 Jan 2026 11:14:51 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"02ffa33f-e3ee-4b72-9806-8eebdf079fc8"},{"name":"Query deliveries","id":"96abab59-cb5d-46ff-a45f-cdc1535e764f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/v19/deliveries/query?query=SELECT * from DELIVERIES where idnewsletter=5","description":"<p>Queries delivery records that satisfy an MQL query; a delivery represents a single instance created each time a communication is sent, whether for testing or for a production send.</p>\n<p>The response is a JSON array of objects containing:</p>\n<ul>\n<li><p><code>iddelivery</code>: ID of the delivery</p>\n</li>\n<li><p><code>idnewsletter</code>: ID of the associated communication</p>\n</li>\n<li><p><code>trial</code>: whether the delivery is a test (trial)</p>\n</li>\n<li><p><code>status</code>: a value between \"sending\", \"error\", \"unconfirmed\", \"scheduled\", \"paused\", \"finished\", \"stopped\"</p>\n</li>\n<li><p><code>target</code>: list of target audience IDs</p>\n</li>\n<li><p><code>targetUseAdditionalFilter</code>: whether an additional filter is applied to the target</p>\n</li>\n<li><p><code>requestedMessages</code>: count of requested messages per channel (ie: 'email': 23, 'sms': 2)</p>\n</li>\n<li><p><code>startDate</code>: start date and time of delivery (unix ts milliseconds)</p>\n</li>\n<li><p><code>schedule</code>: the scheduling configuration</p>\n</li>\n</ul>\n<p>The schedule object contains a type field which determines the structure:</p>\n<ul>\n<li><p><code>immediate</code>: No additional fields.</p>\n</li>\n<li><p><code>scheduled</code>: Includes <code>year, month, day, hour, minute, sendTimeOptimization, useContactsTimeZone</code>.</p>\n</li>\n<li><p><code>periodic</code>: Includes period (<code>daily, weekly, monthly, yearly</code>), <code>month, day, hour, minute, weekDays, useContactsTimeZone, sendTimeOptimization, startInterval, endInterval</code>.</p>\n</li>\n<li><p><code>partitioned</code>: Includes partitions (a list of objects with delta and percent).</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","deliveries","query"],"host":[""],"query":[{"description":{"content":"<p>MQL query to filter deliveries</p>\n","type":"text/plain"},"key":"query","value":"SELECT * from DELIVERIES where idnewsletter=5"}],"variable":[]}},"response":[{"id":"a3eb1f66-3c54-4fc6-9586-31f9d4d70e08","name":"Query communication deliveries","originalRequest":{"method":"GET","header":[],"url":{"raw":"/v19/deliveries/query?query=SELECT * from DELIVERIES where idnewsletter=5","host":[""],"path":["v19","deliveries","query"],"query":[{"key":"query","value":"SELECT * from DELIVERIES where idnewsletter=5","description":"SQL-like query to filter transactionals"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Mn-PageType","value":"Webservice"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"qapatch:6"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Type","value":"application/json","description":"","type":"text"},{"key":"Date","value":"Fri, 23 Jan 2026 11:23:51 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"},{"key":"content-encoding","value":"gzip"},{"key":"transfer-encoding","value":"chunked"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"[\n    {\n        \"iddelivery\": 2,\n        \"idnewsletter\": 5,\n        \"trial\": false,\n        \"status\": \"finished\",\n        \"target\": [\n            8\n        ],\n        \"targetUsesAdditionalFilter\": false,\n        \"requestedMessages\": {\n            \"sms\": 1,\n            \"email\": 0\n        },\n        \"startDate\": 1487852029587,\n        \"schedule\": {\n            \"type\": \"immediate\"\n        }\n    }\n]"}],"_postman_id":"96abab59-cb5d-46ff-a45f-cdc1535e764f"}],"id":"ba2ca151-4be3-47bd-910e-1281e8238e00","description":"<blockquote>\n<p>The Newsletters section includes both marketing communications and transactional templates.</p>\n</blockquote>\n","_postman_id":"ba2ca151-4be3-47bd-910e-1281e8238e00","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}}},{"name":"Contacts","item":[{"name":"Find contact by id","id":"be0fb330-8534-4116-a736-1b7d77e37c9e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/v19/contacts/contact/:idcontact","description":"<p>Find a contact by ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","contacts","contact",":idcontact"],"host":[""],"query":[],"variable":[{"type":"any","value":"1","key":"idcontact"}]}},"response":[{"id":"22327728-2477-4473-858e-6faa9fa57c62","name":"Success Response","originalRequest":{"method":"GET","header":[],"url":{"raw":"/v19/contacts/contact/:idcontact","host":[""],"path":["v19","contacts","contact",":idcontact"],"variable":[{"key":"idcontact","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"idcontact\": 1,\n  \"email\": \"contact@example.com\",\n  \"name\": \"John Doe\",\n  \"surname\": \"Smith\",\n  \"company\": \"Example Corp\",\n  \"phone\": \"+1234567890\",\n  \"mobile\": \"+1987654321\",\n  \"address\": \"123 Main St\",\n  \"city\": \"New York\",\n  \"zipcode\": \"10001\",\n  \"country\": \"USA\",\n  \"subscriptionDate\": \"2023-01-15T10:30:00.000Z\",\n  \"unsubscriptionDate\": null,\n  \"status\": \"active\",\n  \"customFields\": {\n    \"custom1\": \"value1\",\n    \"custom2\": \"value2\"\n  }\n}"}],"_postman_id":"be0fb330-8534-4116-a736-1b7d77e37c9e"},{"name":"Query contacts","id":"77b4ceb8-1bab-44b1-9028-55b5ca11ceb2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/v19/contacts/query?query=select * from contacts where iddatabase=7 limit 2","description":"<p>Return a list of contacts matching the specified query.</p>\n<h2 id=\"writing-queries\">Writing queries</h2>\n<p>See the <a href=\"https://help.magnews.it/hc/en-us/articles/18523225702290-Writing-queries-and-expressions#table_contacts\">Query documentation</a> for more details on how to write queries.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","contacts","query"],"host":[""],"query":[{"key":"query","value":"select * from contacts where iddatabase=7 limit 2"}],"variable":[]}},"response":[{"id":"8c6ed6ab-20e3-4ea8-9e94-a3194f5952d7","name":"Success Response","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://ws-mn1.mag-news.it/ws/rest/api/v19/contacts/query?query=select * from contacts where email like '%25informatica.it' and iddatabase=7","protocol":"https","host":["ws-mn1","mag-news","it"],"path":["ws","rest","api","v19","contacts","query"],"query":[{"key":"query","value":"select * from contacts where email like '%25informatica.it' and iddatabase=7"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"iddatabase\": 7,\n        \"idcontact\": 500106,\n        \"status\": \"unsubscribed\",\n        \"fields\": {\n            \"ls_score_dm_3\": \"0\",\n            \"ls_scoring_1\": \"cold\",\n            \"ls_score_dm_1\": \"0\",\n            \"ls_scoring_3\": \"cold\",\n            \"idlettore\": \"500106\",\n            \"iddatabase\": \"7\",\n            \"causa_eliminazione\": \"1\",\n            \"data_ultima_esportazione\": \"\",\n            \"idcontact\": \"500106\",\n            \"fax\": \"\",\n            \"shop_accepts_marketing\": \"false\",\n            \"nome_utente\": \"5062206324890\",\n            \"primarykey\": \"5062206324890\",\n            \"ls_score_bh\": \"0\",\n            \"riceve_sms\": \"0\",\n            \"suspend_til_date\": \"\",\n            \"idfriend\": \"0\",\n            \"check\": \"4215818\",\n            \"riceve_email\": \"1\",\n            \"formato_spedizione\": \"2\",\n            \"data_ultima_modifica\": \"25/02/2025 12:58\",\n            \"rfm_output_f_1\": \"0\",\n            \"rfm_output_f_3\": \"0\",\n            \"flag_stato\": \"99\",\n            \"data_eliminazione\": \"22/09/2022 11:51\",\n            \"rfm_output_r_1\": \"0\",\n            \"rfm_output_r_3\": \"0\",\n            \"causa_sospensione\": \"0\",\n            \"lingua\": \"\",\n            \"cognome\": \"Clementi\",\n            \"data_iscrizione\": \"26/03/2021 10:37\",\n            \"notrack\": \"false\",\n            \"timezone\": \"\",\n            \"dominio\": \"informatica.it\",\n            \"data_ultima_azione\": \"\",\n            \"cell\": \"\",\n            \"data_sospensione\": \"\",\n            \"iddeliverycluster\": \"0\",\n            \"login\": \"5062206324890\",\n            \"rfm_output_c_1\": \"Prospect\",\n            \"shopify_imported\": \"true\",\n            \"rfm_output_c_3\": \"Prospect\",\n            \"provenienza\": \"2\",\n            \"email\": \"diana.example+test@informatica.it\",\n            \"ls_score_dm\": \"-5\",\n            \"riceve_fax\": \"0\",\n            \"_fieldsets_with_record\": \"[]\",\n            \"dyn_address1_composite\": \"via marconi\",\n            \"data_conf_isc\": \"\",\n            \"ls_score_bh_3\": \"0\",\n            \"ls_score_bh_1\": \"0\",\n            \"idaddressbook\": \"7\",\n            \"rfm_output_m_1\": \"0\",\n            \"rfm_output_m_3\": \"0\",\n            \"ls_scoring_updated_at\": \"30/10/2023 12:58\"\n        }\n    },\n    {\n        \"iddatabase\": 7,\n        \"idcontact\": 500303,\n        \"status\": \"unsubscribed\",\n        \"fields\": {\n            \"ls_score_dm_3\": \"0\",\n            \"ls_scoring_1\": \"cold\",\n            \"ls_score_dm_1\": \"0\",\n            \"ls_scoring_3\": \"cold\",\n            \"idlettore\": \"500303\",\n            \"iddatabase\": \"7\",\n            \"causa_eliminazione\": \"1\",\n            \"data_ultima_esportazione\": \"\",\n            \"idcontact\": \"500303\",\n            \"fax\": \"\",\n            \"shop_accepts_marketing\": \"false\",\n            \"nome_utente\": \"5143771775130\",\n            \"primarykey\": \"5143771775130\",\n            \"ls_score_bh\": \"0\",\n            \"riceve_sms\": \"0\",\n            \"suspend_til_date\": \"\",\n            \"idfriend\": \"0\",\n            \"check\": \"9014573\",\n            \"riceve_email\": \"1\",\n            \"formato_spedizione\": \"2\",\n            \"data_ultima_modifica\": \"22/09/2022 11:50\",\n            \"rfm_output_f_1\": \"0\",\n            \"rfm_output_f_3\": \"0\",\n            \"flag_stato\": \"99\",\n            \"data_eliminazione\": \"22/09/2022 11:51\",\n            \"rfm_output_r_1\": \"0\",\n            \"rfm_output_r_3\": \"0\",\n            \"causa_sospensione\": \"0\",\n            \"lingua\": \"\",\n            \"cognome\": \"clem6\",\n            \"data_iscrizione\": \"27/07/2022 00:02\",\n            \"notrack\": \"false\",\n            \"timezone\": \"\",\n            \"dominio\": \"test.informatica.it\",\n            \"data_ultima_azione\": \"\",\n            \"cell\": \"\",\n            \"data_sospensione\": \"\",\n            \"iddeliverycluster\": \"0\",\n            \"login\": \"5143771775130\",\n            \"rfm_output_c_1\": \"Prospect\",\n            \"shopify_imported\": \"true\",\n            \"rfm_output_c_3\": \"Prospect\",\n            \"provenienza\": \"2\",\n            \"email\": \"diana.example+6@test.informatica.it\",\n            \"ls_score_dm\": \"-5\",\n            \"riceve_fax\": \"0\",\n            \"_fieldsets_with_record\": \"[]\",\n            \"data_conf_isc\": \"\",\n            \"ls_score_bh_3\": \"0\",\n            \"ls_score_bh_1\": \"0\",\n            \"idaddressbook\": \"7\",\n            \"rfm_output_m_1\": \"0\",\n            \"rfm_output_m_3\": \"0\",\n            \"ls_scoring_updated_at\": \"30/10/2023 12:58\"\n        }\n    },\n    {\n        \"iddatabase\": 7,\n        \"idcontact\": 500304,\n        \"status\": \"unsubscribed\",\n        \"fields\": {\n            \"ls_score_dm_3\": \"0\",\n            \"ls_scoring_1\": \"cold\",\n            \"ls_score_dm_1\": \"0\",\n            \"ls_scoring_3\": \"cold\",\n            \"idlettore\": \"500304\",\n            \"iddatabase\": \"7\",\n            \"causa_eliminazione\": \"1\",\n            \"data_ultima_esportazione\": \"\",\n            \"idcontact\": \"500304\",\n            \"fax\": \"\",\n            \"shop_accepts_marketing\": \"false\",\n            \"nome_utente\": \"5143784521882\",\n            \"primarykey\": \"5143784521882\",\n            \"ls_score_bh\": \"0\",\n            \"riceve_sms\": \"0\",\n            \"suspend_til_date\": \"\",\n            \"idfriend\": \"0\",\n            \"check\": \"16705419\",\n            \"riceve_email\": \"1\",\n            \"formato_spedizione\": \"2\",\n            \"data_ultima_modifica\": \"22/09/2022 11:50\",\n            \"rfm_output_f_1\": \"0\",\n            \"rfm_output_f_3\": \"0\",\n            \"flag_stato\": \"99\",\n            \"data_eliminazione\": \"22/09/2022 11:51\",\n            \"rfm_output_r_1\": \"0\",\n            \"rfm_output_r_3\": \"0\",\n            \"causa_sospensione\": \"0\",\n            \"lingua\": \"\",\n            \"cognome\": \"clem7\",\n            \"data_iscrizione\": \"27/07/2022 00:02\",\n            \"notrack\": \"false\",\n            \"timezone\": \"\",\n            \"dominio\": \"test.informatica.it\",\n            \"data_ultima_azione\": \"\",\n            \"cell\": \"\",\n            \"data_sospensione\": \"\",\n            \"iddeliverycluster\": \"0\",\n            \"login\": \"5143784521882\",\n            \"rfm_output_c_1\": \"Prospect\",\n            \"shopify_imported\": \"true\",\n            \"rfm_output_c_3\": \"Prospect\",\n            \"provenienza\": \"2\",\n            \"email\": \"diana.example@test.informatica.it\",\n            \"ls_score_dm\": \"-5\",\n            \"riceve_fax\": \"0\",\n            \"_fieldsets_with_record\": \"[]\",\n            \"data_conf_isc\": \"\",\n            \"ls_score_bh_3\": \"0\",\n            \"ls_score_bh_1\": \"0\",\n            \"idaddressbook\": \"7\",\n            \"rfm_output_m_1\": \"0\",\n            \"rfm_output_m_3\": \"0\",\n            \"ls_scoring_updated_at\": \"30/10/2023 12:58\"\n        }\n    },\n    {\n        \"iddatabase\": 7,\n        \"idcontact\": 500305,\n        \"status\": \"unsubscribed\",\n        \"fields\": {\n            \"ls_score_dm_3\": \"0\",\n            \"ls_scoring_1\": \"cold\",\n            \"ls_score_dm_1\": \"0\",\n            \"ls_scoring_3\": \"cold\",\n            \"idlettore\": \"500305\",\n            \"iddatabase\": \"7\",\n            \"causa_eliminazione\": \"1\",\n            \"data_ultima_esportazione\": \"\",\n            \"idcontact\": \"500305\",\n            \"fax\": \"\",\n            \"shop_accepts_marketing\": \"false\",\n            \"nome_utente\": \"5143840293018\",\n            \"primarykey\": \"5143840293018\",\n            \"ls_score_bh\": \"0\",\n            \"riceve_sms\": \"0\",\n            \"suspend_til_date\": \"\",\n            \"idfriend\": \"0\",\n            \"check\": \"300681\",\n            \"riceve_email\": \"1\",\n            \"formato_spedizione\": \"2\",\n            \"data_ultima_modifica\": \"22/09/2022 11:50\",\n            \"rfm_output_f_1\": \"0\",\n            \"rfm_output_f_3\": \"0\",\n            \"flag_stato\": \"99\",\n            \"data_eliminazione\": \"22/09/2022 11:51\",\n            \"rfm_output_r_1\": \"0\",\n            \"rfm_output_r_3\": \"0\",\n            \"causa_sospensione\": \"0\",\n            \"lingua\": \"\",\n            \"cognome\": \"clem8\",\n            \"data_iscrizione\": \"27/07/2022 00:02\",\n            \"notrack\": \"false\",\n            \"timezone\": \"\",\n            \"dominio\": \"test.informatica.it\",\n            \"data_ultima_azione\": \"\",\n            \"cell\": \"\",\n            \"data_sospensione\": \"\",\n            \"iddeliverycluster\": \"0\",\n            \"login\": \"5143840293018\",\n            \"rfm_output_c_1\": \"Prospect\",\n            \"shopify_imported\": \"true\",\n            \"rfm_output_c_3\": \"Prospect\",\n            \"provenienza\": \"2\",\n            \"email\": \"diana.example+8@test.informatica.it\",\n            \"ls_score_dm\": \"-5\",\n            \"riceve_fax\": \"0\",\n            \"_fieldsets_with_record\": \"[]\",\n            \"data_conf_isc\": \"\",\n            \"ls_score_bh_3\": \"0\",\n            \"ls_score_bh_1\": \"0\",\n            \"idaddressbook\": \"7\",\n            \"rfm_output_m_1\": \"0\",\n            \"rfm_output_m_3\": \"0\",\n            \"ls_scoring_updated_at\": \"30/10/2023 12:58\"\n        }\n    }\n]"}],"_postman_id":"77b4ceb8-1bab-44b1-9028-55b5ca11ceb2"},{"name":"Merge contact by id","id":"bb6c0843-cfe1-499e-a093-604378ef63ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"values\": {\n    \"email\": \"contact@example.com\",\n    \"name\": \"John Doe\"\n  },\n  \"options\": {\n    \"updateIfExists\": true\n  }\n}","options":{"raw":{"language":"json"}}},"url":"/v19/contacts/contact/:idcontact","description":"<p>Creates or updates a contact by providing the idcontact.</p>\n<h2 id=\"options\">Options</h2>\n<p>You can map these options in the json body of the request, under \"options\" object.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Option</th>\n<th>Type</th>\n<th>Default</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>iddatabase</td>\n<td>Integer</td>\n<td></td>\n<td>Database ID for the new contact</td>\n</tr>\n<tr>\n<td>sendemail</td>\n<td>Boolean</td>\n<td>false</td>\n<td>Request to send an email to the contact</td>\n</tr>\n<tr>\n<td>sendemailonactions</td>\n<td>String (comma-separated)</td>\n<td>insert, restore</td>\n<td>Actions for which to send email, depending on the merge result: <code>insert</code>, <code>update</code>, <code>nothing</code>, <code>reactivate</code>, <code>restore</code>, <code>subscription_confirm</code>, <code>update</code>, <code>delete</code>, <code>suspend</code></td>\n</tr>\n<tr>\n<td>idtemplate</td>\n<td>Integer</td>\n<td>null</td>\n<td>ID of the template of the transactional message to use for the email</td>\n</tr>\n<tr>\n<td>enterworkflow</td>\n<td>Boolean</td>\n<td>false</td>\n<td>Request the contact to enter an automated flow</td>\n</tr>\n<tr>\n<td>enterworkflowonactions</td>\n<td>String (comma-separated)</td>\n<td>insert, restore</td>\n<td>Actions triggering entrance to automated flow</td>\n</tr>\n<tr>\n<td>key</td>\n<td>String</td>\n<td>null</td>\n<td>Entry point ID for automated flow. If <code>idworkflow</code> not specified, all flows with the entry point are triggered</td>\n</tr>\n<tr>\n<td>idworkflow</td>\n<td>Integer</td>\n<td>0</td>\n<td>Specific workflow ID to enter. If 0, all matching flows are triggered</td>\n</tr>\n<tr>\n<td>wf.</td>\n<td>Primitive types</td>\n<td></td>\n<td>Session context variable, e.g., <code>\"wf.source\": \"website\"</code></td>\n</tr>\n<tr>\n<td>denyupdatecontact</td>\n<td>Boolean</td>\n<td>false</td>\n<td>Prevents contact update</td>\n</tr>\n<tr>\n<td>forceallowrestorecontactonupdate</td>\n<td>Boolean</td>\n<td>false</td>\n<td>Allows reactivation even with <code>denyupdatecontact = true</code></td>\n</tr>\n<tr>\n<td>denysubscribenewcontact</td>\n<td>Boolean</td>\n<td>false</td>\n<td>Prevents subscription of new contacts</td>\n</tr>\n<tr>\n<td>denysubscribeunsubscribedcontact</td>\n<td>Boolean</td>\n<td>false</td>\n<td>Denies reactivation of unsubscribed contacts</td>\n</tr>\n<tr>\n<td>messageRetention</td>\n<td>String</td>\n<td>\"minimal\"</td>\n<td>Retention policy: <code>\"minimal\"</code>, <code>\"full\"</code>, or <code>\"reserved\"</code></td>\n</tr>\n<tr>\n<td>lookuprelations</td>\n<td>Boolean</td>\n<td>false</td>\n<td>If true, uses logical keys for relational fields</td>\n</tr>\n<tr>\n<td>addToSimpleGroup</td>\n<td>Integer</td>\n<td></td>\n<td>Adds contact to the specified static audience</td>\n</tr>\n<tr>\n<td>removeFromSimpleGroup</td>\n<td>Integer</td>\n<td></td>\n<td>Removes contact from the specified static audience</td>\n</tr>\n<tr>\n<td>returnwebtrackingid</td>\n<td>Boolean</td>\n<td>false</td>\n<td>Returns Web Tracking session ID</td>\n</tr>\n<tr>\n<td>storeEvent</td>\n<td>String</td>\n<td></td>\n<td>This option requests to register an event. Only valid value: <code>\"contactUnsubscribed\"</code>; requires <code>messageRef</code></td>\n</tr>\n<tr>\n<td>messageRef</td>\n<td>String</td>\n<td></td>\n<td>Message reference for <code>storeEvent</code></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"values\">Values</h2>\n<p>You can map these values in the JSON body of the request, under the <code>values</code> object.  </p>\n<p>The <code>values</code> field contains the data to be associated with the contact. Keys must match the field IDs (e.g., <code>email</code>, <code>name</code>, <code>status</code>, etc.).</p>\n<p>For the <code>status</code> field, you can specify one of the following values: <code>subscribed</code>, <code>unsubscribed</code>, <code>unconfirmed</code> or <code>suspended</code>.</p>\n<p>⚠️ For decimal numbers, always use a JSON <strong>string</strong>, and format the decimal separator according to the international settings of the user performing the operation. Valid examples: <code>\"1234.56\"</code> or <code>\"1234,56\"</code>.</p>\n<p>For multivalue fields, use a string containing a comma-separated list of values, like this:<br /><code>\"MULTIVALUESFIELD\": \"\\\"value1\\\",\\\"value2\\\"\"</code>.</p>\n<h2 id=\"response\">Response</h2>\n<p>The API response contains the following fields:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>ok</code></td>\n<td>Boolean</td>\n<td><code>true</code> if the operation was successful</td>\n</tr>\n<tr>\n<td><code>pk</code></td>\n<td>String</td>\n<td>Primary key of the contact</td>\n</tr>\n<tr>\n<td><code>idcontact</code></td>\n<td>Integer</td>\n<td>Unique ID of the contact</td>\n</tr>\n<tr>\n<td><code>action</code></td>\n<td>String</td>\n<td>Executed action: one of <code>insert</code>, <code>update</code>, <code>delete</code>, <code>nothing</code>, <code>reactivate</code>, <code>restore</code>, <code>subscription_confirm</code>, <code>suspend</code></td>\n</tr>\n<tr>\n<td><code>errors</code></td>\n<td>Array</td>\n<td>List of possible errors; each includes a type and the related field</td>\n</tr>\n<tr>\n<td><code>sendemail</code></td>\n<td>Object</td>\n<td>Result of the email sending (if requested)</td>\n</tr>\n<tr>\n<td><code>sendemail.emailsent</code></td>\n<td>Boolean</td>\n<td><code>true</code> if the email was sent</td>\n</tr>\n<tr>\n<td><code>sendemail.emailaddress</code></td>\n<td>String</td>\n<td>Email address of the recipient</td>\n</tr>\n<tr>\n<td><code>sendemail.idsimplemessage</code></td>\n<td>String</td>\n<td>ID of the transactional message</td>\n</tr>\n<tr>\n<td><code>enterworkflow</code></td>\n<td>Object</td>\n<td>Result of the automated flow entry request</td>\n</tr>\n<tr>\n<td><code>enterworkflow.workflowentered</code></td>\n<td>Boolean</td>\n<td><code>true</code> if at least one automated flow session was triggered</td>\n</tr>\n<tr>\n<td><code>enterworkflow.idworkflowsessions</code></td>\n<td>Array of Integer</td>\n<td>List of session IDs for the triggered flows</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","contacts","contact",":idcontact"],"host":[""],"query":[],"variable":[{"type":"any","value":"1","key":"idcontact"}]}},"response":[{"id":"01a56093-3297-41eb-bd85-8a98480c0892","name":"Success Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"values\": {\n    \"email\": \"contact@example.com\",\n    \"name\": \"John Doe\"\n    \"multivaluefield\", \"\\\"val1\\\",\\\"val2\\\"\"\n  },\n  \"options\": {\n    \"updateIfExists\": true\n  }\n}"},"url":{"raw":"/v19/contacts/contact/:idcontact","host":[""],"path":["v19","contacts","contact",":idcontact"],"variable":[{"key":"idcontact","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"idcontact\": 1,\n  \"email\": \"contact@example.com\",\n  \"name\": \"John Doe\",\n  \"result\": \"updated\",\n  \"message\": \"Contact successfully updated\"\n}"}],"_postman_id":"bb6c0843-cfe1-499e-a093-604378ef63ff"},{"name":"Merge contact by primary key","id":"43941aaa-55da-4989-ab61-e6ca6fb26ffe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"values\": {\n    \"email\": \"contact@example.com\",\n    \"name\": \"John Doe\"\n  },\n  \"options\": {\n    \"iddatabase\": 1,\n    \"updateIfExists\": true\n  }\n}","options":{"raw":{"language":"json"}}},"url":"/v19/contacts/merge","description":"<p>Update or insert a contact by matching the database primary key value (e.g., email or username).</p>\n<p>For json body specification refer to <a href=\"#bb6c0843-cfe1-499e-a093-604378ef63ff\">Merge contact</a> options and values.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","contacts","merge"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"691eca2f-0044-464e-8192-1db6171bc284","name":"Success Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"values\": {\n    \"email\": \"contact@example.com\",\n    \"name\": \"John Doe\"\n  },\n  \"options\": {\n    \"iddatabase\": 1,\n    \"updateIfExists\": true\n  }\n}"},"url":"/v19/contacts/key"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"idcontact\": 1,\n  \"email\": \"contact@example.com\",\n  \"name\": \"John Doe\",\n  \"result\": \"created\",\n  \"message\": \"Contact successfully created\"\n}"}],"_postman_id":"43941aaa-55da-4989-ab61-e6ca6fb26ffe"},{"name":"Subscribe contact","id":"ef160197-a619-416e-87dc-739d46e512d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"values\": {\n    \"email\": \"contact@example.com\",\n    \"name\": \"John Doe\"\n  },\n  \"options\": {\n    \"iddatabase\": 1\n  }\n}","options":{"raw":{"language":"json"}}},"url":"/v19/contacts/subscribe","description":"<p>Subscribe a contact or change the contact status to <strong>subscribed</strong> if the contact already exists.</p>\n<p>For json body specification refer to <a href=\"#bb6c0843-cfe1-499e-a093-604378ef63ff\">Merge contact</a> options and values.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","contacts","subscribe"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"c48e2e3c-ea48-4e7d-8a87-3a9e86524f1e","name":"Success Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"values\": {\n    \"email\": \"contact@example.com\",\n    \"name\": \"John Doe\"\n  },\n  \"options\": {\n    \"iddatabase\": 1\n  }\n}"},"url":"/v19/contacts/subscribe"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"idcontact\": 1,\n  \"email\": \"contact@example.com\",\n  \"name\": \"John Doe\",\n  \"result\": \"subscribed\",\n  \"message\": \"Contact successfully subscribed to addressbook 1\"\n}"}],"_postman_id":"ef160197-a619-416e-87dc-739d46e512d2"},{"name":"Unsubscribe contact","id":"e3a873bc-f35e-4218-94c2-8ac9f2d13486","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"values\": {\n    \"email\": \"contact@example.com\"\n  },\n  \"options\": {\n    \"iddatabase\": 1\n  }\n}","options":{"raw":{"language":"json"}}},"url":"/v19/contacts/unsubscribe","description":"<p>Unsubscribe a contact.</p>\n<p>For json body specification refer to <a href=\"#bb6c0843-cfe1-499e-a093-604378ef63ff\">Merge contact</a> options and values.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","contacts","unsubscribe"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"161f09c6-3186-4770-b8aa-d68996ca2c93","name":"Success Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"values\": {\n    \"email\": \"contact@example.com\"\n  },\n  \"options\": {\n    \"iddatabase\": 1\n  }\n}"},"url":"/v19/contacts/unsubscribe"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"idcontact\": 1,\n  \"email\": \"contact@example.com\",\n  \"result\": \"unsubscribed\",\n  \"message\": \"Contact successfully unsubscribed from addressbook 1\"\n}"}],"_postman_id":"e3a873bc-f35e-4218-94c2-8ac9f2d13486"},{"name":"Delete contact","id":"f3cc25e4-285b-4a64-8392-2405ac31ec02","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"url":"/v19/contacts/delete/:idcontact?dropformsdata=true","description":"<p>Permanently deletes a single contact and all associated data.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","contacts","delete",":idcontact"],"host":[""],"query":[{"description":{"content":"<p>(boolean, optional) If not specified, defaults to true. When true, also deletes the contact’s form submissions.</p>\n","type":"text/plain"},"key":"dropformsdata","value":"true"}],"variable":[{"type":"any","value":"","key":"idcontact"}]}},"response":[{"id":"c3317c9c-0570-46fd-bd83-4be5d9fe9c47","name":"Success response","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"/v19/contacts/delete/:idcontact?dropformsdata=true","host":[""],"path":["v19","contacts","delete",":idcontact"],"query":[{"key":"dropformsdata","value":"true","description":"(boolean, optional) If not specified, defaults to true. When true, also deletes the contact’s form submissions."}],"variable":[{"key":"idcontact","value":"104"}]}},"status":"No Content","code":204,"_postman_previewlanguage":null,"header":[{"key":"X-Mn-PageType","value":"Webservice"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"qapatch:6"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Date","value":"Thu, 13 Nov 2025 08:02:41 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"}],"cookie":[],"responseTime":null,"body":null},{"id":"ceffc05d-1da7-4e53-b345-dd693f590f92","name":"Delete contact (contact not found)","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"/v19/contacts/delete/:idcontact?dropformsdata=true","host":[""],"path":["v19","contacts","delete",":idcontact"],"query":[{"key":"dropformsdata","value":"true","description":"(boolean, optional) If not specified, defaults to true. When true, also deletes the contact’s form submissions."}],"variable":[{"key":"idcontact","value":"103"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":[{"key":"X-Mn-PageType","value":"Webservice"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"qapatch:6"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Thu, 13 Nov 2025 08:01:49 GMT"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"},{"key":"connection","value":"close"},{"key":"content-encoding","value":"gzip"},{"key":"transfer-encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"contact not found or missing permissions\",\n    \"debugMessage\": \"contact not found or missing permissions\"\n}"}],"_postman_id":"f3cc25e4-285b-4a64-8392-2405ac31ec02"},{"name":"Batch merge contacts","id":"ae65bd86-2571-4439-bbf8-07d2e6b58cc9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"iddatabase\": 1,\n    \"contacts\": [\n        {\n            \"values\": [\n                {\n                    \"field\": \"email\",\n                    \"value\": \"contact1@example.com\"\n                },\n                {\n                    \"field\": \"name\",\n                    \"value\": \"John Doe\"\n                }\n            ]\n        },\n        {\n            \"values\": [\n                {\n                    \"field\": \"email\",\n                    \"value\": \"contact2@example.com\"\n                },\n                {\n                    \"field\": \"name\",\n                    \"value\": \"Jane Doe\"\n                }\n            ]\n        }\n    ],\n    \"options\": {\n        \"updateIfExists\": true\n    }\n}","options":{"raw":{"language":"json"}}},"url":"/v19/contacts/batchmerge","description":"<p>Merge multiple contacts in a batch.</p>\n<p>For json body specification refer to <a href=\"#bb6c0843-cfe1-499e-a093-604378ef63ff\">Merge contact</a> options and values.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","contacts","batchmerge"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"0476ef32-ee72-4314-b61d-61c3cae73f35","name":"Success Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"contacts\": [\n    {\n      \"values\": {\n        \"email\": \"contact1@example.com\",\n        \"name\": \"John Doe\"\n      },\n      \"options\": {\n        \"iddatabase\": 1\n      }\n    },\n    {\n      \"values\": {\n        \"email\": \"contact2@example.com\",\n        \"name\": \"Jane Doe\"\n      },\n      \"options\": {\n        \"iddatabase\": 1\n      }\n    }\n  ],\n  \"options\": {\n    \"updateIfExists\": true\n  }\n}","options":{"raw":{"language":"json"}}},"url":"/v19/contacts/batch"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"results\": [\n    {\n      \"idcontact\": 1,\n      \"email\": \"contact1@example.com\",\n      \"name\": \"John Doe\",\n      \"result\": \"created\",\n      \"message\": \"Contact successfully created\"\n    },\n    {\n      \"idcontact\": 2,\n      \"email\": \"contact2@example.com\",\n      \"name\": \"Jane Doe\",\n      \"result\": \"updated\",\n      \"message\": \"Contact successfully updated\"\n    }\n  ],\n  \"totalProcessed\": 2,\n  \"totalCreated\": 1,\n  \"totalUpdated\": 1,\n  \"totalErrors\": 0\n}"},{"id":"5197081b-acc7-45ba-bdc2-a14678da18d2","name":"Add to static group","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"iddatabase\": 1,\n    \"contacts\": [\n        {\n            \"values\": [\n                {\n                    \"field\": \"email\",\n                    \"value\": \"testemail482404@test.example.com\"\n                }\n            ]\n        },\n        {\n            \"values\": [\n                {\n                    \"field\": \"email\",\n                    \"value\": \"testemail482405@test.example.com\"\n                }\n            ]\n        }\n    ],\n    \"options\": {\n        \"updateIfExists\": true,\n        \"addToSimpleGroup\":23 /*id of the static group*/\n    }\n}","options":{"raw":{"language":"json"}}},"url":"/v19/contacts/batchmerge"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Mn-PageType","value":"Webservice"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"qapatch:6"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Fri, 31 Oct 2025 08:06:09 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"},{"key":"content-encoding","value":"gzip"},{"key":"transfer-encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"ok\": true,\n        \"pk\": \"testemail482404@test.example.com\",\n        \"idcontact\": 482470,\n        \"action\": \"update\",\n        \"errors\": null,\n        \"sendemail\": null,\n        \"enterworkflow\": null,\n        \"idwebtracking\": null\n    },\n    {\n        \"ok\": true,\n        \"pk\": \"testemail482405@test.example.com\",\n        \"idcontact\": 482471,\n        \"action\": \"update\",\n        \"errors\": null,\n        \"sendemail\": null,\n        \"enterworkflow\": null,\n        \"idwebtracking\": null\n    }\n]"}],"_postman_id":"ae65bd86-2571-4439-bbf8-07d2e6b58cc9"},{"name":"Batch delete contacts","id":"43f91502-9131-424c-bcc2-a72193ad7cf1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"contactids\": [102,103],\n    \"contactpks\": [\n        {\n            \"contactpk\": \"testemail34@test.example.com\",\n            \"iddatabase\": 1\n        },\n        {\n            \"contactpk\": \"testemail35@test.example.com\",\n            \"iddatabase\": 2\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"/v19/contacts/batchdelete","description":"<p>Deletes multiple contacts in batch. A contact can be identified either by its unique ID or by the pair <em>primary key + database ID</em>. Contacts are deduplicated before processing. The optional query parameter <code>dropFormsData</code> (boolean, defaults to <code>true</code>) works as described above, also deletes the contact’s form submissions.</p>\n<p>If <code>allowPartialDelete</code> is set to <code>true</code>, contacts that cannot be deleted are skipped, while the others are removed. The request completes with a <code>200</code> response and includes a summary report.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","contacts","batchdelete"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"8ddc1a9e-4b0a-4b51-a238-01c251840c1a","name":"Batch delete contacts","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"contactids\": [102,103],\n    \"contactpks\": [\n        {\n            \"contactpk\": \"testemail34@test.example.com\",\n            \"iddatabase\": 1\n        },\n        {\n            \"contactpk\": \"testemail35@test.example.com\",\n            \"iddatabase\": 2\n        }\n    ]\n}"},"url":"/v19/contacts/batchdelete"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Mn-PageType","value":"Webservice"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"qapatch:6"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Thu, 13 Nov 2025 08:00:36 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"},{"key":"content-encoding","value":"gzip"},{"key":"transfer-encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": [\n        {\n            \"idcontact\": null,\n            \"contactpk\": \"testemail35@test.example.com\",\n            \"iddatabase\": 2,\n            \"successful\": false,\n            \"error\": \"contact not found by primary key and database id lookup\"\n        },\n        {\n            \"idcontact\": 100,\n            \"contactpk\": \"testemail34@test.example.com\",\n            \"iddatabase\": 1,\n            \"successful\": true,\n            \"error\": null\n        },\n        {\n            \"idcontact\": 102,\n            \"contactpk\": \"testemail36@test.example.com\",\n            \"iddatabase\": 1,\n            \"successful\": true,\n            \"error\": null\n        },\n        {\n            \"idcontact\": 103,\n            \"contactpk\": \"testemail37@test.example.com\",\n            \"iddatabase\": 1,\n            \"successful\": true,\n            \"error\": null\n        }\n    ]\n}"}],"_postman_id":"43f91502-9131-424c-bcc2-a72193ad7cf1"}],"id":"64406834-79e7-4c33-a6af-6a059f04e75b","_postman_id":"64406834-79e7-4c33-a6af-6a059f04e75b","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}}},{"name":"Audiences","item":[{"name":"Find audience by id","id":"a7d179a1-f4ce-414e-8cb9-c05c878b9054","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/v19/audiences/audience/:idaudience","description":"<p>Find an audience by ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","audiences","audience",":idaudience"],"host":[""],"query":[],"variable":[{"type":"any","value":"1","key":"idaudience"}]}},"response":[{"id":"2d6a7e6d-2b73-4d3f-b6ec-c740eb8075f9","name":"Success Response","originalRequest":{"method":"GET","header":[],"url":{"raw":"/v19/audiences/audience/:idaudience","host":[""],"path":["v19","audiences","audience",":idaudience"],"variable":[{"key":"idaudience","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"iddatabase\": 0,\n    \"name\": \"Contatti sospesi\",\n    \"idgroup\": 1,\n    \"idparent\": 78,\n    \"idlist\": 0,\n    \"idplanneddelivery\": 0,\n    \"ondemand\": false,\n    \"creationdate\": 1436524697587,\n    \"lastmodificationdate\": 1599040054627,\n    \"expiredate\": null,\n    \"creationuserid\": 2,\n    \"modificationuserid\": 2,\n    \"staticgroup\": false,\n    \"contactgroupstatus\": null\n}"}],"_postman_id":"a7d179a1-f4ce-414e-8cb9-c05c878b9054"},{"name":"Query audiences","id":"43c4a2a7-59ad-45d4-bf38-60fabdcf9202","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/v19/audiences/query?query=SELECT * FROM groups WHERE idgroup=18","description":"<p>Return a list of audiences matching the specified query.</p>\n<h2 id=\"writing-queries\">Writing queries</h2>\n<p>See the <a href=\"https://help.magnews.it/hc/en-us/articles/18523225702290-Writing-queries-and-expressions#table_groups\">Query documentation</a> for more details on how to write queries.</p>\n<p>Note: the <code>groups</code> table refers to <strong>audiences</strong>.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","audiences","query"],"host":[""],"query":[{"key":"query","value":"SELECT * FROM groups WHERE idgroup=18"}],"variable":[]}},"response":[{"id":"6d678f7c-8e3a-44c7-a2d7-6b279b18957d","name":"Query audiences","originalRequest":{"method":"GET","header":[],"url":{"raw":"/v19/audiences/query?query=SELECT * FROM groups where name ='Iscritti alla newsletter - Non clienti'","host":[""],"path":["v19","audiences","query"],"query":[{"key":"query","value":"SELECT * FROM groups where name ='Iscritti alla newsletter - Non clienti'"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Mn-PageType","value":"Webservice"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"qapatch:6"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Type","value":"application/json","description":"","type":"text"},{"key":"Date","value":"Thu, 04 Dec 2025 12:08:03 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"},{"key":"content-encoding","value":"gzip"},{"key":"transfer-encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"iddatabase\": 0,\n        \"name\": \"Iscritti alla newsletter - Non clienti\",\n        \"idgroup\": 11,\n        \"idparent\": 9,\n        \"idlist\": 0,\n        \"idplanneddelivery\": 0,\n        \"ondemand\": false,\n        \"creationdate\": 1537856218520,\n        \"lastmodificationdate\": 1537856218507,\n        \"expiredate\": null,\n        \"creationuserid\": 2,\n        \"modificationuserid\": 2,\n        \"staticgroup\": false,\n        \"contactgroupstatus\": null\n    }\n]"}],"_postman_id":"43c4a2a7-59ad-45d4-bf38-60fabdcf9202"},{"name":"Create static audience","id":"52e47535-7ac0-4ef0-809a-33df9e0cb431","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"Audience 1\",\n  \"iddatabase\": 1,\n  \"expireDate\": \"1769442767000\"\n}","options":{"raw":{"language":"json"}}},"url":"/v19/audiences/audience/create","description":"<p>Creates a new static audience in a specific database. You can optionally set an expiration date for the audience.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","audiences","audience","create"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"c1a78e7a-fa79-406d-801d-cd683a45313e","name":"Create static audience","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"Audience 1\",\n  \"iddatabase\": 1,\n  \"expireDate\": \"1769442767000\"\n}","options":{"raw":{"language":"json"}}},"url":"/v19/audiences/audience/create"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Mn-PageType","value":"Webservice"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"qapatch:6"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Mon, 26 Jan 2026 15:53:06 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"},{"key":"content-encoding","value":"gzip"},{"key":"transfer-encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"idaudience\": 130\n}"}],"_postman_id":"52e47535-7ac0-4ef0-809a-33df9e0cb431"},{"name":"Delete static audience","id":"6ed27491-f197-4e66-80b3-c2166a273e99","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/v19/audiences/audience/:idaudience","description":"<p>Deletes an existing audience. Before deletion, the system checks if the audience is currently in use within the platform (e.g., in Journeys, Workflow limits, or as a target for other audiences). If it is in use, the deletion will fail with a list of references where the audience is used.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","audiences","audience",":idaudience"],"host":[""],"query":[],"variable":[{"description":{"content":"<p>The unique integer ID of the audience to delete.</p>\n","type":"text/plain"},"type":"any","value":"","key":"idaudience"}]}},"response":[],"_postman_id":"6ed27491-f197-4e66-80b3-c2166a273e99"}],"id":"2e71aa1c-f62e-4f49-8223-3ff1a4c9f441","_postman_id":"2e71aa1c-f62e-4f49-8223-3ff1a4c9f441","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}}},{"name":"Web Tracking","item":[{"name":"Get web tracking for contact","id":"32445336-2c03-4830-9c32-a6258349e895","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/v19/webtracking/contact/:idcontact","description":"<p>Get web tracking information for a contact by ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","webtracking","contact",":idcontact"],"host":[""],"query":[],"variable":[{"id":"64500198-2c37-4687-9b7f-e44b2c8f5484","type":"any","key":"idcontact"}]}},"response":[{"id":"07859449-3049-4325-9753-2d6aec4f1248","name":"Success Response","originalRequest":{"method":"GET","header":[],"url":{"raw":"/v19/webtracking/contact/:idcontact","host":[""],"path":["v19","webtracking","contact",":idcontact"],"variable":[{"key":"idcontact","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"idcontact\": 1,\n  \"email\": \"contact@example.com\",\n  \"name\": \"John Doe\",\n  \"visits\": [\n    {\n      \"visitId\": \"v123456\",\n      \"date\": \"2023-06-15T10:30:00.000Z\",\n      \"url\": \"https://example.com/products\",\n      \"referrer\": \"https://google.com\",\n      \"userAgent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36\",\n      \"ipAddress\": \"192.168.1.1\",\n      \"duration\": 120,\n      \"pageViews\": 3\n    },\n    {\n      \"visitId\": \"v123457\",\n      \"date\": \"2023-06-16T14:45:00.000Z\",\n      \"url\": \"https://example.com/checkout\",\n      \"referrer\": \"https://example.com/products\",\n      \"userAgent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36\",\n      \"ipAddress\": \"192.168.1.1\",\n      \"duration\": 180,\n      \"pageViews\": 5\n    }\n  ],\n  \"totalVisits\": 2,\n  \"lastVisitDate\": \"2023-06-16T14:45:00.000Z\"\n}"}],"_postman_id":"32445336-2c03-4830-9c32-a6258349e895"},{"name":"Query web tracking contacts","id":"3c58058a-f61e-4b80-ba0e-185320d5bd0f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/v19/webtracking/contacts?query=select * from contacts where iddatabase=7","description":"<p>Query web tracking information for contacts using a query string</p>\n<h2 id=\"writing-queries\">Writing queries</h2>\n<p>See the <a href=\"https://help.magnews.it/hc/en-us/articles/18523225702290-Writing-queries-and-expressions#table_contacts\">Query documentation</a> for more details.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","webtracking","contacts"],"host":[""],"query":[{"key":"query","value":"select * from contacts where iddatabase=7"}],"variable":[]}},"response":[{"id":"0205ce3b-5da3-46d9-987f-36f65f3f55c4","name":"Success Response","originalRequest":{"method":"GET","header":[],"url":{"raw":"/v19/webtracking/contacts?query=url:*checkout*","host":[""],"path":["v19","webtracking","contacts"],"query":[{"key":"query","value":"url:*checkout*"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"contacts\": [\n    {\n      \"idcontact\": 1,\n      \"email\": \"contact@example.com\",\n      \"name\": \"John Doe\",\n      \"lastVisitDate\": \"2023-06-16T14:45:00.000Z\",\n      \"totalVisits\": 2,\n      \"lastUrl\": \"https://example.com/checkout\"\n    },\n    {\n      \"idcontact\": 2,\n      \"email\": \"contact2@example.com\",\n      \"name\": \"Jane Doe\",\n      \"lastVisitDate\": \"2023-06-17T09:15:00.000Z\",\n      \"totalVisits\": 3,\n      \"lastUrl\": \"https://example.com/checkout/confirmation\"\n    }\n  ],\n  \"totalResults\": 2,\n  \"page\": 1,\n  \"pageSize\": 10,\n  \"totalPages\": 1\n}"}],"_postman_id":"3c58058a-f61e-4b80-ba0e-185320d5bd0f"}],"id":"327daaef-7491-47d4-93ec-096ba4e31f06","_postman_id":"327daaef-7491-47d4-93ec-096ba4e31f06","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}}},{"name":"Insights","item":[{"name":"Communication summary","id":"d05af57a-48d0-4e03-a1ec-3f6b276c1be2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/v19/insights/newsletter/:idnewsletter?channel=whatsappbusiness","description":"<p>Get a summary of communication statistics with optional parameters. If the communication is archived, requests for a detailed contacts report (i.e., including `query` or `idaudience` parameters) will return a 400 Bad Request error.</p>\n<p>The <code>NaN</code> value in rates, indicates that the rate cannot be computed because the denominator is zero.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","insights","newsletter",":idnewsletter"],"host":[""],"query":[{"description":{"content":"<p>Channel to filter by: email, sms, fax, or a custom channel name (default: first available channel for the newsletter)</p>\n","type":"text/plain"},"key":"channel","value":"whatsappbusiness"},{"disabled":true,"description":{"content":"<p>MQL query to filter contacts</p>\n","type":"text/plain"},"key":"query","value":"select * from contacts where email like '%gmail.com'"},{"disabled":true,"description":{"content":"<p>ID of a contact's audience to filter by</p>\n","type":"text/plain"},"key":"idaudience","value":"1"},{"disabled":true,"description":{"content":"<p>ID of the delivery to filter by</p>\n","type":"text/plain"},"key":"iddelivery","value":"1"},{"disabled":true,"description":{"content":"<p>A/B split version: a or b</p>\n","type":"text/plain"},"key":"absplitversion","value":"b"},{"disabled":true,"description":{"content":"<p>Whether to calculate conversion goal statistics</p>\n","type":"text/plain"},"key":"conversiongoals","value":"true"}],"variable":[{"type":"any","value":"53","key":"idnewsletter"}]}},"response":[{"id":"80e078dd-f9bd-4ebc-9087-a12d9882ee8a","name":"Communication summary","originalRequest":{"method":"GET","header":[],"url":{"raw":"/v19/insights/newsletter/:idnewsletter","host":[""],"path":["v19","insights","newsletter",":idnewsletter"],"query":[{"key":"query","value":"select * from contacts where email like '%gmail.com'","description":"MQL query to filter contacts","type":"text","disabled":true},{"key":"idaudience","value":"1","description":"ID of a contact's audience to filter by","type":"text","disabled":true},{"key":"iddelivery","value":"1","description":"ID of the delivery to filter by","type":"text","disabled":true},{"key":"absplitversion","value":"b","description":"A/B split version: a or b","type":"text","disabled":true},{"key":"conversiongoals","value":"true","description":"Whether to calculate conversion goal statistics","type":"text","disabled":true}],"variable":[{"key":"idnewsletter","value":"762"}]}},"status":"OK","code":200,"_postman_previewlanguage":"","header":[{"key":"X-Mn-PageType","value":"Webservice"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"qapatch:3079"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Thu, 15 Jan 2026 11:07:29 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"},{"key":"content-encoding","value":"gzip"},{"key":"transfer-encoding","value":"chunked"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"idnewsletter\": 762,\n    \"channel\": \"email\",\n    \"firstSentAt\": 1709274646985,\n    \"lastSentAt\": 1709275053263,\n    \"deliveryRate\": 98.16,\n    \"bounceRate\": 1.84,\n    \"openRate\": 9.79,\n    \"clickToOpenRate\": 13.04,\n    \"clickRate\": 1.28,\n    \"conversionRate\": 0,\n    \"clickPerClicked\": 152.33,\n    \"conversionToClickRate\": 0.36,\n    \"reachedRate\": 98.16,\n    \"openersRate\": 9.79,\n    \"clickersToOpenersRate\": 13.04,\n    \"clickersRate\": 1.28,\n    \"convertersRate\": 0,\n    \"messagesSent\": 22262,\n    \"messagesReceived\": 21852,\n    \"messagesOpened\": 2140,\n    \"messagesUnreliableOpened\": 3418,\n    \"messagesClicked\": 279,\n    \"messagesConverted\": 1,\n    \"messagesWithUnsubscribeClicks\": 24,\n    \"messagesWithSpamReports\": 0,\n    \"messagesForwarded\": 0,\n    \"messagesHardBounced\": 14,\n    \"messagesSoftBounced\": 396,\n    \"recipients\": 22262,\n    \"reached\": 21852,\n    \"openers\": 2140,\n    \"unreliableOpeners\": 3418,\n    \"clickers\": 279,\n    \"converters\": 1,\n    \"unsubscribers\": 24,\n    \"spamReporters\": 0,\n    \"forwarders\": 0,\n    \"totalOpens\": 3368,\n    \"totalUnreliableOpens\": 10290,\n    \"totalClicks\": 425,\n    \"totalConversions\": 1,\n    \"totalUnsubscribes\": 24,\n    \"totalSpamReports\": 0,\n    \"totalForwards\": 0,\n    \"contents\": [\n        {\n            \"idcontent\": 7001,\n            \"name\": \"Product 2\",\n            \"clickers\": 50,\n            \"totalClicks\": 64,\n            \"messagesClicked\": 50,\n            \"converters\": 0,\n            \"totalConversions\": 0,\n            \"messagesConverted\": 0,\n            \"url\": \"https://www.example.com/ae1020_c-2218.html\"\n        },\n        {\n            \"idcontent\": 6995,\n            \"name\": \"Product 1\",\n            \"clickers\": 103,\n            \"totalClicks\": 132,\n            \"messagesClicked\": 103,\n            \"converters\": 0,\n            \"totalConversions\": 0,\n            \"messagesConverted\": 0,\n            \"url\": \"https://www.example.com/sr1001_c-2214.html\"\n        },\n        {\n            \"idcontent\": 7000,\n            \"name\": \"Pinterest\",\n            \"clickers\": 2,\n            \"totalClicks\": 2,\n            \"messagesClicked\": 2,\n            \"converters\": 0,\n            \"totalConversions\": 0,\n            \"messagesConverted\": 0,\n            \"url\": \"https://www.pinterest.com/example\"\n        },\n        {\n            \"idcontent\": 6999,\n            \"name\": \"Instagram\",\n            \"clickers\": 2,\n            \"totalClicks\": 2,\n            \"messagesClicked\": 2,\n            \"converters\": 0,\n            \"totalConversions\": 0,\n            \"messagesConverted\": 0,\n            \"url\": \"https://www.instagram.com/example\"\n        },\n        {\n            \"idcontent\": 7002,\n            \"name\": \"Product 2\",\n            \"clickers\": 18,\n            \"totalClicks\": 23,\n            \"messagesClicked\": 18,\n            \"converters\": 0,\n            \"totalConversions\": 0,\n            \"messagesConverted\": 0,\n            \"url\": \"https://www.example.com/sr1001_c-2117.html\"\n        },\n        {\n            \"idcontent\": 6997,\n            \"name\": \"https://www.example.com/nuova-collezione/\",\n            \"clickers\": 105,\n            \"totalClicks\": 119,\n            \"messagesClicked\": 105,\n            \"converters\": 0,\n            \"totalConversions\": 0,\n            \"messagesConverted\": 0,\n            \"url\": \"https://www.example.com/nuova-collezione/\"\n        },\n        {\n            \"idcontent\": 6996,\n            \"name\": \"Product 3\",\n            \"clickers\": 73,\n            \"totalClicks\": 83,\n            \"messagesClicked\": 73,\n            \"converters\": 1,\n            \"totalConversions\": 1,\n            \"messagesConverted\": 1,\n            \"url\": \"https://www.example.com/ae1020_c-2215.html\"\n        }\n    ],\n    \"conversionGoalStats\": []\n}"},{"id":"8dc3e452-fba6-4b34-acb3-3974547b45eb","name":"Filtered by contacts's query","originalRequest":{"method":"GET","header":[],"url":{"raw":"/v19/insights/newsletter/:idnewsletter?query=SELECT * FROM CONTACTS WHERE email is not null","host":[""],"path":["v19","insights","newsletter",":idnewsletter"],"query":[{"key":"query","value":"SELECT * FROM CONTACTS WHERE email is not null"}],"variable":[{"key":"idnewsletter","value":"53"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Mn-PageType","value":"Webservice"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"qapatch:6"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Fri, 25 Jul 2025 09:40:52 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"},{"key":"content-encoding","value":"gzip"},{"key":"transfer-encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"idnewsletter\": 53,\n    \"channel\": \"email\",\n    \"firstSentAt\": 1606217684913,\n    \"lastSentAt\": 1606234943583,\n    \"deliveryRate\": 100,\n    \"bounceRate\": 0,\n    \"openRate\": 0,\n    \"clickToOpenRate\": \"NaN\",\n    \"clickRate\": 0,\n    \"conversionRate\": 0,\n    \"clickPerClicked\": \"NaN\",\n    \"conversionToClickRate\": \"NaN\",\n    \"reachedRate\": 100,\n    \"openersRate\": 0,\n    \"clickersToOpenersRate\": \"NaN\",\n    \"clickersRate\": 0,\n    \"convertersRate\": 0,\n    \"messagesSent\": 3,\n    \"messagesReceived\": 3,\n    \"messagesOpened\": 0,\n    \"messagesUnreliableOpened\": 0,\n    \"messagesClicked\": 0,\n    \"messagesConverted\": 0,\n    \"messagesWithUnsubscribeClicks\": 0,\n    \"messagesWithSpamReports\": 0,\n    \"messagesForwarded\": 0,\n    \"messagesHardBounced\": 0,\n    \"messagesSoftBounced\": 0,\n    \"recipients\": 1,\n    \"reached\": 1,\n    \"openers\": 0,\n    \"unreliableOpeners\": 0,\n    \"clickers\": 0,\n    \"converters\": 0,\n    \"unsubscribers\": 0,\n    \"spamReporters\": 0,\n    \"forwarders\": 0,\n    \"totalOpens\": 0,\n    \"totalUnreliableOpens\": 0,\n    \"totalClicks\": 0,\n    \"totalConversions\": 0,\n    \"totalUnsubscribes\": 0,\n    \"totalSpamReports\": 0,\n    \"totalForwards\": 0,\n    \"contents\": [],\n    \"conversionGoalStats\": []\n}"},{"id":"42600699-7023-4b7c-b51d-354d72c0e81c","name":"With conversion goals","originalRequest":{"method":"GET","header":[],"url":{"raw":"/v19/insights/newsletter/:idnewsletter?conversiongoals=true","host":[""],"path":["v19","insights","newsletter",":idnewsletter"],"query":[{"key":"query","value":"select * from contacts where email like '%gmail.com'","description":"MQL query to filter contacts","type":"text","disabled":true},{"key":"idaudience","value":"1","description":"ID of a contact's audience to filter by","type":"text","disabled":true},{"key":"iddelivery","value":"1","description":"ID of the delivery to filter by","type":"text","disabled":true},{"key":"absplitversion","value":"b","description":"A/B split version: a or b","type":"text","disabled":true},{"key":"conversiongoals","value":"true","description":"Whether to calculate conversion goal statistics"}],"variable":[{"key":"idnewsletter","value":"511"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Mn-PageType","value":"Webservice"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"qapatch:9"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Type","value":"application/json","description":"","type":"text"},{"key":"Date","value":"Thu, 13 Nov 2025 08:29:11 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"},{"key":"content-encoding","value":"gzip"},{"key":"transfer-encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"idnewsletter\": 511,\n    \"channel\": \"email\",\n    \"firstSentAt\": 1725875118426,\n    \"lastSentAt\": 1725875118891,\n    \"deliveryRate\": 100,\n    \"bounceRate\": 0,\n    \"openRate\": 100,\n    \"clickToOpenRate\": 100,\n    \"clickRate\": 100,\n    \"conversionRate\": 100,\n    \"clickPerClicked\": 250,\n    \"conversionToClickRate\": 100,\n    \"reachedRate\": 100,\n    \"openersRate\": 100,\n    \"clickersToOpenersRate\": 100,\n    \"clickersRate\": 100,\n    \"convertersRate\": 100,\n    \"messagesSent\": 4,\n    \"messagesReceived\": 4,\n    \"messagesOpened\": 4,\n    \"messagesUnreliableOpened\": 0,\n    \"messagesClicked\": 4,\n    \"messagesConverted\": 4,\n    \"messagesWithUnsubscribeClicks\": 0,\n    \"messagesWithSpamReports\": 0,\n    \"messagesForwarded\": 0,\n    \"messagesHardBounced\": 0,\n    \"messagesSoftBounced\": 0,\n    \"recipients\": 4,\n    \"reached\": 4,\n    \"openers\": 4,\n    \"unreliableOpeners\": 0,\n    \"clickers\": 4,\n    \"converters\": 4,\n    \"unsubscribers\": 0,\n    \"spamReporters\": 0,\n    \"forwarders\": 0,\n    \"totalOpens\": 18,\n    \"totalUnreliableOpens\": 0,\n    \"totalClicks\": 10,\n    \"totalConversions\": 4,\n    \"totalUnsubscribes\": 0,\n    \"totalSpamReports\": 0,\n    \"totalForwards\": 0,\n    \"contents\": [\n        {\n            \"idcontent\": 1305,\n            \"name\": \"Example.com\",\n            \"clickers\": 1,\n            \"totalClicks\": 1,\n            \"messagesClicked\": 1,\n            \"converters\": 0,\n            \"totalConversions\": 0,\n            \"messagesConverted\": 0,\n            \"url\": \"https://www.example.com\"\n        },\n        {\n            \"idcontent\": 1306,\n            \"name\": \"Contact:CAMPO\",\n            \"clickers\": 1,\n            \"totalClicks\": 2,\n            \"messagesClicked\": 1,\n            \"converters\": 0,\n            \"totalConversions\": 0,\n            \"messagesConverted\": 0,\n            \"url\": \"https://[contact:CAMPO]\"\n        }\n    ],\n    \"conversionGoalStats\": [\n        {\n            \"idgoal\": 4,\n            \"conversions\": 4,\n            \"conversionRate\": 100,\n            \"lastConversion\": 1725877397000,\n            \"totalValue\": 468.99,\n            \"averageValue\": 117.2475,\n            \"goalName\": \"Magento\",\n            \"currency\": \"€\"\n        }\n    ]\n}"}],"_postman_id":"d05af57a-48d0-4e03-a1ec-3f6b276c1be2"},{"name":"Communication summaries","id":"32f28189-8ea0-4900-86cb-ae74bd9a035d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/v19/insights/newsletters?queryNewsletter=SELECT * from NEWSLETTERS where template=0 AND sentdate  > '{d 2025-07-01}'&channel=email","description":"<p>Get a list of communication summaries with optional parameters. If a communication is archived and contact-level details are requested (i.e., including <code>query</code> or <code>idaudience</code> parameters), that communication is automatically excluded from the result. If those parameters are not specified, aggregated statistics remain available even for archived communications.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","insights","newsletters"],"host":[""],"query":[{"description":{"content":"<p>SQL-like query to filter newsletters (e.g. \"SELECT * FROM NEWSLETTERS WHERE sent=true and sentDate &gt;= today(-7)\")</p>\n","type":"text/plain"},"key":"queryNewsletter","value":"SELECT * from NEWSLETTERS where template=0 AND sentdate  > '{d 2025-07-01}'"},{"description":{"content":"<p>Channel to filter by (email, sms, fax, or a custom channel name)</p>\n","type":"text/plain"},"key":"channel","value":"email"},{"disabled":true,"description":{"content":"<p>MQL query to filter contacts</p>\n","type":"text/plain"},"key":"query","value":"select * from contacts where email like '%gmail.com'"},{"disabled":true,"description":{"content":"<p>ID of a contact's audience to filter by</p>\n","type":"text/plain"},"key":"idaudience","value":"1"},{"disabled":true,"description":{"content":"<p>Whether to calculate conversion goal statistics</p>\n","type":"text/plain"},"key":"conversiongoals","value":"true"}],"variable":[]}},"response":[{"id":"8f23fa20-26ef-46dd-a4a4-4e99a25b186a","name":"Get Newsletter summary","originalRequest":{"method":"GET","header":[],"url":{"raw":"/v19/insights/newsletters?queryNewsletter=SELECT * from NEWSLETTERS where template=0 AND sentdate  > '{d 2025-07-01}'&channel=email","host":[""],"path":["v19","insights","newsletters"],"query":[{"key":"queryNewsletter","value":"SELECT * from NEWSLETTERS where template=0 AND sentdate  > '{d 2025-07-01}'","description":"ID of the delivery to filter by","type":"text"},{"key":"channel","value":"email","description":"A/B split version: a or b (default a)","type":"text"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Mn-PageType","value":"Webservice"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"qapatch:6"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Fri, 25 Jul 2025 07:48:39 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"},{"key":"content-encoding","value":"gzip"},{"key":"transfer-encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"idnewsletter\": 370,\n        \"channel\": \"email\",\n        \"firstSentAt\": 1752763608300,\n        \"lastSentAt\": 1752763608300,\n        \"deliveryRate\": 100.0,\n        \"bounceRate\": 0.0,\n        \"openRate\": 100.0,\n        \"clickToOpenRate\": 100.0,\n        \"clickRate\": 100.0,\n        \"conversionRate\": 0.0,\n        \"clickPerClicked\": 300.0,\n        \"conversionToClickRate\": 0.0,\n        \"reachedRate\": 100.0,\n        \"openersRate\": 100.0,\n        \"clickersToOpenersRate\": 100.0,\n        \"clickersRate\": 100.0,\n        \"convertersRate\": 0.0,\n        \"messagesSent\": 1,\n        \"messagesReceived\": 1,\n        \"messagesOpened\": 1,\n        \"messagesUnreliableOpened\": 0,\n        \"messagesClicked\": 1,\n        \"messagesConverted\": 0,\n        \"messagesWithUnsubscribeClicks\": 0,\n        \"messagesWithSpamReports\": 0,\n        \"messagesForwarded\": 0,\n        \"messagesHardBounced\": 0,\n        \"messagesSoftBounced\": 0,\n        \"recipients\": 1,\n        \"reached\": 1,\n        \"openers\": 1,\n        \"unreliableOpeners\": 0,\n        \"clickers\": 1,\n        \"converters\": 0,\n        \"unsubscribers\": 0,\n        \"spamReporters\": 0,\n        \"forwarders\": 0,\n        \"totalOpens\": 3,\n        \"totalUnreliableOpens\": 0,\n        \"totalClicks\": 3,\n        \"totalConversions\": 0,\n        \"totalUnsubscribes\": 0,\n        \"totalSpamReports\": 0,\n        \"totalForwards\": 0,\n        \"contents\": [\n            {\n                \"idcontent\": 1305,\n                \"name\": \"Example.com\",\n                \"clickers\": 1,\n                \"totalClicks\": 1,\n                \"messagesClicked\": 1,\n                \"converters\": 0,\n                \"totalConversions\": 0,\n                \"messagesConverted\": 0\n            },\n            {\n                \"idcontent\": 1306,\n                \"name\": \"Contact:CAMPO\",\n                \"clickers\": 1,\n                \"totalClicks\": 2,\n                \"messagesClicked\": 1,\n                \"converters\": 0,\n                \"totalConversions\": 0,\n                \"messagesConverted\": 0\n            }\n        ],\n        \"conversionGoalStats\": []\n    }\n]"}],"_postman_id":"32f28189-8ea0-4900-86cb-ae74bd9a035d"},{"name":"Transactional summary","id":"b4d04415-b0d1-4da2-b828-715892250d29","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/v19/insights/transactional/:idnewsletter?conversiongoals=true&channels=email","description":"<p>Retrieves detailed insights and performance statistics for a specific transactional message. This endpoint provides delivery rates, engagement metrics (opens, clicks), and conversion data. It supports filtering by date range, specific contact criteria using a query, and specific communication channels.</p>\n<p>The <code>NaN</code> value in rates, indicates that the rate cannot be computed because the denominator is zero.</p>\n<p>The response is a JSON object containing:</p>\n<ul>\n<li><p><code>idnewsletter</code>: The unique identifier of the transactional message (template).</p>\n</li>\n<li><p><code>channels</code>: A set of active communication channels for this transactional message (e.g., email, sms).</p>\n</li>\n<li><p><code>deliveryRate</code>: The percentage of messages successfully delivered compared to the total sent.</p>\n</li>\n<li><p><code>bounceRate</code>: The percentage of messages that bounced (hard or soft).</p>\n</li>\n<li><p><code>openRate</code>: The percentage of delivered messages that were opened.</p>\n</li>\n<li><p><code>clickToOpenRate</code>: The percentage of unique openers who also clicked at least one link.</p>\n</li>\n<li><p><code>clickRate</code>: The percentage of delivered messages that resulted in at least one click.</p>\n</li>\n<li><p><code>conversionRate</code>: The percentage of delivered messages that resulted in a conversion.</p>\n</li>\n<li><p><code>clickPerClicked</code>: The average number of clicks per unique clicker.</p>\n</li>\n<li><p><code>conversionToClickRate</code>: The percentage of unique clickers who also converted.</p>\n</li>\n<li><p><code>messagesSent</code>: Total number of messages sent.</p>\n</li>\n<li><p><code>messagesReceived</code>: Total number of messages successfully delivered.</p>\n</li>\n<li><p><code>messagesOpened</code>: Number of unique messages opened.</p>\n</li>\n<li><p><code>messagesUnreliableOpened</code>: Number of messages with \"unreliable\" opens (e.g., detected via machine opens).</p>\n</li>\n<li><p><code>messagesClicked</code>: Number of unique messages that had at least one click.</p>\n</li>\n<li><p><code>messagesConverted</code>: Number of unique messages that resulted in a conversion.</p>\n</li>\n<li><p><code>messagesWithUnsubscribeClicks</code>: Number of unique messages that led to an unsubscribe click.</p>\n</li>\n<li><p><code>messagesWithSpamReports</code>: Number of unique messages that were reported as spam.</p>\n</li>\n<li><p><code>messagesHardBounced</code>: Total number of hard bounces.</p>\n</li>\n<li><p><code>messagesSoftBounced</code>: Total number of soft bounces.</p>\n</li>\n<li><p><code>totalOpens</code>: Total number of open events recorded.</p>\n</li>\n<li><p><code>totalUnreliableOpens</code>: Total number of unreliable open events recorded.</p>\n</li>\n<li><p><code>totalClicks</code>: Total number of click events recorded across all links.</p>\n</li>\n<li><p><code>totalConversions</code>: Total number of conversion events recorded.</p>\n</li>\n<li><p><code>totalUnsubscribes</code>: Total number of unsubscriptions.</p>\n</li>\n<li><p><code>totalSpamReports</code>: Total number of spam complaints.</p>\n</li>\n<li><p><code>contents</code>: A list of objects representing performance for each individual link in the message, each containing:</p>\n<ul>\n<li><p><code>idcontent</code>: Unique identifier of the content/link.</p>\n</li>\n<li><p><code>name</code>: Name or label of the link.</p>\n</li>\n<li><p><code>url</code>: The actual URL of the link.</p>\n</li>\n<li><p><code>clickers</code>: Number of unique contacts who clicked this link.</p>\n</li>\n<li><p><code>totalClicks</code>: Total number of clicks for this link.</p>\n</li>\n<li><p><code>messagesClicked</code>: Number of unique message instances where this link was clicked.</p>\n</li>\n<li><p><code>converters</code>: Number of unique contacts who converted after clicking this link.</p>\n</li>\n<li><p><code>totalConversions</code>: Total number of conversions attributed to this link.</p>\n</li>\n<li><p><code>messagesConverted</code>: Number of unique message instances where a conversion was attributed to this link.</p>\n</li>\n</ul>\n</li>\n<li><p><code>conversionGoalStats</code>: A list of objects representing statistics for each conversion goal (included only if conversiongoals=true), each containing:</p>\n<ul>\n<li><p><code>idgoal</code>: Unique identifier of the conversion goal.</p>\n</li>\n<li><p><code>goalName</code>: The name of the goal.</p>\n</li>\n<li><p><code>conversions</code>: Number of conversions for this goal.</p>\n</li>\n<li><p><code>conversionRate</code>: The conversion rate for this specific goal.</p>\n</li>\n<li><p><code>lastConversion</code>: The timestamp of the last recorded conversion for this goal.</p>\n</li>\n<li><p><code>totalValue</code>: The total monetary or numerical value of all conversions for this goal.</p>\n</li>\n<li><p><code>averageValue</code>: The average value per conversion.</p>\n</li>\n<li><p><code>currency</code>: The currency associated with the goal values.</p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","insights","transactional",":idnewsletter"],"host":[""],"query":[{"disabled":true,"description":{"content":"<p>An optional filter to restrict insights to sessions involving specific contacts. It accepts a filter expression (e.g., MQL - MagNews Query Language) to narrow down the statistics to a specific target audience.</p>\n","type":"text/plain"},"key":"query","value":"select * from contacts where email like '%gmail.com'"},{"disabled":true,"description":{"content":"<p>Optional. The start of the time period for which insights should be calculated, expressed as a Unix timestamp in milliseconds. If omitted, statistics will be calculated from the beginning of the workflow's history.</p>\n","type":"text/plain"},"key":"from","value":"1704107890000"},{"disabled":true,"description":{"content":"<p>Optional. The end of the time period for which insights should be calculated, expressed as a Unix timestamp in milliseconds. If omitted, statistics will be calculated up to the current moment.</p>\n","type":"text/plain"},"key":"to","value":"1769080690000"},{"description":{"content":"<p>Optional. If set to true, the response will include detailed statistics for conversion goals associated with the transactional message.</p>\n","type":"text/plain"},"key":"conversiongoals","value":"true"},{"description":{"content":"<p>Optional. A comma-separated list of channels to filter the statistics (e.g., email,sms).</p>\n","type":"text/plain"},"key":"channels","value":"email"}],"variable":[{"description":{"content":"<p>Required. Id of the transactional message for which insights are requested.</p>\n","type":"text/plain"},"type":"any","value":"230","key":"idnewsletter"}]}},"response":[{"id":"58e65af5-750c-4782-8a04-372ab7d6cd09","name":"Transactional summary","originalRequest":{"method":"GET","header":[],"url":{"raw":"/v19/insights/transactional/:idnewsletter?conversiongoals=true&channels=email","host":[""],"path":["v19","insights","transactional",":idnewsletter"],"query":[{"key":"query","value":"select * from contacts where email like '%gmail.com'","description":"An optional filter to restrict insights to sessions involving specific contacts. It accepts a filter expression (e.g., MQL - MagNews Query Language) to narrow down the statistics to a specific target audience.","type":"text","disabled":true},{"key":"from","value":"1704107890000","description":"Optional. The start of the time period for which insights should be calculated, expressed as a Unix timestamp in milliseconds. If omitted, statistics will be calculated from the beginning of the workflow's history.","type":"text","disabled":true},{"key":"to","value":"1769080690000","description":"Optional. The end of the time period for which insights should be calculated, expressed as a Unix timestamp in milliseconds. If omitted, statistics will be calculated up to the current moment.","type":"text","disabled":true},{"key":"conversiongoals","value":"true","description":"Optional. If set to true, the response will include detailed statistics for conversion goals associated with the transactional message."},{"key":"channels","value":"email","description":"Optional. A comma-separated list of channels to filter the statistics (e.g., email,sms)."}],"variable":[{"key":"idnewsletter","value":"512","description":"Required. Id of the transactional message for which insights are requested."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-MnPageType","value":"ws"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"mn1:2547"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Type","value":"application/json","description":"","type":"text"},{"key":"Date","value":"Fri, 23 Jan 2026 08:06:08 GMT"},{"key":"Keep-Alive","value":"timeout=360"},{"key":"Connection","value":"keep-alive"},{"key":"Strict-Transport-Security","value":"max-age=63072000;includeSubDomains"},{"key":"X-Proxy-Path","value":"wshttps_r;wshttps_a;wshttps_d;wshttps32"},{"key":"content-encoding","value":"gzip"},{"key":"transfer-encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"idnewsletter\": 512,\n    \"channels\": [\n        \"email\"\n    ],\n    \"deliveryRate\": 99.82,\n    \"bounceRate\": 0.18,\n    \"openRate\": 21.45,\n    \"clickToOpenRate\": 18.52,\n    \"clickRate\": 3.97,\n    \"conversionRate\": 1.22,\n    \"clickPerClicked\": 138.4,\n    \"conversionToClickRate\": 30.73,\n    \"messagesSent\": 6250,\n    \"messagesReceived\": 6239,\n    \"messagesOpened\": 1338,\n    \"messagesUnreliableOpened\": 1520,\n    \"messagesClicked\": 248,\n    \"messagesConverted\": 76,\n    \"messagesWithUnsubscribeClicks\": 2,\n    \"messagesWithSpamReports\": 0,\n    \"messagesHardBounced\": 0,\n    \"messagesSoftBounced\": 11,\n    \"totalOpens\": 2345,\n    \"totalUnreliableOpens\": 4810,\n    \"totalClicks\": 343,\n    \"totalConversions\": 94,\n    \"totalUnsubscribes\": 2,\n    \"totalSpamReports\": 0,\n    \"contents\": [\n        {\n            \"idcontent\": 2101,\n            \"name\": \"https://www.example.com/\",\n            \"clickers\": 22,\n            \"totalClicks\": 30,\n            \"messagesClicked\": 22,\n            \"converters\": 0,\n            \"totalConversions\": 0,\n            \"messagesConverted\": 0,\n            \"url\": \"https://www.example.com/\"\n        },\n        {\n            \"idcontent\": 2102,\n            \"name\": \"tiktok\",\n            \"clickers\": 2,\n            \"totalClicks\": 2,\n            \"messagesClicked\": 2,\n            \"converters\": 0,\n            \"totalConversions\": 0,\n            \"messagesConverted\": 0,\n            \"url\": \"https://www.tiktok.com/@example\"\n        },\n        {\n            \"idcontent\": 2103,\n            \"name\": \"https://shop.example.com/\",\n            \"clickers\": 5,\n            \"totalClicks\": 5,\n            \"messagesClicked\": 5,\n            \"converters\": 0,\n            \"totalConversions\": 0,\n            \"messagesConverted\": 0,\n            \"url\": \"https://shop.example.com/\"\n        },\n        {\n            \"idcontent\": 3604,\n            \"name\": \"Example Brand Made in Italy\",\n            \"clickers\": 158,\n            \"totalClicks\": 235,\n            \"messagesClicked\": 164,\n            \"converters\": 0,\n            \"totalConversions\": 0,\n            \"messagesConverted\": 0,\n            \"url\": \"[temp:checkout.checkouturl]\"\n        },\n        {\n            \"idcontent\": 3605,\n            \"name\": \"Product Item Fashion Black\",\n            \"clickers\": 61,\n            \"totalClicks\": 71,\n            \"messagesClicked\": 61,\n            \"converters\": 0,\n            \"totalConversions\": 0,\n            \"messagesConverted\": 0,\n            \"url\": \"[temp:item.link]\"\n        }\n    ],\n    \"conversionGoalStats\": [\n        {\n            \"idgoal\": 7,\n            \"conversions\": 88,\n            \"conversionRate\": 1.408,\n            \"lastConversion\": 1769105250000,\n            \"totalValue\": 9240.5,\n            \"averageValue\": 105,\n            \"goalName\": \"Purchase (S)\",\n            \"currency\": \"€\"\n        }\n    ]\n}"}],"_postman_id":"b4d04415-b0d1-4da2-b828-715892250d29"},{"name":"Transactional summaries","id":"4a9bfddc-3720-4201-a973-c442ec01e536","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/v19/insights/transactionals?queryTransactional=SELECT * from NEWSLETTERS where idworkflow = 3&channel=email","description":"<p>Retrieves a list of performance summaries for a batch of transactional messages (or workflow messages or message on site messages). This endpoint allows for bulk retrieval of transactional statistics, enabling performance comparison across multiple templates. It requires a query to select which transactional messages to include and supports filtering the statistics themselves by date range, specific contact criteria, and communication channels.</p>\n<p>The response is a JSON array of transactional summary objects. (see <code>/insight/transactional/:idnewsletter</code> endpoint for details)</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","insights","transactionals"],"host":[""],"query":[{"description":{"content":"<p>SQL-like query to filter transactionals</p>\n","type":"text/plain"},"key":"queryTransactional","value":"SELECT * from NEWSLETTERS where idworkflow = 3"},{"description":{"content":"<p>Channel to filter by (email, sms, fax, or a custom channel name)</p>\n","type":"text/plain"},"key":"channel","value":"email"},{"disabled":true,"description":{"content":"<p>MQL query to filter contacts</p>\n","type":"text/plain"},"key":"query","value":"select * from contacts where email like '%gmail.com'"},{"disabled":true,"description":{"content":"<p>Whether to calculate conversion goal statistics</p>\n","type":"text/plain"},"key":"conversiongoals","value":"true"},{"disabled":true,"description":{"content":"<p>Optional. The start of the time period for which insights should be calculated, expressed as a Unix timestamp in milliseconds. If omitted, statistics will be calculated from the beginning of the workflow's history.</p>\n","type":"text/plain"},"key":"from","value":"1704107890000"},{"disabled":true,"description":{"content":"<p>Optional. The end of the time period for which insights should be calculated, expressed as a Unix timestamp in milliseconds. If omitted, statistics will be calculated up to the current moment.</p>\n","type":"text/plain"},"key":"to","value":"1769080690000"}],"variable":[]}},"response":[{"id":"8749e234-5430-4628-b071-894e304ef5bc","name":"Transactional summaries","originalRequest":{"method":"GET","header":[],"url":{"raw":"/v19/insights/transactionals?queryTransactional=SELECT * from NEWSLETTERS where idworkflow = 3&channel=email","host":[""],"path":["v19","insights","transactionals"],"query":[{"key":"queryTransactional","value":"SELECT * from NEWSLETTERS where idworkflow = 3","description":"SQL-like query to filter transactionals"},{"key":"channel","value":"email","description":"Channel to filter by (email, sms, fax, or a custom channel name)"},{"key":"query","value":"select * from contacts where email like '%gmail.com'","description":"MQL query to filter contacts","type":"text","disabled":true},{"key":"conversiongoals","value":"true","description":"Whether to calculate conversion goal statistics","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-MnPageType","value":"ws"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"mn1:2547"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Type","value":"application/json","description":"","type":"text"},{"key":"Date","value":"Fri, 23 Jan 2026 08:36:10 GMT"},{"key":"Keep-Alive","value":"timeout=360"},{"key":"Connection","value":"keep-alive"},{"key":"Strict-Transport-Security","value":"max-age=63072000;includeSubDomains"},{"key":"X-Proxy-Path","value":"wshttps_r;wshttps_a;wshttps_d;wshttps31"},{"key":"content-encoding","value":"gzip"},{"key":"transfer-encoding","value":"chunked"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"[\n    {\n        \"idnewsletter\": 412,\n        \"channels\": [\n            \"email\"\n        ],\n        \"deliveryRate\": 99.72,\n        \"bounceRate\": 0.28,\n        \"openRate\": 25.10,\n        \"clickToOpenRate\": 30.85,\n        \"clickRate\": 7.74,\n        \"conversionRate\": 7.22,\n        \"clickPerClicked\": 142.15,\n        \"conversionToClickRate\": 93.30,\n        \"messagesSent\": 17200,\n        \"messagesReceived\": 17152,\n        \"messagesOpened\": 4305,\n        \"messagesUnreliableOpened\": 3820,\n        \"messagesClicked\": 1332,\n        \"messagesConverted\": 1243,\n        \"messagesWithUnsubscribeClicks\": 21,\n        \"messagesWithSpamReports\": 0,\n        \"messagesHardBounced\": 0,\n        \"messagesSoftBounced\": 48,\n        \"totalOpens\": 8950,\n        \"totalUnreliableOpens\": 14100,\n        \"totalClicks\": 1894,\n        \"totalConversions\": 2380,\n        \"totalUnsubscribes\": 21,\n        \"totalSpamReports\": 0,\n        \"contents\": [\n            {\n                \"idcontent\": 3101,\n                \"name\": \"Pantaloni Sport Fashion Pro Gray\",\n                \"clickers\": 220,\n                \"totalClicks\": 355,\n                \"messagesClicked\": 225,\n                \"converters\": 0,\n                \"totalConversions\": 0,\n                \"messagesConverted\": 0,\n                \"url\": \"[temp:item.link]\"\n            },\n            {\n                \"idcontent\": 3102,\n                \"name\": \"https://www.example.com/\",\n                \"clickers\": 30,\n                \"totalClicks\": 45,\n                \"messagesClicked\": 32,\n                \"converters\": 0,\n                \"totalConversions\": 0,\n                \"messagesConverted\": 0,\n                \"url\": \"https://www.example.com/\"\n            },\n            {\n                \"idcontent\": 3103,\n                \"name\": \"Proceed to checkout\",\n                \"clickers\": 915,\n                \"totalClicks\": 1510,\n                \"messagesClicked\": 965,\n                \"converters\": 915,\n                \"totalConversions\": 1510,\n                \"messagesConverted\": 965,\n                \"url\": \"[temp:checkout.checkouturl]\"\n            },\n            {\n                \"idcontent\": 3104,\n                \"name\": \"https://shop.example.com/\",\n                \"clickers\": 2,\n                \"totalClicks\": 2,\n                \"messagesClicked\": 2,\n                \"converters\": 0,\n                \"totalConversions\": 0,\n                \"messagesConverted\": 0,\n                \"url\": \"https://shop.example.com/\"\n            },\n            {\n                \"idcontent\": 3105,\n                \"name\": \"Privacy Policy\",\n                \"clickers\": 2,\n                \"totalClicks\": 2,\n                \"messagesClicked\": 2,\n                \"converters\": 0,\n                \"totalConversions\": 0,\n                \"messagesConverted\": 0,\n                \"url\": \"https://www.example.com/privacy-policy\"\n            }\n        ],\n        \"conversionGoalStats\": []\n    },\n    {\n        \"idnewsletter\": 528,\n        \"channels\": [\n            \"email\"\n        ],\n        \"deliveryRate\": 99.48,\n        \"bounceRate\": 0.52,\n        \"openRate\": 18.25,\n        \"clickToOpenRate\": 15.40,\n        \"clickRate\": 2.81,\n        \"conversionRate\": 2.15,\n        \"clickPerClicked\": 158.20,\n        \"conversionToClickRate\": 76.50,\n        \"messagesSent\": 5100,\n        \"messagesReceived\": 5073,\n        \"messagesOpened\": 926,\n        \"messagesUnreliableOpened\": 1180,\n        \"messagesClicked\": 143,\n        \"messagesConverted\": 109,\n        \"messagesWithUnsubscribeClicks\": 5,\n        \"messagesWithSpamReports\": 1,\n        \"messagesHardBounced\": 0,\n        \"messagesSoftBounced\": 27,\n        \"totalOpens\": 1580,\n        \"totalUnreliableOpens\": 3650,\n        \"totalClicks\": 226,\n        \"totalConversions\": 182,\n        \"totalUnsubscribes\": 5,\n        \"totalSpamReports\": 1,\n        \"contents\": [\n            {\n                \"idcontent\": 4125,\n                \"name\": \"https://www.example.com/\",\n                \"clickers\": 5,\n                \"totalClicks\": 6,\n                \"messagesClicked\": 5,\n                \"converters\": 0,\n                \"totalConversions\": 0,\n                \"messagesConverted\": 0,\n                \"url\": \"https://www.example.com/\"\n            },\n            {\n                \"idcontent\": 4504,\n                \"name\": \"Example Brand Made in Italy\",\n                \"clickers\": 92,\n                \"totalClicks\": 145,\n                \"messagesClicked\": 95,\n                \"converters\": 92,\n                \"totalConversions\": 145,\n                \"messagesConverted\": 95,\n                \"url\": \"[temp:checkout.checkouturl]\"\n            },\n            {\n                \"idcontent\": 4505,\n                \"name\": \"Abbigliamento Fitness Green\",\n                \"clickers\": 53,\n                \"totalClicks\": 82,\n                \"messagesClicked\": 53,\n                \"converters\": 0,\n                \"totalConversions\": 0,\n                \"messagesConverted\": 0,\n                \"url\": \"[temp:item.link]\"\n            }\n        ],\n        \"conversionGoalStats\": []\n    },\n    {\n        \"idnewsletter\": 464,\n        \"channels\": [\n            \"email\"\n        ],\n        \"deliveryRate\": 99.58,\n        \"bounceRate\": 0.42,\n        \"openRate\": 22.85,\n        \"clickToOpenRate\": 21.90,\n        \"clickRate\": 5.01,\n        \"conversionRate\": 4.52,\n        \"clickPerClicked\": 148.10,\n        \"conversionToClickRate\": 90.20,\n        \"messagesSent\": 6300,\n        \"messagesReceived\": 6274,\n        \"messagesOpened\": 1434,\n        \"messagesUnreliableOpened\": 1350,\n        \"messagesClicked\": 314,\n        \"messagesConverted\": 285,\n        \"messagesWithUnsubscribeClicks\": 15,\n        \"messagesWithSpamReports\": 1,\n        \"messagesHardBounced\": 2,\n        \"messagesSoftBounced\": 24,\n        \"totalOpens\": 2780,\n        \"totalUnreliableOpens\": 4650,\n        \"totalClicks\": 465,\n        \"totalConversions\": 510,\n        \"totalUnsubscribes\": 15,\n        \"totalSpamReports\": 1,\n        \"contents\": [\n            {\n                \"idcontent\": 5449,\n                \"name\": \"Special Offer Example\",\n                \"clickers\": 225,\n                \"totalClicks\": 340,\n                \"messagesClicked\": 230,\n                \"converters\": 225,\n                \"totalConversions\": 340,\n                \"messagesConverted\": 230,\n                \"url\": \"[temp:checkout.checkouturl]\"\n            },\n            {\n                \"idcontent\": 5787,\n                \"name\": \"https://www.example.com/\",\n                \"clickers\": 12,\n                \"totalClicks\": 16,\n                \"messagesClicked\": 12,\n                \"converters\": 0,\n                \"totalConversions\": 0,\n                \"messagesConverted\": 0,\n                \"url\": \"https://www.example.com/\"\n            },\n            {\n                \"idcontent\": 5769,\n                \"name\": \"Fashion Top Black Edition\",\n                \"clickers\": 68,\n                \"totalClicks\": 109,\n                \"messagesClicked\": 68,\n                \"converters\": 0,\n                \"totalConversions\": 0,\n                \"messagesConverted\": 0,\n                \"url\": \"[temp:item.link]\"\n            }\n        ],\n        \"conversionGoalStats\": []\n    },\n    {\n        \"idnewsletter\": 531,\n        \"channels\": [\n            \"email\"\n        ],\n        \"deliveryRate\": 99.81,\n        \"bounceRate\": 0.19,\n        \"openRate\": 20.15,\n        \"clickToOpenRate\": 19.50,\n        \"clickRate\": 3.93,\n        \"conversionRate\": 1.18,\n        \"clickPerClicked\": 140.80,\n        \"conversionToClickRate\": 30.25,\n        \"messagesSent\": 6100,\n        \"messagesReceived\": 6088,\n        \"messagesOpened\": 1227,\n        \"messagesUnreliableOpened\": 1450,\n        \"messagesClicked\": 239,\n        \"messagesConverted\": 72,\n        \"messagesWithUnsubscribeClicks\": 2,\n        \"messagesWithSpamReports\": 0,\n        \"messagesHardBounced\": 0,\n        \"messagesSoftBounced\": 12,\n        \"totalOpens\": 2150,\n        \"totalUnreliableOpens\": 4780,\n        \"totalClicks\": 336,\n        \"totalConversions\": 88,\n        \"totalUnsubscribes\": 2,\n        \"totalSpamReports\": 0,\n        \"contents\": [\n            {\n                \"idcontent\": 6137,\n                \"name\": \"https://www.example.com/\",\n                \"clickers\": 20,\n                \"totalClicks\": 28,\n                \"messagesClicked\": 20,\n                \"converters\": 0,\n                \"totalConversions\": 0,\n                \"messagesConverted\": 0,\n                \"url\": \"https://www.example.com/\"\n            },\n            {\n                \"idcontent\": 6140,\n                \"name\": \"tiktok\",\n                \"clickers\": 2,\n                \"totalClicks\": 2,\n                \"messagesClicked\": 2,\n                \"converters\": 0,\n                \"totalConversions\": 0,\n                \"messagesConverted\": 0,\n                \"url\": \"https://www.tiktok.com/@example\"\n            },\n            {\n                \"idcontent\": 6141,\n                \"name\": \"https://shop.example.com/\",\n                \"clickers\": 4,\n                \"totalClicks\": 4,\n                \"messagesClicked\": 4,\n                \"converters\": 0,\n                \"totalConversions\": 0,\n                \"messagesConverted\": 0,\n                \"url\": \"https://shop.example.com/\"\n            },\n            {\n                \"idcontent\": 6506,\n                \"name\": \"Example Style Italy\",\n                \"clickers\": 145,\n                \"totalClicks\": 225,\n                \"messagesClicked\": 150,\n                \"converters\": 0,\n                \"totalConversions\": 0,\n                \"messagesConverted\": 0,\n                \"url\": \"[temp:checkout.checkouturl]\"\n            },\n            {\n                \"idcontent\": 6507,\n                \"name\": \"Bolero Top Jacket Black\",\n                \"clickers\": 55,\n                \"totalClicks\": 82,\n                \"messagesClicked\": 55,\n                \"converters\": 0,\n                \"totalConversions\": 0,\n                \"messagesConverted\": 0,\n                \"url\": \"[temp:item.link]\"\n            }\n        ],\n        \"conversionGoalStats\": []\n    },\n    {\n        \"idnewsletter\": 347,\n        \"channels\": [\n            \"email\"\n        ],\n        \"deliveryRate\": 99.30,\n        \"bounceRate\": 0.70,\n        \"openRate\": 27.10,\n        \"clickToOpenRate\": 31.50,\n        \"clickRate\": 8.54,\n        \"conversionRate\": 7.85,\n        \"clickPerClicked\": 130.50,\n        \"conversionToClickRate\": 92.10,\n        \"messagesSent\": 19500,\n        \"messagesReceived\": 19363,\n        \"messagesOpened\": 5247,\n        \"messagesUnreliableOpened\": 4350,\n        \"messagesClicked\": 1654,\n        \"messagesConverted\": 1523,\n        \"messagesWithUnsubscribeClicks\": 38,\n        \"messagesWithSpamReports\": 0,\n        \"messagesHardBounced\": 65,\n        \"messagesSoftBounced\": 72,\n        \"totalOpens\": 10850,\n        \"totalUnreliableOpens\": 16200,\n        \"totalClicks\": 2158,\n        \"totalConversions\": 2850,\n        \"totalUnsubscribes\": 39,\n        \"totalSpamReports\": 0,\n        \"contents\": [\n            {\n                \"idcontent\": 7689,\n                \"name\": \"instagram\",\n                \"clickers\": 3,\n                \"totalClicks\": 4,\n                \"messagesClicked\": 3,\n                \"converters\": 0,\n                \"totalConversions\": 0,\n                \"messagesConverted\": 0,\n                \"url\": \"https://www.instagram.com/examplecosmetics/\"\n            },\n            {\n                \"idcontent\": 7690,\n                \"name\": \"tiktok\",\n                \"clickers\": 2,\n                \"totalClicks\": 3,\n                \"messagesClicked\": 2,\n                \"converters\": 0,\n                \"totalConversions\": 0,\n                \"messagesConverted\": 0,\n                \"url\": \"https://www.tiktok.com/@example\"\n            },\n            {\n                \"idcontent\": 7691,\n                \"name\": \"https://shop.example.com/\",\n                \"clickers\": 8,\n                \"totalClicks\": 10,\n                \"messagesClicked\": 8,\n                \"converters\": 0,\n                \"totalConversions\": 0,\n                \"messagesConverted\": 0,\n                \"url\": \"https://shop.example.com/\"\n            },\n            {\n                \"idcontent\": 7764,\n                \"name\": \"Tuta Sportiva Pro Merlin\",\n                \"clickers\": 225,\n                \"totalClicks\": 390,\n                \"messagesClicked\": 230,\n                \"converters\": 0,\n                \"totalConversions\": 0,\n                \"messagesConverted\": 0,\n                \"url\": \"[temp:item.link]\"\n            },\n            {\n                \"idcontent\": 7692,\n                \"name\": \"Privacy Policy\",\n                \"clickers\": 4,\n                \"totalClicks\": 5,\n                \"messagesClicked\": 4,\n                \"converters\": 0,\n                \"totalConversions\": 0,\n                \"messagesConverted\": 0,\n                \"url\": \"https://www.example.com/privacy\"\n            },\n            {\n                \"idcontent\": 7765,\n                \"name\": \"Buy Now\",\n                \"clickers\": 1012,\n                \"totalClicks\": 1650,\n                \"messagesClicked\": 1045,\n                \"converters\": 1012,\n                \"totalConversions\": 1650,\n                \"messagesConverted\": 1045,\n                \"url\": \"[temp:checkout.checkouturl]\"\n            },\n            {\n                \"idcontent\": 7687,\n                \"name\": \"https://www.example.com/\",\n                \"clickers\": 62,\n                \"totalClicks\": 78,\n                \"messagesClicked\": 62,\n                \"converters\": 0,\n                \"totalConversions\": 0,\n                \"messagesConverted\": 0,\n                \"url\": \"https://www.example.com/\"\n            }\n        ],\n        \"conversionGoalStats\": []\n    },\n    {\n        \"idnewsletter\": 366,\n        \"channels\": [\n            \"email\"\n        ],\n        \"deliveryRate\": 99.88,\n        \"bounceRate\": 0.12,\n        \"openRate\": 23.10,\n        \"clickToOpenRate\": 23.85,\n        \"clickRate\": 5.51,\n        \"conversionRate\": 4.90,\n        \"clickPerClicked\": 138.50,\n        \"conversionToClickRate\": 88.50,\n        \"messagesSent\": 7800,\n        \"messagesReceived\": 7791,\n        \"messagesOpened\": 1800,\n        \"messagesUnreliableOpened\": 1850,\n        \"messagesClicked\": 430,\n        \"messagesConverted\": 382,\n        \"messagesWithUnsubscribeClicks\": 4,\n        \"messagesWithSpamReports\": 0,\n        \"messagesHardBounced\": 0,\n        \"messagesSoftBounced\": 9,\n        \"totalOpens\": 3250,\n        \"totalUnreliableOpens\": 6400,\n        \"totalClicks\": 595,\n        \"totalConversions\": 680,\n        \"totalUnsubscribes\": 4,\n        \"totalSpamReports\": 0,\n        \"contents\": [\n            {\n                \"idcontent\": 8804,\n                \"name\": \"Privacy Policy\",\n                \"clickers\": 2,\n                \"totalClicks\": 2,\n                \"messagesClicked\": 2,\n                \"converters\": 0,\n                \"totalConversions\": 0,\n                \"messagesConverted\": 0,\n                \"url\": \"https://www.example.com/legal/privacy\"\n            },\n            {\n                \"idcontent\": 8770,\n                \"name\": \"Pantaloni Sport Magenta\",\n                \"clickers\": 82,\n                \"totalClicks\": 145,\n                \"messagesClicked\": 82,\n                \"converters\": 0,\n                \"totalConversions\": 0,\n                \"messagesConverted\": 0,\n                \"url\": \"[temp:item.link]\"\n            },\n            {\n                \"idcontent\": 8771,\n                \"name\": \"Buy Now\",\n                \"clickers\": 275,\n                \"totalClicks\": 420,\n                \"messagesClicked\": 288,\n                \"converters\": 275,\n                \"totalConversions\": 420,\n                \"messagesConverted\": 288,\n                \"url\": \"[temp:checkout.checkouturl]\"\n            },\n            {\n                \"idcontent\": 8799,\n                \"name\": \"https://www.example.com/\",\n                \"clickers\": 15,\n                \"totalClicks\": 22,\n                \"messagesClicked\": 15,\n                \"converters\": 0,\n                \"totalConversions\": 0,\n                \"messagesConverted\": 0,\n                \"url\": \"https://www.example.com/\"\n            }\n        ],\n        \"conversionGoalStats\": []\n    }\n]"}],"_postman_id":"4a9bfddc-3720-4201-a973-c442ec01e536"},{"name":"Workflow summary","id":"241b5cbc-df8c-4388-a003-c6dae15a2367","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/v19/insights/workflow/:idworkflow","description":"<p>Retrieves detailed insights and statistics for a specific workflow. This endpoint provides information such as total, active, and failed sessions, along with a breakdown of session exits by type and label. It supports filtering results by date range and by specific contact criteria using a query.</p>\n<p>The response is a JSON array of WorkflowInsight objects. Each object contains:</p>\n<ul>\n<li><p><code>idworkflow</code>: The unique identifier of the workflow.</p>\n</li>\n<li><p><code>idjourney</code>: The ID of the journey (campaign) associated with the workflow.</p>\n</li>\n<li><p><code>name</code>: The name of the workflow.</p>\n</li>\n<li><p><code>status</code>: The current status of the workflow (e.g., \"active\", \"draft\", \"paused\").</p>\n</li>\n<li><p><code>totalSessions</code>: Total number of sessions started within the specified period and filters.</p>\n</li>\n<li><p><code>activeSessions</code>: Number of sessions currently in progress.</p>\n</li>\n<li><p><code>errorSessions</code>: Number of sessions that ended with an error status.</p>\n</li>\n<li><p><code>firstSessionDate</code>: Timestamp of the first session found in the results.</p>\n</li>\n<li><p><code>lastSessionDate</code>: Timestamp of the last session found in the results.</p>\n</li>\n<li><p><code>sessionExits</code>: A list of objects representing how sessions ended, each containing:</p>\n<ul>\n<li><p><code>label</code>: The label of the exit node in the workflow.</p>\n</li>\n<li><p><code>exitType</code>: The type of exit (positive, neutral, negative).</p>\n</li>\n<li><p><code>count</code>: The number of sessions that exited through this specific node.</p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","insights","workflow",":idworkflow"],"host":[""],"query":[{"disabled":true,"description":{"content":"<p>An optional filter to restrict insights to sessions involving specific contacts. It accepts a filter expression (e.g., MQL - MagNews Query Language) to narrow down the statistics to a specific target audience.</p>\n","type":"text/plain"},"key":"query","value":"select * from contacts"},{"disabled":true,"description":{"content":"<p>Optional. The start of the time period for which insights should be calculated, expressed as a Unix timestamp in milliseconds. If omitted, statistics will be calculated from the beginning of the workflow's history.</p>\n","type":"text/plain"},"key":"from","value":"1704107890000"},{"disabled":true,"description":{"content":"<p>Optional. The end of the time period for which insights should be calculated, expressed as a Unix timestamp in milliseconds. If omitted, statistics will be calculated up to the current moment.</p>\n","type":"text/plain"},"key":"to","value":"1769080690000"}],"variable":[{"description":{"content":"<p>The unique identifier of the workflow for which insights are requested.</p>\n","type":"text/plain"},"type":"any","value":"7","key":"idworkflow"}]}},"response":[{"id":"938dd486-47a4-468f-be0d-d5354216221f","name":"Workflow summary","originalRequest":{"method":"GET","header":[],"url":{"raw":"/v19/insights/workflow/:idworkflow","host":[""],"path":["v19","insights","workflow",":idworkflow"],"query":[{"key":"query","value":"select * from contacts","description":"MQL query to filter contacts","type":"text","disabled":true},{"key":"from","value":"1704107890000","description":"timestamp in milliseconds","type":"text","disabled":true},{"key":"to","value":"1769080690000","type":"text","disabled":true}],"variable":[{"key":"idworkflow","value":"7"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-MnPageType","value":"ws"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"mn1:2547"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Type","value":"application/json","description":"","type":"text"},{"key":"Date","value":"Thu, 22 Jan 2026 11:25:11 GMT"},{"key":"Keep-Alive","value":"timeout=360"},{"key":"Connection","value":"keep-alive"},{"key":"Strict-Transport-Security","value":"max-age=63072000;includeSubDomains"},{"key":"X-Proxy-Path","value":"wshttps_r;wshttps_a;wshttps_d;wshttps32"},{"key":"content-encoding","value":"gzip"},{"key":"transfer-encoding","value":"chunked"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"idworkflow\": 7,\n    \"idjourney\": 5,\n    \"name\": \"Recover Missing Orders\",\n    \"status\": \"stopped\",\n    \"totalSessions\": 10163,\n    \"activeSessions\": 0,\n    \"errorSessions\": 0,\n    \"firstSessionDate\": 1732921200000,\n    \"lastSessionDate\": 1734562800000,\n    \"sessionExits\": [\n        {\n            \"label\": \"Recovered\",\n            \"exitType\": \"positive\",\n            \"count\": 10002\n        },\n        {\n            \"label\": \"Clicked to recover\",\n            \"exitType\": \"positive\",\n            \"count\": 6\n        },\n        {\n            \"label\": \"Exit without recovering\",\n            \"exitType\": \"negative\",\n            \"count\": 155\n        }\n    ]\n}"}],"_postman_id":"241b5cbc-df8c-4388-a003-c6dae15a2367"},{"name":"Workflow summaries","id":"c23004e6-a454-4523-a423-5448ca21086e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/v19/insights/workflows?queryWorkflow=SELECT * FROM WORKFLOWS WHERE idcampaign = 123","description":"<p>Retrieves detailed insights and statistics for a batch of workflows. This endpoint allows for bulk retrieval of workflow performance data, including session counts (total, active, error) and session exit breakdowns. It supports filtering both the set of workflows to analyze and the specific contact sessions to include in the statistics, within a defined date range.</p>\n<p>The response is a JSON array of workflow insigiths objects. (see <code>/insight/workflow/:idworkflow</code> endpoint for details)</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","insights","workflows"],"host":[""],"query":[{"disabled":true,"description":{"content":"<p>MQL query to filter contacts</p>\n","type":"text/plain"},"key":"query","value":"select * from contacts where email like '%gmail.com'"},{"description":{"content":"<p>An optional SQL-like query string to filter the list of workflows for which insights are requested. If omitted, it defaults to <code>SELECT * FROM WORKFLOWS</code>. The results are limited to a maximum of 100 workflows per request.</p>\n","type":"text/plain"},"key":"queryWorkflow","value":"SELECT * FROM WORKFLOWS WHERE idcampaign = 123"},{"disabled":true,"description":{"content":"<p>Optional. The start of the time period for which insights should be calculated, expressed as a Unix timestamp in milliseconds. </p>\n","type":"text/plain"},"key":"from","value":"1704107890000"},{"disabled":true,"description":{"content":"<p>Optional. The end of the time period for which insights should be calculated, expressed as a Unix timestamp in milliseconds.</p>\n","type":"text/plain"},"key":"to","value":"1769080690000"}],"variable":[]}},"response":[{"id":"d99fbfd1-9290-4a97-8973-991b57d59a1c","name":"Workflow summaries","originalRequest":{"method":"GET","header":[],"url":{"raw":"/v19/insights/workflows?queryWorkflow=SELECT * FROM WORKFLOWS WHERE idcampaign = 1","host":[""],"path":["v19","insights","workflows"],"query":[{"key":"queryWorkflow","value":"SELECT * FROM WORKFLOWS WHERE idcampaign = 1","description":"An optional filter to restrict insights to sessions involving specific contacts. It accepts a filter expression (e.g., MQL - MagNews Query Language) to narrow down the statistics to a specific target audience. |","type":"text"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Mn-PageType","value":"Webservice"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"qapatch:6"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Type","value":"application/json","description":"","type":"text"},{"key":"Date","value":"Thu, 22 Jan 2026 14:06:09 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"},{"key":"content-encoding","value":"gzip"},{"key":"transfer-encoding","value":"chunked"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"[\n    {\n        \"idworkflow\": 11,\n        \"idjourney\": 7,\n        \"name\": \"shopify\",\n        \"status\": \"active\",\n        \"totalSessions\": 0,\n        \"activeSessions\": 0,\n        \"errorSessions\": 0,\n        \"firstSessionDate\": null,\n        \"lastSessionDate\": null,\n        \"sessionExits\": [\n            {\n                \"label\": \"Default Exit\",\n                \"exitType\": \"neutral\",\n                \"count\": 0\n            }\n        ]\n    },\n    {\n        \"idworkflow\": 16,\n        \"idjourney\": 1,\n        \"name\": \"dynamics\",\n        \"status\": \"active\",\n        \"totalSessions\": 76,\n        \"activeSessions\": 2,\n        \"errorSessions\": 0,\n        \"firstSessionDate\": 1665439200000,\n        \"lastSessionDate\": 1689026400000,\n        \"sessionExits\": [\n            {\n                \"label\": \"Success\",\n                \"exitType\": \"positive\",\n                \"count\": 74\n            }\n        ]\n    },\n    {\n        \"idworkflow\": 33,\n        \"idjourney\": 10,\n        \"name\": \"Recover abandoned carts\",\n        \"status\": \"draft\",\n        \"totalSessions\": 0,\n        \"activeSessions\": 0,\n        \"errorSessions\": 0,\n        \"firstSessionDate\": null,\n        \"lastSessionDate\": null,\n        \"sessionExits\": [\n            {\n                \"label\": \"Purchase\",\n                \"exitType\": \"positive\",\n                \"count\": 0\n            },\n            {\n                \"label\": \"No purchase\",\n                \"exitType\": \"negative\",\n                \"count\": 0\n            }\n        ]\n    }\n]"}],"_postman_id":"c23004e6-a454-4523-a423-5448ca21086e"}],"id":"f2a7ca37-d772-41fe-99ca-72b4f5c296da","_postman_id":"f2a7ca37-d772-41fe-99ca-72b4f5c296da","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}}},{"name":"Scheduled Works","item":[{"name":"Find scheduled work by id","id":"61a01cb0-21d0-4e46-9f32-72f813c8d3cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/v19/scheduledworks/:idoperation","description":"<p>Find a scheduled work by ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","scheduledworks",":idoperation"],"host":[""],"query":[],"variable":[{"type":"any","value":"1","key":"idoperation"}]}},"response":[{"id":"e937c01d-5831-48d3-947a-1c6e896c2028","name":"Success Response","originalRequest":{"method":"GET","header":[],"url":{"raw":"/v19/scheduledworks/:idoperation","host":[""],"path":["v19","scheduledworks",":idoperation"],"variable":[{"key":"idoperation","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"idoperation\": 1,\n  \"name\": \"Daily Newsletter\",\n  \"description\": \"Send daily newsletter to subscribers\",\n  \"type\": \"email\",\n  \"status\": \"active\",\n  \"creationDate\": \"2023-01-15T10:30:00.000Z\",\n  \"lastExecutionDate\": \"2023-06-20T08:00:00.000Z\",\n  \"nextExecutionDate\": \"2023-06-21T08:00:00.000Z\",\n  \"schedule\": {\n    \"type\": \"daily\",\n    \"time\": \"08:00:00\",\n    \"timezone\": \"Europe/Rome\"\n  },\n  \"parameters\": {\n    \"idaudience\": 1,\n    \"idtemplate\": 5\n  }\n}"}],"_postman_id":"61a01cb0-21d0-4e46-9f32-72f813c8d3cd"},{"name":"Trigger scheduled work","id":"9931ddc7-5a19-4bf8-8ea9-52dc00d5777d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/v19/scheduledworks/:idoperation/trigger?delay=:delay","description":"<p>Trigger a scheduled work by ID with optional delay.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","scheduledworks",":idoperation","trigger"],"host":[""],"query":[{"description":{"content":"<p>Optional delay in minutes</p>\n","type":"text/plain"},"key":"delay","value":":delay"}],"variable":[{"id":"34a6c6e2-040b-43b8-88ef-ee3cf33ef7f0","type":"any","key":"idoperation"}]}},"response":[{"id":"a8e93873-de24-477a-82a5-a1c575126ba4","name":"Success Response","originalRequest":{"method":"GET","header":[],"url":{"raw":"/v19/scheduledworks/:idoperation/trigger?delay=5","host":[""],"path":["v19","scheduledworks",":idoperation","trigger"],"query":[{"key":"delay","value":"5","description":"Optional delay in minutes"}],"variable":[{"key":"idoperation","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"idoperation\": 1,\n  \"name\": \"Daily Newsletter\",\n  \"status\": \"triggered\",\n  \"executionTime\": \"2023-06-20T10:35:00.000Z\",\n  \"message\": \"Operation successfully triggered with 5 minutes delay\",\n  \"executionId\": \"exec-123456\"\n}"}],"_postman_id":"9931ddc7-5a19-4bf8-8ea9-52dc00d5777d"}],"id":"d274f6af-6bb4-4ce7-a787-9814c548792f","description":"<p>This section describes the available REST API functions for retrieving data related to <strong>scheduled operations</strong> (called \"Scheduled tasks\" in magnews platform).</p>\n","_postman_id":"d274f6af-6bb4-4ce7-a787-9814c548792f","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}}},{"name":"Export","item":[{"name":"Bulk download (get)","id":"c8146751-9d1d-487d-bc82-1f47f9934f7b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/v19/export/bulkdownload?query=SELECT * FROM CONTACTS LIMIT 100&lineSeparator=\\n&quotationMark=\"&encoding=UTF-8&fieldSeparator=,","description":"<p>Download data using a MQL query (GET method).</p>\n<p>See the <a href=\"https://help.magnews.it/hc/en-us/articles/18523225702290-Writing-queries\">Query documentation</a> for more details on how to write queries.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","export","bulkdownload"],"host":[""],"query":[{"key":"query","value":"SELECT * FROM CONTACTS LIMIT 100"},{"description":{"content":"<p>Optional line separator</p>\n","type":"text/plain"},"key":"lineSeparator","value":"\\n"},{"description":{"content":"<p>Optional quotation mark</p>\n","type":"text/plain"},"key":"quotationMark","value":"\""},{"description":{"content":"<p>Optional encoding</p>\n","type":"text/plain"},"key":"encoding","value":"UTF-8"},{"description":{"content":"<p>Optional field separator</p>\n","type":"text/plain"},"key":"fieldSeparator","value":","}],"variable":[]}},"response":[{"id":"d0f1fa78-9d28-40bd-9106-5b4096737dfc","name":"Success Response","originalRequest":{"method":"GET","header":[],"url":{"raw":"/v19/export/bulkdownload?query=SELECT * FROM CONTACTS LIMIT 2","host":[""],"path":["v19","export","bulkdownload"],"query":[{"key":"query","value":"SELECT * FROM CONTACTS LIMIT 2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/csv"},{"key":"Content-Disposition","value":"attachment; filename=export.csv"}],"cookie":[],"responseTime":null,"body":"idcontact,email,name,surname,company,phone,status\n1,\"contact@example.com\",\"John\",\"Doe\",\"Example Corp\",\"+1234567890\",\"active\"\n2,\"contact2@example.com\",\"Jane\",\"Doe\",\"Example Inc\",\"+1987654321\",\"active\""}],"_postman_id":"c8146751-9d1d-487d-bc82-1f47f9934f7b"},{"name":"Bulk download (post)","id":"77aefaa4-d568-4ed5-bea4-56956ad5b49a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"query\": \"SELECT * FROM CONTACTS LIMIT 100\",\n  \"options\": {\n    \"lineSeparator\": \"\\n\",\n    \"quotationMark\": \"\\\"\",\n    \"encoding\": \"UTF-8\",\n    \"fieldSeparator\": \",\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"/v19/export/bulkdownload","description":"<p>Download data using a MQL query (POST method)</p>\n<p>See the <a href=\"https://help.magnews.it/hc/en-us/articles/18523225702290-Writing-queries\">Query documentation</a> for more details on how to write queries.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","export","bulkdownload"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"e2e379b8-b440-43d8-8bcf-365774e1a80b","name":"Success Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"query\": \"SELECT * FROM CONTACTS LIMIT 2\",\n  \"options\": {\n    \"lineSeparator\": \"\\n\",\n    \"quotationMark\": \"\\\"\",\n    \"encoding\": \"UTF-8\",\n    \"fieldSeparator\": \",\"\n  }\n}"},"url":"/v19/export/bulkdownload"},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/csv"},{"key":"Content-Disposition","value":"attachment; filename=export.csv"}],"cookie":[],"responseTime":null,"body":"idcontact,email,name,surname,company,phone,status\n1,\"contact@example.com\",\"John\",\"Doe\",\"Example Corp\",\"+1234567890\",\"active\"\n2,\"contact2@example.com\",\"Jane\",\"Doe\",\"Example Inc\",\"+1987654321\",\"active\""}],"_postman_id":"77aefaa4-d568-4ed5-bea4-56956ad5b49a"}],"id":"4f368318-49df-4b17-97b9-1868c42d6b5e","description":"<h3 id=\"using-the-bulk-export-api\">Using the Bulk Export API</h3>\n<p>If you need to export data from custom or system tables, use this API.</p>\n<p>This endpoint executes a full query and returns the <strong>complete result set</strong>.<br />There is <strong>no pagination</strong>, but the result is streamed efficiently.</p>\n<p>The response is encoded in <strong>CSV format</strong> with the following default settings:</p>\n<ul>\n<li><p><strong>Encoding</strong>: UTF-8</p>\n</li>\n<li><p><strong>Field separator</strong>: <code>;</code></p>\n</li>\n<li><p><strong>No field delimiter</strong></p>\n</li>\n<li><p><strong>Line separator</strong>: Windows (<code>\\r\\n</code>)</p>\n</li>\n</ul>\n<p>You can customize these options via query parameters in the request body (see the examples requests for both POST and GET modes).</p>\n<h2 id=\"writing-queries\">Writing queries</h2>\n<p>See the <a href=\"https://help.magnews.it/hc/en-us/articles/18523225702290-Writing-queries\">Query documentation</a> for more details.</p>\n","_postman_id":"4f368318-49df-4b17-97b9-1868c42d6b5e","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}}},{"name":"Entities","item":[{"name":"Find entity","id":"0b2659d2-485a-4e44-9216-3e96f7c33ef5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/v19/entities/:entityName/data","description":"<p>Find an entity by name</p>\n<p><strong>Result</strong>: Returns an existing record.</p>\n<p>The lookup is performed using the fields provided in the <strong>POST body</strong>, typically the <strong>table primary key</strong> or the <strong>user-defined primary key</strong> fields.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","entities",":entityName","data"],"host":[""],"query":[{"disabled":true,"description":{"content":"<p>In this example sku is the logical key of the entity</p>\n","type":"text/plain"},"key":"sku","value":""}],"variable":[{"type":"any","value":"products","key":"entityName"}]}},"response":[{"id":"0a269590-d34c-478a-af4d-c85249e2306a","name":"Success Response","originalRequest":{"method":"GET","header":[],"url":{"raw":"/v19/entities/:entityName/data?sku=MP11-33-Brown","host":[""],"path":["v19","entities",":entityName","data"],"query":[{"key":"sku","value":"MP11-33-Brown"}],"variable":[{"key":"entityName","value":"products"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"entityName\": \"products\",\n  \"fields\": [\n    {\n      \"name\": \"id\",\n      \"type\": \"integer\",\n      \"isPrimaryKey\": true\n    },\n    {\n      \"name\": \"name\",\n      \"type\": \"string\",\n      \"maxLength\": 100\n    },\n    {\n      \"name\": \"description\",\n      \"type\": \"string\",\n      \"maxLength\": 500\n    },\n    {\n      \"name\": \"price\",\n      \"type\": \"decimal\",\n      \"precision\": 10,\n      \"scale\": 2\n    },\n    {\n      \"name\": \"category\",\n      \"type\": \"string\",\n      \"maxLength\": 50\n    },\n    {\n      \"name\": \"creationDate\",\n      \"type\": \"datetime\"\n    }\n  ],\n  \"totalRecords\": 120,\n  \"lastModifiedDate\": \"2023-06-15T10:30:00.000Z\"\n}"}],"_postman_id":"0b2659d2-485a-4e44-9216-3e96f7c33ef5"},{"name":"Merge entity","id":"56443aec-263e-42b1-9023-54d5b6cb04ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"fields\": {\n    \"id\": 1,\n    \"updated_at\": \"25/05/2025 00:00\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"/v19/entities/:entityName/data","description":"<p>Insert or update a record in an entity table</p>\n<hr />\n<h4 id=\"post-body-options\">Post body options</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Option</th>\n<th>Type</th>\n<th>Default Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>operationtype</code></td>\n<td>String</td>\n<td><code>upsert</code></td>\n<td>Type of operation to perform. Possible values are: <code>update</code>, <code>insert</code> or <code>upsert</code>.</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h4 id=\"post-body-fields-format\">Post body fields format</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Column data type</th>\n<th>Entity field type</th>\n<th>Example</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Text / Long text</td>\n<td></td>\n<td><code>\"my string value\"</code></td>\n<td>Double quoted string</td>\n</tr>\n<tr>\n<td>Integer (1 byte)</td>\n<td>Integer</td>\n<td><code>1</code></td>\n<td>Integer number</td>\n</tr>\n<tr>\n<td>Integer (1 byte)</td>\n<td>Checkbox</td>\n<td><code>true</code></td>\n<td>Boolean value: <code>true</code> or <code>false</code></td>\n</tr>\n<tr>\n<td>Integer (4 or 8 bytes)</td>\n<td></td>\n<td><code>10</code></td>\n<td>Integer or long number</td>\n</tr>\n<tr>\n<td>Decimal number</td>\n<td></td>\n<td><code>\"10.5\"</code> or <code>\"10,5\"</code></td>\n<td>Quoted string formatted according to current user's international settings</td>\n</tr>\n<tr>\n<td>Date</td>\n<td></td>\n<td><code>\"24/06/2017\"</code></td>\n<td>Quoted string formatted according to date format and time zone settings</td>\n</tr>\n<tr>\n<td>Date and time</td>\n<td></td>\n<td><code>\"24/06/2017 10:17\"</code></td>\n<td>Quoted string formatted</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","entities",":entityName","data"],"host":[""],"query":[],"variable":[{"type":"any","value":"","key":"entityName"}]}},"response":[{"id":"34b96ada-6f6b-4f0d-bea9-266600703ccc","name":"Success Upsert entity","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"fields\": {\n    \"id\": 1,\n    \"updated_at\": \"25/05/2025 00:00\"\n  }\n}"},"url":{"raw":"/v19/entities/:entityName/data","host":[""],"path":["v19","entities",":entityName","data"],"variable":[{"key":"entityName","value":"mage_order_items"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Mn-PageType","value":"Webservice"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"qapatch:6"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Thu, 24 Apr 2025 16:46:04 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"},{"key":"content-encoding","value":"gzip"},{"key":"transfer-encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"primarykey\": {\n        \"id\": 1\n    },\n    \"fields\": {\n        \"tax_amount\": 0,\n        \"item_discount_amount\": 0,\n        \"item_tax_amount\": 0,\n        \"discount_amount\": 0,\n        \"created_at\": \"14/05/2024 15:59\",\n        \"qty_ordered\": 2,\n        \"total_item_count\": 0,\n        \"tax_percent\": 0,\n        \"updated_at\": \"25/05/2025 00:00\",\n        \"price_incl_tax\": 0,\n        \"price\": 74,\n        \"product_id\": 859,\n        \"grand_total\": 158,\n        \"id\": 1,\n        \"idcontact\": 500595,\n        \"state\": \"complete\",\n        \"sku\": \"MP11-33-Brown\",\n        \"store_id\": 1,\n        \"coupon_code\": null,\n        \"item_id\": 6,\n        \"quote_id\": 5,\n        \"entity_id\": 4,\n        \"shipping_amount\": 10,\n        \"subtotal\": 148,\n        \"name\": \"Aether Gym Pant -33-Brown\",\n        \"customer_id\": 2,\n        \"order_currency_code\": \"USD\",\n        \"status\": \"complete\"\n    }\n}"}],"_postman_id":"56443aec-263e-42b1-9023-54d5b6cb04ee"},{"name":"Batch merge entity","id":"a2b50f35-bd8f-42af-a688-7943b2311b9a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n   \"options\":{\n      \"operationtype\":\"upsert\",\n      \"fulldump\":false\n   },\n   \"entities\":[\n      {\n        \"primarykey\": {\n            \"myautoincprimarykey\":1\n        },\n        \"fields\": {\n            \"myuserprimarykey\": 1234,\n            \"mystringfield\": \"hello\",\n            \"myint\": 1,\n            \"mynumber\": 10.05,\n            \"mybool\": true,\n            \"mydatetime\": \"24/06/2021 10:05\",\n            \"mydate\": \"24/06/2021\"\n        }\n      }\n   ]\n}","options":{"raw":{"language":"json"}}},"url":"/v19/entities/:entityName/batchdata","description":"<p>Create or update user entity instances from batch</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","entities",":entityName","batchdata"],"host":[""],"query":[],"variable":[{"type":"any","key":"entityName"}]}},"response":[{"id":"9e8c6d6a-9d6b-4532-bc3e-62bef3255136","name":"Success Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n   \"options\":{\n      \"operationtype\":\"upsert\",\n      \"fulldump\":false\n   },\n   \"entities\":[\n      {\n        \"primarykey\": {\n            \"myautoincprimarykey\":1\n        },\n        \"fields\": {\n            \"myuserprimarykey\": 1234,\n            \"mystringfield\": \"hello\",\n            \"myint\": 1,\n            \"mynumber\": 10.05,\n            \"mybool\": true,\n            \"mydatetime\": \"24/06/2021 10:05\",\n            \"mydate\": \"24/06/2021\"\n        }\n      }\n   ]\n}"},"url":{"raw":"/v19/entities/:entityName/batchdata","host":[""],"path":["v19","entities",":entityName","batchdata"],"variable":[{"key":"entityName","value":"products"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"entityName\": \"products\",\n    \"operationType\": \"upsert\",\n    \"result\": \"created\",\n    \"message\": \"Entity successfully created\",\n    \"id\": 121,\n    \"fields\": {\n      \"myuserprimarykey\": 1234,\n      \"mystringfield\": \"hello\",\n      \"myint\": 1,\n      \"mynumber\": 10.05,\n      \"mybool\": true,\n      \"mydatetime\": \"24/06/2021 10:05\",\n      \"mydate\": \"24/06/2021\"\n    }\n  }\n]"}],"_postman_id":"a2b50f35-bd8f-42af-a688-7943b2311b9a"}],"id":"e2e1001e-06a8-47be-bea9-60754667b03f","description":"<p>An entity is a custom data table defined as User Entity on magnews.</p>\n<blockquote>\n<p><strong>Note:</strong> In the <code>:entityName</code> parameter, use the <strong>name of the user entity</strong>, not the name of the underlying data table.</p>\n</blockquote>\n","_postman_id":"e2e1001e-06a8-47be-bea9-60754667b03f","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}}},{"name":"Account","item":[{"name":"Get residual credit","id":"eaaaa79e-6097-4ab6-899e-c35a3b5f2c53","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/v19/account/residualcredit/:channel","description":"<p>Get the available credit for a channel (email or sms)</p>\n<p><strong>Allowed values for</strong> <strong><code>channel</code></strong>: <code>email</code>, <code>sms</code>.</p>\n<p><strong>Result</strong>: A number representing the residual credit.</p>\n<ul>\n<li><p>If credit is <strong>1000</strong>, it returns a value approximated to the nearest thousand, <strong>rounding down</strong>.</p>\n</li>\n<li><p>If credit is <strong>0 or negative</strong>, it returns <strong>0</strong>.</p>\n</li>\n<li><p>For accounts with a <strong>flat plan</strong>, it returns <strong>residual credit plus automatic credit</strong>.</p>\n</li>\n<li><p>For accounts with a <strong>final balance plan</strong>, it always returns <strong>-1</strong>.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","account","residualcredit",":channel"],"host":[""],"query":[],"variable":[{"type":"any","value":"email","key":"channel"}]}},"response":[{"id":"7f20c5b9-f80f-48aa-8d10-e16fbc7ef13b","name":"Success Response","originalRequest":{"method":"GET","header":[],"url":{"raw":"/v19/account/residualcredit/:channel","host":[""],"path":["v19","account","residualcredit",":channel"],"variable":[{"key":"channel","value":"email"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"channel\": \"email\",\n  \"residualCredit\": 50000,\n  \"totalCredit\": 100000,\n  \"usedCredit\": 50000,\n  \"unit\": \"messages\",\n  \"lastUpdated\": \"2023-06-20T15:30:00.000Z\"\n}"}],"_postman_id":"eaaaa79e-6097-4ab6-899e-c35a3b5f2c53"},{"name":"Get user information","id":"112c559e-3fa0-4fc4-8470-70b80594725f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/v19/account/userinfo","description":"<p>Get relevant information about the user profile associated with the current token and its account.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","account","userinfo"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"40ffaae0-3a33-4fb8-bb0c-360092d937d9","name":"Success Response","originalRequest":{"method":"GET","header":[],"url":"/v19/account/userinfo"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"idaccount\": 42,\n  \"accountName\": \"SunnyWear\",\n  \"accountLogin\": \"sunnywear\",\n  \"iduser\": 17,\n  \"userName\": \"janedoe\",\n  \"emailAddress\": \"jane.doe@example.com\",\n  \"firstName\": \"Jane\",\n  \"lastName\": \"Doe\",\n  \"companyName\": \"SunnyWear Inc.\",\n  \"locale\": \"ENG\",\n  \"dateFormat\": \"dd/MM/yyyy\",\n  \"timeFormat\": \"HH:mm\",\n  \"dateTimeFormat\": \"dd/MM/yyyy HH:mm\",\n  \"roleName\": \"Administrator\"\n}\n"}],"_postman_id":"112c559e-3fa0-4fc4-8470-70b80594725f"}],"id":"18a2b9fe-8474-4abf-9837-305c4821216e","_postman_id":"18a2b9fe-8474-4abf-9837-305c4821216e","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}}},{"name":"MQL","item":[{"name":"Execute MQL select","id":"06620008-accc-4f76-a4d0-dbee3e9b77f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"query\": \"select idcontact, email, data_ultima_modifica from contacts where data_ultima_modifica > ? and email like ?\",\n  \"options\": {\n    \"max\": \"10\"\n  },\n  \"parameters\": [\"15/07/2024 09:45\", \"%@example.com%\"]\n}","options":{"raw":{"language":"json"}}},"url":"/v19/mql/execute","description":"<p>Execute an MQL <strong>select</strong> query. For update/insert/delete queries, use <a href=\"#3459ef65-c64e-47a8-bf73-de429630c4fa\">Execute MQL update</a> endpoint.</p>\n<h2 id=\"writing-queries\">Writing queries</h2>\n<p>See the <a href=\"https://help.magnews.it/hc/en-us/articles/18523225702290-Writing-queries\">Query documentation</a> for more details on how to write queries.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","mql","execute"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"553fdb81-2ef6-4739-99c2-a17c210f7c2f","name":"Success Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"query\": \"select * from contacts limit 10\",\n  \"options\": {\n    \"max\": \"10\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"/v19/mql/execute"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Mn-PageType","value":"Webservice"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"qapatch:6"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Thu, 24 Apr 2025 16:49:22 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"},{"key":"content-encoding","value":"gzip"},{"key":"transfer-encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"recordCount\": 10,\n    \"columnNames\": [\n        \"idcontact\"\n    ],\n    \"records\": [\n        {\n            \"record\": [\n                {\n                    \"key\": \"idcontact\",\n                    \"value\": \"1\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idcontact\",\n                    \"value\": \"2\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idcontact\",\n                    \"value\": \"3\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idcontact\",\n                    \"value\": \"4\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idcontact\",\n                    \"value\": \"5\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idcontact\",\n                    \"value\": \"6\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idcontact\",\n                    \"value\": \"37\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idcontact\",\n                    \"value\": \"38\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idcontact\",\n                    \"value\": \"68\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idcontact\",\n                    \"value\": \"69\"\n                }\n            ]\n        }\n    ]\n}"},{"id":"c526e9be-3d77-451b-9a1f-7bf6c6987e0f","name":"Bad query error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"query\": \"select * from contacts limit\",\n  \"options\": {\n    \"max\": \"10\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"/v19/mql/execute"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Mn-PageType","value":"Webservice"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"qapatch:6"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Thu, 24 Apr 2025 16:49:22 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"},{"key":"content-encoding","value":"gzip"},{"key":"transfer-encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Internal Server Error\",\n    \"debugMessage\": \"bad query select * from contacts limit, parser error is: Encountered unexpected token:<EOF>\\n    at line 1, column 28.\\n\\nWas expecting one of:\\n\\n    \\\":\\\"\\n    \\\"?\\\"\\n    \\\"ALL\\\"\\n    \\\"NULL\\\"\\n    <S_LONG>\\n.\"\n}"},{"id":"7ec1d94d-95de-49bf-b6f2-86a6d07ebe41","name":"Query static audience members","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"query\": \"select * from staticgroupmembers where idgroup=23\",\n  \"options\": {\n    \"max\": \"10\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"/v19/mql/execute"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Mn-PageType","value":"Webservice"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"qapatch:6"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Fri, 31 Oct 2025 08:19:13 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"},{"key":"content-encoding","value":"gzip"},{"key":"transfer-encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"recordCount\": 8,\n    \"columnNames\": [\n        \"idcontact\"\n    ],\n    \"records\": [\n        {\n            \"record\": [\n                {\n                    \"key\": \"idcontact\",\n                    \"value\": \"33\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idcontact\",\n                    \"value\": \"34\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idcontact\",\n                    \"value\": \"35\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idcontact\",\n                    \"value\": \"482470\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idcontact\",\n                    \"value\": \"482471\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idcontact\",\n                    \"value\": \"542425\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idcontact\",\n                    \"value\": \"542437\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idcontact\",\n                    \"value\": \"542438\"\n                }\n            ]\n        }\n    ]\n}"},{"id":"5dbd3996-90aa-48b5-950f-a4949c31d1f1","name":"Query audiences","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"query\": \"select idgroup,name,creationdate,lastmodificationdate from groups\",\n  \"options\": {\n    \"max\": \"10\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"/v19/mql/execute"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Mn-PageType","value":"Webservice"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"qapatch:6"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Fri, 31 Oct 2025 08:47:56 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"},{"key":"content-encoding","value":"gzip"},{"key":"transfer-encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"recordCount\": 10,\n    \"columnNames\": [\n        \"idgroup\",\n        \"name\",\n        \"creationdate\",\n        \"lastmodificationdate\"\n    ],\n    \"records\": [\n        {\n            \"record\": [\n                {\n                    \"key\": \"idgroup\",\n                    \"value\": \"1\"\n                },\n                {\n                    \"key\": \"name\",\n                    \"value\": \"%%dbreaders,suspended%%\"\n                },\n                {\n                    \"key\": \"creationdate\",\n                    \"value\": \"10/07/2015 12:38\"\n                },\n                {\n                    \"key\": \"lastmodificationdate\",\n                    \"value\": \"02/09/2020 11:47\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idgroup\",\n                    \"value\": \"2\"\n                },\n                {\n                    \"key\": \"name\",\n                    \"value\": \"%%dbreaders,unsubscribed%%\"\n                },\n                {\n                    \"key\": \"creationdate\",\n                    \"value\": \"10/07/2015 12:38\"\n                },\n                {\n                    \"key\": \"lastmodificationdate\",\n                    \"value\": \"02/09/2020 11:47\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idgroup\",\n                    \"value\": \"3\"\n                },\n                {\n                    \"key\": \"name\",\n                    \"value\": \"%%dbreaders,waiting%%\"\n                },\n                {\n                    \"key\": \"creationdate\",\n                    \"value\": \"10/07/2015 12:38\"\n                },\n                {\n                    \"key\": \"lastmodificationdate\",\n                    \"value\": \"02/09/2020 11:47\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idgroup\",\n                    \"value\": \"4\"\n                },\n                {\n                    \"key\": \"name\",\n                    \"value\": \"%%dbreaders,all%%\"\n                },\n                {\n                    \"key\": \"creationdate\",\n                    \"value\": \"10/07/2015 12:38\"\n                },\n                {\n                    \"key\": \"lastmodificationdate\",\n                    \"value\": \"02/09/2020 11:47\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idgroup\",\n                    \"value\": \"5\"\n                },\n                {\n                    \"key\": \"name\",\n                    \"value\": \"%%dbreaders,suspended%%\"\n                },\n                {\n                    \"key\": \"creationdate\",\n                    \"value\": \"10/07/2015 12:38\"\n                },\n                {\n                    \"key\": \"lastmodificationdate\",\n                    \"value\": \"02/09/2020 11:47\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idgroup\",\n                    \"value\": \"6\"\n                },\n                {\n                    \"key\": \"name\",\n                    \"value\": \"%%dbreaders,unsubscribed%%\"\n                },\n                {\n                    \"key\": \"creationdate\",\n                    \"value\": \"10/07/2015 12:38\"\n                },\n                {\n                    \"key\": \"lastmodificationdate\",\n                    \"value\": \"02/09/2020 11:47\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idgroup\",\n                    \"value\": \"7\"\n                },\n                {\n                    \"key\": \"name\",\n                    \"value\": \"%%dbreaders,waiting%%\"\n                },\n                {\n                    \"key\": \"creationdate\",\n                    \"value\": \"10/07/2015 12:38\"\n                },\n                {\n                    \"key\": \"lastmodificationdate\",\n                    \"value\": \"02/09/2020 11:47\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idgroup\",\n                    \"value\": \"8\"\n                },\n                {\n                    \"key\": \"name\",\n                    \"value\": \"%%dbreaders,all%%\"\n                },\n                {\n                    \"key\": \"creationdate\",\n                    \"value\": \"10/07/2015 12:38\"\n                },\n                {\n                    \"key\": \"lastmodificationdate\",\n                    \"value\": \"02/09/2020 11:47\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idgroup\",\n                    \"value\": \"9\"\n                },\n                {\n                    \"key\": \"name\",\n                    \"value\": \"Iscritti alla newsletter\"\n                },\n                {\n                    \"key\": \"creationdate\",\n                    \"value\": \"25/09/2018 08:16\"\n                },\n                {\n                    \"key\": \"lastmodificationdate\",\n                    \"value\": \"25/09/2018 08:16\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idgroup\",\n                    \"value\": \"10\"\n                },\n                {\n                    \"key\": \"name\",\n                    \"value\": \"Iscritti alla newsletter - Clienti\"\n                },\n                {\n                    \"key\": \"creationdate\",\n                    \"value\": \"25/09/2018 08:16\"\n                },\n                {\n                    \"key\": \"lastmodificationdate\",\n                    \"value\": \"25/09/2018 08:16\"\n                }\n            ]\n        }\n    ]\n}"},{"id":"90094560-b117-411c-8145-5bd95cb9e65d","name":"Query workflows","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"query\": \"select idworkflow, name, creationdate, idcampaign from workflows where idcampaign in (1,2)\",\n  \"options\": {\n    \"max\": \"10\"\n  }\n}"},"url":"/v19/mql/execute"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Mn-PageType","value":"Webservice"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"qapatch:6"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Wed, 12 Nov 2025 13:45:20 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"},{"key":"content-encoding","value":"gzip"},{"key":"transfer-encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"recordCount\": 10,\n    \"columnNames\": [\n        \"idworkflow\",\n        \"name\",\n        \"creationdate\",\n        \"idcampaign\"\n    ],\n    \"records\": [\n        {\n            \"record\": [\n                {\n                    \"key\": \"idworkflow\",\n                    \"value\": \"1\"\n                },\n                {\n                    \"key\": \"name\",\n                    \"value\": \"magneto\"\n                },\n                {\n                    \"key\": \"creationdate\",\n                    \"value\": \"16/10/2015 08:25\"\n                },\n                {\n                    \"key\": \"idcampaign\",\n                    \"value\": \"1\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idworkflow\",\n                    \"value\": \"5\"\n                },\n                {\n                    \"key\": \"name\",\n                    \"value\": \"dynamics\"\n                },\n                {\n                    \"key\": \"creationdate\",\n                    \"value\": \"17/05/2019 11:36\"\n                },\n                {\n                    \"key\": \"idcampaign\",\n                    \"value\": \"1\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idworkflow\",\n                    \"value\": \"15\"\n                },\n                {\n                    \"key\": \"name\",\n                    \"value\": \"Magento Test Workflow\"\n                },\n                {\n                    \"key\": \"creationdate\",\n                    \"value\": \"26/07/2022 11:22\"\n                },\n                {\n                    \"key\": \"idcampaign\",\n                    \"value\": \"1\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idworkflow\",\n                    \"value\": \"16\"\n                },\n                {\n                    \"key\": \"name\",\n                    \"value\": \"dynamics\"\n                },\n                {\n                    \"key\": \"creationdate\",\n                    \"value\": \"11/10/2022 09:50\"\n                },\n                {\n                    \"key\": \"idcampaign\",\n                    \"value\": \"1\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idworkflow\",\n                    \"value\": \"19\"\n                },\n                {\n                    \"key\": \"name\",\n                    \"value\": \"Prova LinkedIn Stefic\"\n                },\n                {\n                    \"key\": \"creationdate\",\n                    \"value\": \"25/01/2023 09:16\"\n                },\n                {\n                    \"key\": \"idcampaign\",\n                    \"value\": \"1\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idworkflow\",\n                    \"value\": \"20\"\n                },\n                {\n                    \"key\": \"name\",\n                    \"value\": \"Prova 2 LinkedIn Stefic\"\n                },\n                {\n                    \"key\": \"creationdate\",\n                    \"value\": \"25/01/2023 11:10\"\n                },\n                {\n                    \"key\": \"idcampaign\",\n                    \"value\": \"1\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idworkflow\",\n                    \"value\": \"21\"\n                },\n                {\n                    \"key\": \"name\",\n                    \"value\": \"Shopify stefic\"\n                },\n                {\n                    \"key\": \"creationdate\",\n                    \"value\": \"17/03/2023 09:15\"\n                },\n                {\n                    \"key\": \"idcampaign\",\n                    \"value\": \"1\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idworkflow\",\n                    \"value\": \"24\"\n                },\n                {\n                    \"key\": \"name\",\n                    \"value\": \"Prova stefic\"\n                },\n                {\n                    \"key\": \"creationdate\",\n                    \"value\": \"17/04/2023 14:48\"\n                },\n                {\n                    \"key\": \"idcampaign\",\n                    \"value\": \"1\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idworkflow\",\n                    \"value\": \"25\"\n                },\n                {\n                    \"key\": \"name\",\n                    \"value\": \"prova aggiorna contatto\"\n                },\n                {\n                    \"key\": \"creationdate\",\n                    \"value\": \"17/04/2023 15:33\"\n                },\n                {\n                    \"key\": \"idcampaign\",\n                    \"value\": \"1\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idworkflow\",\n                    \"value\": \"29\"\n                },\n                {\n                    \"key\": \"name\",\n                    \"value\": \"New automated flow\"\n                },\n                {\n                    \"key\": \"creationdate\",\n                    \"value\": \"26/09/2023 14:41\"\n                },\n                {\n                    \"key\": \"idcampaign\",\n                    \"value\": \"1\"\n                }\n            ]\n        }\n    ]\n}"},{"id":"85a6b727-f227-4c2c-9692-4d39dc0c3648","name":"Query journeys","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"query\": \"select idcampaign, name, status, creationdate, lastmodificationdate from campaigns where name like '%my%'\",\n  \"options\": {\n    \"max\": \"10\"\n  }\n}"},"url":"/v19/mql/execute"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Mn-PageType","value":"Webservice"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"qapatch:6"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Wed, 12 Nov 2025 13:59:10 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"},{"key":"content-encoding","value":"gzip"},{"key":"transfer-encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"recordCount\": 2,\n    \"columnNames\": [\n        \"idcampaign\",\n        \"name\",\n        \"status\",\n        \"creationdate\",\n        \"lastmodificationdate\"\n    ],\n    \"records\": [\n        {\n            \"record\": [\n                {\n                    \"key\": \"idcampaign\",\n                    \"value\": \"1\"\n                },\n                {\n                    \"key\": \"name\",\n                    \"value\": \"My Campaign\"\n                },\n                {\n                    \"key\": \"status\",\n                    \"value\": \"active\"\n                },\n                {\n                    \"key\": \"creationdate\",\n                    \"value\": \"10/07/2015 12:38\"\n                },\n                {\n                    \"key\": \"lastmodificationdate\",\n                    \"value\": \"10/07/2015 12:38\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idcampaign\",\n                    \"value\": \"4\"\n                },\n                {\n                    \"key\": \"name\",\n                    \"value\": \"Sito web | My Web Site\"\n                },\n                {\n                    \"key\": \"status\",\n                    \"value\": \"active\"\n                },\n                {\n                    \"key\": \"creationdate\",\n                    \"value\": \"10/07/2015 12:38\"\n                },\n                {\n                    \"key\": \"lastmodificationdate\",\n                    \"value\": \"10/07/2015 12:38\"\n                }\n            ]\n        }\n    ]\n}"},{"id":"d78431b0-a1a1-4803-a5bf-32279d54954f","name":"Query workflow messages","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"query\": \"select idnewsletter, name, template, subject, idworkflow  from newsletters where idworkflow=1\",\n  \"options\": {\n    \"max\": \"10\"\n  }\n}"},"url":"/v19/mql/execute"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Mn-PageType","value":"Webservice"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"qapatch:9"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Thu, 13 Nov 2025 15:00:08 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"},{"key":"content-encoding","value":"gzip"},{"key":"transfer-encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"recordCount\": 2,\n    \"columnNames\": [\n        \"idnewsletter\",\n        \"name\",\n        \"template\",\n        \"subject\",\n        \"idworkflow\"\n    ],\n    \"records\": [\n        {\n            \"record\": [\n                {\n                    \"key\": \"idnewsletter\",\n                    \"value\": \"24\"\n                },\n                {\n                    \"key\": \"name\",\n                    \"value\": \"Nuovo workflow #1 (email)\"\n                },\n                {\n                    \"key\": \"template\",\n                    \"value\": \"true\"\n                },\n                {\n                    \"key\": \"subject\",\n                    \"value\": \"\"\n                },\n                {\n                    \"key\": \"idworkflow\",\n                    \"value\": \"1\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idnewsletter\",\n                    \"value\": \"26\"\n                },\n                {\n                    \"key\": \"name\",\n                    \"value\": \"Nuovo workflow #2 (email)\"\n                },\n                {\n                    \"key\": \"template\",\n                    \"value\": \"true\"\n                },\n                {\n                    \"key\": \"subject\",\n                    \"value\": \"\"\n                },\n                {\n                    \"key\": \"idworkflow\",\n                    \"value\": \"1\"\n                }\n            ]\n        }\n    ]\n}"},{"id":"243c2588-1878-4d77-ac3f-bfa780af5d86","name":"Query deliveries","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"query\": \"select iddelivery, idnewsletter, startdate, emailchannelenabled, smschannelenabled, status, emailmessages, smsmessages, scheduletype, trial from deliveries\",\n  \"options\": {\n    \"max\": \"10\"\n  }\n}"},"url":"/v19/mql/execute"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Mn-PageType","value":"Webservice"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"qapatch:6"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Fri, 23 Jan 2026 11:18:53 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"},{"key":"content-encoding","value":"gzip"},{"key":"transfer-encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"recordCount\": 10,\n    \"columnNames\": [\n        \"iddelivery\",\n        \"idnewsletter\",\n        \"startdate\",\n        \"emailchannelenabled\",\n        \"smschannelenabled\",\n        \"status\",\n        \"emailmessages\",\n        \"smsmessages\",\n        \"scheduletype\",\n        \"trial\"\n    ],\n    \"records\": [\n        {\n            \"record\": [\n                {\n                    \"key\": \"iddelivery\",\n                    \"value\": \"2\"\n                },\n                {\n                    \"key\": \"idnewsletter\",\n                    \"value\": \"5\"\n                },\n                {\n                    \"key\": \"startdate\",\n                    \"value\": \"02/23/2017 13:13\"\n                },\n                {\n                    \"key\": \"emailchannelenabled\",\n                    \"value\": \"false\"\n                },\n                {\n                    \"key\": \"smschannelenabled\",\n                    \"value\": \"true\"\n                },\n                {\n                    \"key\": \"status\",\n                    \"value\": \"finished\"\n                },\n                {\n                    \"key\": \"emailmessages\",\n                    \"value\": \"0\"\n                },\n                {\n                    \"key\": \"smsmessages\",\n                    \"value\": \"1\"\n                },\n                {\n                    \"key\": \"scheduletype\",\n                    \"value\": \"single\"\n                },\n                {\n                    \"key\": \"trial\",\n                    \"value\": \"false\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"iddelivery\",\n                    \"value\": \"3\"\n                },\n                {\n                    \"key\": \"idnewsletter\",\n                    \"value\": \"6\"\n                },\n                {\n                    \"key\": \"startdate\",\n                    \"value\": \"02/23/2017 13:54\"\n                },\n                {\n                    \"key\": \"emailchannelenabled\",\n                    \"value\": \"true\"\n                },\n                {\n                    \"key\": \"smschannelenabled\",\n                    \"value\": \"false\"\n                },\n                {\n                    \"key\": \"status\",\n                    \"value\": \"finished\"\n                },\n                {\n                    \"key\": \"emailmessages\",\n                    \"value\": \"1\"\n                },\n                {\n                    \"key\": \"smsmessages\",\n                    \"value\": \"0\"\n                },\n                {\n                    \"key\": \"scheduletype\",\n                    \"value\": \"single\"\n                },\n                {\n                    \"key\": \"trial\",\n                    \"value\": \"false\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"iddelivery\",\n                    \"value\": \"4\"\n                },\n                {\n                    \"key\": \"idnewsletter\",\n                    \"value\": \"7\"\n                },\n                {\n                    \"key\": \"startdate\",\n                    \"value\": \"01/11/2018 09:28\"\n                },\n                {\n                    \"key\": \"emailchannelenabled\",\n                    \"value\": \"true\"\n                },\n                {\n                    \"key\": \"smschannelenabled\",\n                    \"value\": \"false\"\n                },\n                {\n                    \"key\": \"status\",\n                    \"value\": \"finished\"\n                },\n                {\n                    \"key\": \"emailmessages\",\n                    \"value\": \"1\"\n                },\n                {\n                    \"key\": \"smsmessages\",\n                    \"value\": \"0\"\n                },\n                {\n                    \"key\": \"scheduletype\",\n                    \"value\": \"single\"\n                },\n                {\n                    \"key\": \"trial\",\n                    \"value\": \"false\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"iddelivery\",\n                    \"value\": \"5\"\n                },\n                {\n                    \"key\": \"idnewsletter\",\n                    \"value\": \"8\"\n                },\n                {\n                    \"key\": \"startdate\",\n                    \"value\": \"02/06/2018 12:01\"\n                },\n                {\n                    \"key\": \"emailchannelenabled\",\n                    \"value\": \"true\"\n                },\n                {\n                    \"key\": \"smschannelenabled\",\n                    \"value\": \"false\"\n                },\n                {\n                    \"key\": \"status\",\n                    \"value\": \"finished\"\n                },\n                {\n                    \"key\": \"emailmessages\",\n                    \"value\": \"1\"\n                },\n                {\n                    \"key\": \"smsmessages\",\n                    \"value\": \"0\"\n                },\n                {\n                    \"key\": \"scheduletype\",\n                    \"value\": \"single\"\n                },\n                {\n                    \"key\": \"trial\",\n                    \"value\": \"false\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"iddelivery\",\n                    \"value\": \"6\"\n                },\n                {\n                    \"key\": \"idnewsletter\",\n                    \"value\": \"19\"\n                },\n                {\n                    \"key\": \"startdate\",\n                    \"value\": \"05/17/2019 12:25\"\n                },\n                {\n                    \"key\": \"emailchannelenabled\",\n                    \"value\": \"true\"\n                },\n                {\n                    \"key\": \"smschannelenabled\",\n                    \"value\": \"false\"\n                },\n                {\n                    \"key\": \"status\",\n                    \"value\": \"finished\"\n                },\n                {\n                    \"key\": \"emailmessages\",\n                    \"value\": \"3\"\n                },\n                {\n                    \"key\": \"smsmessages\",\n                    \"value\": \"0\"\n                },\n                {\n                    \"key\": \"scheduletype\",\n                    \"value\": \"single\"\n                },\n                {\n                    \"key\": \"trial\",\n                    \"value\": \"false\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"iddelivery\",\n                    \"value\": \"7\"\n                },\n                {\n                    \"key\": \"idnewsletter\",\n                    \"value\": \"25\"\n                },\n                {\n                    \"key\": \"startdate\",\n                    \"value\": \"06/20/2019 10:25\"\n                },\n                {\n                    \"key\": \"emailchannelenabled\",\n                    \"value\": \"true\"\n                },\n                {\n                    \"key\": \"smschannelenabled\",\n                    \"value\": \"false\"\n                },\n                {\n                    \"key\": \"status\",\n                    \"value\": \"finished\"\n                },\n                {\n                    \"key\": \"emailmessages\",\n                    \"value\": \"2\"\n                },\n                {\n                    \"key\": \"smsmessages\",\n                    \"value\": \"0\"\n                },\n                {\n                    \"key\": \"scheduletype\",\n                    \"value\": \"single\"\n                },\n                {\n                    \"key\": \"trial\",\n                    \"value\": \"false\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"iddelivery\",\n                    \"value\": \"9\"\n                },\n                {\n                    \"key\": \"idnewsletter\",\n                    \"value\": \"34\"\n                },\n                {\n                    \"key\": \"startdate\",\n                    \"value\": \"06/26/2019 14:16\"\n                },\n                {\n                    \"key\": \"emailchannelenabled\",\n                    \"value\": \"true\"\n                },\n                {\n                    \"key\": \"smschannelenabled\",\n                    \"value\": \"false\"\n                },\n                {\n                    \"key\": \"status\",\n                    \"value\": \"finished\"\n                },\n                {\n                    \"key\": \"emailmessages\",\n                    \"value\": \"1\"\n                },\n                {\n                    \"key\": \"smsmessages\",\n                    \"value\": \"0\"\n                },\n                {\n                    \"key\": \"scheduletype\",\n                    \"value\": \"single\"\n                },\n                {\n                    \"key\": \"trial\",\n                    \"value\": \"true\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"iddelivery\",\n                    \"value\": \"10\"\n                },\n                {\n                    \"key\": \"idnewsletter\",\n                    \"value\": \"34\"\n                },\n                {\n                    \"key\": \"startdate\",\n                    \"value\": \"06/26/2019 15:16\"\n                },\n                {\n                    \"key\": \"emailchannelenabled\",\n                    \"value\": \"true\"\n                },\n                {\n                    \"key\": \"smschannelenabled\",\n                    \"value\": \"false\"\n                },\n                {\n                    \"key\": \"status\",\n                    \"value\": \"finished\"\n                },\n                {\n                    \"key\": \"emailmessages\",\n                    \"value\": \"1\"\n                },\n                {\n                    \"key\": \"smsmessages\",\n                    \"value\": \"0\"\n                },\n                {\n                    \"key\": \"scheduletype\",\n                    \"value\": \"single\"\n                },\n                {\n                    \"key\": \"trial\",\n                    \"value\": \"true\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"iddelivery\",\n                    \"value\": \"11\"\n                },\n                {\n                    \"key\": \"idnewsletter\",\n                    \"value\": \"34\"\n                },\n                {\n                    \"key\": \"startdate\",\n                    \"value\": \"06/26/2019 15:45\"\n                },\n                {\n                    \"key\": \"emailchannelenabled\",\n                    \"value\": \"true\"\n                },\n                {\n                    \"key\": \"smschannelenabled\",\n                    \"value\": \"false\"\n                },\n                {\n                    \"key\": \"status\",\n                    \"value\": \"finished\"\n                },\n                {\n                    \"key\": \"emailmessages\",\n                    \"value\": \"2\"\n                },\n                {\n                    \"key\": \"smsmessages\",\n                    \"value\": \"0\"\n                },\n                {\n                    \"key\": \"scheduletype\",\n                    \"value\": \"single\"\n                },\n                {\n                    \"key\": \"trial\",\n                    \"value\": \"false\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"iddelivery\",\n                    \"value\": \"12\"\n                },\n                {\n                    \"key\": \"idnewsletter\",\n                    \"value\": \"77\"\n                },\n                {\n                    \"key\": \"startdate\",\n                    \"value\": \"11/26/2019 12:16\"\n                },\n                {\n                    \"key\": \"emailchannelenabled\",\n                    \"value\": \"true\"\n                },\n                {\n                    \"key\": \"smschannelenabled\",\n                    \"value\": \"false\"\n                },\n                {\n                    \"key\": \"status\",\n                    \"value\": \"finished\"\n                },\n                {\n                    \"key\": \"emailmessages\",\n                    \"value\": \"1\"\n                },\n                {\n                    \"key\": \"smsmessages\",\n                    \"value\": \"0\"\n                },\n                {\n                    \"key\": \"scheduletype\",\n                    \"value\": \"single\"\n                },\n                {\n                    \"key\": \"trial\",\n                    \"value\": \"false\"\n                }\n            ]\n        }\n    ]\n}"},{"id":"4b14e8ad-ca2e-494b-b0c7-ab66c82527a4","name":"Execute MQL select (with query parameters)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"query\": \"select idcontact, email, data_ultima_modifica from contacts where data_ultima_modifica > ? and email like ?\",\n  \"options\": {\n    \"max\": \"10\"\n  },\n  \"parameters\": [\"15/07/2024 09:45\", \"%@example.com%\"]\n}"},"url":"/v19/mql/execute"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Mn-PageType","value":"Webservice"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"qapatch:6"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Type","value":"application/json","description":"","type":"text"},{"key":"Date","value":"Wed, 28 Jan 2026 12:13:36 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"},{"key":"content-encoding","value":"gzip"},{"key":"transfer-encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"recordCount\": 10,\n    \"columnNames\": [\n        \"idcontact\",\n        \"email\",\n        \"data_ultima_modifica\"\n    ],\n    \"records\": [\n        {\n            \"record\": [\n                {\n                    \"key\": \"idcontact\",\n                    \"value\": \"2\"\n                },\n                {\n                    \"key\": \"email\",\n                    \"value\": \"anagramma@example.com\"\n                },\n                {\n                    \"key\": \"data_ultima_modifica\",\n                    \"value\": \"11/18/2025 12:53\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idcontact\",\n                    \"value\": \"4\"\n                },\n                {\n                    \"key\": \"email\",\n                    \"value\": \"roni_cost@example.com\"\n                },\n                {\n                    \"key\": \"data_ultima_modifica\",\n                    \"value\": \"11/18/2025 12:53\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idcontact\",\n                    \"value\": \"5\"\n                },\n                {\n                    \"key\": \"email\",\n                    \"value\": \"subscriber1@example.com\"\n                },\n                {\n                    \"key\": \"data_ultima_modifica\",\n                    \"value\": \"11/18/2025 12:53\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idcontact\",\n                    \"value\": \"17\"\n                },\n                {\n                    \"key\": \"email\",\n                    \"value\": \"someonel1@example.com\"\n                },\n                {\n                    \"key\": \"data_ultima_modifica\",\n                    \"value\": \"11/18/2025 12:53\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idcontact\",\n                    \"value\": \"18\"\n                },\n                {\n                    \"key\": \"email\",\n                    \"value\": \"someonel2@example.com\"\n                },\n                {\n                    \"key\": \"data_ultima_modifica\",\n                    \"value\": \"11/18/2025 12:53\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idcontact\",\n                    \"value\": \"19\"\n                },\n                {\n                    \"key\": \"email\",\n                    \"value\": \"someonel3@example.com\"\n                },\n                {\n                    \"key\": \"data_ultima_modifica\",\n                    \"value\": \"11/18/2025 12:53\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idcontact\",\n                    \"value\": \"20\"\n                },\n                {\n                    \"key\": \"email\",\n                    \"value\": \"someonel4@example.com\"\n                },\n                {\n                    \"key\": \"data_ultima_modifica\",\n                    \"value\": \"11/18/2025 12:53\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idcontact\",\n                    \"value\": \"21\"\n                },\n                {\n                    \"key\": \"email\",\n                    \"value\": \"someonel5@example.com\"\n                },\n                {\n                    \"key\": \"data_ultima_modifica\",\n                    \"value\": \"11/18/2025 12:53\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idcontact\",\n                    \"value\": \"22\"\n                },\n                {\n                    \"key\": \"email\",\n                    \"value\": \"someonel6@example.com\"\n                },\n                {\n                    \"key\": \"data_ultima_modifica\",\n                    \"value\": \"11/18/2025 12:53\"\n                }\n            ]\n        },\n        {\n            \"record\": [\n                {\n                    \"key\": \"idcontact\",\n                    \"value\": \"23\"\n                },\n                {\n                    \"key\": \"email\",\n                    \"value\": \"someonel7@example.com\"\n                },\n                {\n                    \"key\": \"data_ultima_modifica\",\n                    \"value\": \"11/18/2025 12:53\"\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"06620008-accc-4f76-a4d0-dbee3e9b77f3"},{"name":"Execute MQL update/insert/delete","id":"3459ef65-c64e-47a8-bf73-de429630c4fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"query\": \"update orders set order_shipped=? where id=?\",\n  \"parameters\":  [\"true\", 13]\n}","options":{"raw":{"language":"json"}}},"url":"/v19/mql/update","description":"<p>Execute an MQL update query (update/insert/delete). For select queries use <a href=\"#06620008-accc-4f76-a4d0-dbee3e9b77f3\">Execute MQL query</a> endpoint.<br />⚠️ Update, insert and delete operations can only be performed on custom entities, not on system entities such as contacts or newsletters.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","mql","update"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"0f7f309d-7c63-4399-bf20-913e453279b8","name":"Success Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"query\": \"update orders set order_shipped=? where id=?\",\n  \"parameters\":  [\"true\", 13]\n}"},"url":"/v19/mql/update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"updatedCount\": 1\n}"}],"_postman_id":"3459ef65-c64e-47a8-bf73-de429630c4fa"}],"id":"bccae735-eda4-48e6-8261-4c9d199650dc","description":"<p>Magnews Query Language is a meta sql language used to query system and custom table of a magnews account.</p>\n<p>See the <a href=\"https://help.magnews.it/hc/en-us/articles/18523225702290-Writing-queries\">Query documentation</a> for more details on how to write queries.</p>\n","_postman_id":"bccae735-eda4-48e6-8261-4c9d199650dc","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}}},{"name":"Webhooks","item":[{"name":"Create webhook","id":"d013e3cf-84d4-4e12-a117-c4dee2ae3d45","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n   \"uri\": \"https://www.example.com/mywebhook_handler\",\n   \"topics\": \"contacts/update,contacts/delete\"\n}\n","options":{"raw":{"language":"json"}}},"url":"/v19/webhooks/create","description":"<p>Registers a new webhook to receive magnews events in near real-time.</p>\n<p>A webhook can be registered only if the URI provided meets these requirements:</p>\n<ul>\n<li><p>HTTPS with a valid certificate (TLS with a non-expired, non-self-signed certificate issued by a trusted CA)</p>\n</li>\n<li><p>URI compliant with RFC 2396</p>\n</li>\n<li><p>The endpoint must return HTTP 200 quickly (timeout: connection 1s, read 5s). Any other status code is treated as an error.</p>\n</li>\n<li><p>Successful initial verification: before creating the subscription, magnews sends a test request to verify the endpoint.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","webhooks","create"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"b78da2b2-7cef-4638-a124-f00f96c8814c","name":"Success response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n   \"uri\": \"https://be-qapatch.mailmta.com/ws/webhooks/6_Yzk0NmJhYTktOWY3NS00Y2IwLTlhNmUtMzM0ZmY2NGY5MDhh\",\n   \"topics\": \"contacts/update,contacts/delete\"\n}\n","options":{"raw":{"language":"json"}}},"url":"/v19/webhooks/create"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Mn-PageType","value":"Webservice"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"qapatch:9"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Type","value":"application/json","description":"","type":"text"},{"key":"Date","value":"Fri, 14 Nov 2025 12:00:35 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"},{"key":"content-encoding","value":"gzip"},{"key":"transfer-encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"status\": \"active\",\n    \"uri\": \"https://www.example.com/mywebhook_handler\",\n    \"topics\": \"contacts/delete,contacts/update\",\n    \"digitalCertificateId\": 2,\n    \"creationDate\": \"14/11/2025 13:00\",\n    \"creationUserId\": 3,\n    \"lastModDate\": \"14/11/2025 13:00\",\n    \"lastModUserId\": 3,\n    \"lastExecDate\": \"\",\n    \"backoffDate\": \"\"\n}"},{"id":"12f426b5-f3e6-4d22-9f04-1773440239a5","name":"Test request failed","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n   \"uri\": \"https://www.example.com/mywebhook_handler\",\n   \"topics\": \"contacts/update,contacts/delete\"\n}\n","options":{"raw":{"language":"json"}}},"url":"/v19/webhooks/create"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Mn-PageType","value":"Webservice"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"qapatch:9"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Type","value":"application/json","description":"","type":"text"},{"key":"Date","value":"Fri, 14 Nov 2025 12:02:06 GMT"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"},{"key":"connection","value":"close"},{"key":"content-encoding","value":"gzip"},{"key":"transfer-encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"test request failed\",\n    \"debugMessage\": \"HTTP 400 test request failed\"\n}"}],"_postman_id":"d013e3cf-84d4-4e12-a117-c4dee2ae3d45"},{"name":"Update webhook","id":"a85ed544-8c1c-4f98-b349-7767ada9fb1a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": 3,\n    \"uri\": \"https://www.example.com/mywebhook_handler\",\n    \"topics\": \"contacts/update,contacts/delete\",\n    \"status\": \"suspended\"\n}","options":{"raw":{"language":"json"}}},"url":"/v19/webhooks/update","description":"<p>Update a webhook subscription (uri, status, topics)</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","webhooks","update"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"0142ab29-036a-451c-a555-21a6bd114380","name":"Success response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": 3,\n    \"uri\": \"https://www.example.com/mywebhook_handler\",\n    \"topics\": \"contacts/update,contacts/delete\",\n    \"status\": \"suspended\"\n}","options":{"raw":{"language":"json"}}},"url":"/v19/webhooks/update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Mn-PageType","value":"Webservice"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"qapatch:6"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Type","value":"application/json","description":"","type":"text"},{"key":"Date","value":"Fri, 14 Nov 2025 13:09:42 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"},{"key":"content-encoding","value":"gzip"},{"key":"transfer-encoding","value":"chunked"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"id\": 3,\n    \"status\": \"suspended\",\n    \"uri\": \"https://www.example.com/mywebhook_handler\",\n    \"topics\": \"contacts/delete,contacts/update\",\n    \"digitalCertificateId\": 24,\n    \"creationDate\": \"11/14/2025 13:53\",\n    \"creationUserId\": 4,\n    \"lastModDate\": \"11/14/2025 14:09\",\n    \"lastModUserId\": 4,\n    \"lastExecDate\": \"11/14/2025 14:08\",\n    \"backoffDate\": \"11/14/2025 14:38\"\n}"}],"_postman_id":"a85ed544-8c1c-4f98-b349-7767ada9fb1a"},{"name":"Get webhook","id":"d37e3ae9-120a-456a-8b7c-83f8cbab9324","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/v19/webhooks/:id","description":"<p>Find a Webhook Subscription given its ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","webhooks",":id"],"host":[""],"query":[],"variable":[{"type":"any","value":"3","key":"id"}]}},"response":[{"id":"942629b7-01ca-43c7-b024-977f26975b71","name":"Success response","originalRequest":{"method":"GET","header":[],"url":{"raw":"/v19/webhooks/:id","host":[""],"path":["v19","webhooks",":id"],"variable":[{"key":"id","value":"3"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Mn-PageType","value":"Webservice"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"qapatch:6"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Type","value":"application/json","description":"","type":"text"},{"key":"Date","value":"Fri, 14 Nov 2025 12:56:22 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"},{"key":"content-encoding","value":"gzip"},{"key":"transfer-encoding","value":"chunked"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"id\": 3,\n    \"status\": \"active\",\n    \"uri\": \"https://www.example.com/mywebhook_handler\",\n    \"topics\": \"contacts/delete,contacts/update\",\n    \"digitalCertificateId\": 24,\n    \"creationDate\": \"11/14/2025 13:53\",\n    \"creationUserId\": 4,\n    \"lastModDate\": \"11/14/2025 13:56\",\n    \"lastModUserId\": 2,\n    \"lastExecDate\": \"11/14/2025 13:56\",\n    \"backoffDate\": \"11/14/2025 13:58\"\n}"}],"_postman_id":"d37e3ae9-120a-456a-8b7c-83f8cbab9324"},{"name":"List webhooks","id":"68019265-3906-4e6d-8b04-ee112be2cd1a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/v19/webhooks/list","description":"<p>List all Webhook Subscriptions</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","webhooks","list"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"c5ec03d8-7be9-47b8-95db-8f0fe20d7666","name":"Success response","originalRequest":{"method":"GET","header":[],"url":"/v19/webhooks/list"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Mn-PageType","value":"Webservice"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"qapatch:6"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Content-Type","value":"application/json","description":"","type":"text"},{"key":"Date","value":"Fri, 14 Nov 2025 13:07:18 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"},{"key":"content-encoding","value":"gzip"},{"key":"transfer-encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 3,\n        \"status\": \"active\",\n        \"uri\": \"https://www.example.com/mywebhook_handler\",\n        \"topics\": \"contacts/delete,contacts/update\",\n        \"digitalCertificateId\": 24,\n        \"creationDate\": \"11/14/2025 13:53\",\n        \"creationUserId\": 4,\n        \"lastModDate\": \"11/14/2025 13:58\",\n        \"lastModUserId\": 2,\n        \"lastExecDate\": \"11/14/2025 13:58\",\n        \"backoffDate\": \"11/14/2025 14:08\"\n    }\n]"}],"_postman_id":"68019265-3906-4e6d-8b04-ee112be2cd1a"},{"name":"Delete webhook","id":"89661252-0177-4453-9c13-2e20eee4beb0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/v19/webhooks/delete/:id","description":"<p>Deletes a Webhook Subscription given its ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19","webhooks","delete",":id"],"host":[""],"query":[],"variable":[{"description":{"content":"<p>id of the webhook subscription</p>\n","type":"text/plain"},"type":"any","value":"3","key":"id"}]}},"response":[{"id":"f7dc9761-906f-412b-8aeb-a9a7634d3956","name":"Success response","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"/v19/webhooks/delete/:id","host":[""],"path":["v19","webhooks","delete",":id"],"variable":[{"key":"id","value":"3","description":"id of the webhook subscription"}]}},"status":"No Content","code":204,"_postman_previewlanguage":null,"header":[{"key":"X-Mn-PageType","value":"Webservice"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept, authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS"},{"key":"X-MN-ENV","value":"qapatch:6"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Frame-Options","value":"Deny"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Security-Policy","value":"default-src 'self'; frame-ancestors 'self'; report-uri https://csp-reporting.mag-news.it"},{"key":"Date","value":"Fri, 14 Nov 2025 13:14:03 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"},{"key":"X-Proxy-Path","value":"hq_qapatch_route_https;hq_qapatch_action_https;hq_qapatch_director_https;hq_qapatch_tomcat_https"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"89661252-0177-4453-9c13-2e20eee4beb0"}],"id":"a69dbe7d-9521-4c91-bc1b-b036bbe4e4d7","description":"<p>Webhooks allow external systems to receive events from magnews in near real-time.  </p>\n<p>An external application must expose an HTTPS URL capable of receiving POST requests: for each event generated, magnews will send a request to that endpoint with the event data.</p>\n","_postman_id":"a69dbe7d-9521-4c91-bc1b-b036bbe4e4d7","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}}},{"name":"System","item":[{"name":"Get api version","id":"4f5a25df-291a-4539-985d-74f59b6d4947","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/v19","description":"<p>Returns the API version</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}},"urlObject":{"path":["v19"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"738232c7-4392-4a81-af2b-ab05428bf369","name":"Success Response","originalRequest":{"method":"GET","header":[],"url":"https://ws-mn1.mag-news.it/ws/rest/api/v19"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"v19"}],"_postman_id":"4f5a25df-291a-4539-985d-74f59b6d4947"}],"id":"9c9c5649-db4c-4fe6-8f7c-e3e38c49b1e9","_postman_id":"9c9c5649-db4c-4fe6-8f7c-e3e38c49b1e9","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c41301cc-4697-4aad-a300-3dff8accc11f","id":"c41301cc-4697-4aad-a300-3dff8accc11f","name":"Magnews REST API","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]}},"event":[{"listen":"prerequest","script":{"id":"d6a4f08f-d917-4f99-8283-04d5410bc862","type":"text/javascript","requests":{},"exec":[""]}},{"listen":"test","script":{"id":"4d85a89d-221e-46b5-b6f0-b45b3bf19b67","type":"text/javascript","requests":{},"exec":[""]}}],"variable":[{"key":"mn-baseurl","value":"","description":"Base rest api url, depending on your istance, for example: https://ws-mn1.mag-news.it/ws/rest/api"},{"key":"mn-apiversion","value":"v19","description":"Fixed value for api version"},{"key":"mn-accesstoken","value":"","description":"Access token, generated manually within magnews or by standard Authorization code flow"},{"key":"mn-refreshtoken","value":"","description":"Refresh token, generated manually within magnews or by standard Authorization code flow"},{"key":"mn-authserver","value":"","description":"Base authorization server url, you can find it on your digital certificate in magnews, for example: https://be-mn1.mag-news.it"},{"key":"mn-clientid","value":"","description":"Application ID of your OAuth2 Client Application digital certificate (optional, only for user interactive flows)"},{"key":"mn-clientsecret","value":"","description":"Key secret of your OAuth2 Client Application digital certificate (optional, only for user interactive flows)"},{"key":"mn-account","value":"","description":"Your account login (optional,  only for user interactive flows)"}]}