Get the Google Contacts import
GET
/api/v1/google-contacts/import
const url = 'https://digize.com/api/v1/google-contacts/import';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”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
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
null
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
null
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
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
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
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
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
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}