Email

Update message labels

Changed on

Adds/removes labels on a message. Add spam to report it as spam or trash to move it to trash; remove the label to undo. Trashed messages are permanently deleted 30 days after they were trashed. Both hide the message, and a thread with nothing else left, from lists and search unless include_spam / include_trash is set. The held label can only be changed by a person in the Crevio inbox.

patch/email/inboxes/{inbox_id}/messages/{id}

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Path parameters

inbox_id, string required

Inbox id (inbox_…)

id, string required

Message id

Request body

object required
add_labels, union

Labels to add. Crevio uses unread (new incoming mail), starred and archived (out of the inbox, still listed) like Gmail; spam and trash hide the mail from lists and search until removed. held can't be changed through the API.

remove_labels, union

Labels to remove. Removing spam or trash brings the mail back.

Response

Updated

EmailMessage required
object, string required
id, string required
thread_id, string required
inbox_id, string required
direction, 'inbound' | 'outbound' required
status, 'received' | 'queued' | 'sent' | 'delivered' | 'bounced' | 'complained' | 'failed' required
origin, string required
message_id, string required
in_reply_to, string nullable required
references, string[] required
from, string required
from_name, string required
names, object required
to, unknown[] required
cc, unknown[] required
bcc, unknown[] required
reply_to, string nullable required
subject, string nullable required
preview, string nullable required
labels, string[] required
suppressed, unknown[] required
delivery, object required
delivered_at, string date-time nullable required
attachments, unknown[] required
size, integer nullable required
headers, object required
text, string required
html, string required
timestamp, string required
created_at, string date-time required

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    2 more changes in this revision