{"id":32519,"date":"2014-10-30T09:20:54","date_gmt":"2014-10-30T09:20:54","guid":{"rendered":"https:\/\/wp.lvh.me\/blog\/2014\/10\/30\/new-api-function-for-your-email-marketing-importing-csv\/"},"modified":"2022-05-13T17:02:16","modified_gmt":"2022-05-13T17:02:16","slug":"new-api-function-for-your-email-marketing-importing-csv","status":"publish","type":"post","link":"https:\/\/wpstaging.mailrelay.com\/en\/blog\/2014\/10\/30\/new-api-function-for-your-email-marketing-importing-csv\/","title":{"rendered":"New API function for your email marketing, importing CSV"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7233\" src=\"https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2014\/10\/New-API-function-for-your-email-marketing-importing-CSV.jpg\" alt=\"New API function for your email marketing, importing CSV\" width=\"600\" height=\"500\" srcset=\"https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2014\/10\/New-API-function-for-your-email-marketing-importing-CSV.jpg 600w, https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2014\/10\/New-API-function-for-your-email-marketing-importing-CSV-300x250.jpg 300w, https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2014\/10\/New-API-function-for-your-email-marketing-importing-CSV-110x92.jpg 110w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Until now, when you had to import subscribers to your <strong><span style=\"color: #3366ff;\">Mail<\/span>relay<\/strong> account, if you had to do it via API, the only option available was to use the addSubscriber function, although its use was simple enough, for large volumes of subscribers the process could become slightly more complex.<\/p>\n<p>Therefore, our technical team has developed a new function that allows you to import large databases of subscribers.<\/p>\n<p>It is call import function, you can see it in detail in the API documentation, on the option import.<\/p>\n<p>Anyway, if you want to learn how to use this option, keep reading, we&#8217;ll see an example step by step.\u00a0 If you want to send email marketing you need to have a mailing list You can automate this process using an API, e.g. if you have an online store, a CRM, website, etc. You can export these users to a CSV file and import this file using our API.<\/p>\n<p><strong>Let&#8217;s see the parameters of this function:<\/strong><\/p>\n<p><strong>&#8211; ApiKey -><\/strong> your API key, a necessary parameter. To generate this key, you must access your Mailrelay account, click on Settings -> Access API -> Generate and you already have the key, that you can copy and paste.<\/p>\n<p><strong>&#8211; FileContent -><\/strong> The contents of the file you want to import.<\/p>\n<p><strong>&#8211; Groups -><\/strong> the IDs of the groups to which you want to import the users.<\/p>\n<p><strong>&#8211; Fields -><\/strong> mapping between fields with the file and Mailrelay, by default, the first field is the email and the second is the name of the subscriber.<\/p>\n<p><strong>&#8211; Delimiter -><\/strong> separator between fields, for example, a comma &#8220;,&#8221; usually found in CSV files.<\/p>\n<p><strong>&#8211; Enclosure -><\/strong> field delimiter, for example, double quotes &#8220;&#8221;. Useful if the fields include separator, for example.<\/p>\n<p><strong>&#8211; Headers -><\/strong> If the CSV file includes headers set to TRUE so that the first line is ignored.<\/p>\n<p><strong>&#8211; ExistingEmails -><\/strong> what should happen with existing emails &#8220;skip&#8221; to ignore or &#8220;replace&#8221; to replace. By default the system uses &#8220;Replace&#8221;.<\/p>\n<p>Let&#8217;s see a practical example to understand how to use this function, the first thing you will need is a <strong>CSV<\/strong> file with the subscribers you will import for your email marketing campaign. For example something like this:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7156\" src=\"https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2014\/10\/api_email_markting_import_1.png\" alt=\"api_email_markting_import_1\" width=\"630\" height=\"240\" srcset=\"https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2014\/10\/api_email_markting_import_1.png 630w, https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2014\/10\/api_email_markting_import_1-300x114.png 300w, https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2014\/10\/api_email_markting_import_1-110x42.png 110w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><\/p>\n<p>As you can see the values are enclosed in double quotes and separated by a comma. Each subscriber on its own line.<\/p>\n<p>Let&#8217;s see the <strong>PHP<\/strong> code needed to import the file:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7157\" src=\"https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2014\/10\/api_email_markting_import_2.png\" alt=\"api_email_markting_import_2\" width=\"630\" height=\"240\" srcset=\"https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2014\/10\/api_email_markting_import_2.png 630w, https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2014\/10\/api_email_markting_import_2-300x114.png 300w, https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2014\/10\/api_email_markting_import_2-110x42.png 110w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><\/p>\n<p>The first thing you should do is set the URL of your <strong><span style=\"color: #3366ff;\">Mail<\/span>relay<\/strong> account and the API.<\/p>\n<p>After that you will need to read the contents of the import file, it is important to correctly set the root so that the file can be read by the system.<\/p>\n<p>Then you will need to prepare to call the function with the contents of the file included, and the group where you want to import your subscribers.<\/p>\n<p><strong><span style=\"color: #ff0000;\">Important:<\/span> You must use the function base64_encode to prepare the content.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7158\" src=\"https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2014\/10\/api_email_markting_import_3.png\" alt=\"api_email_markting_import_3\" width=\"630\" height=\"240\" srcset=\"https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2014\/10\/api_email_markting_import_3.png 630w, https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2014\/10\/api_email_markting_import_3-300x114.png 300w, https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2014\/10\/api_email_markting_import_3-110x42.png 110w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><\/p>\n<p>The rest of the code is the same as the other functions of the API, but you can see all the details in the description of the import function.<\/p>\n<p>If everything works correctly, the code will return the ID of the imported file in the case of the Example, ID 5:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7159\" src=\"https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2014\/10\/api_email_markting_import_4.png\" alt=\"api_email_markting_import_4\" width=\"630\" height=\"240\" srcset=\"https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2014\/10\/api_email_markting_import_4.png 630w, https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2014\/10\/api_email_markting_import_4-300x114.png 300w, https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2014\/10\/api_email_markting_import_4-110x42.png 110w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><\/p>\n<p>If you access your Mailrelay panel, and go to Import -> imported files, you can see the<strong> imported files<\/strong>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7160\" src=\"https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2014\/10\/api_email_markting_import_5.png\" alt=\"api_email_markting_import_5\" width=\"630\" height=\"240\" srcset=\"https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2014\/10\/api_email_markting_import_5.png 630w, https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2014\/10\/api_email_markting_import_5-300x114.png 300w, https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2014\/10\/api_email_markting_import_5-110x42.png 110w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><\/p>\n<p>Just double click on this entry and you can view all the imported emails and the status:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7161\" src=\"https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2014\/10\/api_email_markting_import_6.png\" alt=\"api_email_markting_import_6\" width=\"630\" height=\"240\" srcset=\"https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2014\/10\/api_email_markting_import_6.png 630w, https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2014\/10\/api_email_markting_import_6-300x114.png 300w, https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2014\/10\/api_email_markting_import_6-110x42.png 110w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><\/p>\n<p>With this information, you can verify if the accounts are ready for your\u00a0 email marketing campaign.<\/p>\n<p>You can also see these contacts on the regular list of subscribers. As you can see the import process is very easy with this new function.<\/p>\n<p>If you want to see this and other complementary function, you can visit our API documentation:<\/p>\n<p>&#8211; <a href=\"http:\/\/mailrelay.com\/es\/api-documentation\/function\/import\" target=\"_blank\">Import<\/a>\u00a0->\u00a0function that allows you to import files.<\/p>\n<p>&#8211; <a href=\"http:\/\/mailrelay.com\/es\/api-documentation\/function\/getImports\" target=\"_blank\">getImports<\/a>\u00a0->\u00a0function that returns a list of the imported files<\/p>\n<p>&#8211; <a href=\"http:\/\/mailrelay.com\/es\/api-documentation\/function\/getImportData\" target=\"_blank\">getImportData<\/a>\u00a0->\u00a0function that returns a list of the imported files<\/p>\n<p>We hope this information is helpful in your email marketing!<\/p>\n<p>With <strong><span style=\"color: #3366ff;\">Mail<\/span>relay<\/strong>, email marketing, you can create free email campaigns using your control panel or our API, therefore, create your account today!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Until now, when you had to import subscribers to your Mailrelay account, if you had to do it via API, the only option available was to use the addSubscriber function, although its use was simple enough, for large volumes of subscribers the process could become slightly more complex. Therefore, our technical team has developed a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":8167,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","footnotes":""},"categories":[38],"tags":[],"class_list":["post-32519","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mailrelay-funcionalidadesapi"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>New API function for your email marketing, importing CSV - Mailrelay<\/title>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"New API function for your email marketing, importing CSV - Mailrelay\" \/>\n<meta property=\"og:description\" content=\"Until now, when you had to import subscribers to your Mailrelay account, if you had to do it via API, the only option available was to use the addSubscriber function, although its use was simple enough, for large volumes of subscribers the process could become slightly more complex. Therefore, our technical team has developed a [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wpstaging.mailrelay.com\/en\/blog\/2014\/10\/30\/new-api-function-for-your-email-marketing-importing-csv\/\" \/>\n<meta property=\"og:site_name\" content=\"Mailrelay\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Mailrelay\/\" \/>\n<meta property=\"article:published_time\" content=\"2014-10-30T09:20:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-05-13T17:02:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2015\/03\/nueva-funcionalidad-del-api-importacion-ficheros-csv-email-markting.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"600\" \/>\n\t<meta property=\"og:image:height\" content=\"500\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"mailrelay\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@mailrelay\" \/>\n<meta name=\"twitter:site\" content=\"@mailrelay\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"mailrelay\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/wpstaging.mailrelay.com\\\/en\\\/blog\\\/2014\\\/10\\\/30\\\/new-api-function-for-your-email-marketing-importing-csv\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wpstaging.mailrelay.com\\\/en\\\/blog\\\/2014\\\/10\\\/30\\\/new-api-function-for-your-email-marketing-importing-csv\\\/\"},\"author\":{\"name\":\"mailrelay\",\"@id\":\"https:\\\/\\\/wpstaging.mailrelay.com\\\/en\\\/#\\\/schema\\\/person\\\/355071c9f6e00fa8c8731ac93e0aa487\"},\"headline\":\"New API function for your email marketing, importing CSV\",\"datePublished\":\"2014-10-30T09:20:54+00:00\",\"dateModified\":\"2022-05-13T17:02:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/wpstaging.mailrelay.com\\\/en\\\/blog\\\/2014\\\/10\\\/30\\\/new-api-function-for-your-email-marketing-importing-csv\\\/\"},\"wordCount\":710,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/wpstaging.mailrelay.com\\\/en\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/wpstaging.mailrelay.com\\\/en\\\/blog\\\/2014\\\/10\\\/30\\\/new-api-function-for-your-email-marketing-importing-csv\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wpstaging.mailrelay.com\\\/wp-content\\\/uploads\\\/2015\\\/03\\\/nueva-funcionalidad-del-api-importacion-ficheros-csv-email-markting.jpg\",\"articleSection\":[\"Mailrelay Funcionalidades|API\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/wpstaging.mailrelay.com\\\/en\\\/blog\\\/2014\\\/10\\\/30\\\/new-api-function-for-your-email-marketing-importing-csv\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/wpstaging.mailrelay.com\\\/en\\\/blog\\\/2014\\\/10\\\/30\\\/new-api-function-for-your-email-marketing-importing-csv\\\/\",\"url\":\"https:\\\/\\\/wpstaging.mailrelay.com\\\/en\\\/blog\\\/2014\\\/10\\\/30\\\/new-api-function-for-your-email-marketing-importing-csv\\\/\",\"name\":\"New API function for your email marketing, importing CSV - Mailrelay\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wpstaging.mailrelay.com\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/wpstaging.mailrelay.com\\\/en\\\/blog\\\/2014\\\/10\\\/30\\\/new-api-function-for-your-email-marketing-importing-csv\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/wpstaging.mailrelay.com\\\/en\\\/blog\\\/2014\\\/10\\\/30\\\/new-api-function-for-your-email-marketing-importing-csv\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wpstaging.mailrelay.com\\\/wp-content\\\/uploads\\\/2015\\\/03\\\/nueva-funcionalidad-del-api-importacion-ficheros-csv-email-markting.jpg\",\"datePublished\":\"2014-10-30T09:20:54+00:00\",\"dateModified\":\"2022-05-13T17:02:16+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/wpstaging.mailrelay.com\\\/en\\\/blog\\\/2014\\\/10\\\/30\\\/new-api-function-for-your-email-marketing-importing-csv\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/wpstaging.mailrelay.com\\\/en\\\/blog\\\/2014\\\/10\\\/30\\\/new-api-function-for-your-email-marketing-importing-csv\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wpstaging.mailrelay.com\\\/en\\\/blog\\\/2014\\\/10\\\/30\\\/new-api-function-for-your-email-marketing-importing-csv\\\/#primaryimage\",\"url\":\"https:\\\/\\\/wpstaging.mailrelay.com\\\/wp-content\\\/uploads\\\/2015\\\/03\\\/nueva-funcionalidad-del-api-importacion-ficheros-csv-email-markting.jpg\",\"contentUrl\":\"https:\\\/\\\/wpstaging.mailrelay.com\\\/wp-content\\\/uploads\\\/2015\\\/03\\\/nueva-funcionalidad-del-api-importacion-ficheros-csv-email-markting.jpg\",\"width\":600,\"height\":500},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/wpstaging.mailrelay.com\\\/en\\\/blog\\\/2014\\\/10\\\/30\\\/new-api-function-for-your-email-marketing-importing-csv\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/wpstaging.mailrelay.com\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"New API function for your email marketing, importing CSV\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/wpstaging.mailrelay.com\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/wpstaging.mailrelay.com\\\/en\\\/\",\"name\":\"Mailrelay\",\"description\":\"Mailrelay.com\",\"publisher\":{\"@id\":\"https:\\\/\\\/wpstaging.mailrelay.com\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/wpstaging.mailrelay.com\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/wpstaging.mailrelay.com\\\/en\\\/#organization\",\"name\":\"Mailrelay\",\"url\":\"https:\\\/\\\/wpstaging.mailrelay.com\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wpstaging.mailrelay.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/wpstaging.mailrelay.com\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/wpstaging.mailrelay.com\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/logo.png\",\"width\":190,\"height\":49,\"caption\":\"Mailrelay\"},\"image\":{\"@id\":\"https:\\\/\\\/wpstaging.mailrelay.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/Mailrelay\\\/\",\"https:\\\/\\\/x.com\\\/mailrelay\",\"https:\\\/\\\/www.youtube.com\\\/mailrelay-email-marketing\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/wpstaging.mailrelay.com\\\/en\\\/#\\\/schema\\\/person\\\/355071c9f6e00fa8c8731ac93e0aa487\",\"name\":\"mailrelay\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/871548d8ea792b1be4dca815f1997730a5a337670dbe077351e8e02f813d2b58?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/871548d8ea792b1be4dca815f1997730a5a337670dbe077351e8e02f813d2b58?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/871548d8ea792b1be4dca815f1997730a5a337670dbe077351e8e02f813d2b58?s=96&d=mm&r=g\",\"caption\":\"mailrelay\"},\"sameAs\":[\"http:\\\/\\\/localhost:12080\"],\"url\":\"https:\\\/\\\/wpstaging.mailrelay.com\\\/en\\\/blog\\\/author\\\/mailrelay\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"New API function for your email marketing, importing CSV - Mailrelay","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"New API function for your email marketing, importing CSV - Mailrelay","og_description":"Until now, when you had to import subscribers to your Mailrelay account, if you had to do it via API, the only option available was to use the addSubscriber function, although its use was simple enough, for large volumes of subscribers the process could become slightly more complex. Therefore, our technical team has developed a [&hellip;]","og_url":"https:\/\/wpstaging.mailrelay.com\/en\/blog\/2014\/10\/30\/new-api-function-for-your-email-marketing-importing-csv\/","og_site_name":"Mailrelay","article_publisher":"https:\/\/www.facebook.com\/Mailrelay\/","article_published_time":"2014-10-30T09:20:54+00:00","article_modified_time":"2022-05-13T17:02:16+00:00","og_image":[{"width":600,"height":500,"url":"https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2015\/03\/nueva-funcionalidad-del-api-importacion-ficheros-csv-email-markting.jpg","type":"image\/jpeg"}],"author":"mailrelay","twitter_card":"summary_large_image","twitter_creator":"@mailrelay","twitter_site":"@mailrelay","twitter_misc":{"Written by":"mailrelay","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/wpstaging.mailrelay.com\/en\/blog\/2014\/10\/30\/new-api-function-for-your-email-marketing-importing-csv\/#article","isPartOf":{"@id":"https:\/\/wpstaging.mailrelay.com\/en\/blog\/2014\/10\/30\/new-api-function-for-your-email-marketing-importing-csv\/"},"author":{"name":"mailrelay","@id":"https:\/\/wpstaging.mailrelay.com\/en\/#\/schema\/person\/355071c9f6e00fa8c8731ac93e0aa487"},"headline":"New API function for your email marketing, importing CSV","datePublished":"2014-10-30T09:20:54+00:00","dateModified":"2022-05-13T17:02:16+00:00","mainEntityOfPage":{"@id":"https:\/\/wpstaging.mailrelay.com\/en\/blog\/2014\/10\/30\/new-api-function-for-your-email-marketing-importing-csv\/"},"wordCount":710,"commentCount":0,"publisher":{"@id":"https:\/\/wpstaging.mailrelay.com\/en\/#organization"},"image":{"@id":"https:\/\/wpstaging.mailrelay.com\/en\/blog\/2014\/10\/30\/new-api-function-for-your-email-marketing-importing-csv\/#primaryimage"},"thumbnailUrl":"https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2015\/03\/nueva-funcionalidad-del-api-importacion-ficheros-csv-email-markting.jpg","articleSection":["Mailrelay Funcionalidades|API"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/wpstaging.mailrelay.com\/en\/blog\/2014\/10\/30\/new-api-function-for-your-email-marketing-importing-csv\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/wpstaging.mailrelay.com\/en\/blog\/2014\/10\/30\/new-api-function-for-your-email-marketing-importing-csv\/","url":"https:\/\/wpstaging.mailrelay.com\/en\/blog\/2014\/10\/30\/new-api-function-for-your-email-marketing-importing-csv\/","name":"New API function for your email marketing, importing CSV - Mailrelay","isPartOf":{"@id":"https:\/\/wpstaging.mailrelay.com\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/wpstaging.mailrelay.com\/en\/blog\/2014\/10\/30\/new-api-function-for-your-email-marketing-importing-csv\/#primaryimage"},"image":{"@id":"https:\/\/wpstaging.mailrelay.com\/en\/blog\/2014\/10\/30\/new-api-function-for-your-email-marketing-importing-csv\/#primaryimage"},"thumbnailUrl":"https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2015\/03\/nueva-funcionalidad-del-api-importacion-ficheros-csv-email-markting.jpg","datePublished":"2014-10-30T09:20:54+00:00","dateModified":"2022-05-13T17:02:16+00:00","breadcrumb":{"@id":"https:\/\/wpstaging.mailrelay.com\/en\/blog\/2014\/10\/30\/new-api-function-for-your-email-marketing-importing-csv\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wpstaging.mailrelay.com\/en\/blog\/2014\/10\/30\/new-api-function-for-your-email-marketing-importing-csv\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wpstaging.mailrelay.com\/en\/blog\/2014\/10\/30\/new-api-function-for-your-email-marketing-importing-csv\/#primaryimage","url":"https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2015\/03\/nueva-funcionalidad-del-api-importacion-ficheros-csv-email-markting.jpg","contentUrl":"https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2015\/03\/nueva-funcionalidad-del-api-importacion-ficheros-csv-email-markting.jpg","width":600,"height":500},{"@type":"BreadcrumbList","@id":"https:\/\/wpstaging.mailrelay.com\/en\/blog\/2014\/10\/30\/new-api-function-for-your-email-marketing-importing-csv\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wpstaging.mailrelay.com\/en\/"},{"@type":"ListItem","position":2,"name":"New API function for your email marketing, importing CSV"}]},{"@type":"WebSite","@id":"https:\/\/wpstaging.mailrelay.com\/en\/#website","url":"https:\/\/wpstaging.mailrelay.com\/en\/","name":"Mailrelay","description":"Mailrelay.com","publisher":{"@id":"https:\/\/wpstaging.mailrelay.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wpstaging.mailrelay.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/wpstaging.mailrelay.com\/en\/#organization","name":"Mailrelay","url":"https:\/\/wpstaging.mailrelay.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wpstaging.mailrelay.com\/en\/#\/schema\/logo\/image\/","url":"https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2021\/12\/logo.png","contentUrl":"https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2021\/12\/logo.png","width":190,"height":49,"caption":"Mailrelay"},"image":{"@id":"https:\/\/wpstaging.mailrelay.com\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Mailrelay\/","https:\/\/x.com\/mailrelay","https:\/\/www.youtube.com\/mailrelay-email-marketing"]},{"@type":"Person","@id":"https:\/\/wpstaging.mailrelay.com\/en\/#\/schema\/person\/355071c9f6e00fa8c8731ac93e0aa487","name":"mailrelay","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/871548d8ea792b1be4dca815f1997730a5a337670dbe077351e8e02f813d2b58?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/871548d8ea792b1be4dca815f1997730a5a337670dbe077351e8e02f813d2b58?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/871548d8ea792b1be4dca815f1997730a5a337670dbe077351e8e02f813d2b58?s=96&d=mm&r=g","caption":"mailrelay"},"sameAs":["http:\/\/localhost:12080"],"url":"https:\/\/wpstaging.mailrelay.com\/en\/blog\/author\/mailrelay\/"}]}},"uagb_featured_image_src":{"full":["https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2015\/03\/nueva-funcionalidad-del-api-importacion-ficheros-csv-email-markting.jpg",600,500,false],"thumbnail":["https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2015\/03\/nueva-funcionalidad-del-api-importacion-ficheros-csv-email-markting-150x150.jpg",150,150,true],"medium":["https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2015\/03\/nueva-funcionalidad-del-api-importacion-ficheros-csv-email-markting-300x250.jpg",300,250,true],"medium_large":["https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2015\/03\/nueva-funcionalidad-del-api-importacion-ficheros-csv-email-markting.jpg",600,500,false],"large":["https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2015\/03\/nueva-funcionalidad-del-api-importacion-ficheros-csv-email-markting.jpg",600,500,false],"1536x1536":["https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2015\/03\/nueva-funcionalidad-del-api-importacion-ficheros-csv-email-markting.jpg",600,500,false],"2048x2048":["https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2015\/03\/nueva-funcionalidad-del-api-importacion-ficheros-csv-email-markting.jpg",600,500,false],"testimonials":["https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2015\/03\/nueva-funcionalidad-del-api-importacion-ficheros-csv-email-markting-110x92.jpg",110,92,true],"author-image":["https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2015\/03\/nueva-funcionalidad-del-api-importacion-ficheros-csv-email-markting.jpg",60,50,false],"yarpp-thumbnail":["https:\/\/wpstaging.mailrelay.com\/wp-content\/uploads\/2015\/03\/nueva-funcionalidad-del-api-importacion-ficheros-csv-email-markting.jpg",120,100,false]},"uagb_author_info":{"display_name":"mailrelay","author_link":"https:\/\/wpstaging.mailrelay.com\/en\/blog\/author\/mailrelay\/"},"uagb_comment_info":0,"uagb_excerpt":"Until now, when you had to import subscribers to your Mailrelay account, if you had to do it via API, the only option available was to use the addSubscriber function, although its use was simple enough, for large volumes of subscribers the process could become slightly more complex. Therefore, our technical team has developed a&hellip;","_links":{"self":[{"href":"https:\/\/wpstaging.mailrelay.com\/en\/wp-json\/wp\/v2\/posts\/32519","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpstaging.mailrelay.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpstaging.mailrelay.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpstaging.mailrelay.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpstaging.mailrelay.com\/en\/wp-json\/wp\/v2\/comments?post=32519"}],"version-history":[{"count":1,"href":"https:\/\/wpstaging.mailrelay.com\/en\/wp-json\/wp\/v2\/posts\/32519\/revisions"}],"predecessor-version":[{"id":42160,"href":"https:\/\/wpstaging.mailrelay.com\/en\/wp-json\/wp\/v2\/posts\/32519\/revisions\/42160"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpstaging.mailrelay.com\/en\/wp-json\/wp\/v2\/media\/8167"}],"wp:attachment":[{"href":"https:\/\/wpstaging.mailrelay.com\/en\/wp-json\/wp\/v2\/media?parent=32519"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpstaging.mailrelay.com\/en\/wp-json\/wp\/v2\/categories?post=32519"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpstaging.mailrelay.com\/en\/wp-json\/wp\/v2\/tags?post=32519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}