{"id":3931,"date":"2024-11-18T08:58:36","date_gmt":"2024-11-18T08:58:36","guid":{"rendered":"http:\/\/34.88.191.99\/?page_id=3931"},"modified":"2025-04-07T13:52:05","modified_gmt":"2025-04-07T13:52:05","slug":"read-messages","status":"publish","type":"page","link":"https:\/\/ip1sms.com\/en\/developer\/read-messages\/","title":{"rendered":"Read messages"},"content":{"rendered":"<h1 class=\"wp-block-heading\" id=\"reading-emails\">Read messages<\/h1>\n\n\n\n<p>When you read messages, it is always in an email context. A message cannot exist without an email and therefore messages are placed below emails hierarchically.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"reading-a-collection-of-messages\">Read a collection of messages<\/h2>\n\n\n\n<p>Endpoint: <code>GET emails\/{email}\/messages<\/code><\/p>\n\n\n\n<p>This endpoint will provide you with the documents for all messages in an email with their latest delivery report as the response data type below. Arranged chronologically by date of creation.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"reading-a-single-message\">Reading a single message<\/h2>\n\n\n\n<p>Endpoint: <code>GET emails\/{email}\/messages\/{messageId}<\/code><\/p>\n\n\n\n<p>This endpoint will provide you with the document for a single message with a complete history of delivery reports as the data type below.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"response-data-type\">Response data type<\/h2>\n\n\n\n<p>In addition to reading the email in its entirety, you can also view specific messages.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n{ &quot;id&quot;: &quot;5bc86b6e85c7209830f96937&quot;, &quot;emailId&quot;: &quot;5bc86b6e85c7209830f96936&quot;, &quot;owner&quot;: &quot;ip1-XXXXX&quot;, &quot;senderName&quot;: &quot;Sample Corp&quot;, &quot;senderAddress&quot;: &quot;info@example.com&quot;, &quot;subject&quot; &quot;: &quot;Sample Email&quot;, &quot;recipientName&quot;: &quot;Head Office&quot;, &quot;recipientAddress&quot;: &quot;info@othercorp.com&quot;, &quot;body&quot;: &quot;This is a sample email in special text to Head Office&quot;, &quot;type&quot;: &quot;Text&quot;, &quot;priority&quot;: 1, &quot;price&quot;: 0.01, &quot;currency&quot;: &quot;eur&quot;, &quot;modified&quot;: &quot;2018-10-23T17:43:19Z&quot;, &quot;templated&quot;: true, &quot;statuses&quot;: [ { &quot;created&quot;: &quot;2018-10-23T17:43:21Z&quot;, &quot;code&quot;: &quot;201&quot;, &quot;duration&quot;: 0 } ] }\n\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\">id<\/h3>\n\n\n\n<p>A unique ID for the specific message.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"emailid\">emailId<\/h3>\n\n\n\n<p>An ID for all messages sent in the same call as this message.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"owner\">owner<\/h3>\n\n\n\n<p>Account ID of the account that owns the email (eg you).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"sendername\">senderName<\/h3>\n\n\n\n<p>The name associated with the sender address. Can be anything, max 64 characters.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"senderaddress\">senderAddress<\/h3>\n\n\n\n<p>The sender email address from which the email will be sent. Any valid email address for a registered and verified domain.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"subject\">subject<\/h3>\n\n\n\n<p>The email subject line. Max 78 characters.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"recipientname\">recipientName<\/h3>\n\n\n\n<p>The name associated with the email address of the recipient of the message.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"recipientaddress\">recipientAddress<\/h3>\n\n\n\n<p>The email address of the recipient of the message.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">body<\/h3>\n\n\n\n<p>The email content. Plain text or HTML depending on the type used.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"type\">type<\/h3>\n\n\n\n<p>The type of email to send that determines how the body parameter is used, descriptions below.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Value (type)<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>Text<\/td><td>Unformatted email, the body is the entire email content<\/td><\/tr><tr><td>Hybrid<\/td><td>Plain text entered into our ready-made HTML template as a text box, the body is the text in the box<\/td><\/tr><tr><td>HTML<\/td><td>Full HTML email, the body is a full HTML page<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"priority\">priority<\/h3>\n\n\n\n<p>If it is very important to you that your messages arrive quickly and are not obstructed by our other messages in the queue, you can prioritize higher. However, prioritizing a higher value will increase the price by 10 \u00f6re (0.01 EUR). Priority 1 is the default and is the lowest priority available, and priority 2 is the highest priority available. If specified, 1 and 2 are the only valid values.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"price\">price<\/h3>\n\n\n\n<p>The price for the entire message.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"currency\">currency<\/h3>\n\n\n\n<p>Which currency the given price uses.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"modified\">modified<\/h3>\n\n\n\n<p>When the email was last updated.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"templated\">templated<\/h3>\n\n\n\n<p>Whether Tempalting was used or not.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"statuses\">statuses<\/h3>\n\n\n\n<p>An Array containing status updates<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>statuses[].created<\/strong>\n<ul class=\"wp-block-list\">\n<li>when the status was added<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>statuses[].code<\/strong>\n<ul class=\"wp-block-list\">\n<li>The specific status code. More status codes may be added in the future.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>statuses[].duration<\/strong>\n<ul class=\"wp-block-list\">\n<li>Tells whether this is the last status update or if there may be more status updates to come<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>If you call a collection of messages, only the most recent status will be given. However, when you request a specific message, the entire status history will be provided. For more information on our message status codes, see our Status Codes section.<\/p>","protected":false},"excerpt":{"rendered":"<p>L\u00e4s meddelanden N\u00e4r du l\u00e4ser meddelanden \u00e4r det alltid i ett e-postsammanhang. Ett meddelande kan inte existera utan ett e-post och d\u00e4rf\u00f6r placeras meddelanden under e-postmeddelanden hierarkiskt. L\u00e4s en samling av meddelanden Endpoint: GET emails\/{email}\/messages Denna endpoint kommer att f\u00f6rse dig med dokumenten f\u00f6r alla meddelanden i ett e-postmeddelande med deras senaste leveransrapport som respons-datatypen [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":382,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"developer-email.php","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-3931","page","type-page","status-publish","hentry","category-api-dokumention"],"_links":{"self":[{"href":"https:\/\/ip1sms.com\/en\/wp-json\/wp\/v2\/pages\/3931","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ip1sms.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ip1sms.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ip1sms.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ip1sms.com\/en\/wp-json\/wp\/v2\/comments?post=3931"}],"version-history":[{"count":0,"href":"https:\/\/ip1sms.com\/en\/wp-json\/wp\/v2\/pages\/3931\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/ip1sms.com\/en\/wp-json\/wp\/v2\/pages\/382"}],"wp:attachment":[{"href":"https:\/\/ip1sms.com\/en\/wp-json\/wp\/v2\/media?parent=3931"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ip1sms.com\/en\/wp-json\/wp\/v2\/categories?post=3931"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ip1sms.com\/en\/wp-json\/wp\/v2\/tags?post=3931"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}