Understand API limits and usage

Read the Mailsoftly API rate limits, the RateLimit response headers, the request and per call ceilings, and the Usage and limits card that shows where your account stands.

An integration that works on your laptop and then fails at nine in the morning on a Monday is almost always hitting a ceiling rather than a bug. Mailsoftly publishes every one of those ceilings, and every response tells you how close you are to the one that matters.

This page is the reference: the two rate limit buckets, the headers that carry your remaining allowance, the sizes a request may not exceed, how to page through a long list, and the one screen in the product that shows the same facts without a line of code.

Two buckets, and both are per credential

Limits are counted per credential, not per address. Your integration runs from one server and shares that address with nobody; a large network or a proxy fronts many companies and shares it with everybody. Counting per credential means neither situation is your problem: an API key gets its own budget, and so does each app you have authorized.

There are two buckets.

  • Requests: 600 every five minutes. Every endpoint counts, reads included.
  • Sends: 600 an hour. Only the calls that actually deliver something, which is send_email, schedule_email and start_ab_test. Drafting, editing, scheduling metadata and contact writes are not in this bucket, so a busy import cannot eat your sending allowance.

A send call is counted twice on purpose: once in the request bucket and once in the send bucket. There is also a backstop of 3,000 requests every five minutes from one address, counted across all credentials, which is what bounds a caller with no valid key at all.

Note

The limits cover everything under app.mailsoftly.com/api/v3 and the named webhook paths our own connectors post to. They do not cover an incoming catch URL you created under Settings, Advanced, Webhooks. See Receive data with a webhook endpoint for what protects that instead.

The rate limits section of the Mailsoftly developer documentation showing both buckets and the RateLimit response headers

Read the allowance off the response

You never have to count calls yourself. Every response on the API carries three headers.

  • RateLimit-Limit, the size of the bucket
  • RateLimit-Remaining, how much of it is left
  • RateLimit-Reset, the seconds until the window starts again

A send endpoint adds the same three for its own bucket: RateLimit-Send-Limit, RateLimit-Send-Remaining and RateLimit-Send-Reset. The headers are stamped before authentication runs, so even a 401 or a 403 carries them.

Go past a limit and you get 429 Too Many Requests with a Retry-After header, the same RateLimit-* set, and a JSON body in the standard error shape. Retry-After is a number of seconds, and waiting exactly that long is enough; retrying sooner just spends another request.

A client that reads RateLimit-Remaining and slows down when it gets low never sees a 429 at all. That is the whole point of publishing the number.

Tip

Log RateLimit-Remaining alongside your own request count for a week. If the two disagree, something else in your company is using the same key, which is worth knowing before it becomes an outage.

The Mailsoftly rate limit reference listing the RateLimit response headers and what a 429 returns

Stay under the size ceilings

Three ceilings apply to the shape of a request rather than to how often you send it, and each one refuses the call rather than silently truncating it.

  • A request body may be up to 10 MB. Anything larger is refused with 413 before Mailsoftly even parses it. The error tells you to split the payload, or to use the import endpoint for a bulk contact load.
  • Array parameters have a per call ceiling. One add_contacts_to_contact_list takes up to 1,000 contacts. One assign_tags_to_contact takes up to 100 tags. One create_emails takes up to 50 drafts, each with up to 30,150 recipients and 20 attachments.
  • Over a ceiling you get 413 with max_items in the body, naming the limit you crossed, so a client can adapt its batch size rather than bisecting by hand.

The refusal is deliberate. A call that quietly dropped the 1,001st contact would leave you with a list that looks complete and is not.

Careful

A large contact load belongs in import_contacts, not in a loop of single writes. It runs the same background job as the import wizard, takes one CSV with your own column mapping, and get_import and list_imports report progress while it runs.

An endpoint entry in the Mailsoftly developer documentation showing its array parameters and their limits

Page through a list instead of asking for all of it

List endpoints take page, counting from 1, and per_page. Contact listings accept up to 500 rows a page; every other list up to 100.

Pass either parameter and the response becomes an envelope:

  • page and per_page, echoed back
  • total, the full count behind the query
  • has_more, which is your loop condition. Keep going while it is true.

Call a contact listing with neither parameter and it keeps the plain array older integrations expect, capped at 10,000 rows. That shape still tells you the truth about itself: X-Total-Count is on every response, and when the array was truncated you also get X-Truncated: true and a Link header pointing at page 2.

New integrations should always paginate. The bare array is a compatibility promise to code written before paging existed, not a shortcut.

The pagination section of the Mailsoftly developer documentation describing the page and per page parameters

Check where the account stands, without reading a header

Not everyone who needs this number writes code. Open Settings, the Advanced group, then API, and under the key list sits a card headed Usage and limits.

Three tiles: API calls today with yesterday’s total under it, Request limit reading 600 / 5 min, and Send limit reading 600 / hour. Below them, one line spells out the rest: lists return up to 500 rows per page, bulk calls take up to 1,000 items, and requests over 10 MB are refused.

The calls figure counts every API and webhook call your company made that day, added together across every key. That makes it the fastest way to spot traffic nobody can account for, which is usually a key somebody forgot about rather than an attack.

Note

The tile counts calls for the whole company, but the request limit is per key. An integration being throttled is throttled on its own budget, so a busy colleague’s script is never the reason yours is refused.

The Usage and limits card on the Mailsoftly API screen showing calls today, the request limit and the send limit

Fix an integration that is being throttled

When 429s start appearing, four changes fix almost every case, in this order.

1. Read the header instead of retrying blind. Back off when RateLimit-Remaining gets low, and when a 429 does arrive, wait the number of seconds in Retry-After rather than retrying immediately. A tight retry loop turns one refused call into a hundred. 2. Paginate. One request for 500 contacts costs one request. Five hundred requests for one contact each costs five hundred. 3. Batch under the ceilings. Add contacts to a list 1,000 at a time and assign tags 100 at a time, rather than one call per person. 4. Move bulk loads to the import endpoint. A whole CSV in one call cannot exhaust a bucket that a row-by-row loop empties in a minute.

If none of that is it, the next thing to check is who else holds the key. Give each integration its own key and the question answers itself; Review connected apps and access keys turns that into a quarterly habit.

Limits are published so you can design around them rather than discover them. Read the remaining allowance, batch what can be batched, and an integration can run for years without ever seeing a 429.

The Usage and limits card used to check an account's API traffic against the published limits

Frequently asked questions

Can I check my API usage in Mailsoftly without writing code?

Yes, you can check your API usage in Mailsoftly without writing code. Go to Settings, open the Advanced group, then API, and look under the key list for a card titled Usage and limits. This card displays your API calls today, request and send limits, and other important usage details.

How does Mailsoftly notify me when I am close to an API limit?

Mailsoftly includes headers in every API response that show your current usage and remaining allowance. These headers are RateLimit-Limit, RateLimit-Remaining, and RateLimit-Reset. When you exceed a limit, you receive a 429 Too Many Requests response with a Retry-After header indicating how long to wait before trying again.

What happens if my request to Mailsoftly exceeds the allowed size?

If your request to Mailsoftly exceeds the allowed size, it is refused with a 413 error before processing. The error response will specify which limit was crossed, such as the maximum request body size or the maximum number of items in an array parameter, so you can adjust your request accordingly.

Ready to try it in your own account?

Free to start with your Google Workspace or Microsoft 365 account. No credit card required.

Keep going