Email

Update thread labels

Changed on

Adds/removes labels on every message in a thread. Add spam to report the conversation 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. A new message arriving on a trashed thread brings it back. The held label can only be changed by a person in the Crevio inbox.

patch/email/inboxes/{inbox_id}/threads/{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

Thread 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

EmailThread required
object, string required
id, string required
inbox_id, string required
subject, string nullable required
preview, string nullable required
labels, string[] required
participants, string[] required
message_count, integer required
senders, string[] required
recipients, string[] required
last_message_id, string required
size, integer required
messages, unknown[] required
last_message_at, string date-time nullable required
timestamp, string date-time required
received_timestamp, string date-time required
sent_timestamp, string date-time required
created_at, string date-time required
updated_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