The nodes related to this one through a definition, keyset-paged.
const url = 'https://api.contentsurface.io/v1/nodes/nod_01j9n4wqr0e008000000000004/relations/rld_01j9n4wvr0e008000000000001?side=from&limit=20&cursor=eyJrIjpbIkZpbmFuY2UiXSwiaSI6IjAxOTI2YTRlIn0';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.contentsurface.io/v1/nodes/nod_01j9n4wqr0e008000000000004/relations/rld_01j9n4wvr0e008000000000001?side=from&limit=20&cursor=eyJrIjpbIkZpbmFuY2UiXSwiaSI6IjAxOTI2YTRlIn0' \ --header 'Authorization: Bearer <token>'The nodes related to this one through one relation definition, as the relations call counts them, trimmed to what the caller can read, keyset-paged. To search or filter within them, use filters.related in a search. Any user with the content scope.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The node (nod_…).
Example
nod_01j9n4wqr0e008000000000004The relation definition (rld_…), from the relations call.
Example
rld_01j9n4wvr0e008000000000001Query Parameters
Section titled “Query Parameters”The side this node is on: from (default) or to, from the relations call.
Example
fromPage size, 1–100; default 50.
Example
20The nextCursor of the previous page; omit for the first page.
Example
eyJrIjpbIkZpbmFuY2UiXSwiaSI6IjAxOTI2YTRlIn0Responses
Section titled “Responses”OK
A page of a keyset-paged list: the items and the cursor to continue from, null on the last page.
object
The items of this page, in the list’s order.
A node: a folder, document, record or message in the repository, as the caller may see it. It never carries a source’s address, link or identifier.
object
The node’s ID (nod_…); stable while the node exists.
The node’s name: a folder’s or file’s name, a record’s or message’s title.
The node’s place in the repository: the folder names from the root folder, joined by /. Each run of folders you cannot read shows as one … (/Projects/…/Contracts). Changes when a folder above is renamed or its access changes.
The parent folder’s ID (nod_…); null for the root folder.
virtualFolder (a folder that exists only in ContentSurface), mountFolder (where a source is
placed), groupFolder (a folder ContentSurface creates below a mount folder to group related
records, such as an account’s Contacts) or item (anything from a source).
True when the node can have children — whether or not it has any now. Browse it with a search whose includeDescendants is false.
Where a folder’s children come from: hierarchy (folders as arranged in ContentSurface or the
source) or relations (records arranged below a record by how they relate); null when the node
cannot have children.
True when the node has content to retrieve with the content call. A node can be a folder and have content, such as an email with attachments.
The node’s document type, such as File, Email or Account; null for ContentSurface’s own folders.
When the item was created in the source.
Who created the item, as the source names them.
When the item was last changed in the source.
Who last changed the item, as the source names them.
The content’s size in bytes; null without content.
The content’s MIME type, such as application/pdf.
When the content was last indexed. Repository admins only.
Whether the content’s text is indexed: indexed, reused (taken over from an identical document),
tooLarge, excludedType, encrypted or noText; null while not yet indexed. Repository admins only.
Why the index is incomplete, by reason: characterCeiling (text beyond the extraction limit),
extractionTimeout, embeddedDocuments (attachments left out), indexedTextCap (text beyond the
plan’s indexed-text cap is searchable by keyword only) or ocrPages (pages not read by OCR); empty
when complete. Repository admins only.
How much of the content is searchable by meaning, in percent. Repository admins only.
The node’s attributes by key — source fields a repository admin mapped, such as author or department. Values are strings, numbers, booleans, dates or lists of them.
object
The attributes a repository admin chose to show with every result of this document type, in their order, as display text; empty, never null.
One entry of the attribute preview: an attribute’s label and its value as display text.
object
The attribute’s key, as in attributes.
The attribute’s name, for display.
The value as display text: dates formatted, lists joined, long text shortened.
A short fragment of the document’s text, for showing with a result; null when it has none.
The relevance score of a search with text; higher is better. Null otherwise. In semantic mode it is the similarity of the best match, while the order also favours a document that matches in several places, so a result can show a slightly higher score than the one before it.
Search only: the related records below this record that matched the search instead of the record itself, such as an order’s lines, at most three, best first. Such records are never results of their own: they are found through the record they belong to. Null when none matched.
A related record a search result was found by.
object
The matched record (nod_…).
The matched record’s name.
The name of the group folder it sits in below the result, such as Lines.
Search with passages only: the hit’s best matching passages of text, best first. Empty for a hit
found by its name or attributes alone; null for hits beyond the first 10, and without passages.
A matched passage of a document’s text, or — when its text is withheld — its page and why.
object
The passage verbatim; null when withheld.
Where the passage starts in the document’s extracted text, in characters.
The passage’s length in characters.
The page the passage starts on, where the document has pages.
Why text is null: beyondIndexedTextCap (past the plan’s indexed-text cap) or notStoredYet (indexed before passages were kept; re-indexing adds it).
Search with include.relations only: a summary of the hit’s relations, one entry per relation
definition and side with at least one related node the caller can read. Null for hits beyond the
first 10, and without include.relations.
A search hit’s relations through one relation definition, seen from one side: a capped count and the first related nodes.
object
The relation definition’s key, as filters.related.definition takes it.
The relation definition (rld_…): list every related node with GET /v1/nodes/{id}/relations/{definitionId}.
What the related nodes are, seen from the hit, such as Cases or Account.
The side the hit is on, from or to, as the related-nodes call takes it.
How many related nodes the caller can read, at most 100; the exact count is on GET /v1/nodes/{id}/relations.
True when there are more than 100, and count says 100.
The first related nodes by ID, as many as include.relations.sample asked; empty when it was 0.
A related node named in a hit’s relation summary: enough to show and open it.
object
The related node (nod_…).
Its name.
Its document type, such as Case; null for ContentSurface’s own folders.
virtualFolder, mountFolder, groupFolder or item, as on a node.
The node’s own address in the API (/v1/nodes/{id}): a stable name for it, not a credential — a reader still needs access.
Pass as cursor to read the next page; null on the last page.
True when there is a next page (nextCursor is set).
Example
{ "items": [ { "id": "nod_01j9n4wqr0e00800000000000g", "name": "Ana Novak", "path": "/Sales/Salesforce/Accounts/Contoso Ltd/Contacts/Ana Novak", "parentId": "nod_01j9n4wqr0e008000000000009", "kind": "item", "isFolder": false, "childrenFrom": null, "isContent": false, "type": "Contact", "createdAt": "2026-09-14T08:30:00+00:00", "createdBy": "Maria Novak", "modifiedAt": "2026-11-03T15:12:00+00:00", "modifiedBy": "Luka Horvat", "size": null, "mimeType": null, "indexedAt": null, "indexState": null, "indexCoverage": null, "semanticCoverage": null, "attributes": { "salesforce.title": "Head of Purchasing" }, "attributePreview": [ { "key": "salesforce.title", "label": "Title", "value": "Head of Purchasing" } ], "contentPreview": null, "score": null, "matchedDetails": null, "passages": null, "relations": null, "permalink": "/v1/nodes/nod_01j9n4wqr0e00800000000000g" } ], "nextCursor": "eyJrIjpbIkZpbmFuY2UiXSwiaSI6IjAxOTI2YTRlIn0", "hasMore": true}The request is not valid: a malformed ID, body, filter or parameter.
RFC 9457 problem details. code is the stable reason; confirmation problems add impact and impactToken.
object
urn:contentsurface:problem:{code}.
A short summary for people; may change.
The HTTP status code.
What happened in this case, for people; may change.
The stable, machine-readable reason, such as version-mismatch; branch on this.
For validation-failed: the request field that is not valid.
For confirmation-required: repeat the call with ?confirm={impactToken} to go ahead.
For confirmation-required: what the change would affect, such as the users or folders losing access.
Example
{ "type": "urn:contentsurface:problem:validation-failed", "title": "The request is not valid.", "status": 400, "detail": "'id' must be an ID of the form nod_… .", "code": "validation-failed", "field": "id"}No valid access token, or it no longer holds for the user (suspended, signed out, relation removed).
RFC 9457 problem details. code is the stable reason; confirmation problems add impact and impactToken.
object
urn:contentsurface:problem:{code}.
A short summary for people; may change.
The HTTP status code.
What happened in this case, for people; may change.
The stable, machine-readable reason, such as version-mismatch; branch on this.
For validation-failed: the request field that is not valid.
For confirmation-required: repeat the call with ?confirm={impactToken} to go ahead.
For confirmation-required: what the change would affect, such as the users or folders losing access.
Example
{ "type": "urn:contentsurface:problem:unauthorized", "title": "Not authenticated.", "status": 401, "detail": "A valid access token is required.", "code": "unauthorized"}Authenticated but not allowed: a missing scope or role, an impersonated token on an admin endpoint, or an inactive tenant.
RFC 9457 problem details. code is the stable reason; confirmation problems add impact and impactToken.
object
urn:contentsurface:problem:{code}.
A short summary for people; may change.
The HTTP status code.
What happened in this case, for people; may change.
The stable, machine-readable reason, such as version-mismatch; branch on this.
For validation-failed: the request field that is not valid.
For confirmation-required: repeat the call with ?confirm={impactToken} to go ahead.
For confirmation-required: what the change would affect, such as the users or folders losing access.
Example
{ "type": "urn:contentsurface:problem:scope-required", "title": "Not allowed.", "status": 403, "detail": "This endpoint requires the cs.content scope.", "code": "scope-required"}Absent: not existing, in another tenant, or not readable by the caller — never distinguished.
RFC 9457 problem details. code is the stable reason; confirmation problems add impact and impactToken.
object
urn:contentsurface:problem:{code}.
A short summary for people; may change.
The HTTP status code.
What happened in this case, for people; may change.
The stable, machine-readable reason, such as version-mismatch; branch on this.
For validation-failed: the request field that is not valid.
For confirmation-required: repeat the call with ?confirm={impactToken} to go ahead.
For confirmation-required: what the change would affect, such as the users or folders losing access.
Example
{ "type": "urn:contentsurface:problem:not-found", "title": "Not found.", "status": 404, "detail": "The relation definition does not exist.", "code": "not-found"}Load protection: the tenant is making too many calls, or running too many searches or content streams, at once. Transient and never a quota; retry after Retry-After seconds.
RFC 9457 problem details. code is the stable reason; confirmation problems add impact and impactToken.
object
urn:contentsurface:problem:{code}.
A short summary for people; may change.
The HTTP status code.
What happened in this case, for people; may change.
The stable, machine-readable reason, such as version-mismatch; branch on this.
For validation-failed: the request field that is not valid.
For confirmation-required: repeat the call with ?confirm={impactToken} to go ahead.
For confirmation-required: what the change would affect, such as the users or folders losing access.
Example
{ "type": "urn:contentsurface:problem:too-many-requests", "title": "Too many requests.", "status": 429, "detail": "The tenant is making more API calls than one replica serves at once; retry shortly.", "code": "too-many-requests", "retryAfter": 1}