# Google Contacts

> Manage your Google Contacts.

App · Contact Management · 5 actions. Web page: https://docs.lodol.com/docs/integrations/google-contacts

## Actions

### Create contact

Create a new contact in Google Contacts.

**Inputs**

- First name (`given_name`, text, required): First name of the contact.
- Last name (`family_name`, text): Last name of the contact.
- Email (`email`, text): Email address of the contact.
- Phone (`phone`, text): Phone number of the contact.

**Outputs**: Response envelope; the payload is in the "resource_name" field.

- `resource_name` (text): Resource name of the created contact

**Example output**

```json
{
  "resource_name": "people/c987654321"
}
```

### Delete contact

Delete a contact from Google Contacts.

**Inputs**

- Contact ID (`resource_name`, text, required): The ID of the contact to delete, for example people/c123456789

**Outputs**

- `status` (text): Deletion status.

**Example output**

```json
{
  "status": "deleted"
}
```

### Get contact

Look up a single contact by its ID.

**Inputs**

- Contact ID (`resource_name`, text, required): The ID of the contact, for example people/c123456789

**Outputs**: Response envelope; the payload is in the "contact" field.

- `contact` (object)

**Example output**

```json
{
  "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 contacts (`page_size`, number): Maximum number of contacts to return (1-1000, default 25)

**Outputs**: Response envelope; the payload is in the "contacts" field.

- `contacts` (list): List of contacts

**Example output**

```json
{
  "contacts": [
    {
      "email": "john@example.com",
      "fullName": "John Smith",
      "phone": "+1234567890",
      "resourceName": "people/c123456789"
    }
  ]
}
```

### Update contact

Update an existing contact in Google Contacts.

**Inputs**

- Contact ID (`resource_name`, text, required): The ID of the contact to update, for example people/c123456789
- First name (`given_name`, text): New first name of the contact
- Last name (`family_name`, text): New last name of the contact
- Email (`email`, text): New email address of the contact
- Phone (`phone`, text): New phone number of the contact

**Outputs**: Response envelope; the payload is in the "resource_name" field.

- `resource_name` (text): Resource name of the updated contact

**Example output**

```json
{
  "resource_name": "people/c123456789"
}
```
