The agent's current installation packages per platform, with size, SHA-256 and short-lived download links.
const url = 'https://api.contentsurface.io/v1/admin/agents/downloads';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/admin/agents/downloads \ --header 'Authorization: Bearer <token>'The current release of the on-prem agent: per platform, the archive’s file name, size, SHA-256 and a download link that works without an access token for 15 minutes — open it in a browser or fetch it with any HTTP client. The archive holds the agent and its install scripts; the enrollment file is issued separately, per agent. While no release is published, version is null and packages empty. Repository admins.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
The agent’s current release.
object
The release’s version; null when no package is published yet.
When it was published; null when none is.
When the download links stop working; null when there are none.
One package per platform; empty when none is published.
One platform’s package of the agent.
object
win-x64 (Windows Server 2016 or later, 64-bit) or linux-x64 (glibc-based Linux, 64-bit).
The archive’s file name: a .zip for Windows, a .tar.gz for Linux. It unpacks to a folder named like it.
The archive’s size in bytes.
The archive’s SHA-256, 64 lowercase hex digits; compare it with the downloaded file’s before installing.
The download link: works without an access token until expiresAt.
Example
{ "version": "1.0.0", "publishedAt": "2026-10-22T15:12:00+00:00", "expiresAt": "2026-11-03T15:27:00+00:00", "packages": [ { "platform": "win-x64", "fileName": "contentsurface-agent-1.0.0-win-x64.zip", "size": 41873212, "sha256": "3f6c1a9e0b7d4c2e8a5f1b3d6e9c0a7b4d2f8e1c5a9b3d7f0e2c4a6b8d1f3e5a", "url": "https://cs-agent-packages.s3.eu-central-1.amazonaws.com/agent/1.0.0/contentsurface-agent-1.0.0-win-x64.zip?X-Amz-Expires=900&X-Amz-Signature=5b2e9d" }, { "platform": "linux-x64", "fileName": "contentsurface-agent-1.0.0-linux-x64.tar.gz", "size": 38120448, "sha256": "9a0d2c4e6f8b1a3c5e7d9f0b2d4f6a8c0e1b3d5f7a9c2e4b6d8f0a1c3e5b7d9f", "url": "https://cs-agent-packages.s3.eu-central-1.amazonaws.com/agent/1.0.0/contentsurface-agent-1.0.0-linux-x64.tar.gz?X-Amz-Expires=900&X-Amz-Signature=c81f04" } ]}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:role-required", "title": "Not allowed.", "status": 403, "detail": "This endpoint requires one of the roles: repositoryAdmin.", "code": "role-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 resource 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}