Archive inbox messages

Move messages out of the Priority Inbox into Archived Only, or restore them.

POST https://cotlet.dev/api/v1/sendible/inbox-messages/archive

write

Archives the given messages, or restores them when restore is true. Archived messages stay in the Archived Only view and nothing is deleted. It reaches no one and is undone with one call, so it does not ask for your OK.

Parameters

Parameters: archive_inbox_messages
NameTypeDescription
message_ids array required array Messages from list_inbox_messages.
restore boolean boolean Restore from Archived Only instead of archiving. Default: false.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/sendible/inbox-messages/archive \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"message_ids":"message ids"}'
Python
result = client.call("sendible", "archive_inbox_messages", {"message_ids":"message ids"})
Node.js
const result = await cotlet.call('sendible', 'archive_inbox_messages', {"message_ids":"message ids"});
CLI
cotlet call sendible archive_inbox_messages --data '{"message_ids":"message ids"}'

Example response

JSON

{
  "archived": [
    "msg_91f9"
  ],
  "restored": [],
  "failed": []
}

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.