Less Annoying CRM logo Less Annoying CRM LACRM
Core API Functions

Search

Use these functions to list all items in the CRM, or narrow the results using search terms and advanced filtering.

Search or list all contacts

Given search terms, return a list of matching contacts. If no search terms are provided, return all contacts. The advanced filter system is documented here.

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
records.
How to call this function
Function name
GetContacts
Parameters
SearchTerms Text

Values to search for in record fields.

RequiresWriteAccess Bool Default: false

If true, only return contacts that the current user has permission to edit.

RecordTypeFilter Enum Default: NULL
Valid options: Contacts, Companies

Limits the type of records that get returned from this function.

OwnerFilter Array of Uids Default: []

Only returns contacts assigned to these UserIds. If null, return all contacts.

SortBy Enum Default: Relevance
Valid options: Relevance, FirstName, LastName, CompanyName, DateCreated, LastUpdate

Which field to sort by; by default, will use a ranking heuristic.

SortDirection Enum Default: Descending
Valid options: Ascending, Descending

Direction for sort order.

AdvancedFilters Array of objects

List of filters to apply to search results. See documentation here.

Each item in the array should be an object with the following fields:
Name Text Required

Name of field to filter on.

Operation Text Required

Type of filter operation to perform.

Value Default: NULL

Value to filter on.

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": [
{
Multi-type. Example output for type Contact:
{
"ContactId": "4000168018320388211074942504337",
"AssignedTo": 483823,
"IsCompany": false,
"CompanyId": "4000168018320388211074942599259",
"Name": {
"Salutation": "Mr.",
"FirstName": "John",
"MiddleName": "",
"LastName": "Doe",
"Suffix": ""
}
"Email": [
{
"Text": "john.doe@email.com",
"Type": "Work",
"TypeId": "4000168018320388211074942831891"
},
{...},
{...}
]
"Phone": [
{
"Text": "(314) 555-5555",
"Type": "Work",
"TypeId": "4000168018320388211074942233182"
},
{...},
{...}
]
"Company Name": "",
"Job Title": "",
"Address": [
{
"Street": "123 Main Street",
"City": "St. Louis",
"State": "MO",
"Zip": "63101",
"Country": "USA",
"Type": "Work",
"TypeId": "4000168018320388211074942594595"
},
{...},
{...}
]
"Background Info": "",
"Website": [
{
"Text": "www.lessannoyingcrm.com"
},
{...},
{...}
]
"Birthday": "2024-12-21",
"CompanyMetaData": {
"CompanyName": ""
}
"DateCreated": "2024-12-21T07:52:22-08:00",
"LastUpdate": "2024-12-21T07:52:22-08:00",
"UserMetaData": {
"FirstName": "Your",
"LastName": "Name"
}
}
Multi-type. Example output for type Company:
{
"ContactId": "4000168018320388211074942007764",
"AssignedTo": 483823,
"IsCompany": true,
"Company Name": "B&B Enterprises",
"Email": [
{
"Text": "john.doe@email.com",
"Type": "Work",
"TypeId": "4000168018320388211074941812860"
},
{...},
{...}
]
"Phone": [
{
"Text": "(314) 555-5555",
"Type": "Work",
"TypeId": "4000168018320388211074942029809"
},
{...},
{...}
]
"Address": [
{
"Street": "123 Main Street",
"City": "St. Louis",
"State": "MO",
"Zip": "63101",
"Country": "USA",
"Type": "Work",
"TypeId": "4000168018322694054084156858351"
},
{...},
{...}
]
"Background Info": "",
"Website": [
{
"Text": "www.lessannoyingcrm.com"
},
{...},
{...}
]
"DateCreated": "2024-12-21T07:52:22-08:00",
"LastUpdate": "2024-12-21T07:52:22-08:00",
"UserMetaData": {
"FirstName": "Your",
"LastName": "Name"
}
}
},
{...},
{...}
]
}

List all events

This function will get all events between a date range; will return all visible events by default, but can be filtered by calendar, contact, or user.

How to call this function
Function name
GetEvents
Parameters
SortDirection Enum Default: Ascending
Valid options: Ascending, Descending

Whether the results should be sorted in ascending or descending order.

StartDate DateTime Default: NULL

The start date (inclusive) of the range of events you want to retrieve.

EndDate DateTime Default: NULL

The end date (inclusive) of the range of events you want to retrieve.

UserFilter Array of Uids Default: []

If you'd like to only see events assigned to specific users, pass their UserIds into this field and we'll filter the results to only show those users' events.

CalendarFilter Array of Uids Default: []

If you specify this parameter, only events matching the given CalendarIds will be returned. Only works for your own calendars.

ContactId Uid Default: NULL

If you specify this parameter, only events attached to this contact will be returned. Alternatively, you can call GetEventsAttachedToContact to get the same results. If you specify this parameter, all events attached to this contact will be returned and other filters will be ignored.

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": "4000168018331917426121010001627",
"Name": "",
"StartDate": "2024-12-21T07:52:22-08:00",
"EndDate": "2024-12-21T07:52:22-08:00",
"Location": "",
"Description": "",
"IsAllDay": false,
"IsRecurring": false,
"RecurrenceEventId": "4000168018331917426121011805368",
"RecurrenceRule": "",
"EndRecurrenceDate": "2024-12-21T07:52:22-08:00",
"SeriesNumber": 10,
"DateCreated": "2024-12-21T07:52:22-08:00",
"DateUpdated": "2024-12-21T07:52:22-08:00",
"ContactIds": [
"4000168018331917426121011013609",
"4000168018331917426121010788070",
"4000168018331917426121011708682"
],
"UserIds": [
"4000168018334223269130224768645",
"4000168018334223269130225000630",
"4000168018334223269130224320048"
],
"Attendees": [
{
"IsUser": false,
"AttendeeId": "4000168018334223269130223677457",
"AttendanceStatus": ""
},
{...},
{...}
]
"CalendarId": "4000168018334223269130225490817",
"ContactMetaData": [
{
"Name": "John Doe",
"AssignedTo": "123456"
},
{...},
{...}
]
"UserMetaData": [
{
"FirstName": "Your",
"LastName": "Name"
},
{...},
{...}
]
"CalendarMetaData": {
"Name": "Primary calendar"
}
},
{...},
{...}
]
}

