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

List workspace-authorized media inspection configurations

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

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

Returns only deployment-authorized audio/video configuration metadata for the requested workspace. Declared conditions and a fingerprint do not establish successful inspection or consent; policy activation and media task references remain unavailable. No service endpoint, credential, environment variable or foreign workspace configuration is exposed. This operation performs no external inspection.

Operation: listWorkspaceMediaDetectors.

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/media-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 workspace media processing conditions

Content type: application/json.

JSON
{
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"detector",
"detector_revision",
"configuration_fingerprint",
"recipient",
"region",
"retention",
"schema_version",
"kind",
"content_sent",
"processing_guarantees",
"timeout_ms",
"maximum_encoded_bytes",
"concurrency",
"declared_unmetered",
"policy_activation",
"requires_supported_presentation_facts"
],
"properties": {
"detector": {
"type": "string"
},
"detector_revision": {
"type": "string"
},
"configuration_fingerprint": {
"type": "string"
},
"recipient": {
"type": "string"
},
"region": {
"type": "string"
},
"retention": {
"type": "string"
},
"schema_version": {
"type": "integer",
"enum": [
3
]
},
"kind": {
"type": "string",
"enum": [
"audio",
"video"
]
},
"content_sent": {
"type": "string",
"enum": [
"exact_encoded_media_with_embedded_tracks"
]
},
"processing_guarantees": {
"type": "string",
"enum": [
"declared_unverified"
]
},
"timeout_ms": {
"type": "integer",
"minimum": 1,
"maximum": 30000
},
"maximum_encoded_bytes": {
"type": "integer",
"minimum": 1,
"maximum": 8388608
},
"concurrency": {
"type": "integer",
"minimum": 1,
"maximum": 4
},
"declared_unmetered": {
"type": "boolean"
},
"policy_activation": {
"type": "boolean",
"enum": [
false
]
},
"requires_supported_presentation_facts": {
"type": "boolean",
"enum": [
true
]
}
}
}
}
}
}

Invalid management credential; inference keys cannot access this operation

Insufficient workspace permission

Workspace not found

Authorization or storage unavailable

Returns only deployment-authorized audio/video configuration metadata for the requested workspace. Declared conditions and a fingerprint do not establish successful inspection or consent; policy activation and media task references remain unavailable. No service endpoint, credential, environment variable or foreign workspace configuration is exposed. This operation performs no external inspection.

Supported scope: implemented