List an item's references
GET
/api/v1/questionnaires/{questionnaire_id}/questionnaire_items/{id}/referencesEvery reference the retrieval step surfaced, most relevant first. Not
paginated. A reference with cited_text set was quoted in the answer.
Authorizations
Section titled “Authorizations”Path Parameters
Section titled “Path Parameters”NameType
questionnaire_id
required
string
Example
qu_1a2bThe questionnaire’s prefixed ID
id
required
string
The record’s prefixed ID
Responses
Section titled “Responses”200
References
References
Response body
Media typeapplication/json
object
references
Array<object>
A knowledge base item or source passage retrieved for an answer
object
id
integer
Numeric database ID
reference_type
string
reference_id
integer
Numeric database ID of the referenced record
relevance_score
number | null
relevance_as_words
string
distance
number | null
Vector distance from the question
search_method
string | null
cited_text
string | null
The passage quoted in the answer, when it was used
created_at
string format: date-time
reference
One of:
Present when reference_type is KnowledgeBaseItem
object
id
string
web_link
string format: uri
question
string
answer
string | null
state
string
Present when reference_type is Embedding
object
id
string
text
string
The passage text
source_title
string | null
page
integer | null
Page of the source document
section
string | null
section_breadcrumb
string | null
Heading path to the section
404
No such record in this account
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