List all notes

This function gets a list of all notes entered in the CRM. You can pass additional parameters to filter and sort the results.

How to call this function
Function name
GetNotes
Parameters
SortDirection Enum Default: Descending
Valid options: Ascending, Descending

This list will always be sorted by the date of the notes. By default it will list the newest note first, but you can reverse the order if you'd like.

DateFilterStart DateTime Default: NULL

If you specify this parameter, only notes entered on or after the date you choose will be returned.

DateFilterEnd DateTime Default: NULL

If you specify this parameter, only notes entered on or before the date you choose will be returned.

UserFilter Array of Uids Default: []

If you'd like to only see notes entered by specific users, pass their UserIds into this field and we'll filter the results to only show those users' notes.

ContactId Uid

If you specify this parameter, only notes attached to this contact will be returned. Alternatively, you can call GetNotesAttachedToContact to get the same results.

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": "4000168018341140798157865146288",
"ContactId": "4000168018341140798157866068313",
"UserId": "123",
"DateCreated": "2024-12-21T07:52:22-08:00",
"DateDisplayedInHistory": "2024-12-21T07:52:22-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": "4000168018341140798157865495181",
"PipelineItemId": "4000168018341140798157865583541",
"StatusId": "4000168018341140798157865530283",
"PreviousStatusId": "4000168018343446641167079688524",
"PipelineMetaData": {
"Name": "Sales Leads"
}
"StatusMetaData": {
"Name": "Prospect"
}
}
"IsRichText": false
},
{...},
{...}
]
}

List all pipeline items

This function searches all the pipeline items on your account.

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
GetPipelineItems
Parameters
PipelineId Uid Required

The pipeline item you'd like to return pipeline items for.

UserFilter Array of Uids Default: []

If you'd like to only see pipeline items entered by specific users, pass their UserIds into this field and we'll filter the results to only show those users' pipeline items (based on the contact they are attached to). Passing an empty array will return results for all users whose contacts you have read access to.

StatusFilter Array of Uids Default: []

If you'd like to see pipeline items in a certain set of statuses, you can pass in the StatusId into this field we'll filter the results to only show pipeline items in those statuses. An empty array or NULL value will return all active statuses by default.

SortBy Enum Default: Status
Valid options: Status, DateCreated, LastUpdate

Which field to sort by; by default, will use status.

SortDirection Enum Default: Ascending
Valid options: Ascending, Descending

Direction for sort order.

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": [
{
"PipelineItemId": "4000168018348058327185506506320",
"PipelineId": "3853178701634960990616937360520",
"StatusId": "4000168018350364170194719426048",
"ContactId": "4000168018350364170194720244069",
"DateCreated": "2024-12-21T07:52:22-08:00",
"CreatedBy": "4000168018352670013203934965477",
"LastUpdate": "2024-12-21T07:52:22-08:00",
"LastUpdatedBy": "4000168018352670013203933366867",
"NumberOfUpdates": 10,
"LastNote": "",
"PipelineMetaData": {
"Name": "Sales Leads"
}
"StatusMetaData": {
"Name": "Prospect"
}
"ContactMetaData": {
"Name": "John Doe",
"AssignedTo": "123456"
}
},
{...},
{...}
]
}

List all tasks

This function will get all tasks between a date range; will return all visible tasks by default, but can be filtered by contact or user.

How to call this function
Function name
GetTasks
Parameters
StartDate Text Required

The lower bound of dates to fetch.

EndDate Text Required

The upper bound of dates to fetch.

UserFilter Array of Uids

If you'd like to only see tasks assigned to specific users, pass their UserIds into this field and we'll filter the results to only show those users' tasks.

ContactId Uid Default: NULL

If you specify this parameter, all past and future tasks will be returned for the corresponding Contact regardless of CompletionStatus. Only tasks attached to this contact will be returned. Alternatively, you can call GetTasksAttachedToContact to get the same results.

CompletionStatus Enum Default: Both
Valid options: Both, Incomplete, Complete

Get tasks based on task complete status

SortDirection Enum Default: Ascending
Valid options: Ascending, Descending

Whether the results should be sorted in ascending or descending order.

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": "4000168018357281699222361086627",
"Name": "Follow-up with John",
"DueDate": "2024-12-28",
"AssignedTo": "4000168018357281699222360864677",
"Description": "We talked yesterday but they were busy and said to touch base next week.",
"ContactId": "4000168018357281699222361309625",
"IsCompleted": false,
"DateCompleted": "2024-12-20T15:52:22-08:00",
"CalendarId": "4000168018357281699222361070453",
"DateCreated": "2024-12-21T07:52:22-08:00",
"AssignedToMetaData": {
"FirstName": "Your",
"LastName": "Name"
}
"ContactMetaData": {
"Name": "John Doe",
"AssignedTo": "123456"
}
},
{...},
{...}
]
}