Skip to content

Get the Google Contacts import

GET
/api/v1/google-contacts/import
curl --request GET \
--url https://digize.com/api/v1/google-contacts/import \
--header 'x-api-key: <x-api-key>'

The import from Google Contacts into the CRM: the account it reads, a preview’s counts, the last import’s, and the run in progress.

Needs the crm:read permission.

Done

Media typeapplication/json
object
account
required

The Google account the import reads.

string | null
connected
required

Whether Google Contacts is connected.

boolean
running
required
Any of:
object
mode
required
string
Allowed values: preview import
startedAt
required
string format: date-time
done
required

People read so far.

number
total
required
number | null
preview
required
Any of:
object
at
required
string format: date-time
people
required
number
add
required

New contacts it would add.

number
merge
required

People the duplicate rule matches to a contact already here.

number
skip
required
number
groups
required

Contact groups that become tags, the biggest first.

Array<object>
object
name
required
string
people
required
number
lastImport
required
Any of:
object
at
required
string format: date-time
full
required

Whether it read every contact, rather than what changed.

boolean
people
required

People read, less those deleted in Google.

number
created
required
number
updated
required
number
unchanged
required
number
skipped
required

People with no name, email or phone number to keep.

number
importedAt
required
Any of:
string format: date-time
error
required

Why the last run stopped.

string | null

Example

{
"running": {
"mode": "preview"
}
}

What was sent isn’t valid (invalid).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

No key, or one that’s unknown, off or expired.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

The key doesn’t have the permission this needs.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Nothing has that id (not_found).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Over the rate limit; see retry-after.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}