List all contact groups owned by the authenticated user. Members of the contact groups are not populated.
HTTP request
GET https://people.googleapis.com/v1/contactGroups
The URL uses gRPC Transcoding syntax.
Query parameters
Parameters | |
---|---|
pageToken |
Optional. The nextPageToken value returned from a previous call to contactGroups.list. Requests the next page of resources. |
pageSize |
Optional. The maximum number of resources to return. Valid values are between 1 and 1000, inclusive. Defaults to 30 if not set or set to 0. |
syncToken |
Optional. A sync token, returned by a previous call to |
groupFields |
Optional. A field mask to restrict which fields on the group are returned. Defaults to
|
Request body
The request body must be empty.
Response body
The response to a list contact groups request.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"contactGroups": [
{
object ( |
Fields | |
---|---|
contactGroups[] |
The list of contact groups. Members of the contact groups are not populated. |
totalItems |
The total number of items in the list without pagination. |
nextPageToken |
The token that can be used to retrieve the next page of results. |
nextSyncToken |
The token that can be used to retrieve changes since the last request. |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/contacts
https://www.googleapis.com/auth/contacts.readonly
For more information, see the Authorization guide.