Skip to the documentation
Python

nextmail.limits

Every method in this namespace: its signature, its parameters, what it returns and an example.

Methods

The daily and monthly sends of this workspace and its plan, how many it has used and when each count starts again, and the API requests a minute it may make.

limits.get()

Read the limits of the workspace

Scopessettings:read
Signature
def get(*, api_key: str | None = None, timeout: float | None = None) -> LimitsResource

Returns 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.

Emails are counted as recipients. On the free plan the count covers every free workspace of the owner together. A limit is None when nothing caps it, which is the daily limit of a paid plan. resetsAt is the next midnight in UTC for the day and the first instant of the next month in UTC for the month. A send that would take the workspace past either limit raises a 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.

Parameters

api_keystr

Overrides the client's API key for this call only.

timeoutfloat

Seconds this call may take, the response included, before it raises NextmailNetworkError with is_timeout. It overrides the client's timeout for this call, and 0 turns the limit off.

Returns

LimitsResource, a dict with plan (id and name), sends (day and month, each with limit, used and resetsAt) and apiRequestsPerMinute.

Example

from nextmail import nextmail limits = nextmail.limits.get()day = limits['sends']['day']month = limits['sends']['month'] print(f'{day["used"]} of {day["limit"] or "unlimited"} sends today')print(f'{month["used"]} of {month["limit"] or "unlimited"} sends this month')print(f'{limits["apiRequestsPerMinute"]} API requests a minute')

Also available in

API
GET /limits
TypeScript
limits.get()
Ruby
limits.get
PHP
limits->get
Go
Limits.Get
Java
limits().get
C#
Limits.GetAsync
CLI
nextmail limits get

Give it an address.
Watch it work.

MCP, the API and the command line come with every plan, the free one included. Connect a client and approve exactly what it reaches.

Read https://nextmail.sh/agent.md and follow it. Then tell me what I need to do to sign you in to my Nextmail mailbox. If I have no account yet, create one with my address and ask me for the code that arrives. Wait for my go-ahead before you send anything.

© 2026 Nextmail. All rights reserved.