Skip to content

A short-lived link to the content endpoint, for browser downloads and handing to end users.

POST
/v1/nodes/{id}/content-link
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.

id
required
string

The node (nod_…); it must have content.

Example

nod_01j9n4wqr0e008000000000004
Media typeapplication/json
One of:
null

Example

{
"expiresInMinutes": 15
}

OK

Media typeapplication/json

A short-lived link to a node’s content.

object
url
required

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.

string
expiresAt
required

When the link stops working.

string format: date-time

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.

Media typeapplication/problem+json

RFC 9457 problem details. code is the stable reason; confirmation problems add impact and impactToken.

object
type

urn:contentsurface:problem:{code}.

string
title

A short summary for people; may change.

string
status

The HTTP status code.

integer
detail

What happened in this case, for people; may change.

string
code

The stable, machine-readable reason, such as version-mismatch; branch on this.

string
field

For validation-failed: the request field that is not valid.

string
impactToken

For confirmation-required: repeat the call with ?confirm={impactToken} to go ahead.

string
impact

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).

Media typeapplication/problem+json

RFC 9457 problem details. code is the stable reason; confirmation problems add impact and impactToken.

object
type

urn:contentsurface:problem:{code}.

string
title

A short summary for people; may change.

string
status

The HTTP status code.

integer
detail

What happened in this case, for people; may change.

string
code

The stable, machine-readable reason, such as version-mismatch; branch on this.

string
field

For validation-failed: the request field that is not valid.

string
impactToken

For confirmation-required: repeat the call with ?confirm={impactToken} to go ahead.

string
impact

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.

Media typeapplication/problem+json

RFC 9457 problem details. code is the stable reason; confirmation problems add impact and impactToken.

object
type

urn:contentsurface:problem:{code}.

string
title

A short summary for people; may change.

string
status

The HTTP status code.

integer
detail

What happened in this case, for people; may change.

string
code

The stable, machine-readable reason, such as version-mismatch; branch on this.

string
field

For validation-failed: the request field that is not valid.

string
impactToken

For confirmation-required: repeat the call with ?confirm={impactToken} to go ahead.

string
impact

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.

Media typeapplication/problem+json

RFC 9457 problem details. code is the stable reason; confirmation problems add impact and impactToken.

object
type

urn:contentsurface:problem:{code}.

string
title

A short summary for people; may change.

string
status

The HTTP status code.

integer
detail

What happened in this case, for people; may change.

string
code

The stable, machine-readable reason, such as version-mismatch; branch on this.

string
field

For validation-failed: the request field that is not valid.

string
impactToken

For confirmation-required: repeat the call with ?confirm={impactToken} to go ahead.

string
impact

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.

Media typeapplication/problem+json

RFC 9457 problem details. code is the stable reason; confirmation problems add impact and impactToken.

object
type

urn:contentsurface:problem:{code}.

string
title

A short summary for people; may change.

string
status

The HTTP status code.

integer
detail

What happened in this case, for people; may change.

string
code

The stable, machine-readable reason, such as version-mismatch; branch on this.

string
field

For validation-failed: the request field that is not valid.

string
impactToken

For confirmation-required: repeat the call with ?confirm={impactToken} to go ahead.

string
impact

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"
}