get_send_quota

SES.Client.get_send_quota()

Provides the sending limits for the Amazon SES account.

You can execute this operation no more than once per second.

See also: AWS API Documentation

Request Syntax

response = client.get_send_quota()
Return type
dict
Returns
Response Syntax
{
    'Max24HourSend': 123.0,
    'MaxSendRate': 123.0,
    'SentLast24Hours': 123.0
}

Response Structure

  • (dict) --

    Represents your Amazon SES daily sending quota, maximum send rate, and the number of emails you have sent in the last 24 hours.

    • Max24HourSend (float) --

      The maximum number of emails the user is allowed to send in a 24-hour interval. A value of -1 signifies an unlimited quota.

    • MaxSendRate (float) --

      The maximum number of emails that Amazon SES can accept from the user's account per second.

      Note

      The rate at which Amazon SES accepts the user's messages might be less than the maximum send rate.

    • SentLast24Hours (float) --

      The number of emails sent during the previous 24 hours.

Examples

The following example returns the Amazon SES sending limits for an AWS account:

response = client.get_send_quota(
)

print(response)

Expected Output:

{
    'Max24HourSend': 200,
    'MaxSendRate': 1,
    'SentLast24Hours': 1,
    'ResponseMetadata': {
        '...': '...',
    },
}