API reference

Assistant: Lists

The everyday lists the assistant keeps with you: shopping, packing, reading, watchlists, gift ideas and checklists. Read them, make and rename lists, add, change, tick off and remove items, and manage the private links you share a list with. The same lists as in the app and in your conversations with the assistant. 14 endpoints. Add your API key in the authentication panel to send test requests from this page.

List your lists

GET/api/external/v1/assistant/lists

Your lists with all their items, pinned lists first, then the one changed last.

Each list carries id, title, kind (SHOPPING, PACKING, READING, WATCHLIST, GIFTS, CHECKLIST or CUSTOM), notes, pinned, color, projectId (the project it belongs to, or null), uncheckedCount, checkedCount, activeShareCount (live share links), createdAt, updatedAt and items (unchecked first, then by position). Each item has id, text, quantity, category, note, checked, position, createdAt, updatedAt.

Filters: kind, projectId, and q (words in a title, the notes or an item's text). At most 100 lists are answered, which is also the most a person can have.

Errors: 400 INVALID_KIND for a kind there is none of.

Parameters

  • kindstringquery

    Only lists of this kind: SHOPPING, PACKING, READING, WATCHLIST, GIFTS, CHECKLIST or CUSTOM.

  • projectIdstring (uuid)query

    Only lists that belong to this project (its id).

  • qstringquery

    Only lists whose title, notes or an item's text contain this.

Responses

  • 200OK

Create a list

POST/api/external/v1/assistant/lists

Makes a new list, optionally with its first items, and answers it (201).

Fields, all optional:

  • title (at most 160 characters). Without one the list is named after its kind ("Shopping list", "Packing list", ...). A title another of your lists has gets a number: "Groceries (2)".
  • kind: SHOPPING, PACKING, READING, WATCHLIST, GIFTS, CHECKLIST or CUSTOM. Without one it is told from the title.
  • notes (at most 600 characters), pinned (true/false), color (slate, blue, violet, amber, rose, emerald, cyan or orange), projectId (a project of yours).
  • items: texts, or objects with text (at most 280 characters), quantity, category (at most 80 each) and note (at most 300). The same text twice is kept once.

Rules: at most 100 lists, at most 300 items on a list. Card numbers and IBANs are never stored in a list.

Errors: 400 INVALID_KIND, INVALID_COLOR, INVALID_ID, SENSITIVE_NUMBER, ITEM_LIMIT; 409 LIST_LIMIT.

Request body application/json

object

Responses

  • 200OK

Read a list

GET/api/external/v1/assistant/lists/{listId}

One list with all its items (the shape of each list in GET /assistant/lists).

Errors: 404 LIST_NOT_FOUND when it is not one of your lists.

Parameters

  • listIdstring (uuid)pathRequired

Responses

  • 200OK

Rename or change a list

PATCH/api/external/v1/assistant/lists/{listId}

Changes what is sent and keeps the rest: title (at most 160 characters; it cannot be emptied, and no other list of yours may have it), kind, notes (empty or null clears them), pinned, color (null clears it), projectId (null takes the list out of its project). Answers the list as it now is.

Errors: 404 LIST_NOT_FOUND; 400 EMPTY_TITLE, INVALID_KIND, INVALID_COLOR, INVALID_ID, SENSITIVE_NUMBER; 409 TITLE_TAKEN.

Parameters

  • listIdstring (uuid)pathRequired

Request body application/json

object

Responses

  • 200OK

Delete a list

DELETE/api/external/v1/assistant/lists/{listId}

Deletes the list with its items and its share links, for good. Answers 204.

Errors: 404 LIST_NOT_FOUND.

Parameters

  • listIdstring (uuid)pathRequired

Responses

  • 200OK

Remove the ticked items

POST/api/external/v1/assistant/lists/{listId}/clear-checked

Removes every ticked-off item from the list for good. Answers changed (how many were removed) and list as it now is.

Errors: 404 LIST_NOT_FOUND.

Parameters

  • listIdstring (uuid)pathRequired

Responses

  • 200OK

Add items to a list

POST/api/external/v1/assistant/lists/{listId}/items

Adds one item or many, and answers the list as it now is.

Send items (texts, or objects with text, quantity, category, note), or one item as text with its quantity, category and note. An item whose text the list already has (in any case) is not added twice: it is unchecked again and takes the quantity, category and note sent.

Limits: text at most 280 characters, quantity and category 80, note 300; at most 300 items on a list. Card numbers and IBANs are never stored.

Errors: 404 LIST_NOT_FOUND; 400 MISSING_FIELD when no item is sent, SENSITIVE_NUMBER; 409 ITEM_LIMIT.

Parameters

  • listIdstring (uuid)pathRequired

Request body application/json

object

Responses

  • 200OK

Change an item

PATCH/api/external/v1/assistant/lists/{listId}/items/{itemId}

Changes what is sent and keeps the rest: text (cannot be emptied), quantity, category, note (null or empty clears each of those) and checked (true ticks it off, false puts it back). Answers the list as it now is.

Errors: 404 LIST_NOT_FOUND, ITEM_NOT_FOUND; 400 EMPTY_TEXT, SENSITIVE_NUMBER.

Parameters

  • listIdstring (uuid)pathRequired
  • itemIdstring (uuid)pathRequired

Request body application/json

object

Responses

  • 200OK

Remove an item

DELETE/api/external/v1/assistant/lists/{listId}/items/{itemId}

Removes the item from the list for good. Answers 204.

Errors: 404 LIST_NOT_FOUND, ITEM_NOT_FOUND.

Parameters

  • listIdstring (uuid)pathRequired
  • itemIdstring (uuid)pathRequired

Responses

  • 200OK

Tick items off

POST/api/external/v1/assistant/lists/{listId}/items/check

Ticks off several items at once, named by itemIds and/or texts. A text names every item whose text is it or contains it, ignoring case ("milk" ticks off "Oat milk" too). Answers changed (how many items it ticked off) and list as it now is; naming nothing that is on the list changes nothing.

Errors: 404 LIST_NOT_FOUND; 400 MISSING_FIELD when neither itemIds nor texts is sent, INVALID_ID.

Parameters

  • listIdstring (uuid)pathRequired

Request body application/json

object

Responses

  • 200OK

Put ticked items back

POST/api/external/v1/assistant/lists/{listId}/items/uncheck

Unticks several items at once, named by itemIds and/or texts (as in items/check). Answers changed and list as it now is.

Errors: 404 LIST_NOT_FOUND; 400 MISSING_FIELD when neither itemIds nor texts is sent, INVALID_ID.

Parameters

  • listIdstring (uuid)pathRequired

Request body application/json

object

Responses

  • 200OK

List a list's share links

GET/api/external/v1/assistant/lists/{listId}/shares

The private links the list is shared with, the live ones first, then the newest. Each has id, listId, label, canCheck (whoever opens it may tick items off), url (the link itself while it is not revoked: anyone holding it can open the list, so treat it like a password), createdAt, expiresAt (null: never), revokedAt, state (ACTIVE, EXPIRED or REVOKED), views and lastViewedAt.

Needs the lists write scope, not the read one: a link it answers lets whoever holds it open the list and, with canCheck, tick items off.

Errors: 404 LIST_NOT_FOUND.

Parameters

  • listIdstring (uuid)pathRequired

Responses

  • 200OK

Make a share link for a list

POST/api/external/v1/assistant/lists/{listId}/shares

Makes a private link to the list, as the app's Share button does, and answers it (201) with its url. Nothing is sent to anyone: you hand the link to whom you choose. Whoever opens it sees the list with your first name; with canCheck true they may tick items off too.

Fields, all optional: label (a name for the link, at most 80 characters), canCheck (default false), expiresInDays: 0 (never), 7, 30 (the default) or 90.

Limits: at most 10 live links on a list and 100 across your lists.

Errors: 404 LIST_NOT_FOUND; 400 INVALID_EXPIRY; 409 SHARE_LIMIT.

Parameters

  • listIdstring (uuid)pathRequired

Request body application/json

object

Responses

  • 200OK

Revoke a share link

DELETE/api/external/v1/assistant/lists/{listId}/shares/{shareId}

Revokes the link: from now on it opens nothing. It stays in the list of links as REVOKED. Answers 204.

Errors: 404 LIST_NOT_FOUND, SHARE_NOT_FOUND.

Parameters

  • listIdstring (uuid)pathRequired
  • shareIdstring (uuid)pathRequired

Responses

  • 200OK