Groups Migration API: limits and quotas
Stay organized with collections
Save and categorize content based on your preferences.
Limits and quotas protect the Google infrastructure from an automated process that uses the
Groups Migration API in an inappropriate way. Excessive requests from an API might result from a
harmless typo, or from an inefficiently designed system that makes needless API calls. Regardless of
the cause, blocking traffic from a specific source once it reaches a certain level is necessary for
the overall health of the Google Workspace system.
API request failures
In the unlikely event that your API request fails, your application receives an HTTP status code
response. An HTTP status code of 403
has error information about incorrect input, and
an HTTP status code of 503
has error information indicating which API quotas have been
exceeded. These responses let your custom application detect these errors and take appropriate
action.
Time sensitive requests
If your requests need to be completed in a fixed period of time, send your requests in parallel
or use multiple threads in your Java or C# application. For example, break your requests by month or
another time period. In the case of threads, try starting with 10 threads, one thread per request.
The thread recommendation has trade-offs and isn't useful for all API situations. If the number of
requests gets too high, quota errors occur.
Time-based errors
For all errors that are time based (maximum of N things for X seconds per thread), especially the
503
status code errors, we recommend that your code catch the exception and, by using
an
exponential backoff
algorithm, wait for a small delay before retrying the failed call. A Groups Migration API example for
one thread is to wait 5 seconds and retry the failed call. If the request is successful, repeat this
pattern for the other threads. If the second request isn't successful, your application should scale
back on the frequency of the request until a call is successful. For example, increase the initial
5 second delay to 10 seconds and retry your failed call again. Also, decide on a retry limit. For ]
example, retry a request 5 to 7 times with different delay times before your application returns an
error to the user.
Limits
API limit categories |
Limits |
Queries per second (QPS) |
The developer project limit is 10 queries per second (QPS) per account. |
Quotas
API quota categories |
Quotas |
Maximum API requests per day |
The maximum API requests per day is 500,000. |
Archive, expiration of messages |
Group archives don't expire. Messages remain in an archive until the group is deleted. The email
retention policy doesn't affect messages in a group's archive. |
Mail message size |
The maximum mail message size is 25MB. This limit includes the message's meta data headers,
body, and any attachments. |
Other types of limits
Other limits |
Limitations and guidelines |
Content type formats |
An email message must be in the standard
RFC 822 text format.
When uploading migrated emails, a request's content type must use the
Content-type: message/rfc822 header.
|
Data format in API responses |
The response's data format is JavaScript Object Notation
(JSON).
|
Data location policies |
The Groups Migration API doesn't support data location
policies requiring data to be stored in specific geographic or political
boundaries for contractual reasons. Don't use the
Groups Migration API if data location is required for your account. |
Parallel message insertions |
The Groups Migration API supports parallel requests for email insertions into
different group archives. But the Groups Migration API doesn't support parallel message
insertions into the same group archive. Also batch requests aren't supported in this version of
the Groups Migration API. |
Unauthorized requests |
The Groups Migration API doesn't accept any unauthorized requests. A request is
considered unauthorized if no authorization token is provided. For more information, see
Learn about authentication & authorization.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-28 UTC.
[null,null,["Last updated 2025-08-28 UTC."],[],[],null,["# Groups Migration API: limits and quotas\n\nLimits and quotas protect the Google infrastructure from an automated process that uses the\nGroups Migration API in an inappropriate way. Excessive requests from an API might result from a\nharmless typo, or from an inefficiently designed system that makes needless API calls. Regardless of\nthe cause, blocking traffic from a specific source once it reaches a certain level is necessary for\nthe overall health of the Google Workspace system.\n\nAPI request failures\n--------------------\n\nIn the unlikely event that your API request fails, your application receives an HTTP status code\nresponse. An HTTP status code of `403` has error information about incorrect input, and\nan HTTP status code of `503` has error information indicating which API quotas have been\nexceeded. These responses let your custom application detect these errors and take appropriate\naction.\n\nTime sensitive requests\n-----------------------\n\nIf your requests need to be completed in a fixed period of time, send your requests in parallel\nor use multiple threads in your Java or C# application. For example, break your requests by month or\nanother time period. In the case of threads, try starting with 10 threads, one thread per request.\nThe thread recommendation has trade-offs and isn't useful for all API situations. If the number of\nrequests gets too high, quota errors occur.\n\nTime-based errors\n-----------------\n\nFor all errors that are time based (maximum of N things for X seconds per thread), especially the\n`503` status code errors, we recommend that your code catch the exception and, by using\nan\n[exponential backoff](https://en.wikipedia.org/wiki/Exponential_backoff)\nalgorithm, wait for a small delay before retrying the failed call. A Groups Migration API example for\none thread is to wait 5 seconds and retry the failed call. If the request is successful, repeat this\npattern for the other threads. If the second request isn't successful, your application should scale\nback on the frequency of the request until a call is successful. For example, increase the initial\n5 second delay to 10 seconds and retry your failed call again. Also, decide on a retry limit. For \\]\nexample, retry a request 5 to 7 times with different delay times before your application returns an\nerror to the user.\n\nLimits\n------\n\n| API limit categories | Limits |\n|--------------------------|-------------------------------------------------------------------------|\n| Queries per second (QPS) | The developer project limit is 10 queries per second (QPS) per account. |\n\nQuotas\n------\n\n| API quota categories | Quotas |\n|---------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Maximum API requests per day | The maximum API requests per day is 500,000. |\n| Archive, expiration of messages | Group archives don't expire. Messages remain in an archive until the group is deleted. The email retention policy doesn't affect messages in a group's archive. |\n| Mail message size | The maximum mail message size is 25MB. This limit includes the message's meta data headers, body, and any attachments. |\n\nOther types of limits\n---------------------\n\n| Other limits | Limitations and guidelines |\n|------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Content type formats | An email message must be in the standard [RFC 822 text format](https://www.w3.org/Protocols/rfc822/). When uploading migrated emails, a request's content type must use the `Content-type: message/rfc822` header. |\n| Data format in API responses | The response's data format is JavaScript Object Notation ([JSON](https://json.org/)). |\n| Data location policies | The Groups Migration API doesn't support data location policies requiring data to be stored in specific geographic or political boundaries for contractual reasons. Don't use the Groups Migration API if data location is required for your account. |\n| Parallel message insertions | The Groups Migration API supports parallel requests for email insertions into different group archives. But the Groups Migration API doesn't support parallel message insertions into the same group archive. Also batch requests aren't supported in this version of the Groups Migration API. |\n| Unauthorized requests | The Groups Migration API doesn't accept any unauthorized requests. A request is considered unauthorized if no authorization token is provided. For more information, see [Learn about authentication \\& authorization](/workspace/guides/auth-overview). |"]]