Less Annoying CRM logo Less Annoying CRM LACRM
Core API Functions

Events

Events are used to schedule times on your calendar. They work pretty much like any other calendar (e.g. Outlook or Google Calendar) except that they can be linked directly to contacts/companies in your CRM.

Unlike tasks, events are automatically considered to be "completed" whenever they end. Because of this, events are best for things that have specific start and end times whereas tasks are better for things you will handle sometime during the day, but that aren't specifically schedule.

Create an event

This function will create an event on your calendar or the calendar of another user you have permission to edit.

How to call this function
Function name
CreateEvent
Parameters
Name Text Required

The name of the event. This is displayed with the event on the calendar.

StartDate DateTime Required

The start date and time of the event. For all-day events, the time will be ignored. If included, the timezone set for the StartDate will be used as the timezone for the event.

EndDate DateTime Required

The end date and time of the event. For all-day events, the time will be ignored.

IsAllDay Bool Default: false

Whether or not this is an all day event.

Location Text

The location of the event.

Description Text

A description of the event.

CalendarId Uid

The calendar that this event will be attached to. Only pass in if you are attending the event; if no calendar is passed in, we will default to your primary calendar.

Attendees Array of objects Default: []

An array of attendees with their Id, their corresponding attendance status and IsUser which denotes whether the attendee is a User, otherwise the attendee is a contact.

Each item in the array should be an object with the following fields:
IsUser Bool

Is true if this attendee is a user, else attendee is a contact

AttendeeId Uid

UserId or ContactId of this attendee

AttendanceStatus Enum
Valid options: IsAttending, Maybe, NotAttending,

Whether this contact is attending the event.

IsRecurring Bool Default: false

Whether or not this is a repeating (recurring) event on your calendar. If true, a RecurrenceRule will also need to be specified.

RecurrenceRule Text Default: NULL

The rule to determine how frequently this event recurs. This is required if you are creating a recurring event. For more information on recurrence rules, click here.

EndRecurrenceRule DateTime

The last date this recurring event should appear on your calendar. Not to be confused with EndDate which sets when a single instance of an event will end.

Response
{
"EventId": "3994135389767813118014711402375"
}

Edit an event

This function will update an existing event.

How to call this function
Function name
EditEvent
Parameters
EventId Uid Required

The id of the event to update.

Name Text

The name of the event. This is displayed with the event on the calendar.

StartDate DateTime

The start date and time of the event. For all-day events, the time will be ignored.

EndDate DateTime

The end date and time of the event. For all-day events, the time will be ignored.

IsAllDay Bool

Whether or not this is an all day event.

Location Text

The location of the event.

Description Text

A description of the event.

CalendarId Uid

The calendar that this event will be attached to.

Attendees Array of objects

An array of attendees with their Id, their corresponding attendance status and IsUser which denotes whether the attendee is a User, otherwise the attendee is a contact.

Each item in the array should be an object with the following fields:
IsUser Bool

Is true if this attendee is a user, else attendee is a contact

AttendeeId Uid

UserId or ContactId of this attendee

AttendanceStatus Enum
Valid options: IsAttending, Maybe, NotAttending,

Whether this contact is attending the event.

RecurrenceRule Text

The rule to determine how frequently this event recurs. This is required if you are creating a recurring event. For more information on recurrence rules, click here.

EndRecurrenceRule DateTime

The last date this recurring event should appear on your calendar. Not to be confused with EndDate which sets when a single instance of an event will end.

Response
This function doesn't return anything. If there's no error message returned, that means the call was completed successfully.

Delete an event

This function will delete an event from your calendar, as well as the calendars of any other attending user. If you want to remove yourself from an event, use EditEvent instead.

How to call this function
Function name
DeleteEvent
Parameters
EventId Uid Required

The Id of the event you want to delete.

Response
This function doesn't return anything. If there's no error message returned, that means the call was completed successfully.

Get an event

This function gets a single event from the calendar based on the Id of the event. If you don't already know the EventId, you can find events using GetEvents or GetEventsAttachedToContact.

How to call this function
Function name
GetEvent
Parameters
EventId Uid Required

The Id of the event you want to get.

