Generate an answer
/api/v1/rfps/{rfp_id}/rfp_items/{id}/generate_answerRuns the full answer pipeline synchronously — retrieval, answer, confidence rating — and returns the updated item. Replaces any existing answer. Consumes credits. Expect the call to take several seconds.
Authorizations
Section titled “Authorizations”Path Parameters
Section titled “Path Parameters”Example
rfp_1a2bThe RFP’s prefixed ID
The record’s prefixed ID
Responses
Section titled “Responses”200
The item with its generated answer
The item with its generated answer
object
Why the answer was given
Guidance text supplied with the question
0–1, encoded as a decimal string
Decimal string; 0 when there is no confidence
Answer formatted for pasting into a portal
Why the knowledge base was insufficient
1-based position in the RFP
As Reference, but source passages carry no page or section detail
object
Numeric database ID
Numeric database ID of the referenced record
Vector distance from the question
The passage quoted in the answer, when it was used
403
Out of credits, or no active subscription (usage_blocked)
Out of credits, or no active subscription (usage_blocked)
object
object
A stable machine-readable code
Present on validation errors; one entry per failed validation
404
No such record in this account
No such record in this account
object
object
A stable machine-readable code
Present on validation errors; one entry per failed validation
422
Answer generation failed
Answer generation failed
object
object
A stable machine-readable code
Present on validation errors; one entry per failed validation