Google People Contact Groups API

The Contact Groups API from Google People — 4 operation(s) for contact groups.

GitHub OpenAPI

Operations 7

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /v1/contactGroups Create a contact group · Create contactGroups #
Ask an LLM
“How do I create a new contact group?”
“Can I create a group with a duplicate name?”
Tell an agent
Create a contact group named {name}.
Create a contact group {name} with fields {fields}.
GET /v1/contactGroups List my contact groups · List contactGroups #
Ask an LLM
“Which contact groups do I have?”
“Can I list only the groups I own?”
Tell an agent
List my contact groups.
List my contact groups with fields {fields}.
GET /v1/contactGroups/{contactGroupsId} Get a contact group · Get contactGroups #
Ask an LLM
“How do I look up one contact group by name?”
“Can I see how many members a group has?”
Tell an agent
Get contact group {group}.
Show {group} with at most {max} members.
DELETE /v1/contactGroups/{contactGroupsId} Delete a contact group · Delete contactGroups #
Ask an LLM
“How do I delete a contact group?”
“Can I delete the contacts inside a group at the same time?”
Tell an agent destructive · confirm first
Delete contact group {group}.
Delete group {group} and its contacts ({delete}).
PUT /v1/contactGroups/{contactGroupsId} Rename a contact group · Update contactGroups #
Ask an LLM
“How do I rename an existing contact group?”
“Can I change a group's name to one that already exists?”
Tell an agent
Rename contact group {group} to {name}.
Update group {group} with fields {fields}.
GET /v1/contactGroups:batchGet Get several contact groups at once · Batch get contactGroups #
Ask an LLM
“Can I fetch multiple contact groups by name in one request?”
“What's the maximum number of groups I can look up together?”
Tell an agent
Get contact groups {names}.
Fetch groups {names} with at most {max} members each.
POST /v1/contactGroups/{contactGroupsId}/members:modify Add or remove members of a group · Modify members #
Ask an LLM
“How do I add people to a contact group?”
“Can I remove someone from a group?”
Tell an agent
Add {people} to contact group {group}.
Remove {people} from group {group}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/google-people:google-people-contact-groups-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

google-people-contact-groups-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: People Contact Groups API
  version: v1
  description: Generated from Google's published Discovery document for People API (people v1, revision 20261110). 7 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://people.googleapis.com