Response
{
"EventId": "3994135389777036490051566050979",
"Name": "",
"StartDate": "2024-11-21T01:08:26-08:00",
"EndDate": "2024-11-21T01:08:26-08:00",
"Location": "",
"Description": "",
"IsAllDay": false,
"IsRecurring": false,
"RecurrenceEventId": "3994135389777036490051566643711",
"RecurrenceRule": "",
"EndRecurrenceDate": "2024-11-21T01:08:26-08:00",
"SeriesNumber": 10,
"DateCreated": "2024-11-21T01:08:26-08:00",
"DateUpdated": "2024-11-21T01:08:26-08:00",
"ContactIds": [
"3994135389779342333060778749808",
"3994135389779342333060778972558",
"3994135389779342333060779256556"
],
"UserIds": [
"3994135389779342333060780306363",
"3994135389779342333060780149897",
"3994135389779342333060778832707"
],
"Attendees": [
{
"IsUser": false,
"AttendeeId": "3994135389779342333060778773453",
"AttendanceStatus": ""
},
{...},
{...}
]
"CalendarId": "3994135389779342333060779461210",
"ContactMetaData": [
{
"Name": "John Doe",
"AssignedTo": "123456"
},
{...},
{...}
]
"UserMetaData": [
{
"FirstName": "Your",
"LastName": "Name"
},
{...},
{...}
]
"CalendarMetaData": {
"Name": "Primary calendar"
}
}

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": "3994135389790871548106847539797",
"Name": "",
"StartDate": "2024-11-21T01:08:26-08:00",
"EndDate": "2024-11-21T01:08:26-08:00",
"Location": "",
"Description": "",
"IsAllDay": false,
"IsRecurring": false,
"RecurrenceEventId": "3994135389790871548106848703724",
"RecurrenceRule": "",
"EndRecurrenceDate": "2024-11-21T01:08:26-08:00",
"SeriesNumber": 10,
"DateCreated": "2024-11-21T01:08:26-08:00",
"DateUpdated": "2024-11-21T01:08:26-08:00",
"ContactIds": [
"3994135389790871548106848869981",
"3994135389790871548106847666150",
"3994135389790871548106849098160"
],
"UserIds": [
"3994135389790871548106847720480",
"3994135389790871548106847202500",
"3994135389790871548106848606496"
],
"Attendees": [
{
"IsUser": false,
"AttendeeId": "3994135389793177391116062725737",
"AttendanceStatus": ""
},
{...},
{...}
]
"CalendarId": "3994135389793177391116061208373",
"ContactMetaData": [
{
"Name": "John Doe",
"AssignedTo": "123456"
},
{...},
{...}
]
"UserMetaData": [
{
"FirstName": "Your",
"LastName": "Name"
},
{...},
{...}
]
"CalendarMetaData": {
"Name": "Primary calendar"
}
},
{...},
{...}
]
}

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": "3994135389800094920143701989493",
"Name": "",
"StartDate": "2024-11-21T01:08:26-08:00",
"EndDate": "2024-11-21T01:08:26-08:00",
"Location": "",
"Description": "",
"IsAllDay": false,
"IsRecurring": false,
"RecurrenceEventId": "3994135389802400763152917045002",
"RecurrenceRule": "",
"EndRecurrenceDate": "2024-11-21T01:08:26-08:00",
"SeriesNumber": 10,
"DateCreated": "2024-11-21T01:08:26-08:00",
"DateUpdated": "2024-11-21T01:08:26-08:00",
"ContactIds": [
"3994135389802400763152916981669",
"3994135389802400763152915727909",
"3994135389802400763152915742051"
],
"UserIds": [
"3994135389802400763152917005852",
"3994135389802400763152915771852",
"3994135389802400763152915511540"
],
"Attendees": [
{
"IsUser": false,
"AttendeeId": "3994135389802400763152917488726",
"AttendanceStatus": ""
},
{...},
{...}
]
"CalendarId": "3994135389804706606162130133306",
"ContactMetaData": [
{
"Name": "John Doe",
"AssignedTo": "123456"
},
{...},
{...}
]
"UserMetaData": [
{
"FirstName": "Your",
"LastName": "Name"
},
{...},
{...}
]
"CalendarMetaData": {
"Name": "Primary calendar"
}
},
{...},
{...}
]
}