Archive items

Move items from the Inbox to the Archive.

POST https://cotlet.dev/api/v1/dext/items/archive

write

Archives the items, in bulk. The call reaches no one and is undone with unarchive_items, so it runs without asking.

Parameters

Parameters: archive_items
NameTypeDescription
item_ids string[] required string[] Item IDs from list_items.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/dext/items/archive \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"item_ids":["item ids"]}'
Python
result = client.call("dext", "archive_items", {"item_ids":["item ids"]})
Node.js
const result = await cotlet.call('dext', 'archive_items', {"item_ids":["item ids"]});
CLI
cotlet call dext archive_items --data '{"item_ids":["item ids"]}'

Example response

JSON

{
  "archived": [
    "it_7f3a11",
    "it_7f3a12"
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.