Skip to content

The tenant's settings: stored values, the values in force and their bounds.

GET
/v1/admin/settings
curl --request GET \
--url https://api.contentsurface.io/v1/admin/settings \
--header 'Authorization: Bearer <token>'

The tenant’s settings: the values set, the values in force, each number setting’s range, what the list settings may hold, and the values ContentSurface sets for the plan. The ETag header carries their version. Tenant admins.

OK

Media typeapplication/json

The tenant’s settings: what is set, what is in force, and what is allowed.

object
values
required

The values set; null means the default.

object
crawlIntervalMinutes
required

How often every active mount folder is rescanned; never shorter than the plan allows, at most 24 hours.

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

How long deleted items are kept, restorable, before they are removed for good.

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

How long an invitation is valid.

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

Larger files are listed and can be opened, but their text is not indexed.

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

File extensions never indexed, lower case without the dot; on top of the types never indexed on any plan.

Array<string> | null
ocrLanguages
required

The languages scanned images are read in; an empty list turns OCR off.

Array<string> | null
extractionService

saas or onPrem: where text is read from documents; a choice only where the plan permits several.

null | string
embeddingService

provider, saas or onPrem: where text is embedded for meaning-based search; a choice only where the plan permits several.

null | string
embeddingProvider

The external provider while the embedding service is provider.

null | string
entraTenantIds

Allowed Entra ID directories (tenant GUIDs); empty: no sign-in with Microsoft.

Array<string> | null
googleWorkspaceDomains

Allowed Google Workspace domains; empty: no sign-in with Google.

Array<string> | null
federatedSessionHours

How long a federated session lasts before the provider sign-in is required again.

null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
mcpAccess

Whether AI applications (MCP clients) may sign users in and read content through the MCP endpoint; off by default. Turning it off ends every MCP grant.

null | boolean
mcpClientHosts

The AI application hosts allowed to sign in, such as claude.ai; empty: any, while mcpAccess is on. Removing a host ends its grants.

Array<string> | null
effective
required

The values in force, defaults filled in and bounded by the plan.

object
crawlIntervalMinutes
required

How often every active mount folder is rescanned; never shorter than the plan allows, at most 24 hours.

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

How long deleted items are kept, restorable, before they are removed for good.

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

How long an invitation is valid.

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

Larger files are listed and can be opened, but their text is not indexed.

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

File extensions never indexed, lower case without the dot; on top of the types never indexed on any plan.

Array<string> | null
ocrLanguages
required

The languages scanned images are read in; an empty list turns OCR off.

Array<string> | null
extractionService

saas or onPrem: where text is read from documents; a choice only where the plan permits several.

null | string
embeddingService

provider, saas or onPrem: where text is embedded for meaning-based search; a choice only where the plan permits several.

null | string
embeddingProvider

The external provider while the embedding service is provider.

null | string
entraTenantIds

Allowed Entra ID directories (tenant GUIDs); empty: no sign-in with Microsoft.

Array<string> | null
googleWorkspaceDomains

Allowed Google Workspace domains; empty: no sign-in with Google.

Array<string> | null
federatedSessionHours

How long a federated session lasts before the provider sign-in is required again.

null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
mcpAccess

Whether AI applications (MCP clients) may sign users in and read content through the MCP endpoint; off by default. Turning it off ends every MCP grant.

null | boolean
mcpClientHosts

The AI application hosts allowed to sign in, such as claude.ai; empty: any, while mcpAccess is on. Removing a host ends its grants.

Array<string> | null
bounds
required

Number settings’ defaults and ranges, by setting name.

object
key
additional properties

A number setting’s default and allowed range, from the plan and the platform.

object
default
required

The value when none is set.

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

The smallest allowed.

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

The largest allowed.

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

What list and choice settings may hold.

object
ocrLanguages
required

The OCR languages offered.

Array<string>
defaultOcrLanguages
required

The OCR languages used when none are set.

Array<string>
maxOcrLanguages
required

How many may be chosen.

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

How many extensions may be excluded.

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

Extensions never indexed on any plan: archives, disk images, audio, video, programs.

Array<string>
extractionServices
required

