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

Read latest 100 workspace dispatch policy exceptions

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

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

Workspace read access required. Metadata only, newest first, combining dispatch and batch-admission policy rejections. Eligibility/status denials are outside this coverage. No request content, credentials or internal event identifiers. Latest 100 only; not a complete audit export. Cache-Control: no-store.

Operation: listGuardrailDispatchDenials.

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

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",
"coverage"
],
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"stage",
"outcome",
"coverage",
"reason",
"key_name",
"workspace_policy_name",
"key_policy_name",
"workspace_revision",
"key_policy_revision",
"key_assignment_revision",
"recorded_at"
],
"properties": {
"stage": {
"type": "string",
"enum": [
"dispatch",
"batch_admission"
]
},
"outcome": {
"type": "string",
"enum": [
"blocked"
]
},
"coverage": {
"type": "string",
"enum": [
"model_provider_access",
"policy_binding"
]
},
"reason": {
"type": "string",
"enum": [
"access_denied",
"input_binding_missing",
"policy_changed"
]
},
"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"
}
}
}
},
"coverage": {
"type": "string",
"enum": [
"latest_100_dispatch_policy_exceptions"
]
}
}
}

Invalid management credential; inference credentials cannot access management endpoints

Insufficient workspace permission or installation administrator authorization

Authorization/storage unavailable

Workspace read access required. Metadata only, newest first, combining dispatch and batch-admission policy rejections. Eligibility/status denials are outside this coverage. No request content, credentials or internal event identifiers. Latest 100 only; not a complete audit export. Cache-Control: no-store.

Supported scope: implemented