Contacts API
Aurinko's Contacts API offers a RESTful interface for syncing contacts from Google, Office 365, etc., with features like CRUD operations, incremental sync, and detailed access.
Last updated
Was this helpful?
Was this helpful?
curl -X POST -H 'Authorization: Bearer <account\_access\_token>'
-G https:/api.aurinko.io/v1/contacts/sync[?awaitReady=false]{
"syncUpdatedToken": "asdfghjklpoiuytrew",
"syncDeletedToken": "zxcvbnmlkjhgfdsaq",
"ready": true
}curl -X GET -H 'Authorization: Bearer <access token>'
-G https:/api.aurinko.io/v1/contacts/sync/updated
-d deltaToken='{syncUpdatedToken}'{
"nextPageToken": "string",
"nextDeltaToken": "string",
"records": [{...}]
}curl -X GET -H 'Authorization: Bearer <access token>'
-G https:/api.aurinko.io/v1/contacts/sync/updated
-d pageToken='{nextPageToken}'curl -H 'Authorization: Bearer <access token>'
-X POST https:/api.aurinko.io/v1/contacts
-d '{
"name": {
"givenName": "John",
"familyName": "Smith"
},
"company": {
"companyName": "ABC Corp",
"officeLocation": "Florida",
"department": "R&D",
"jobTitle": "Manager"
},
"notes": "some background",
"birthday": "2000-09-01",
"keywords": ["Blue"],
"emailAddresses": [
{"address": "john@abccorp.co", "type": "work"}
],
"phoneNumbers": [
{"number": "1234567", "type": "work"},
{"number": "7654321", "type": "mobile"}
],
"addresses": [
{
"street": "300 Lemon Ave #100",
"city": "Walnut",
"state": "CA",
"postalCode": '91789',
"country": "USA",
"type": "work"
}
],
"urls": [
{
"value": "[www.abccorp.co](http://www.abccorp.co)",
"type": "work"
}
]
}'curl -X PATCH -H 'Authorization: Bearer <access token>' -H 'If-Match: <etag>'
https:/api.aurinko.io/v1/contacts/{contId}
-d '{
"name": {
"givenName": "John",
"middleName": "Peter",
"familyName": "Smith"
}
}'