# Need help with automatic import of contact files

**URL:** <https://forum.mautic.org/t/need-help-with-automatic-import-of-contact-files/15735>\
**Category:** Product Support\
**Created:** [August 20, 2020, 8:42am UTC](https://forum.mautic.org/t/need-help-with-automatic-import-of-contact-files/15735 "2020-08-20T08:42:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tpapaj](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/tpapaj/32/3198_2.png) [@tpapaj](https://forum.mautic.org/u/tpapaj)\
**Post date:** [August 20, 2020, 8:42am UTC](https://forum.mautic.org/t/need-help-with-automatic-import-of-contact-files/15735/1 "2020-08-20T08:42:26Z")

</div>

**Your software**  
My Mautic version is: 3.0.2  
My PHP version is: 7.3.20  
I am using mautic/mautic:v3 docker image

**Your problem**  
I am trying to create an automated pipeline for daily contact import however I cannot find API methods that I can use to achieve this.  
**mautic:import** seems to only run queued background imports that are already created from the Web UI and in my case I do not want to create imports from Web UI. I want to import quite big amount of contacts every day, add new ones and update existing ones with custom fields used for segmentation so updating every single contact with separate request is also out of question.  
I heard about **MauticCustomImportBundle** , however it seems broken on mautic 3.x.

Is there any way to achieve what I want in current version? I would really appreciate any help.

---

<div class="post-metadata">

**Author:** ![OmerGafny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/omergafny/32/1759_2.png) [@OmerGafny](https://forum.mautic.org/u/OmerGafny)\
**Post date:** [August 20, 2020, 9:24am UTC](https://forum.mautic.org/t/need-help-with-automatic-import-of-contact-files/15735/2 "2020-08-20T09:24:54Z")

</div>

You can use the Bulk Create endpoint:  
{{MauticDomain}}/api/contacts/batch/new

but that means that youll need to parse your file records to JSON array:  
[{firstname:“Test”,lastname:“Testname1”,email:“test1@test.dk”},{firstname:“Test”,lastname:“Testname2”,email:“test2@test.dk”}];

---

<div class="post-metadata">

**Author:** ![tpapaj](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/tpapaj/32/3198_2.png) [@tpapaj](https://forum.mautic.org/u/tpapaj)\
**Post date:** [August 20, 2020, 11:33am UTC](https://forum.mautic.org/t/need-help-with-automatic-import-of-contact-files/15735/3 "2020-08-20T11:33:23Z")

</div>

Thank you for reply.  
Converting file to JSON does not seems problematic for me. I tried this API and everything worked flawlessly for a small data batch so far. I am not able to find that endpoint in documentation for some reason. Thank you for help!

---

<div class="post-metadata">

**Author:** ![gary.harrison](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gary.harrison/32/2864_2.png) [@gary.harrison](https://forum.mautic.org/u/gary.harrison)\
**Post date:** [August 22, 2020, 7:52pm UTC](https://forum.mautic.org/t/need-help-with-automatic-import-of-contact-files/15735/4 "2020-08-22T19:52:53Z")

</div>

do you know if this would work if the data is hosted remotely?

There is a ecommerce add-on for Mautic 2.x that can import json hosted via a URL. We’re not sure if this is something custom or out of the box…

[https://docs.mtcextendee.com/installation/import-items](https://docs.mtcextendee.com/installation/import-items)

---

<div class="post-metadata">

**Author:** ![OmerGafny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/omergafny/32/1759_2.png) [@OmerGafny](https://forum.mautic.org/u/OmerGafny)\
**Post date:** [August 23, 2020, 6:58am UTC](https://forum.mautic.org/t/need-help-with-automatic-import-of-contact-files/15735/5 "2020-08-23T06:58:56Z")

</div>

Well, that cron in the example is definitely not out of the box. I suggest contacting the createor of that plugin @kuzmany
