Request contacts
You can retrieve contacts from a user's main contact folder and from subfolders that the user has created. Deleted contacts are not returned. If the FolderId is not provided by the client in the request, contacts are retrieved from the main folder.
- Display name
- Email address
- Given name
- Surname
POST https://localhost:8443/api/contact
HTTP/1.1Content-Type: application/json
X-Good-GD-AuthToken: <GDAuthToken>
{ "Account": "jamie01@ex365.example.com",
"MaxNumber": 100,
"Offset": 0,
"UserShape": ["Basic"],
"FolderId": "AQMkADk0YzU4MjdkLWU1YjktNGE0OC1iZDczKI0Kuc7BmRwA..."" (optional)
}
{
"LookupInfo":
{
"MoreAvailable": true,
"TotalCount": 150,
"NextPageOffset": 100,
"Size": 100,
"Offset": 0
},
"Contacts": [
{
"DisplayName": "user1_02",
"EmailAddress": "user1_02@example.com",
"GivenName": "user1",
"Surname": "02",
"UniqueId" : "AAMkADg2Y2IxMzAwLWJmZmYtAAMkADg2Y..."
},
{
"DisplayName": "user2_03",
"EmailAddress": "user2_03@example.com",
"GivenName": "user2",
"Surname": "03",
"UniqueId" : "AAMkADg2Y2IxMzAwLWJmZmYtNGJjMi1iN..."
},
...
]
}
POST https://localhost:8443/api/contact HTTP/1.1
Content-Type: application/json
X-Good-GD-AuthToken: <GDAuthToken>
{ "Account": "jamie01@ex365.example.com",
"MaxNumber": 100,
"Offset": 100,
"UserShape": ["Basic"],
"FolderId": "AQMkADk0YzU4MjdkLWU1YjktNGE0OC1iZDczKI0Kuc7BmRwA..."" (optional)
}
{
"LookupInfo":
{
"MoreAvailable": false,
"TotalCount": 150,
"NextPageOffset": null,
"Size": 50,
"Offset": 100
},
"Contacts": [
{
"DisplayName": "user55_05",
"EmailAddress": "user55@example.com",
"GivenName": "user55",
"Surname": "05",
"UniqueId" : "tNGJjMi1iNAAMkADg2Y2IxMzAwLWJmZmY..."
},
{
"DisplayName": "user56_06",
"EmailAddress": "user56@example.com",
"GivenName": "user56",
"Surname": "06",
"UniqueId" : "AAMkADg2Y2IxMmZmYtNGJjMi1iNzAwLWJ..."
},
...
}