# Rate Limit for Mautic Rest API

**URL:** https://forum.mautic.org/t/rate-limit-for-mautic-rest-api/24999
**Category:** Product Support
**Created:** [August 9, 2022, 1:16pm UTC](https://forum.mautic.org/t/rate-limit-for-mautic-rest-api/24999 "2022-08-09T13:16:55Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![shrouti](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/shrouti/32/6387_2.png) [@shrouti](https://forum.mautic.org/u/shrouti)
#### Post date: [August 9, 2022, 1:16pm UTC](https://forum.mautic.org/t/rate-limit-for-mautic-rest-api/24999/1 "2022-08-09T13:16:55Z")

</div>

**Your software**  
My Mautic version is: Using mautic REST API, Sending data to mautic sandbox account hosted by Acquaia  
My PHP version is: have not downloaded mautic  
My Database type and version is: NA

**Your problem**  
My problem is: Need information regarding rate limits of for Rest API endpoints described [here](https://developer.mautic.org/#rest-api).

Downloading mautic and using via PHP libraries is not an option for us.

---

<div class="post-metadata">

### Author: ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)
#### Post date: [August 9, 2022, 4:59pm UTC](https://forum.mautic.org/t/rate-limit-for-mautic-rest-api/24999/2 "2022-08-09T16:59:21Z")

</div>

Hi, you can connect to Mautic via api, you don’t need to download any libraries. Besides that plz describe your question. What about rate limits?

---

<div class="post-metadata">

### Author: ![shrouti](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/shrouti/32/6387_2.png) [@shrouti](https://forum.mautic.org/u/shrouti)
#### Post date: [August 10, 2022, 10:26am UTC](https://forum.mautic.org/t/rate-limit-for-mautic-rest-api/24999/3 "2022-08-10T10:26:09Z")

</div>

Hi Joeyk, thank you for such a quick response. Wanted to know how many API calls can be made within a minute. We are planning to use your [contact create](https://developer.mautic.org/?json#create-contact) and [contact-edit](https://developer.mautic.org/?json#edit-contact) APIs. We are wondering when we can get rate limited, if we need to send high volume of data?

---

<div class="post-metadata">

### Author: ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)
#### Post date: [August 10, 2022, 10:29am UTC](https://forum.mautic.org/t/rate-limit-for-mautic-rest-api/24999/4 "2022-08-10T10:29:16Z")

</div>

Hi,  
I think API rate limit is not set in Mautic, but in your server settings.  
This is more a server based setting then a software setting. Better servers can handle better traffic.

Joey

---

<div class="post-metadata">

### Author: ![shrouti](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/shrouti/32/6387_2.png) [@shrouti](https://forum.mautic.org/u/shrouti)
#### Post date: [August 10, 2022, 10:32am UTC](https://forum.mautic.org/t/rate-limit-for-mautic-rest-api/24999/5 "2022-08-10T10:32:35Z")

</div>

Thank you.

---

<div class="post-metadata">

### Author: ![shrouti](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/shrouti/32/6387_2.png) [@shrouti](https://forum.mautic.org/u/shrouti)
#### Post date: [August 11, 2022, 9:25am UTC](https://forum.mautic.org/t/rate-limit-for-mautic-rest-api/24999/6 "2022-08-11T09:25:23Z")

</div>

Hi joek,

Bumping here again. Was trying to use the [edit contact](https://developer.mautic.org/#edit-contact) API. And in your documentation I am not finding the request structure. I am sending the request like below

```auto
curl --location --request PUT 'https://<my-domain-name>.mautic.net/contacts/245/edit' \
--header 'Authorization: Basic <my access token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "email": "shrouti@testing.com"
}'

```

And to my surprise, even though the contact exists, I am adding screenshot of it

 ![Screenshot 2022-08-11 at 2.54.27 PM](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/9/97b4cfcd9a8eaec3a59070a63ccc70e8d28966cf.png)  
Still, the response to the above call returns 404.

Can I please get assistance that what wrong I am doing over here?

---

<div class="post-metadata">

### Author: ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)
#### Post date: [August 11, 2022, 10:23am UTC](https://forum.mautic.org/t/rate-limit-for-mautic-rest-api/24999/7 "2022-08-11T10:23:42Z")

</div>

Have you ever made a successful call or is this your first try?  
If so, try to refresh the cache.  
Are you using login and psw? (You mentioned token, but maybe that translates to login and pws)

---

<div class="post-metadata">

### Author: ![shrouti](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/shrouti/32/6387_2.png) [@shrouti](https://forum.mautic.org/u/shrouti)
#### Post date: [August 11, 2022, 10:25am UTC](https://forum.mautic.org/t/rate-limit-for-mautic-rest-api/24999/8 "2022-08-11T10:25:58Z")

</div>

Hey Joek,

yes, I have created the users shown in the screenshot, via API call only. I have tried with the create contact, create batch of contact, adding contact to segment APIs. Now I wanted to edit one contact and I am stuck over there. Yes the token means base64 encoded username:password

---

<div class="post-metadata">

### Author: ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)
#### Post date: [August 11, 2022, 10:32am UTC](https://forum.mautic.org/t/rate-limit-for-mautic-rest-api/24999/9 "2022-08-11T10:32:13Z")

</div>

Are you trying to change the email?

---

<div class="post-metadata">

### Author: ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)
#### Post date: [August 11, 2022, 10:36am UTC](https://forum.mautic.org/t/rate-limit-for-mautic-rest-api/24999/10 "2022-08-11T10:36:08Z")

</div>

Just tried, and should work:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/5/5c85846ee3f7b730093ab5a80f5d307a16c75f92.png)

---

<div class="post-metadata">

### Author: ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)
#### Post date: [August 11, 2022, 10:36am UTC](https://forum.mautic.org/t/rate-limit-for-mautic-rest-api/24999/11 "2022-08-11T10:36:35Z")

</div>

You are missing /api/

TRY

```auto
curl --location --request PUT 'https://<my-domain-name>.mautic.net/api/contacts/245/edit' \
--header 'Authorization: Basic <my access token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "email": "shrouti@testing.com"
}'

```

---

<div class="post-metadata">

### Author: ![shrouti](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/shrouti/32/6387_2.png) [@shrouti](https://forum.mautic.org/u/shrouti)
#### Post date: [August 11, 2022, 10:38am UTC](https://forum.mautic.org/t/rate-limit-for-mautic-rest-api/24999/12 "2022-08-11T10:38:34Z")

</div>

Just pointed out. Thank you so much.

---

<div class="post-metadata">

### Author: ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)
#### Post date: [August 11, 2022, 10:47am UTC](https://forum.mautic.org/t/rate-limit-for-mautic-rest-api/24999/13 "2022-08-11T10:47:22Z")

</div>

You are welcome 🙂 Keep on automating!
