Platform API

<back to all web services

GetConnectedContacts

Returns a list of contacts connected to a user profiles' contact.

Requires Authentication
GetConnectedContacts Parameters:
NameParameterData TypeRequiredDescription
UserIdqueryGuidYesThe user's Guid. Contacts retrieved will be connected to this user.
ContactIdqueryGuidYesThe user profiles Contact Guid. Contacts connected to the user will be filted by this profiles contact ID.
SuiteIdsqueryList<Guid>NoThe suite id list. Gets contacts connected to the user filted by the suite IDs in this list..
UserContacts Parameters:
NameParameterData TypeRequiredDescription
ContactConnectionsqueryList<UserContactConnectionModel>NoA list of contact connections assigned to the user.
EmailAddressBookqueryList<ContactEmailAddressBook>NoA list of connected contacts and their email addresses.
UserContactConnectionModel Parameters:
NameParameterData TypeRequiredDescription
ContactRoleIdqueryGuidNoThe Contact Role Id, that links the Contact to their role.
ContactRoleNamequerystringNoThe role name.
ContactListItemRoleIdqueryGuidNoThe list item role Id.
ContactRolePrimaryImageURLquerystringNoThe URL of the contact role's image icon.
ContactRolePrimaryImageThumbnailURLquerystringNoThe URL of the contact role's thumbnail image icon.
ContactRolePrimaryImageIdquerystringNoThe Guid of the contact role's media file containing the image icon details.
ConnectionContactIdquerystringNoThe connected contacts Id. (licensee)
ConnectionContactNamequerystringNoThe connected contacts Full Name.
ConnectionContactRoleNamequerystringNoThe connected contacts role.
ConnectionContactRoleIdqueryGuidNoThe connected contacts role Id.
ConnectionContactListItemRoleIdqueryGuidNoThe connected contacts list item role Id.
ContactTypeNamequerystringNoThe Contacts Type.
ConnectionContactPhotoURLquerystringNoThe URL to the Connected Contacts Photo.
IsContactLicenseeRolequeryboolNo.
IsConnectionLicenseeRolequeryboolNoIf the connection is as a licensee this is true.
ConnectionStatusNamequerystringNoThe status of the connection with the contact.
ConnectionStatusIdqueryGuidNoThe status Id of the connection with the contact.
ConnectionIdqueryGuidNoThe ContactRoleConnectionId of an active connection with the contact.
ConnectionRequestIdqueryGuidNoThe ContactRoleConnectionRequest of a pending connection with the contact.
ContactEmailAddress Parameters:
NameParameterData TypeRequiredDescription
ContactIdqueryGuidNoThe Contact Id of the contact.
ContactNamequerystringNoThe Contact Full Name
EmailAddressquerystringNoThe Contact Email Address.
ContactPhotoURLquerystringNoThe Contact Photo URL

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /csv/reply/GetConnectedContacts HTTP/1.1 
Host: pfapi.pstpf.com.au 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"UserId":"00000000-0000-0000-0000-000000000000","ContactId":"00000000-0000-0000-0000-000000000000","SuiteIds":["00000000-0000-0000-0000-000000000000"]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ContactConnections":[{"ContactRoleId":"00000000-0000-0000-0000-000000000000","ContactRoleName":"String","ContactListItemRoleId":"00000000-0000-0000-0000-000000000000","ContactRolePrimaryImageURL":"String","ContactRolePrimaryImageThumbnailURL":"String","ContactRolePrimaryImageId":"00000000-0000-0000-0000-000000000000","ConnectionContactId":"00000000-0000-0000-0000-000000000000","ConnectionContactName":"String","ConnectionContactRoleName":"String","ConnectionContactRoleId":"00000000-0000-0000-0000-000000000000","ConnectionContactListItemRoleId":"00000000-0000-0000-0000-000000000000","ContactTypeName":"String","ConnectionContactPhotoURL":"String","IsContactLicenseeRole":false,"IsConnectionLicenseeRole":false,"ConnectionStatusName":"String","ConnectionStatusId":"00000000-0000-0000-0000-000000000000","ConnectionId":"00000000-0000-0000-0000-000000000000","ConnectionRequestId":"00000000-0000-0000-0000-000000000000"}],"EmailAddressBook":[{"ContactId":"00000000-0000-0000-0000-000000000000","ContactName":"String","EmailAddress":"String","ContactPhotoURL":"String"}]}