Skip to main content

Can I create and manage views with Claude, ChatGPT or the API?

Ask your AI assistant connected through the lemlist MCP, or call /api/views, to list, create, edit, duplicate or delete saved views on Contacts, Companies and Tasks, and get a link that opens them.

Yes. With the lemlist MCP connected, you can ask Claude or ChatGPT to create and manage your saved views on Contacts, Companies and Tasks. The assistant answers with a link that opens the view in lemlist. The same actions are available in the lemlist API, through the /api/views routes.

For example, ask: "Set up a view of the companies I own in the Tier 1 CRM list." The assistant reads the filters your team can use, creates the view, pins it in your tabs and sends you its link.


What you can do

  • List your views.

  • Create, edit, duplicate and delete a view.

  • Show, hide or reorder the view tabs.

  • Filter on your team's own data: owners, statuses, lists, campaigns, custom fields, and CRM fields when a CRM is connected.

  • On Tasks views, also set the sort and the columns: any column of the Tasks column picker, custom fields included.

The lemlist MCP reaches the same routes through its Call lemlist API tool.


How it works

  • Every filter is checked before the view is saved. A field, an operator or a value lemlist doesn't know is refused, so a typo can't save a view that shows your whole base.

  • A view belongs to the user connected to the MCP or to the API key. Set its visibility to Everyone to share it with your team, as in the app.

  • Default views (All companies, My companies, Recently contacted…) can be shown, hidden, reordered or duplicated, but not edited, as in the app.

  • Deleting a view through the MCP asks for your confirmation first.

  • Editing only the filters of a view keeps the sort and the columns you saved in the app.


Limitations

  • A view created through the API can have up to 30 conditions.

  • View names can have up to 80 characters.

  • Each user can have up to 200 views per list (Contacts, Companies or Tasks).

  • On Contacts and Companies views, the sort and the columns are returned but can't be set yet. Set them in the app.

  • On Tasks views, the local time and timezone filters are not available through the API.


Exceptions

Why does the API answer 401 on /api/views?

Older API keys that aren't tied to a user get a 401 on the /api/views routes. Generate a new key in Settings → Integrations → API & Webhooks → Generate key.

Why was my view refused?

  • ENTITY_VIEW_INVALID_FILTER: a filter uses a field, an operator or a value lemlist doesn't know.

  • ENTITY_VIEW_INVALID_SORT or ENTITY_VIEW_INVALID_COLUMNS: the sort or the columns are not allowed.

Your assistant then reads the allowed fields and tries again. Through the API, GET /api/views/fields returns the fields you can use.


What to do instead

Did this answer your question?