Skip to content

Grade Reply Draft

POST
/inbox/drafts/grade

Grade an UNSENT email reply against its thread: a label, a 0-100 score, reasons and up to two suggestions.

Never charged and sends nothing. 404 when grading is off, or the thread is missing or its mailbox is not visible to the key; 422 for fewer than 3 words; 503 when grading failed.

Authorizations

Parameters

Header Parameters

X-Target-Org-Id
Any of:
string

Request Body required

Grade an unsent reply against its thread.

object
draft_text
required

Plain-text reply draft.

string
>= 1 characters <= 20000 characters
thread_id
required

Email thread id (the id from GET /inbox).

string
>= 1 characters <= 2048 characters

Responses

200

Successful Response

object
data
required

An open envelope for a comment, an assignment or a workspace.

Open because a comment carries attachment refs and mention metadata that grow, and because an assignment result reports per-assignee outcomes.

object
key
additional properties
any
pagination
Any of:
object
has_next
required

Whether there are more pages

boolean
limit
required

Items per page

integer
next_cursor
Any of:
string
notes
Any of:
Array<string>
page
required

Current page number (1-indexed)

integer
total
required

Total number of items

integer
total_available
Any of:
integer
total_is_lower_bound
Any of:
boolean

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string