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.
Methods
Each method below is pulled directly from the OpenAPI file.
/people/me/connectionslistContactsRetrieves 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.
Parameters
Comma-separated list of fields to return, e.g., 'names,emailAddresses'.
Token to retrieve a specific page of results.
Responses
A list of contacts with the requested fields.
/people/{resourceName}:deleteContactdeleteContactPermanently deletes a contact identified by its resource name from the user's Google Contacts.
Parameters
Resource name of the contact to delete.
Responses
Contact deleted successfully.
/people/{resourceName}:updateContactupdateContactUpdates a contact by resource name. The latest `etag` value must be provided for concurrency control. Specify fields to update with `updatePersonFields`.
Parameters
Resource name of the contact (e.g., 'people/c123').
Comma-separated fields to update (e.g., 'emailAddresses').
Request body
Responses
Updated contact details.
/people:batchCreateContactsbatchCreateContactsCreate multiple contacts in a single request by providing an array of contact objects.
Request body
Responses
Details of batch created contacts.
/people:batchDeleteContactsbatchDeleteContactsDelete multiple contacts by specifying an array of resource names.
Request body
Responses
Contacts deleted successfully.
/people:batchUpdateContactsbatchUpdateContactsUpdate multiple existing contacts at once. Each contact object must include `etag` and the fields to update, as well as `resourceName`.
Parameters
Comma-separated fields to update (e.g., 'names,emailAddresses').
Comma-separated fields to return in response (e.g., 'names,emailAddresses').
Request body
Responses
Batch updated contact details.
/people:createContactcreateContactCreates 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.
Request body
Responses
Newly created contact details.
/people:searchContactssearchContactsSearches contacts for the authenticated user matching a query string (e.g., name or email). The returned fields are specified by the `readMask` query parameter.
Parameters
Text query for searching contacts (e.g., part of a name or email address).
Comma-separated fields to return, e.g., 'names,emailAddresses'.
Responses
Matching contacts for the search query.
YAML
Copy and paste the full spec from the textarea below.