Skip to content
Niu DocsNiu 牛元文档
Dashboard控制台

List authorized workspace text detector declarations

Generated from the checked-in source. Do not edit this reference by hand.

GET /api/v1/organizations/{organization}/projects/{project}/guardrails/detectors

Workspace read access required. Sorted by detector name; only deployment-authorized workspace detectors are returned. Declared processing conditions are not verified guarantees. No content is dispatched and no policy is activated. Cache-Control: no-store.

Operation: listWorkspaceDetectors.

Use the credential and permission scope described above. Each object below is an alternative; schemes within one object are required together.

JSON
[
{
"bearerAuth": []
}
]

Set NIU_ORIGIN to your installation origin (without /v1). Replace path, query and header placeholders with the required values. Query examples use curl 7.87 or newer to encode values with --url-query. Use the credential scope described above; a bearer token must have the authority required by this operation.

Shell
curl --fail-with-body -X GET "$NIU_ORIGIN/api/v1/organizations/{organization}/projects/{project}/guardrails/detectors" \
-H "Authorization: Bearer $NIU_BEARER_TOKEN"

Location: path. Required.

JSON
{
"type": "string",
"format": "uuid"
}

Location: path. Required.

JSON
{
"type": "string",
"format": "uuid"
}

No request body is declared.

Declared metadata or synthetic result; Cache-Control: no-store

Response headers:

JSON
{
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "no-store"
}
}

Content type: application/json.

JSON
{
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"schema_version",
"detector_revision",
"configuration_fingerprint",
"recipient",
"region",
"retention",
"processing_guarantees",
"content_sent",
"credential_source",
"timeout_ms",
"concurrency",
"max_text_bytes",
"max_response_bytes",
"external_charge",
"customer_billing",
"policy_activation",
"detector"
],
"properties": {
"schema_version": {
"type": "integer",
"enum": [
1
]
},
"detector_revision": {
"type": "string"
},
"configuration_fingerprint": {
"type": "string"
},
"recipient": {
"type": "string"
},
"region": {
"type": "string"
},
"retention": {
"type": "string"
},
"processing_guarantees": {
"type": "string",
"enum": [
"declared_unverified"
]
},
"content_sent": {
"type": "string",
"enum": [
"request_text_after_local_redaction"
]
},
"credential_source": {
"type": "string",
"enum": [
"server_environment"
]
},
"timeout_ms": {
"type": "integer"
},
"concurrency": {
"type": "integer"
},
"max_text_bytes": {
"type": "integer"
},
"max_response_bytes": {
"type": "integer",
"enum": [
4096
]
},
"external_charge": {
"type": "string",
"enum": [
"unknown",
"declared_unmetered"
]
},
"customer_billing": {
"type": "string",
"enum": [
"not_integrated"
]
},
"policy_activation": {
"type": "boolean"
},
"detector": {
"type": "string"
}
}
}
}
}
}

Invalid management credential; inference credentials cannot access management endpoints

Insufficient workspace permission or installation administrator authorization

Workspace or configured detector not found

Authorization/storage unavailable

Workspace read access required. Sorted by detector name; only deployment-authorized workspace detectors are returned. Declared processing conditions are not verified guarantees. No content is dispatched and no policy is activated. Cache-Control: no-store.

Supported scope: implemented