API usage limits
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 Settings API in an inappropriate way. Excessive requests from an API might result from a
harmless typo or 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 indicating which API quotas
have been exceeded. The response lets your custom application detect 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 tradeoffs and is not 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 Settings 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 is not successful, your application should
scale back 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.
Quotas
API quota categories |
Quotas |
Queries per day |
You can make up to 100,000 queries per day. If you need capacity beyond
this limit, you can send a request from the
Quotas page in the Google Cloud console |
Group description, maximum size |
You can enter a group description up to 4,096 characters.
|
Group name, maximum size
|
A group's name can have up to 60 characters.
|
defaultMessageDenyNotificationText |
The notification text can be up to 10,000 characters. To learn more about the
defaultMessageDenyNotificationText property, see the
API reference.
|
maxMessageBytes |
The default maximum message size is 1MB. To learn more about the maxMessageBytes
property, see the API reference.
|
Limits
Types of limits |
Limitations and guidelines |
Data format, default
|
The default data format is JSON. The API also supports the Atom format. Both the JSON and Atom
data formats support full read-write capabilities. For more information, see
JSON and Atom data formats.
|
Groups Settings API, enablement |
You must turn on the Directory API before making calls to the Groups Settings API For more
information, see Enable Google Workspace APIs.
|
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,["# API usage limits\n\nLimits and quotas protect the Google infrastructure from an automated process that uses the\nGroups Settings API in an inappropriate way. Excessive requests from an API might result from a\nharmless typo or an inefficiently designed system that makes needless API calls.\nRegardless of the cause, blocking traffic from a specific source once it reaches a certain level is\nnecessary for the 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 indicating which API quotas\nhave been exceeded. The response lets your custom application detect 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 tradeoffs and is not 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](http://en.wikipedia.org/wiki/Truncated_binary_exponential_backoff)\nalgorithm, wait for a small delay before retrying the failed call. A Groups Settings 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 is not successful, your application should\nscale back the frequency of the request until a call is successful. For example, increase the\ninitial 5 second delay to 10 seconds and retry your failed call again. Also, decide on a retry\nlimit. For example retry a request 5 to 7 times with different delay times before your application\nreturns an error to the user.\n\nQuotas\n------\n\n| API quota categories | Quotas |\n|--------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Queries per day | You can make up to 100,000 queries per day. If you need capacity beyond this limit, you can send a request from the [Quotas](https://console.cloud.google.com/iam-admin/quotas) page in the Google Cloud console |\n| Group description, maximum size | You can enter a group description up to 4,096 characters. |\n| Group name, maximum size | A group's name can have up to 60 characters. |\n| `defaultMessageDenyNotificationText` | The notification text can be up to 10,000 characters. To learn more about the `defaultMessageDenyNotificationText` property, see the [API reference](/workspace/admin/groups-settings/v1/reference). |\n| `maxMessageBytes` | The default maximum message size is 1MB. To learn more about the `maxMessageBytes` property, see the [API reference](/workspace/admin/groups-settings/v1/reference). |\n\nLimits\n------\n\n| Types of limits | Limitations and guidelines |\n|---------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Data format, default | The default data format is JSON. The API also supports the Atom format. Both the JSON and Atom data formats support full read-write capabilities. For more information, see [JSON and Atom data formats](/workspace/admin/groups-settings/concepts#json-and-atom-data-formats). |\n| Groups Settings API, enablement | You must turn on the Directory API before making calls to the Groups Settings API For more information, see [Enable Google Workspace APIs.](/workspace/guides/enable-apis) |"]]