Less Annoying CRM logo Less Annoying CRM LACRM
Core API Functions

Items attached to contacts

This API allows you to interact with many different record types, but everything centers around contacts. A common use case is to want to get all of the things attached to a contact, so we collected all of those functions in one place to make your life easier.

All of these functions exist elsewhere in the API docs. For example, GetEventsAttachedToContact is also listed under the "Events" documentation.

Get contact relationships

This function returns all of the relationships for a specific contact. Relationships are bi-directional, so this will include relationships where the contact is listed as Contact1 or Contact2.

How to call this function
Function name
GetRelationshipsAttachedToContact
Parameters
ContactId Uid Required

The id of the contact whose relationships you want to get.

MaxNumberOfResults Number Default: 500

How many results should be returned from a single API call? The max value is 10,000. If you need to return more results, call this API function again, but increment the Page parameter.

Page Number Default: 1

If there are more results than MaxNumberOfResults, you can call this function again with an incremented Page value to get the next page of results. For example, if there are 700 results, but you're only requesting 500 at a time, you could call this function with Page=2 to get the remaining 200 results.

Response
{
"HasMoreResults": false,
"Results": [
{
"RelationshipId": "4000138847056667631457695644395",
"ContactId1": "4000138847058973474466908616656",
"ContactId2": "4000138847058973474466909268949",
"Note": "John and Jane are married",
"CreatedBy": "123",
"DateCreated": "2024-12-21T04:21:31-08:00",
"DateEdited": "2024-12-21T04:21:31-08:00",
"Contact1MetaData": {
"Name": "John Doe"
}
"Contact2MetaData": {
"Name": "Jane Doe"
}
"CreatedByMetaData": {
"FirstName": "Your",
"LastName": "Name"
}
},
{...},
{...}
]
}

Get contact events

Returns all events for a contact.

How to call this function
Function name
GetEventsAttachedToContact
Parameters
ContactId Uid Required

The contact to get events for.

MaxNumberOfResults Number Default: 500

How many results should be returned from a single API call? The max value is 10,000. If you need to return more results, call this API function again, but increment the Page parameter.

Page Number Default: 1

If there are more results than MaxNumberOfResults, you can call this function again with an incremented Page value to get the next page of results. For example, if there are 700 results, but you're only requesting 500 at a time, you could call this function with Page=2 to get the remaining 200 results.

Response
{
"HasMoreResults": false,
"Results": [
{
"EventId": "4000138847068196846503763173257",
"Name": "",
"StartDate": "2024-12-21T04:21:31-08:00",
"EndDate": "2024-12-21T04:21:31-08:00",
"Location": "",
"Description": "",
"IsAllDay": false,
"IsRecurring": false,
"RecurrenceEventId": "4000138847068196846503763043918",
"RecurrenceRule": "",
"EndRecurrenceDate": "2024-12-21T04:21:31-08:00",
"SeriesNumber": 10,
"DateCreated": "2024-12-21T04:21:31-08:00",
"DateUpdated": "2024-12-21T04:21:31-08:00",
"ContactIds": [
"4000138847068196846503763449956",
"4000138847068196846503764719308",
"4000138847068196846503763700639"
],
"UserIds": [
"4000138847070502689512977246191",
"4000138847070502689512976937575",
"4000138847070502689512977040725"
],
"Attendees": [
{
"IsUser": false,
"AttendeeId": "4000138847070502689512978254628",
"AttendanceStatus": ""
},
{...},
{...}
]
"CalendarId": "4000138847070502689512977955908",
"ContactMetaData": [
{
"Name": "John Doe",
"AssignedTo": "123456"
},
{...},
{...}
]
"UserMetaData": [
{
"FirstName": "Your",
"LastName": "Name"
},
{...},
{...}
]
"CalendarMetaData": {
"Name": "Primary calendar"
}
},
{...},
{...}
]
}

Get contact tasks

Returns all tasks for a contact.

How to call this function
Function name
GetTasksAttachedToContact
Parameters
ContactId Uid Required

The contact to get tasks for.