tags:
- name: Contact Groups
paths:
  /v1/contactGroups:
    post:
      operationId: people.contactGroups.create
      summary: Create contactGroups
      description: Create a new contact group owned by the authenticated user. Created contact group names must be unique to the users contact groups. Attempting to create a group with a duplicate name will return a HTTP 409 error. Mutate requests for the same user should be sent sequentially to avoid increased latency and failures.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateContactGroupRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContactGroup'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/contacts
      - apiKey: []
      tags:
      - Contact Groups
    get:
      operationId: people.contactGroups.list
      summary: List contactGroups
      description: List all contact groups owned by the authenticated user. Members of the contact groups are not populated.
      parameters:
      - name: groupFields
        in: query
        required: false
        description: 'Optional. A field mask to restrict which fields on the group are returned. Defaults to `metadata`, `groupType`, `memberCount`, and `name` if not set or set to empty. Valid fields are: * clientData * groupType * memberCount * metadata * name'
        schema:
          type: string
          format: google-fieldmask
      - name: pageSize
        in: query
        required: false
        description: 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.
        schema:
          type: integer
          format: int32
      - name: pageToken
        in: query
        required: false
        description: Optional. The next_page_token value returned from a previous call to [ListContactGroups](/people/api/rest/v1/contactgroups/list). Requests the next page of resources.
        schema:
          type: string
      - name: syncToken
        in: query
        required: false
        description: Optional. A sync token, returned by a previous call to `contactgroups.list`. Only resources changed since the sync token was created will be returned.
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListContactGroupsResponse'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/contacts
        - https://www.googleapis.com/auth/contacts.readonly
      - apiKey: []
      tags:
      - Contact Groups
  /v1/contactGroups/{contactGroupsId}:
    get:
      operationId: people.contactGroups.get
      summary: Get contactGroups
      description: Get a specific contact group owned by the authenticated user by specifying a contact group resource name.
      parameters:
      - name: contactGroupsId
        in: path
        required: true
        description: Resource name segment (contactGroupsId).
        schema:
          type: string
      - name: groupFields
        in: query
        required: false
        description: 'Optional. A field mask to restrict which fields on the group are returned. Defaults to `metadata`, `groupType`, `memberCount`, and `name` if not set or set to empty. Valid fields are: * clientData * groupType * memberCount * metadata * name'
        schema:
          type: string
          format: google-fieldmask
      - name: maxMembers
        in: query
        required: false
        description: Optional. Specifies the maximum number of members to return. Defaults to 0 if not set, which will return zero members.
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContactGroup'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/contacts
        - https://www.googleapis.com/auth/contacts.readonly
      - apiKey: []
      tags:
      - Contact Groups
    delete:
      operationId: people.contactGroups.delete
      summary: Delete contactGroups
      description: Delete an existing contact group owned by the authenticated user by specifying a contact group resource name. Mutate requests for the same user should be sent sequentially to avoid increased latency and failures.
      parameters:
      - name: contactGroupsId
        in: path
        required: true
        description: Resource name segment (contactGroupsId).
        schema:
          type: string
      - name: deleteContacts
        in: query
        required: false
        description: Optional. Set to true to also delete the contacts in the specified group.
        schema:
          type: boolean
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Empty'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/contacts
      - apiKey: []
      tags:
      - Contact Groups
    put:
      operationId: people.contactGroups.update
      summary: Update contactGroups
      description: Update the name of an existing contact group owned by the authenticated user. Updated contact group names must be unique to the users contact groups. Attempting to create a group with a duplicate name will return a HTTP 409 error. Mutate requests for the same user should be sent sequentially to avoid increased latency and failures.
      parameters:
      - name: contactGroupsId
        in: path
        required: true
        description: Resource name segment (contactGroupsId).
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateContactGroupRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContactGroup'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/contacts
      - apiKey: []
      tags:
      - Contact Groups
  /v1/contactGroups:batchGet:
    get:
      operationId: people.contactGroups.batchGet
      summary: Batch get contactGroups
      description: Get a list of contact groups owned by the authenticated user by specifying a list of contact group resource names.
      parameters:
      - name: groupFields
        in: query
        required: false
        description: 'Optional. A field mask to restrict which fields on the group are returned. Defaults to `metadata`, `groupType`, `memberCount`, and `name` if not set or set to empty. Valid fields are: * clientData * groupType * memberCount * metadata * name'
        schema:
          format: google-fieldmask
          type: string
      - name: maxMembers
        in: query
        required: false
        description: Optional. Specifies the maximum number of members to return for each group. Defaults to 0 if not set, which will return zero members.
        schema:
          format: int32
          type: integer
      - name: resourceNames
        in: query
        required: false
        description: Required. The resource names of the contact groups to get. There is a maximum of 200 resource names.
        schema:
          type: array
          items:
            type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchGetContactGroupsResponse'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/contacts
        - https://www.googleapis.com/auth/contacts.readonly
      - apiKey: []
      tags:
      - Contact Groups
  /v1/contactGroups/{contactGroupsId}/members:modify:
    post:
      operationId: people.contactGroups.members.modify
      summary: Modify members
      description: Modify the members of a contact group owned by the authenticated user. The only system contact groups that can have members added are `contactGroups/myContacts` and `contactGroups/starred`. Other system contact groups are deprecated and can only have contacts removed.
      parameters:
      - name: contactGroupsId
        in: path
        required: true
        description: Resource name segment (contactGroupsId).
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ModifyContactGroupMembersRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModifyContactGroupMembersResponse'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/contacts
      - apiKey: []
      tags:
      - Contact Groups
