Conversations
Move Conversations to or from Spam
Move up to 100 conversations into the Spam folder or back to the inbox
POST
Move Conversations to or from Spam
Move conversations into the Spam folder, or back to the inbox when the spam scan got it wrong. Mail sent to your inbox addresses that the inbound spam or virus scan flags already lands in Spam on its own. Spam conversations are left out of List Conversations unless you pass
Requests whose
spam=true, and out of unread and open counts.
Only conversations that move are updated, so you can safely retry a request after a timeout.
Request
string[]
required
Conversation IDs to move, up to 100 distinct IDs. Surrounding whitespace is
trimmed, and blank or repeated IDs are ignored before the limit is checked. At
least one non-blank ID is required.
boolean
required
true moves the conversations to Spam; false moves them back to the inbox.Response
boolean
true when the request was processed.boolean
Where the conversations were moved:
true for Spam, false for the inbox.integer
Number of distinct conversation IDs in the request.
integer
Number of conversations that moved.
integer
Number of conversations that were already there.
integer
Number of IDs that do not exist in your company. They are skipped; the rest of
the request still applies.
string[]
IDs that moved, in request order.
string[]
IDs that were already there, in request order.
string[]
IDs that do not exist in your company, in request order.
conversationIds array has no usable IDs or more than 100 distinct IDs return 400. A missing or non-boolean spam, or a missing or non-array conversationIds, returns 422. Rejected requests change no conversations. The API key needs the conversations:write scope.