Skip to main content

Get a passage answer.

GET/api/v1/passage-answers/{passage_answer_id}documents:search

Needs View Clustering Answers. The answer's status (pending, completed or failed), and once completed its text and the documents it cites (citations, in the order first cited). Only the user who asked can read it (404 otherwise); the Portal keeps an answer for a day.

Scopedocuments:search
AsynchronousNo
MCP toolget_passage_answer
Portal permissionsview_clustering_answers

Parameters​

NameInTypeRequiredDescription
passage_answer_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
If-None-MatchheaderstringOptionalAnswers 304 when the representation is unchanged (resources that publish an ETag).

Responses​

StatusDescriptionBody
200Success.application/json PassageAnswer
304Not modified (If-None-Match matched the ETag).
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

PassageAnswer​

FieldTypeRequiredDescription
answerstring or nullRequiredThe answer, with its citations as <<document id.page>>; null until completed.
citationsarray of PassageAnswerCitationRequiredThe documents the answer cites, in the order first cited.
passage_answer_idstringRequired
statusstringRequiredpending, completed or failed.

PassageAnswerCitation​

FieldTypeRequiredDescription
document_idstringRequired