# Create contacts in bulk through API

**URL:** <https://forum.mautic.org/t/create-contacts-in-bulk-through-api/5513>\
**Category:** Product Support\
**Created:** [September 30, 2016, 8:45am UTC](https://forum.mautic.org/t/create-contacts-in-bulk-through-api/5513 "2016-09-30T08:45:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wenriquez](https://avatars.discourse-cdn.com/v4/letter/w/85e7bf/32.png) [@wenriquez](https://forum.mautic.org/u/wenriquez)\
**Post date:** [September 30, 2016, 8:45am UTC](https://forum.mautic.org/t/create-contacts-in-bulk-through-api/5513/1 "2016-09-30T08:45:12Z")

</div>

Hi am trying to integrate salesforce into Mautic through Rest Api . Am able to create contact one by one by hitting the Mautic endpoint **contacts/new** but not able to get any way to create contacts in bulk through api. I tried doing this

Code:

req.setBody('[{"firstname": "NAME1","lastname": "LAST1","email": "EMAIL%40GOOGLE.com"},{"firstname": "NAME2","lastname": "LAST2","email": "EMAIL%40arora.com"}]');

  
but it gives me error. so can anyone please tell me the the sample format mautic would accept to create contacts more than one through rest api.

---

<div class="post-metadata">

**Author:** ![wenriquez](https://avatars.discourse-cdn.com/v4/letter/w/85e7bf/32.png) [@wenriquez](https://forum.mautic.org/u/wenriquez)\
**Post date:** [October 3, 2016, 8:39am UTC](https://forum.mautic.org/t/create-contacts-in-bulk-through-api/5513/2 "2016-10-03T08:39:57Z")

</div>

@ninjoan can u please help me for this too.

---

<div class="post-metadata">

**Author:** ![ninjoan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ninjoan/32/1005_2.png) [@ninjoan](https://forum.mautic.org/u/ninjoan)\
**Post date:** [October 3, 2016, 12:19pm UTC](https://forum.mautic.org/t/create-contacts-in-bulk-through-api/5513/3 "2016-10-03T12:19:31Z")

</div>

i dont know why are you using API to create contacts.  
@wenriquez email me `jninhilario@gmail.com`

---

<div class="post-metadata">

**Author:** ![wenriquez](https://avatars.discourse-cdn.com/v4/letter/w/85e7bf/32.png) [@wenriquez](https://forum.mautic.org/u/wenriquez)\
**Post date:** [September 30, 2016, 8:45am UTC](https://forum.mautic.org/t/create-contacts-in-bulk-through-api/5513/4 "2016-09-30T08:45:12Z")

</div>

Hi am trying to integrate salesforce into Mautic through Rest Api . Am able to create contact one by one by hitting the Mautic endpoint contacts/new but not able to get any way to create contacts in bulk through api. I tried doing this `req.setBody('[{"firstname": "NAME1","lastname": "LAST1","email": "EMAIL%40GOOGLE.com"},{"firstname": "NAME2","lastname": "LAST2","email": "EMAIL%40arora.com"}]');`

but it gives me error. so can anyone please tell me the the sample format mautic would accept to create contacts more than one through rest api.
