Skip to content

Downloads through a content link. The link is the credential; access is re-checked on every use.

GET
/v1/content-links/{token}
curl --request GET \
--url https://api.contentsurface.io/v1/content-links/eyJ0IjoiMDE5MjZhNGUiLCJuIjoiMDE5MjZhNGUifQ.k3Jx9QpLw2 \
--header 'If-Range: "q8Zt1mY4kR2vN6pX0bWc3A"' \
--header 'Range: bytes=0-1048575'

Streams the content through a content link, exactly as the content call does, ranges included. The link is the credential: no access token is sent. Every use checks again that the user who asked for the link is active, has not signed out everywhere and may still read the node — and, for a link issued to an impersonating client, that the client may still act for them. An expired, altered or no longer valid link answers 404.

token
required
string

The link’s signed token, the last segment of its address.

Example

eyJ0IjoiMDE5MjZhNGUiLCJuIjoiMDE5MjZhNGUifQ.k3Jx9QpLw2
Range
string

One byte range: bytes=start-end, bytes=start- or bytes=-suffix.

Example

bytes=0-1048575
If-Range
string

The ETag of an earlier response: the range is served only if the content is still that version, otherwise the whole content with 200. A date never matches.

Example

"q8Zt1mY4kR2vN6pX0bWc3A"

OK

One byte range of the content, read at the source; Content-Range tells which. Only a single bytes range is served; several get the whole content.

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 content link does not exist.",
"code": "not-found"
}

The range starts at or past the end of the content; Content-Range: bytes */{length} tells its length.

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:range-not-satisfiable",
"title": "The range is not satisfiable.",
"status": 416,
"detail": "The requested range starts at or past the end of the content.",
"code": "range-not-satisfiable",
"contentLength": 482113
}

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. Or retrieval-allowance-exhausted: the month’s retrieval is past the plan’s allowance, its bandwidth packs and the slowed-down steps after them; new streams are refused until resetsAt, the start of the next UTC month — do not retry before then.

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

The source refused the content (source-unavailable, a permanent failure).

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:source-unavailable",
"title": "The source could not deliver the content.",
"status": 502,
"detail": "The connector reported item.access_denied.",
"code": "source-unavailable"
}

The source is not reachable now (source-unavailable).

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:source-unavailable",
"title": "The source could not deliver the content.",
"status": 503,
"detail": "The connector reported source.unreachable.",
"code": "source-unavailable",
"retryAfter": 30
}