AI-generated Key Takeaways
- 
          Retrieves a list of contact groups owned by the authenticated user using their resource names. 
- 
          Allows specifying the maximum number of members to return for each group and the fields to include in the response. 
- 
          Requires authorization with either https://www.googleapis.com/auth/contactsorhttps://www.googleapis.com/auth/contacts.readonlyscope.
- 
          Returns a list of responses, each containing the requested resource name, status, and the contact group details if successful. 
- 
          Uses a batch get request to the endpoint https://people.googleapis.com/v1/contactGroups:batchGet.
- HTTP request
- Query parameters
- Request body
- Response body
- Authorization scopes
- ContactGroupResponse
- Try it!
Get a list of contact groups owned by the authenticated user by specifying a list of contact group resource names.
HTTP request
GET https://people.googleapis.com/v1/contactGroups:batchGet
The URL uses gRPC Transcoding syntax.
Query parameters
| Parameters | |
|---|---|
| resourceNames[] | 
 Required. The resource names of the contact groups to get. There is a maximum of 200 resource names. | 
| maxMembers | 
 Optional. Specifies the maximum number of members to return for each group. Defaults to 0 if not set, which will return zero members. | 
| 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 batch get contact groups request.
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
| {
  "responses": [
    {
      object ( | 
| Fields | |
|---|---|
| responses[] | 
 The list of responses for each requested contact group resource. | 
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.
ContactGroupResponse
The response for a specific contact group.
| JSON representation | 
|---|
| { "requestedResourceName": string, "status": { object ( | 
| Fields | |
|---|---|
| requestedResourceName | 
 The original requested resource name. | 
| status | 
 The status of the response. | 
| contactGroup | 
 The contact group. |