Platform API

<back to all web services

GetConnectionsToContact

Get connections to the specified contact for the requestor contact

Requires Authentication
The following routes are available for this service:
All Verbs/api/contacts/{ContactId}/connections
GetConnectionsToContact Parameters:
NameParameterData TypeRequiredDescription
ContactIdpathGuidYesContact Id to get connections for
ContactTypeIdqueryGuidYesType of the contact to get connections for (i.e. Real/ virtual Person/ Organisation)
RequestorContactIdqueryGuidYesContact Id requesting the details - Current user or licensee
IsPagedModequeryboolNoReturn all connections or paged results?
IncludeRemovedqueryboolNoOption to return removed connections
PagedModel Parameters:
NameParameterData TypeRequiredDescription
PageNumberformintNoPage Number to retrieve
PageSizeformintNoNumber of records to retrieve
SortIndexformintNoIndex of field to sort results by
SortOrderformintNoSort Order - Ascending or Descending
SortOrder Enum:
Ascending
Descending
GetConnectionsToContactResponse Parameters:
NameParameterData TypeRequiredDescription
ConnectionsformList<ContactConnectionModel>No
TotalConnectionsformintNo
ResponseStatusformResponseStatusNo
ContactConnectionModel Parameters:
NameParameterData TypeRequiredDescription
ConnectionIdformGuid?NoConnection Id (if applicable)
ConnectionRequestIdformGuid?NoConnection Request Id (if applicable)
ContactformContactSummaryModelYesDetails of the contact
ContactRoleIdformGuidYesContact's role Id in the connection
ContactRoleNameformstringNoContact's role name in the connection
RequestorContactIdformGuidYesRequestor Contact Id
RequestorContactNameformGuidNoRequestor Contact Name
RequestorRoleIdformGuidYesRequestor contact's role Id in the connection
RequestorRoleNameformstringNoRequestor's role name in the connection
PrimaryRoleNameformstringNoPrimary role in the connection to display
ConnectionStatusIdformGuidYesConnection Status Id
ConnectionStatusNameformstringNoConnection Status Name
IsConnectionRequestformboolNoIs this a pending connection request?
IsIncomingformboolNoIs this an incoming connection request?
FromDateformDateTime?No
SuggesterContactformContactSummaryModelYesDetails of the contact suggesting this connection
AllowCancelformboolNoCan this connection be cancelled?
AllowRemoveformboolNoCan this connection be removed?
ContactSummaryModel Parameters:
NameParameterData TypeRequiredDescription
ContactIdformGuidNoContact linked to the profile
ContactFullNameformstringNoFull name of the contact linked to the profile
EmailAddressformstringNoEmail Address of the contact linked to the profile
MobileNumberformstringNoMobile Number of the contact linked to the profile
PhoneNumberformstringNoPrimary Phone Number of the contact linked to the profile
ContactTypeIdformstringNoType of contact (person, organisation etc.) linked to the profile
ProfilePhotoUrlformstringNoProfile photo of contact linked to the profile
ProfilePhotoThumbnailUrlformstringNoThumbnail photo of contact linked to the profile
DescriptionformstringNoProfile description
EmploymentIndustryformstringNoEmployment Industry
EmploymentRoleformstringNoEmployment Role
EmploymentGeographicAreaformstringNoAreas of Work
TimezoneNamequerystringNoTimezone Name
PrimaryAddressquerystringNoThe primary address of the contact
IsRemovedContactformboolNoHave all connections to the contact been removed?

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 /api/contacts/{ContactId}/connections HTTP/1.1 
Host: pfapi.pstpf.com.au 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"ContactId":"00000000-0000-0000-0000-000000000000","ContactTypeId":"00000000-0000-0000-0000-000000000000","RequestorContactId":"00000000-0000-0000-0000-000000000000","IsPagedMode":false,"IncludeRemoved":false,"PageNumber":0,"PageSize":0,"SortIndex":0,"SortOrder":"Ascending"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Connections":[{"ConnectionId":"00000000000000000000000000000000","ConnectionRequestId":"00000000000000000000000000000000","Contact":{"ContactId":"00000000-0000-0000-0000-000000000000","ContactFullName":"String","EmailAddress":"String","MobileNumber":"String","PhoneNumber":"String","ContactTypeId":"00000000-0000-0000-0000-000000000000","ProfilePhotoUrl":"String","ProfilePhotoThumbnailUrl":"String","Description":"String","EmploymentIndustry":"String","EmploymentRole":"String","EmploymentGeographicArea":"String","TimezoneName":"String","PrimaryAddress":"String","IsRemovedContact":false},"ContactRoleId":"00000000-0000-0000-0000-000000000000","ContactRoleName":"String","RequestorContactId":"00000000-0000-0000-0000-000000000000","RequestorContactName":"String","RequestorRoleId":"00000000-0000-0000-0000-000000000000","RequestorRoleName":"String","PrimaryRoleName":"String","ConnectionStatusId":"00000000-0000-0000-0000-000000000000","ConnectionStatusName":"String","IsConnectionRequest":false,"IsIncoming":false,"FromDate":"0001-01-01T00:00:00.0000000","SuggesterContact":{"ContactId":"00000000-0000-0000-0000-000000000000","ContactFullName":"String","EmailAddress":"String","MobileNumber":"String","PhoneNumber":"String","ContactTypeId":"00000000-0000-0000-0000-000000000000","ProfilePhotoUrl":"String","ProfilePhotoThumbnailUrl":"String","Description":"String","EmploymentIndustry":"String","EmploymentRole":"String","EmploymentGeographicArea":"String","TimezoneName":"String","PrimaryAddress":"String","IsRemovedContact":false},"AllowCancel":false,"AllowRemove":false}],"TotalConnections":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}