Skip to the documentation
API

Limits

Every operation in this group: what it accepts, what it returns and the errors it can answer with.

Operations

What the workspace may send and call right now, as the usage page shows it. Starter includes 3,000 emails a month and sends at most 100 a day until a card is on file, counted as recipients across every Starter workspace of its owner together. A card turns pay as you go on, which lifts the daily limit and bills the sends past the monthly one, so the day then reads null. The other plans have no daily limit. The API requests a minute a workspace may make: 1,000 on Starter, 5,000 on Pro and 10,000 on Max. Answered requests are billed at the apiRequests rate of the plan while pay as you go is on. Per 1,000,000 requests that is $0.50 on Starter, $0.30 on Pro and $0.20 on Max. Requests refused with 429 rate_limited, requests that failed on our side with a 5xx and the ones made before pay as you go started are not billed. Any of these limits can be changed for one workspace by the people who run the service, and the numbers here are the ones a send is checked against.

GET/limits

Read the limits of the workspace

Scopessettings:readReads

The plan of the workspace, the emails it has sent today and this month with the limit of each and when it resets, and the API requests a minute it may make.

A send that would take the workspace past the daily limit, or past the monthly one while pay as you go is off, paused or at its spending limit, is refused with 429 send_quota_exceeded. The count is read before the send, so two sends at the same moment can both pass and go over by what the second one carries. apiRequestsPerMinute counts every API key and app of the workspace together.

Requires the settings:read scope.

Returns

The limits of the workspace.

Errors

The errors every operation can return400401403404422429500Error catalog

Also available in

TypeScript
limits.get()
Python
limits.get()
Ruby
limits.get
PHP
limits->get
Go
Limits.Get
Java
limits().get
C#
Limits.GetAsync
CLI
nextmail limits get
MCP
getLimits

Objects

Limitsobject

objectstringRequired
One of"limits"
planobjectRequired
idstringRequired

The id of the plan, such as free.

namestringRequired

The name of the plan, as the pricing page shows it.

sendsobjectRequired
dayobjectRequired
limitintegerRequired

The emails the workspace may send today, in UTC, counted as recipients, or null when nothing caps them.

Can be null
usedintegerRequired

The emails sent today, in UTC so far, counted as recipients. On Starter this counts every Starter workspace of the owner together.

resetsAtstringRequired

The next midnight UTC, when the daily count starts again.

Formatdate-time
monthobjectRequired
limitintegerRequired

The emails the workspace may send this calendar month, in UTC, counted as recipients, or null when nothing caps them.

Can be null
usedintegerRequired

The emails sent this calendar month, in UTC so far, counted as recipients. On Starter this counts every Starter workspace of the owner together.

resetsAtstringRequired

The first instant of the next month in UTC, when the monthly count starts again.

Formatdate-time
apiRequestsPerMinuteintegerRequired

The API requests a minute the workspace may make, across all its API keys and apps: 1,000 on Starter, 5,000 on Pro and 10,000 on Max, unless it was given a limit of its own. Answered requests are billed at the apiRequests rate of the plan while pay as you go is on. Per 1,000,000 requests that is $0.50 on Starter, $0.30 on Pro and $0.20 on Max. Requests refused with 429 rate_limited, requests that failed on our side with a 5xx and the ones made before pay as you go started are not billed.