Skip to content

Enhance a supplied answer

POST
/api/v1/questionnaires/{questionnaire_id}/questionnaire_items/{id}/ai_enhance_answer

Returns the enhanced text without saving it — PATCH it back onto the item if you want to keep it. Synchronous. Consumes credits.

NameType
questionnaire_id
required
string
Example
qu_1a2b

The questionnaire’s prefixed ID

id
required
string

The record’s prefixed ID

Media typeapplication/json
object
original_answer
required
string

200

The enhanced answer

Response body
Media typeapplication/json
object
answer
string

403

Out of credits, or no active subscription (usage_blocked)

Response body
Media typeapplication/json
object
error
object
code
string

A stable machine-readable code

message
string
details
Array<string>

Present on validation errors; one entry per failed validation

404

No such record in this account

Response body
Media typeapplication/json
object
error
object
code
string

A stable machine-readable code

message
string
details
Array<string>

Present on validation errors; one entry per failed validation

422

A required parameter is missing

Response body
Media typeapplication/json
object
error
object
code
string

A stable machine-readable code

message
string
details
Array<string>

Present on validation errors; one entry per failed validation