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": "3991407180590073671143997118710",
"ContactId1": "3991407180590073671143996996341",
"ContactId2": "3991407180592379514153210439842",
"Note": "John and Jane are married",
"CreatedBy": "123",
"DateCreated": "2024-11-07T08:28:54-08:00",
"DateEdited": "2024-11-07T08:28:54-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": "3991407180599297043180850461590",
"Name": "",
"StartDate": "2024-11-07T08:28:54-08:00",
"EndDate": "2024-11-07T08:28:54-08:00",
"Location": "",
"Description": "",
"IsAllDay": false,
"IsRecurring": false,
"RecurrenceEventId": "3991407180599297043180851542832",
"RecurrenceRule": "",
"EndRecurrenceDate": "2024-11-07T08:28:54-08:00",
"SeriesNumber": 10,
"DateCreated": "2024-11-07T08:28:54-08:00",
"DateUpdated": "2024-11-07T08:28:54-08:00",
"ContactIds": [
"3991407180601602886190063962631",
"3991407180601602886190064753146",
"3991407180601602886190065542005"
],
"UserIds": [
"3991407180601602886190064276458",
"3991407180601602886190064546899",
"3991407180601602886190064100538"
],
"Attendees": [
{
"IsUser": false,
"AttendeeId": "3991407180601602886190065402387",
"AttendanceStatus": ""
},
{...},
{...}
]
"CalendarId": "3991407180601602886190064357219",
"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": "3991407180608520415217705495751",
"Name": "Follow-up with John",
"DueDate": "2024-11-14",
"AssignedTo": "3991407180608520415217705305488",
"Description": "We talked yesterday but they were busy and said to touch base next week.",
"ContactId": "3991407180608520415217704945052",
"IsCompleted": false,
"DateCompleted": "2024-11-06T16:28:54-08:00",
"CalendarId": "3991407180608520415217706485888",
"DateCreated": "2024-11-07T08:28:54-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": "3991407180615437944245347031854",
"PipelineId": "3853178701634960990616937360520",
"StatusId": "3991407180615437944245346852526",
"ContactId": "3991407180615437944245346149449",
"DateCreated": "2024-11-07T08:28:54-08:00",
"CreatedBy": "3991407180622355473272986939796",
"LastUpdate": "2024-11-07T08:28:54-08:00",
"LastUpdatedBy": "3991407180622355473272987892159",
"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": "3991407180629273002300630083153",
"ContactId": "3991407180629273002300628388043",
"UserId": "123",
"DateCreated": "2024-11-07T08:28:54-08:00",
"DateDisplayedInHistory": "2024-11-07T08:28:54-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": "3991407180629273002300629005636",
"PipelineItemId": "3991407180629273002300629675261",
"StatusId": "3991407180631578845309843313475",
"PreviousStatusId": "3991407180631578845309843689596",
"PipelineMetaData": {
"Name": "Sales Leads"
}
"StatusMetaData": {
"Name": "Prospect"
}
}
"IsRichText": false
},
{...},
{...}
]
}