components:
  schemas:
    ModifyContactGroupMembersRequest:
      description: A request to modify an existing contact group's members. Contacts can be removed from any group but they can only be added to a user group or "myContacts" or "starred" system groups.
      properties:
        resourceNamesToAdd:
          description: Optional. The resource names of the contact people to add in the form of `people/{person_id}`. The total number of resource names in `resource_names_to_add` and `resource_names_to_remove` must be less than or equal to 1000.
          items:
            type: string
          type: array
        resourceNamesToRemove:
          items:
            type: string
          type: array
          description: Optional. The resource names of the contact people to remove in the form of `people/{person_id}`. The total number of resource names in `resource_names_to_add` and `resource_names_to_remove` must be less than or equal to 1000.
      type: object
    ModifyContactGroupMembersResponse:
      properties:
        notFoundResourceNames:
          items:
            type: string
          description: The contact people resource names that were not found.
          type: array
        canNotRemoveLastContactGroupResourceNames:
          type: array
          items:
            type: string
          description: The contact people resource names that cannot be removed from their last contact group.
      description: The response to a modify contact group members request.
      type: object
    GoogleRpcError:
      type: object
      description: The error envelope every Google API returns.
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
            message:
              type: string
            status:
              type: string
            details:
              type: array
              items:
                type: object
    CreateContactGroupRequest:
      type: object
      description: A request to create a new contact group.
      properties:
        readGroupFields:
          description: 'Optional. A field mask to restrict which fields on the group are returned. Defaults to `metadata`, `groupType`, and `name` if not set or set to empty. Valid fields are: * clientData * groupType * metadata * name'
          format: google-fieldmask
          type: string
        contactGroup:
          $ref: '#/components/schemas/ContactGroup'
          description: Required. The contact group to create.
    BatchGetContactGroupsResponse:
      type: object
      properties:
        responses:
          description: The list of responses for each requested contact group resource.
          items:
            $ref: '#/components/schemas/ContactGroupResponse'
          type: array
      description: The response to a batch get contact groups request.
    Empty:
      properties: {}
      type: object
      description: 'A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }'
    UpdateContactGroupRequest:
      properties:
        contactGroup:
          $ref: '#/components/schemas/ContactGroup'
          description: Required. The contact group to update.
        readGroupFields:
          format: google-fieldmask
          type: string
          description: 'Optional. A field mask to restrict which fields on the group are returned. Defaults to `metadata`, `groupType`, and `name` if not set or set to empty. Valid fields are: * clientData * groupType * memberCount * metadata * name'
        updateGroupFields:
          description: 'Optional. A field mask to restrict which fields on the group are updated. Multiple fields can be specified by separating them with commas. Defaults to `name` if not set or set to empty. Updated fields are replaced. Valid values are: * clientData * name'
          format: google-fieldmask
          type: string
      description: A request to update an existing user contact group. All updated fields will be replaced.
      type: object
    GroupClientData:
      type: object
      properties:
        value:
          type: string
          description: The client specified value of the client data.
        key:
          description: The client specified key of the client data.
          type: string
      description: Arbitrary client data that is populated by clients. Duplicate keys and values are allowed.
    ContactGroupMetadata:
      properties:
        deleted:
          type: boolean
          readOnly: true
          description: Output only. True if the contact group resource has been deleted. Populated only for [`ListContactGroups`](/people/api/rest/v1/contactgroups/list) requests that include a sync token.
        updateTime:
          description: Output only. The time the group was last updated.
          format: google-datetime
          readOnly: true
          type: string
      type: object
      description: The metadata about a contact group.
    Status:
      description: 'The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).'
      type: object
      properties:
        message:
          type: string
          description: A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
        details:
          items:
            additionalProperties:
              description: Properties of the object. Contains field @type with type URL.
            type: object
          description: A list of messages that carry the error details. There is a common set of message types for APIs to use.
          type: array
        code:
          type: integer
          format: int32
          description: The status code, which should be an enum value of google.rpc.Code.
    ListContactGroupsResponse:
      properties:
        contactGroups:
          items:
            $ref: '#/components/schemas/ContactGroup'
          type: array
          description: The list of contact groups. Members of the contact groups are not populated.
        nextSyncToken:
          type: string
          description: The token that can be used to retrieve changes since the last request.
        totalItems:
          type: integer
          description: The total number of items in the list without pagination.
          format: int32
        nextPageToken:
          description: The token that can be used to retrieve the next page of results.
          type: string
      description: The response to a list contact groups request.
      type: object
    ContactGroup:
      type: object
      properties:
        memberCount:
          format: int32
          type: integer
          readOnly: true
          description: Output only. The total number of contacts in the group irrespective of max members in specified in the request.
        metadata:
          $ref: '#/components/schemas/ContactGroupMetadata'
          description: Output only. Metadata about the contact group.
        memberResourceNames:
          description: Output only. The list of contact person resource names that are members of the contact group. The field is only populated for GET requests and will only return as many members as `maxMembers` in the get request.
          type: array
          items:
            type: string
          readOnly: true
        formattedName:
          description: Output only. The name translated and formatted in the viewer's account locale or the `Accept-Language` HTTP header locale for system groups names. Group names set by the owner are the same as name.
          readOnly: true
          type: string
        groupType:
          readOnly: true
          type: string
          description: Output only. The contact group type.
          enum:
          - GROUP_TYPE_UNSPECIFIED
          - USER_CONTACT_GROUP
          - SYSTEM_CONTACT_GROUP
        etag:
          type: string
          description: The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the resource. Used for web cache validation.
        name:
          type: string
          description: The contact group name set by the group owner or a system provided name for system groups. For [`contactGroups.create`](/people/api/rest/v1/contactGroups/create) or [`contactGroups.update`](/people/api/rest/v1/contactGroups/update) the name must be unique to the users contact groups. Attempting to create a group with a duplicate name will return a HTTP 409 error.
        resourceName:
          description: The resource name for the contact group, assigned by the server. An ASCII string, in the form of `contactGroups/{contact_group_id}`.
          type: string
        clientData:
          type: array
          description: The group's client data.
          items:
            $ref: '#/components/schemas/GroupClientData'
      description: A contact group.
    ContactGroupResponse:
      description: The response for a specific contact group.
      properties:
        status:
          $ref: '#/components/schemas/Status'
          description: The status of the response.
        requestedResourceName:
          description: The original requested resource name.
          type: string
        contactGroup:
          $ref: '#/components/schemas/ContactGroup'
          description: The contact group.
      type: object
  securitySchemes:
    apiKey:
      type: apiKey
      in: query
      name: key
      description: API key; accepted by methods that do not need user data.
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://accounts.google.com/o/oauth2/auth
          tokenUrl: https://oauth2.googleapis.com/token
          scopes:
            https://www.googleapis.com/auth/contacts.readonly: See and download your contacts
            https://www.googleapis.com/auth/user.addresses.read: View your street addresses
            https://www.googleapis.com/auth/contacts.other.readonly: See and download contact info automatically saved in your "Other contacts"
            https://www.googleapis.com/auth/contacts: See, edit, download, and permanently delete your contacts
            https://www.googleapis.com/auth/user.phonenumbers.read: See and download your personal phone numbers
            https://www.googleapis.com/auth/directory.readonly: See and download your organization's Google Workspace directory
            https://www.googleapis.com/auth/user.gender.read: See your gender
            https://www.googleapis.com/auth/user.emails.read: See and download all of your Google Account email addresses
            https://www.googleapis.com/auth/user.birthday.read: See and download your exact date of birth
            https://www.googleapis.com/auth/userinfo.profile: See your personal info, including any personal info you've made publicly available
            https://www.googleapis.com/auth/userinfo.email: See your primary Google Account email address
            https://www.googleapis.com/auth/user.organization.read: See your education, work history and org info
externalDocs:
  url: https://developers.google.com/people/
x-provenance:
  method: harvested
  publisher: Google
  source: https://people.googleapis.com/$discovery/rest?version=v1
  note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261110)