A short-lived link to the content endpoint, for browser downloads and handing to end users.
const url = 'https://api.contentsurface.io/v1/nodes/nod_01j9n4wqr0e008000000000004/content-link';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"expiresInMinutes":15}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.contentsurface.io/v1/nodes/nod_01j9n4wqr0e008000000000004/content-link \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "expiresInMinutes": 15 }'Issues a short-lived link to the node’s content, for a browser download or to hand to the end user an integration acts for: the link works without an access token until it expires. It stays tied to the user and client that asked for it — every use checks again that the user is active, has not signed out everywhere and may still read the node. Answers 429 retrieval-allowance-exhausted already here when retrieval is refused for the rest of the month. Any user with the content scope.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The node (nod_…); it must have content.
Example
nod_01j9n4wqr0e008000000000004Request Body
Section titled “Request Body”Responses
Section titled “Responses”OK
A short-lived link to a node’s content.
object
The link: an address of the API that streams the content without an access token. Hand it to a browser or an end user; treat it as a secret until it expires.
When the link stops working.
Example
{ "url": "https://api.contentsurface.io/v1/content-links/eyJ0IjoiMDE5MjZhNGUiLCJuIjoiMDE5MjZhNGUifQ.k3Jx9QpLw2", "expiresAt": "2026-11-03T15:27:00+00:00"}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 node 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:retrieval-allowance-exhausted", "title": "The month's retrieval allowance is used up.", "status": 429, "detail": "Content retrieval stops until the month ends. The tenant owner can buy bandwidth packs or upgrade the plan on the billing page; search and browse are unaffected.", "code": "retrieval-allowance-exhausted", "retryAfter": 2364480, "resetsAt": "2026-12-01T00:00:00+00:00"}