curl --request POST \
--url https://api.lemlist.com/api/views \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"entity": "contact",
"name": "Hot leads in Paris"
}
'
{
"data": {
"id": "evw_A1B2C3ExAmPlE9xYz",
"url": "https://app.lemlist.com/teams/tea_ExAmPlE4f7Kq2Wz9x/lemcrm/contacts?view=evw_A1B2C3ExAmPlE9xYz"
}
}
Views
Create View
Creates a view on the Contacts, Companies or Tasks list and pins it on the API key user’s tabs.
POST
/
views
curl --request POST \
--url https://api.lemlist.com/api/views \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"entity": "contact",
"name": "Hot leads in Paris"
}
'
{
"data": {
"id": "evw_A1B2C3ExAmPlE9xYz",
"url": "https://app.lemlist.com/teams/tea_ExAmPlE4f7Kq2Wz9x/lemcrm/contacts?view=evw_A1B2C3ExAmPlE9xYz"
}
}
Pick the conditions, and on a task view the sort and columns, from Get View Fields. The response holds the view id and the
url that opens the list on it.Authorizations
Body
application/json
Font Awesome icon shown on the tab. Defaults to far fa-folder on create.
Available options:
far fa-folder, far fa-list-check, far fa-star, far fa-flag, far fa-bolt, far fa-bullseye, far fa-calendar, far fa-user, far fa-phone, far fa-fire, far fa-reply, far fa-plane-departure, far fa-triangle-exclamation, far fa-circle-check Example:
"far fa-fire"
A view's filters. On update, they replace all the current filters.
Show child attributes
Show child attributes
Example:
{ "connector": "and", "conditions": [ { "property": "ownerId", "operator": "is_any_of", "value": ["__me__"] }, { "property": "contactScore", "operator": "gte", "value": 5 }, { "property": "createdAt", "operator": "is_relative", "value": { "mode": "last", "amount": 30, "unit": "day" } } ] }
Was this page helpful?