Google People API - Contacts logo

Google People API - Contacts

Interact programmatically with a user's Google contacts using the People API. Supports reading, creating, updating, deleting, searching, and batch operations on contacts, with field selection and pagination. OAuth2 is required for all operations.

vv18 methods

Methods

Each method below is pulled directly from the OpenAPI file.

GET/people/me/connectionslistContacts

Retrieves a list of contacts for the authenticated user. Specify which details to include via the `personFields` parameter (e.g., names, email addresses, phone numbers). Supports results pagination.

Google People API - Contacts logo

Parameters

personFieldsqueryrequired

Comma-separated list of fields to return, e.g., 'names,emailAddresses'.

pageTokenquery

Token to retrieve a specific page of results.

Responses

200

A list of contacts with the requested fields.

DELETE/people/{resourceName}:deleteContactdeleteContact

Permanently deletes a contact identified by its resource name from the user's Google Contacts.

Google People API - Contacts logo

Parameters

resourceNamepathrequired

Resource name of the contact to delete.

Responses

200

Contact deleted successfully.

PATCH/people/{resourceName}:updateContactupdateContact

Updates a contact by resource name. The latest `etag` value must be provided for concurrency control. Specify fields to update with `updatePersonFields`.

Google People API - Contacts logo

Parameters

resourceNamepathrequired

Resource name of the contact (e.g., 'people/c123').

updatePersonFieldsqueryrequired

Comma-separated fields to update (e.g., 'emailAddresses').

Request body

application/json

Responses

200

Updated contact details.

POST/people:batchCreateContactsbatchCreateContacts

Create multiple contacts in a single request by providing an array of contact objects.

Google People API - Contacts logo

Request body

application/json

Responses

200

Details of batch created contacts.

POST/people:batchDeleteContactsbatchDeleteContacts

Delete multiple contacts by specifying an array of resource names.

Google People API - Contacts logo

Request body

application/json

Responses

200

Contacts deleted successfully.

POST/people:batchUpdateContactsbatchUpdateContacts

Update multiple existing contacts at once. Each contact object must include `etag` and the fields to update, as well as `resourceName`.

Google People API - Contacts logo

Parameters

updateMaskqueryrequired

Comma-separated fields to update (e.g., 'names,emailAddresses').

readMaskqueryrequired

Comma-separated fields to return in response (e.g., 'names,emailAddresses').

Request body

application/json

Responses

200

Batch updated contact details.

POST/people:createContactcreateContact

Creates a new contact. Supply details such as names and email addresses in the request body. The new contact is added to the user's Google Contacts.

Google People API - Contacts logo

Request body

application/json

Responses

200

Newly created contact details.

GET/people:searchContactssearchContacts

Searches contacts for the authenticated user matching a query string (e.g., name or email). The returned fields are specified by the `readMask` query parameter.

Google People API - Contacts logo

Parameters

queryqueryrequired

Text query for searching contacts (e.g., part of a name or email address).

readMaskqueryrequired

Comma-separated fields to return, e.g., 'names,emailAddresses'.

Responses

200

Matching contacts for the search query.

YAML

Copy and paste the full spec from the textarea below.