MaxNumberOfResults Number Default: 500

How many results should be returned from a single API call? The max value is 10,000. If you need to return more results, call this API function again, but increment the Page parameter.

Page Number Default: 1

If there are more results than MaxNumberOfResults, you can call this function again with an incremented Page value to get the next page of results. For example, if there are 700 results, but you're only requesting 500 at a time, you could call this function with Page=2 to get the remaining 200 results.

Response
{
"HasMoreResults": false,
"Results": [
{
"TaskId": "4000138847075114375531404514374",
"Name": "Follow-up with John",
"DueDate": "2024-12-28",
"AssignedTo": "4000138847077420218540618642059",
"Description": "We talked yesterday but they were busy and said to touch base next week.",
"ContactId": "4000138847077420218540618915170",
"IsCompleted": false,
"DateCompleted": "2024-12-20T12:21:31-08:00",
"CalendarId": "4000138847077420218540619639802",
"DateCreated": "2024-12-21T04:21:31-08:00",
"AssignedToMetaData": {
"FirstName": "Your",
"LastName": "Name"
}
"ContactMetaData": {
"Name": "John Doe",
"AssignedTo": "123456"
}
},
{...},
{...}
]
}

Get contact pipeline items

This function retrieves all the pipeline items attached to a given contact.

Note: Because fields can be customized, they're different on every account. This documentation shows fields for an example LACRM account. Please log in to see the fields for your specific account.
Showing fields for the
pipeline.
How to call this function
Function name
GetPipelineItemsAttachedToContact
Parameters
ContactId Uid Required

The id of the contact to get pipeline items for.

Response
[
{
"PipelineId": "3853178701634960990616937360520",
"PipelineItems": [
{
"PipelineItemId": "4000138847082031904559046379139",
"PipelineId": "3853178701634960990616937360520",
"StatusId": "4000138847082031904559046932706",
"ContactId": "4000138847084337747568260603721",
"DateCreated": "2024-12-21T04:21:31-08:00",
"CreatedBy": "4000138847086643590577474242453",
"LastUpdate": "2024-12-21T04:21:31-08:00",
"LastUpdatedBy": "4000138847086643590577472667978",
"NumberOfUpdates": 10,
"LastNote": "",
"PipelineMetaData": {
"Name": "Sales Leads"
}
"StatusMetaData": {
"Name": "Prospect"
}
"ContactMetaData": {
"Name": "John Doe",
"AssignedTo": "123456"
}
},
{...},
{...}
]
},
]

Get contact notes

Returns all notes for a contact.

How to call this function
Function name
GetNotesAttachedToContact
Parameters
ContactId Uid Required

The contact to get notes for.

MaxNumberOfResults Number Default: 500

How many results should be returned from a single API call? The max value is 10,000. If you need to return more results, call this API function again, but increment the Page parameter.

Page Number Default: 1

If there are more results than MaxNumberOfResults, you can call this function again with an incremented Page value to get the next page of results. For example, if there are 700 results, but you're only requesting 500 at a time, you could call this function with Page=2 to get the remaining 200 results.

Response
{
"HasMoreResults": false,
"Results": [
{
"NoteId": "4000138847091255276595901861965",
"ContactId": "4000138847091255276595901531495",
"UserId": "123",
"DateCreated": "2024-12-21T04:21:31-08:00",
"DateDisplayedInHistory": "2024-12-21T04:21:31-08:00",
"Note": "I called and got their voicemail. I'll try again next week.",
"ContactMetaData": {
"Name": "John Doe",
"AssignedTo": "123456"
}
"UserMetaData": {
"FirstName": "Your",
"LastName": "Name"
}
"PipelineInfo": {
"PipelineId": "4000138847093561119605115103185",
"PipelineItemId": "4000138847093561119605115434481",
"StatusId": "4000138847093561119605114953395",
"PreviousStatusId": "4000138847093561119605113659127",
"PipelineMetaData": {
"Name": "Sales Leads"
}
"StatusMetaData": {
"Name": "Prospect"
}
}
"IsRichText": false
},
{...},
{...}
]
}