Update a message
PATCH
/v1/messages/{id}| Name | Type | Description |
|---|---|---|
is_read | boolean | Mark read or unread. |
is_starred | boolean | Star or unstar. |
folder | string | Move to this folder (a role such as trash, or a folder id). |
Send only the fields you want to change. The response is the updated message object.
curl -X PATCH "https://api.tuskmail.africa/v1/messages/Mabc123" \
-H "X-API-Key: $TK_API_KEY" \
-u "$MAILBOX_EMAIL:$APP_PASSWORD" \
-H "Content-Type: application/json" \
-d '{
"is_read": true,
"is_starred": true,
"folder": "inbox"
}'Delete a message
DELETE
/v1/messages/{id}| Name | Type | Description |
|---|---|---|
permanent | boolean | If true, delete permanently instead of moving to Trash. Default false. |
curl -X DELETE "https://api.tuskmail.africa/v1/messages/Mabc123?permanent=false" \
-H "X-API-Key: $TK_API_KEY" \
-u "$MAILBOX_EMAIL:$APP_PASSWORD"Returns 204 No Content with no body.