Skip to main content

List a document's cross-references.

GET/api/v1/documents/{document_id}/cross-referencesdocuments:read

The links from this document (outgoing) and the links to it from documents the caller can read (incoming), as the Portal's cross-reference list shows both; direction=outgoing or direction=incoming narrows it. A link to a document the caller cannot read is left out. 403 when the document is hidden from the caller.

Scopedocuments:read
AsynchronousNo
MCP toollist_document_cross_references
Portal permissionsview_document_relations
Pagingkeyset
Default ordercross_reference_id
Sort fieldscross_reference_id
Filtersdirection

Parameters​

NameInTypeRequiredDescription
document_idpathstringRequired
limitqueryintegerOptionalDefault: 50; ≥ 1
cursorquerystringOptional
sortquerystringOptionalComma-separated sort fields, - for descending.
directionqueryarray of stringOptional
Docwize-Versionheaderstring (date)Optional
If-None-MatchheaderstringOptionalAnswers 304 when the representation is unchanged (resources that publish an ETag).

Responses​

StatusDescriptionBody
200Success.application/json object
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
410cursor_expiredapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422invalid_cursor, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

200 body​

FieldTypeRequiredDescription
itemsarray of CrossReferenceRequired
next_cursorstring or nullRequired
warningsarray of objectRequired

Errors​

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

Schemas​

CrossReference​

FieldTypeRequiredDescription
cross_reference_idstringRequired
cross_reference_reason_idstring or nullRequirednull when the stored reason is empty.
descriptionstringRequired
source_document_idstringRequiredThe document the link is made from; the links of a document are outgoing when it is the source and incoming when it is the target.
target_document_idstring or nullRequirednull when the stored target is empty.