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

Read latest 100 workspace preparation refusals

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

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

Workspace read access required. Safe immutable metadata for pre-dispatch model/Provider access, local input inspection, output configuration and external input detector refusals. No request content, matched patterns, detector responses, credentials or internal event/key identifiers. Does not cover dispatch-time races or post-dispatch output inspection. Latest 100 only, newest first; not a complete audit export. Policy names and revisions identify the saved decision. Cache-Control no-store. Inference credentials cannot read these diagnostics.

Operation: listGuardrailPreparationDenials.

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/denials" \
-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.

Latest 100 preparation refusals

Response headers:

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

Content type: application/json.

JSON
{
"type": "object",
"required": [
"data",
"coverage"
],
"properties": {
"coverage": {
"const": "latest_100_preparation_denials"
},
"data": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"required": [
"stage",
"outcome",
"coverage",
"enforcer_version",
"reason",
"key_name",
"workspace_policy_name",
"key_policy_name",
"workspace_revision",
"key_policy_revision",
"key_assignment_revision",
"recorded_at"
],
"properties": {
"stage": {
"const": "preparation"
},
"outcome": {
"const": "blocked"
},
"coverage": {
"enum": [
"model_provider_access",
"local_input",
"output_configuration",
"external_input"
]
},
"enforcer_version": {
"enum": [
"access-v1",
"local-input-v1",
"buffer-mode-v1",
"external-input-v1"
]
},
"reason": {
"enum": [
"model_denied",
"provider_denied",
"unsupported_policy",
"input_blocked",
"input_unsupported",
"input_resource_limit",
"input_unavailable",
"output_incompatible",
"detector_blocked",
"detector_unsupported",
"detector_unavailable"
]
},
"key_name": {
"type": "string"
},
"workspace_policy_name": {
"type": [
"string",
"null"
]
},
"key_policy_name": {
"type": [
"string",
"null"
]
},
"workspace_revision": {
"type": [
"integer",
"null"
]
},
"key_policy_revision": {
"type": [
"integer",
"null"
]
},
"key_assignment_revision": {
"type": [
"integer",
"null"
]
},
"recorded_at": {
"type": "string",
"format": "date-time"
}
}
}
}
}
}

Invalid management credential; inference keys cannot read decisions

Workspace outside authorized scope

Durable storage unavailable

Workspace read access required. Safe immutable metadata for pre-dispatch model/Provider access, local input inspection, output configuration and external input detector refusals. No request content, matched patterns, detector responses, credentials or internal event/key identifiers. Does not cover dispatch-time races or post-dispatch output inspection. Latest 100 only, newest first; not a complete audit export. Policy names and revisions identify the saved decision. Cache-Control no-store. Inference credentials cannot read these diagnostics.

Supported scope: implemented