{"id":3935,"date":"2024-11-18T09:22:05","date_gmt":"2024-11-18T09:22:05","guid":{"rendered":"http:\/\/34.88.191.99\/?page_id=3935"},"modified":"2025-04-07T13:54:00","modified_gmt":"2025-04-07T13:54:00","slug":"las-e-post-batches","status":"publish","type":"page","link":"https:\/\/ip1sms.com\/en\/developer\/las-e-post-batches\/","title":{"rendered":"Read email batches"},"content":{"rendered":"<h1 class=\"wp-block-heading\" id=\"email---a-grouping-of-email-messages\">Email Batches \u2013 A group of email messages<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"reading-a-collection-of-emailes\">Read a collection of email batches<\/h2>\n\n\n\n<p>Endpoint: <code>GET emails<\/code><\/p>\n\n\n\n<p>This endpoint provides you with a collection of email batches for which you can see the email document definition below. However, MessageSummary and PriceSummary will not be provided because they are only available to that endpoint for individual messages in an email batch. Arranged chronologically by date of creation.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"reading-a-single-email\">Read a single email batch<\/h2>\n\n\n\n<p>Endpoint: <code>GET emails\/{emailId}<\/code><\/p>\n\n\n\n<p>This endpoint will give you single email batch which will give you the total cost of an email as well as a summary of the status of the emails.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"the-response-data-type\">The response data type<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n{ &quot;id&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;Sample Email&quot;, &quot; body&quot;: &quot;This is a sample email in {text} text to {name}&quot;, &quot;type&quot;: &quot;Text&quot;, &quot;priority&quot;: 1, &quot;templated&quot;: true, &quot;reference&quot;: &quot;A client reference&quot;, &quot;deliveryReportUrl&quot;: &quot;https:\/\/api.example.com\/email\/deliveryreport&quot;, &quot;priceSummary&quot;: { &quot;total&quot;: 1.88, &quot;currency&quot;: &quot;EUR&quot;, &quot;average&quot;: 0.01 }, &quot;messageSummary&quot;: { &quot;101&quot;: { &quot;messages&quot;: 43 }, &quot;102&quot;: { &quot;messages&quot;: 3 }, &quot;201&quot;: { &quot;messages&quot;: 142 } }, &quot;tags&quot;: [&quot;marketing&quot;, &quot;ux&quot; , &quot;design&quot;], &quot;deliveryWindows&quot;: [ { &quot;opens&quot;: &quot;ISO-8601 string&quot;, &quot;closes&quot;: &quot;ISO-8601 string&quot; }, { &quot;opens&quot;: &quot;ISO-8601 string&quot;, &quot;closes&quot; : &quot;ISO-8601 string&quot; } ] }\n\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\">id<\/h3>\n\n\n\n<p>A unique ID for a specific email batch.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"owner\">owner<\/h3>\n\n\n\n<p>The account number of the account that owns the email batch (For example, 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\">body<\/h3>\n\n\n\n<p>The content of the email batch messages. 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, body when 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=\"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=\"reference\">reference<\/h3>\n\n\n\n<p>This is a feature that allows the user of this API to have their own ID or credential if storing the iP.1&#039;s generated ID is not preferred.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"deliveryreporturl\">deliveryReportUrl<\/h3>\n\n\n\n<p>If provided, status update reports will be sent to this URL via POST. These reports are separate for each message recipient and each status update. For more information about these reports, see Receive delivery reports.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"pricesummary\">priceSummary<\/h3>\n\n\n\n<p><strong>priceSummary.total<\/strong> The total price of the email. This value may change if messages are rejected by the next upstream operator in which case the payment for that specific message will be cancelled.<\/p>\n\n\n\n<p><strong>priceSummary.currency<\/strong> Which currency total and average are entered in.<\/p>\n\n\n\n<p><strong>priceSummary.average<\/strong> The average price for a single message in the package.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"messagesummary\">messageSummary<\/h3>\n\n\n\n<p>This is a dictionary where the key is a status code and the value is the number of messages that have the last added status code. For more information about our message status codes, see our Status Codes section.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"tags\">tags<\/h3>\n\n\n\n<p>An array of tags used to categorize\/sort the email among your other emails. When listing batches, you can filter by these tags.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"deliverywindows\">deliveryWindows<\/h3>\n\n\n\n<p>If there is a need to schedule a shipment in the future, it is possible to do so with our delivery time windows<\/p>\n\n\n\n<p>You can have as many windows as you like. This allows you to send messages at specific times over several days, e.g. every day between 10:00 and 10:05 on weekdays.<\/p>","protected":false},"excerpt":{"rendered":"<p>E-postbatcher &#8211; En grupp av e-postmeddelanden L\u00e4sa en samling av e-postbatcher Endpoint: GET emails Den h\u00e4r endpointen ger dig en samling e-postbatcher f\u00f6r vilka du kan se e-post dokument-definitionen nedan. MessageSummary och PriceSummary kommer dock inte att tillhandah\u00e5llas eftersom de endast \u00e4r tillg\u00e4ngliga f\u00f6r den endpointen f\u00f6r enskilda meddelanden i en e-postbatch. Ordnad kronologiskt efter [&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-3935","page","type-page","status-publish","hentry","category-api-dokumention"],"_links":{"self":[{"href":"https:\/\/ip1sms.com\/en\/wp-json\/wp\/v2\/pages\/3935","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=3935"}],"version-history":[{"count":0,"href":"https:\/\/ip1sms.com\/en\/wp-json\/wp\/v2\/pages\/3935\/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=3935"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ip1sms.com\/en\/wp-json\/wp\/v2\/categories?post=3935"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ip1sms.com\/en\/wp-json\/wp\/v2\/tags?post=3935"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}