Skip to content

The agent's current installation packages per platform, with size, SHA-256 and short-lived download links.

GET
/v1/admin/agents/downloads
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.

OK

Media typeapplication/json

The agent’s current release.

object
version
required

The release’s version; null when no package is published yet.

null | string
publishedAt
required

When it was published; null when none is.

null | string format: date-time
expiresAt
required

When the download links stop working; null when there are none.

null | string format: date-time
packages
required

One package per platform; empty when none is published.

Array<object>

One platform’s package of the agent.

object
platform
required

win-x64 (Windows Server 2016 or later, 64-bit) or linux-x64 (glibc-based Linux, 64-bit).

string
fileName
required

The archive’s file name: a .zip for Windows, a .tar.gz for Linux. It unpacks to a folder named like it.

string
size
required

The archive’s size in bytes.

integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
sha256
required

The archive’s SHA-256, 64 lowercase hex digits; compare it with the downloaded file’s before installing.

string
url
required

The download link: works without an access token until expiresAt.

string

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

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

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

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