GET api/v3/addressbook/contacts?paging.Page={paging.Page}&paging.NoOfRecords={paging.NoOfRecords}&Inheritance={Inheritance}&sort.Field={sort.Field}&sort.Direction={sort.Direction}
This method returns a list of all the contacts stored on the customer’s account if no parameters are provided. For each contact it will include their first name, last name, mobile number, email address and the type of authentication the contact has chosen if used with an SMS+ message. This method allows the list to be page for large address books and filtered to reduce the size of the data returned.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
AddressBookGroupID |
Allows to restrict all contacts that belong to a certain group. |
globally unique identifier |
None. |
EmailAddress |
Email address of the person in addressbook |
string |
None. |
FirstName |
First name of the person in addressbook |
string |
None. |
LastName |
Last name of the person in addressbook |
string |
None. |
MobilePhone |
Comma delimited list of mobile numbers to search for in the addressbook |
string |
None. |
PersonNumbers |
List all the person numbers to display the contact details. |
Collection of integer |
None. |
Page |
The Page number for the report. |
integer |
Required |
NoOfRecords |
The number of records to return per page. |
integer |
Required |
Inheritance |
Flag to include all inherited contacts. Setting to false will result in only account owned contacts (Default : true) |
boolean |
Default value is True |
Field |
The field to be sorted. |
ContactField |
None. |
Direction |
Ascending or Descending order |
Direction |
None. |
Body Parameters
None.
Response Information
Resource Description
List of contacts of the authenticated user.
ResponseOfAddressBookResponseV2Name | Description | Type | Additional information |
---|---|---|---|
Error | Error |
None. |
|
ResponseData | ResponseDataOfAddressBookResponseV2 |
None. |
Response Formats
application/json, text/json
{ "Error": { "ErrorCode": "sample string 1", "ErrorReason": "sample string 2" }, "ResponseData": { "Identification": { "UserId": "sample string 1" }, "Result": "sample string 1", "Detail": { "Contacts": [ { "PersonNumber": 3, "DateCreated": "2024-10-09T05:10:20.8724348+00:00", "DateModified": "2024-10-09T05:10:20.8724348+00:00", "EmailAddress": "sample string 9", "FirstName": "sample string 6", "Groups": "sample string 2", "Inherited": true, "LastName": "sample string 7", "LastModifiedBy": "sample string 4", "MobilePhone": "sample string 8", "LoginType": 11, "OwnerAccountID": "9e42a269-e89c-4f0b-bd12-bb82d34aa634", "Password": "sample string 10", "PermissionLevel": 0, "Validated": true }, { "PersonNumber": 3, "DateCreated": "2024-10-09T05:10:20.8724348+00:00", "DateModified": "2024-10-09T05:10:20.8724348+00:00", "EmailAddress": "sample string 9", "FirstName": "sample string 6", "Groups": "sample string 2", "Inherited": true, "LastName": "sample string 7", "LastModifiedBy": "sample string 4", "MobilePhone": "sample string 8", "LoginType": 11, "OwnerAccountID": "9e42a269-e89c-4f0b-bd12-bb82d34aa634", "Password": "sample string 10", "PermissionLevel": 0, "Validated": true } ], "ContactsCount": 1 } } }
application/xml, text/xml
<ResponseOfAddressBookResponseV2 xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Error> <ErrorCode>sample string 1</ErrorCode> <ErrorReason>sample string 2</ErrorReason> </Error> <ResponseData> <Result>sample string 1</Result> <Identification> <UserId>sample string 1</UserId> </Identification> <Detail> <Contacts> <AddressBookResponse> <FirstName>sample string 6</FirstName> <LastName>sample string 7</LastName> <MobilePhone>sample string 8</MobilePhone> <EmailAddress>sample string 9</EmailAddress> <Password>sample string 10</Password> <LoginType>11</LoginType> <Validated>true</Validated> <PersonNumber>3</PersonNumber> <DateCreated>2024-10-09T05:10:20.8724348+00:00</DateCreated> <DateModified>2024-10-09T05:10:20.8724348+00:00</DateModified> <LastModifiedBy>sample string 4</LastModifiedBy> <OwnerAccountID>9e42a269-e89c-4f0b-bd12-bb82d34aa634</OwnerAccountID> <Inherited>true</Inherited> <PermissionLevel>NONE</PermissionLevel> <Groups>sample string 2</Groups> </AddressBookResponse> <AddressBookResponse> <FirstName>sample string 6</FirstName> <LastName>sample string 7</LastName> <MobilePhone>sample string 8</MobilePhone> <EmailAddress>sample string 9</EmailAddress> <Password>sample string 10</Password> <LoginType>11</LoginType> <Validated>true</Validated> <PersonNumber>3</PersonNumber> <DateCreated>2024-10-09T05:10:20.8724348+00:00</DateCreated> <DateModified>2024-10-09T05:10:20.8724348+00:00</DateModified> <LastModifiedBy>sample string 4</LastModifiedBy> <OwnerAccountID>9e42a269-e89c-4f0b-bd12-bb82d34aa634</OwnerAccountID> <Inherited>true</Inherited> <PermissionLevel>NONE</PermissionLevel> <Groups>sample string 2</Groups> </AddressBookResponse> </Contacts> <ContactsCount>1</ContactsCount> </Detail> </ResponseData> </ResponseOfAddressBookResponseV2>