The extraction services the plan permits.

Array<string>
embeddingServices
required

The embedding services the plan permits.

Array<string>
embeddingProviders
required

The external providers offered, by region.

Array<string>
federatedProviders
required

The sign-in providers offered: entra, google.

Array<string>
maxAllowedDirectories
required

How many directories may be allowed per provider.

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

Values set by ContentSurface, read-only.

object
plan
required

The plan’s limits that are not settings.

object
maxIndexedTextCharsPerNode
required

The indexed-text cap: characters of one document searchable by meaning and kept for passages.

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

Pages of one document read by OCR.

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

The fair-use extracted text volume, in bytes.

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

The extraction services the plan permits.

Array<string>
embeddingServices
required

The embedding services the plan permits.

Array<string>
platform
required

Values the same for every tenant.

object
extractionTimeoutSeconds
required

How long reading one document’s text may take.

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

Characters read from one document at most; the rest is not indexed.

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

The longest text attribute value kept.

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

The most values a text list attribute keeps.

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

The longest value in a text list.

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

The attribute preview’s length at most.

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

One value’s length in the attribute preview at most.

integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
profile
required
One of:
null
version
required

The settings’ version, also their ETag.

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

Example

{
"values": {
"crawlIntervalMinutes": 240,
"deletedNodeRetentionDays": null,
"invitationExpiryDays": null,
"fileSizeLimitMegabytes": null,
"excludedExtensions": [
"bak",
"tmp"
],
"ocrLanguages": null,
"extractionService": null,
"embeddingService": null,
"embeddingProvider": null,
"entraTenantIds": [
"3f1c2a8e-5b7d-4e0a-9c61-2d84b7f0a913"
],
"googleWorkspaceDomains": null,
"federatedSessionHours": null,
"mcpAccess": true,
"mcpClientHosts": [
"ai.example.com"
]
},
"effective": {
"crawlIntervalMinutes": 240,
"deletedNodeRetentionDays": 30,
"invitationExpiryDays": 14,
"fileSizeLimitMegabytes": 100,
"excludedExtensions": [
"bak",
"tmp"
],
"ocrLanguages": [
"eng",
"deu"
],
"extractionService": "saas",
"embeddingService": "provider",
"embeddingProvider": "ovhcloud",
"entraTenantIds": [
"3f1c2a8e-5b7d-4e0a-9c61-2d84b7f0a913"
],
"googleWorkspaceDomains": [],
"federatedSessionHours": 168,
"mcpAccess": true,
"mcpClientHosts": [
"ai.example.com"
]
},
"bounds": {
"crawlIntervalMinutes": {
"default": 120,
"min": 120,
"max": 1440
},
"deletedNodeRetentionDays": {
"default": 30,
"min": 7,
"max": 90
},
"invitationExpiryDays": {
"default": 14,
"min": 1,
"max": 30
}
},
"choices": {
"ocrLanguages": [
"eng",
"deu",
"fra",
"ita",
"spa"
],
"defaultOcrLanguages": [
"eng",
"deu"
],
"maxOcrLanguages": 5,
"maxExcludedExtensions": 50,
"platformExcludedExtensions": [
"zip",
"iso",
"mp4",
"exe"
],
"extractionServices": [
"saas"
],
"embeddingServices": [
"provider"
],
"embeddingProviders": [
"ovhcloud"
],
"federatedProviders": [
"entra",
"google"
],
"maxAllowedDirectories": 10
},
"vendor": {
"plan": {
"maxIndexedTextCharsPerNode": 500000,
"maxOcrPagesPerDocument": 50,
"maxExtractedTextBytes": 500000000000,
"extractionServices": [
"saas"
],
"embeddingServices": [
"provider"
]
},
"platform": {
"extractionTimeoutSeconds": 120,
"maxExtractedCharsPerDocument": 5000000,
"maxTextValueChars": 4000,
"maxTextListItems": 100,
"maxTextListItemChars": 500,
"attributePreviewMaxChars": 400,
"attributePreviewMaxValueChars": 120
},
"profile": null
},
"version": 7
}

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: tenantAdmin.",
"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
}