Skip to main content

Say why a tag is recommended for a document.

GET/api/v1/documents/{document_id}/recommended-tags/{recommended_tag_id}/explanationdocuments:read

The documents behind the recommendation, one group per signal: related (near-duplicates, attachments, cross-references), similar (text), recent (your own recent tagging), folder (tagging in the document's folders) and similar_details (similar metadata). Each group has its total and its first documents. 404 when the tag is not one you could be offered. Needs View Tag Recommendation Explanations, View Tag Recommendations, View Document Metadata, View Tags and read access to the document.

Scopedocuments:read
AsynchronousNo
MCP toolget_document_recommended_tag_explanation
Portal permissionsview_tag_recommendation_explanations, view_tag_recommendations, view_document_metadata, view_tags

Parameters​

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

Responses​

StatusDescriptionBody
200Success.application/json RecommendedTagExplanation
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​

RecommendedTagExplanation​

FieldTypeRequiredDescription
document_embeddedboolean or nullRequiredfalse when the document is not indexed yet; null when that could not be checked.
evidencearray of TagEvidenceGroupRequiredOnly the signals that found documents carrying the tag.
recommended_tag_idstringRequired
tag_namestringRequired

TagEvidenceDocument​

FieldTypeRequiredDescription
datestring or nullRequiredThe document's date as the Portal formats it.
descriptionstring or nullRequired
distancenumber or nullRequiredSimilar documents only: the embedding distance.
document_idstringRequired
document_numberstring or nullRequired
document_typestring or nullRequired
folderstring or nullRequiredThe document's folder paths, separated by semicolons.
scorenumber or nullRequiredSimilar documents only: 1 / (1 + distance), higher is more alike.
tagged_atstring or nullRequiredRecent and folder taggings only: when the tag was put on the document.

TagEvidenceGroup​

FieldTypeRequiredDescription
documentsarray of TagEvidenceDocumentRequired
kindstringRequiredrelated, similar, recent, folder or similar_details (an open enum).
totalintegerRequiredHow many documents the signal found; documents holds the first of them. ≥ -2147483648; ≤ 2147483647