Generate Inbox Draft
POST /inbox/drafts/generate
Write or rewrite a message with the model. THIS SPENDS CREDITS.
DELIVERS NOTHING. It returns text; sending it is a separate, external
call. Classified billable (inbox:run) because it charges - 402 when
the organisation has no credits left.
ONE CHARGE PER CALL, including a multi-operation call: pass a LIST in
operation to apply several transforms in a single generation rather than
paying per transform.
generate_from_scratch is the only operation that does not need
message_html; give it either a conversation_id + channel_type to
ground the reply in the thread, or free-text instructions to write
something with no thread at all.
Wider than the already-published GET /inbox/{reply_id}/draft, which only
ever generates from scratch on an existing thread.
Authorizations
Parameters
Header Parameters
Request Body required
Ask the model to write or rewrite a message. THIS SPENDS CREDITS.
One charge per call, including a multi-operation call: pass a LIST in
operation to apply several transforms in a single generation rather than
paying for each.
Nothing here is delivered anywhere - it returns text. Sending it is a separate call.
object
The text to transform. Required by every operation except generate_from_scratch.
Responses
200
Successful Response
object
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
object
Whether there are more pages
Items per page
Current page number (1-indexed)
Total number of items
422
Validation Error