Google Contacts

App · Contact Management · 15 actions

Manage your Google Contacts.

Actions

ActionWhat it does
Add contact to labelPut a contact under one of your labels, such as Customers.
Create contactCreate a new contact in Google Contacts.
Create labelMake a new label to group contacts under.
Delete contactDelete a contact from Google Contacts.
Delete labelDelete one of your labels.
Find contactsFind contacts by name, email address, phone number or company, such as the contact to update for an email that just arrived.
Find or create contactFind the contact with an email address, and add them as a new contact if there's none, so a workflow never makes the same person twice.
Get contactLook up a single contact by its ID.
List contactsList contacts from your Google account.
List contacts in labelList the contacts under one of your labels, such as every contact labeled Customers, with each one's name, email and phone.
List labelsList the labels you made in Google Contacts, with how many contacts are under each.
Remove contact from labelTake a contact out from under one of your labels.
Rename labelGive one of your labels a new name.
Update contactUpdate an existing contact in Google Contacts.
Update contact's company and notesSet a contact's company, job title, notes or address.

Add contact to label

Put a contact under one of your labels, such as Customers. A contact already under it stays as it is.

Inputs

Contact IDresource_nametextRequired
The ID of the contact, for example people/c123456789, as Find contacts, Create contact or a trigger gives it.
LabellabeltextRequired
The label to put the contact under.

Outputs

labeltext
The label's ID, for example contactGroups/1a2b3c
resource_nametext
The contact's ID
Example output
{
  "label": "contactGroups/1a2b3c4d5e",
  "resource_name": "people/c123456789"
}

Create contact

Create a new contact in Google Contacts.

Inputs

First namegiven_nametextRequired
First name of the contact.
Last namefamily_nametext
Last name of the contact.
Emailemailtext
Email address of the contact.
Phonephonetext
Phone number of the contact.

Outputs

Response envelope; the payload is in the "resource_name" field.

resource_nametext
Resource name of the created contact
Example output
{
  "resource_name": "people/c987654321"
}

Create label

Make a new label to group contacts under.

Inputs

NamenametextRequired
What to call the label. No two labels can share a name.

Outputs

labeltext
The new label's ID, for Add contact to label
nametext
The label's name
Example output
{
  "label": "contactGroups/1a2b3c4d5e",
  "name": "Customers"
}

Delete contact

Delete a contact from Google Contacts.

Inputs

Contact IDresource_nametextRequired
The ID of the contact to delete, for example people/c123456789

Outputs

statustext
Deletion status.
Example output
{
  "status": "deleted"
}

Delete label

Delete one of your labels. The contacts under it are kept.

Inputs

LabellabeltextRequired
The label to delete.

Outputs

labeltext
The deleted label's ID
statustext
Deletion status
Example output
{
  "label": "contactGroups/1a2b3c4d5e",
  "status": "deleted"
}

Find contacts

Find contacts by name, email address, phone number or company, such as the contact to update for an email that just arrived. Words match from their start: 'Sam' finds Sam Lee.

Inputs

Search forquerytextRequired
A name, email address, phone number or company, or the start of one.
Maximum contactslimitnumber
Most contacts to return, from 1 to 30.From 1 to 30. Default: 10.

Outputs

contactslist
The matching contacts, best match first
countnumber
How many contacts matched
Example output
{
  "contacts": [
    {
      "email": "jane@acme.com",
      "fullName": "Jane Doe",
      "phone": "+1234567890",
      "resourceName": "people/c123456789"
    }
  ],
  "count": 1
}

Find or create contact

Find the contact with an email address, and add them as a new contact if there's none, so a workflow never makes the same person twice.

Inputs

EmailemailtextRequired
The person's email address, used to look them up.
First namegiven_nametext
First name for a new contact. Leave blank to use the part of the email before the @.
Last namefamily_nametext
Last name for a new contact.
Phonephonetext
Phone number for a new contact.

Outputs

createdtrue/false
Whether the contact was new and added just now
emailtext
Primary email
fullNametext
Full name
phonetext
Primary phone
resourceNametext
The contact's ID, for example people/c123456789
Example output
{
  "created": false,
  "email": "john@example.com",
  "fullName": "John Smith",
  "phone": "+1234567890",
  "resourceName": "people/c123456789"
}

