Skip to Content
SendlySendly
API ReferenceMailboxes

File a conversation as spam, or pass spam: false to move it back to the inbox

POST
/api/mailboxes/{id}/conversations/{conversationId}/spam

File a conversation as spam, or pass spam: false to move it back to the inbox. Mail clients see the same move.

Requires the mailboxes:write scope — Create and delete mailboxes on your verified domains.

headerAuthorizationBearer <API Key>

API key authentication. Use a sk_* (FULL) or pk_* (SENDING_ONLY) key as the bearer token. Public keys (pk_*) are restricted to the email-send endpoints and the self-serve list subscribe/unsubscribe pair; every other endpoint — event tracking included — answers 403 for them. In scope terms (used by /api/v1/* operations): FULL keys hold every scope; SENDING_ONLY keys hold only emails:send.

id*string
conversationId*string

Response Body

OK

application/json
  1. response
[key: string]?unknown
Example Request
curl -X POST 'https://api.sendly.now/api/mailboxes/string/conversations/string/spam'
Example Response
{  "property1": null,  "property2": null}