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
| Name | Type | Description |
|---|---|---|
| message_ids array required | array | Messages from list_inbox_messages. |
| restore boolean | boolean | Restore from Archived Only instead of archiving. Default: false. |
Request
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"}' result = client.call("sendible", "archive_inbox_messages", {"message_ids":"message ids"}) const result = await cotlet.call('sendible', 'archive_inbox_messages', {"message_ids":"message ids"}); cotlet call sendible archive_inbox_messages --data '{"message_ids":"message ids"}' Example response
{
"archived": [
"msg_91f9"
],
"restored": [],
"failed": []
}