Skip to main content
POST
Generate replies

Authorizations

X-API-Key
string
header
required

API Key for authentication

Body

application/json
items
object[]
required

Conversations to generate replies for, 1 to 10.

Required array length: 1 - 10 elements

Response

status
string
required

Response status

Allowed value: "success"
data
object[]
required

One result per conversation in request order: generated reply or error. Generate without instructions may decline with needs_human: final_message, open_promise, call_outcome, missing_info, inappropriate_context or other. No new draft text is saved. The tool error (or batch item.error.message, with no item) says Reply not generated and includes the reason and model explanation. Show these to the user; generate with instructions reflecting the user's direction only if the user asks to write anyway. Do not retry uninstructed generation to bypass the refusal.

message
string
required

Success message

Example:

"Operation completed successfully"