Get contact

Look up a single contact by its ID.

Inputs

Contact IDresource_nametextRequired
The ID of the contact, for example people/c123456789

Outputs

Response envelope; the payload is in the "contact" field.

contactobject
Example output
{
  "contact": {
    "email": "john@example.com",
    "etag": "%EgUBAgkLNz4aBAECBQciDFJJREZyWjJIMDdBTT0=",
    "fullName": "John Smith",
    "phone": "+1234567890",
    "resourceName": "people/c123456789"
  }
}

List contacts

List contacts from your Google account.

Inputs

Maximum contactspage_sizenumber
Maximum number of contacts to return (1-1000, default 25)

Outputs

Response envelope; the payload is in the "contacts" field.

contactslist
List of contacts
Example output
{
  "contacts": [
    {
      "email": "john@example.com",
      "fullName": "John Smith",
      "phone": "+1234567890",
      "resourceName": "people/c123456789"
    }
  ]
}

List contacts in label

List the contacts under one of your labels, such as every contact labeled Customers, with each one's name, email and phone.

Inputs

LabellabeltextRequired
The label whose contacts to list.
Maximum contactslimitnumber
Most contacts to return (1-200, default 50).From 1 to 200. Default: 50.

Outputs

contactslist
The contacts under the label
countnumber
How many contacts came back
labeltext
The label's ID
nametext
The label's name
Example output
{
  "contacts": [
    {
      "email": "john@example.com",
      "fullName": "John Smith",
      "phone": "+1234567890",
      "resourceName": "people/c123456789"
    }
  ],
  "count": 1,
  "label": "contactGroups/1a2b3c4d5e",
  "name": "Customers"
}

List labels

List the labels you made in Google Contacts, with how many contacts are under each.

Inputs

None.

Outputs

countnumber
How many labels
labelslist
Your labels, A to Z
Example output
{
  "count": 1,
  "labels": [
    {
      "contact_count": 12,
      "label": "contactGroups/1a2b3c4d5e",
      "name": "Customers"
    }
  ]
}

Remove contact from label

Take a contact out from under one of your labels. The contact itself is kept.

Inputs

Contact IDresource_nametextRequired
The ID of the contact, for example people/c123456789, as Find contacts, Create contact or a trigger gives it.
LabellabeltextRequired
The label to take the contact out of.

Outputs

labeltext
The label's ID, for example contactGroups/1a2b3c
resource_nametext
The contact's ID
Example output
{
  "label": "contactGroups/1a2b3c4d5e",
  "resource_name": "people/c123456789"
}

Rename label

Give one of your labels a new name. The contacts under it stay under it.

Inputs

LabellabeltextRequired
The label to rename.
New namenametextRequired
The label's new name. No two labels can share a name.

Outputs

labeltext
The label's ID
nametext
The label's new name
Example output
{
  "label": "contactGroups/1a2b3c4d5e",
  "name": "Past customers"
}

Update contact

Update an existing contact in Google Contacts.

Inputs

Contact IDresource_nametextRequired
The ID of the contact to update, for example people/c123456789
First namegiven_nametext
New first name of the contact
Last namefamily_nametext
New last name of the contact
Emailemailtext
New email address of the contact
Phonephonetext
New phone number of the contact

Outputs

Response envelope; the payload is in the "resource_name" field.

resource_nametext
Resource name of the updated contact
Example output
{
  "resource_name": "people/c123456789"
}

Update contact's company and notes

Set a contact's company, job title, notes or address. Notes and address replace the ones the contact had. Fields left blank stay as they are.

Inputs

Contact IDresource_nametextRequired
The ID of the contact, for example people/c123456789, as Find contacts, Create contact or a trigger gives it.
Companycompanytext
Where the person works.
Job titlejob_titletext
The person's job title.
Notesnotestext
Notes about the person, replacing any they had.
Addressaddresstext
The person's address, written out in full, replacing any they had.

Outputs

addresstext
Address
companytext
Company
job_titletext
Job title
notestext
Notes
resource_nametext
The contact's ID
Example output
{
  "address": "1 Main St, Springfield",
  "company": "Acme Ltd",
  "job_title": "Office manager",
  "notes": "Met at the spring fair.",
  "resource_name": "people/c123456789"
}

On this page