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

List saved Provider mutation operations

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

GET /v1/media/operations

Requires a workspace inference API key, current model permissions, composed workspace/key model and Provider grants, an enabled selectable credential and eligible Provider or matching personal owner. Only the explicitly configured fastrouter-actions-v1 model channel is supported. Opaque Provider references, credentials, private source URLs and upstream raw responses are never returned. Reads locally saved metadata only; unknown operation states require explicit reconciliation. This read never calls the Provider or retries a mutation. Records are workspace-shared under current selected-key authority and exact model/account binding. Unknown remains uncertain; prepared is a persisted state, not permission to retry. A missing record is not proof that the original request was never sent. Newest-first immutable creation time and UUID tie-breaker ordering. Resource deletion does not remove operation history. limit defaults to 50.

Operation: list_operationsProviderAsset.

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

JSON
[
{
"bearerAuth": []
},
{
"niuApiKeyAuth": []
}
]

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.

Authentication alternative: bearerAuth.

Shell
curl --fail-with-body -X GET "$NIU_ORIGIN/v1/media/operations" \
-H "Authorization: Bearer $NIU_BEARER_TOKEN" \
--url-query 'model=<MODEL>'

Authentication alternative: niuApiKeyAuth.

Shell
curl --fail-with-body -X GET "$NIU_ORIGIN/v1/media/operations" \
-H "X-Niu-API-Key: $NIU_API_KEY" \
--url-query 'model=<MODEL>'

Location: query. Required.

JSON
{
"type": "string"
}

Location: query. Optional. Cursor from this exact authorized model/account; invalid or mismatched cursor is rejected.

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

Location: query. Optional.

JSON
{
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
}

No request body is declared.

Bounded saved operation page

Content type: application/json.

JSON
{
"type": "object",
"required": [
"data",
"next_cursor"
],
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"group_id",
"model",
"action",
"status",
"created_at_ms",
"updated_at_ms"
],
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"group_id": {
"type": "string",
"format": "uuid"
},
"asset_id": {
"type": [
"string",
"null"
],
"format": "uuid"
},
"model": {
"type": "string"
},
"action": {
"type": "string",
"enum": [
"create_group",
"update_group",
"delete_group",
"create_asset",
"rename_asset",
"delete_asset"
]
},
"status": {
"type": "string",
"enum": [
"prepared",
"unknown",
"acknowledged",
"not_sent"
]
},
"http_status": {
"type": [
"integer",
"null"
]
},
"request_id": {
"type": [
"string",
"null"
]
},
"diagnostic": {
"description": "Sanitized observed failure category and phase. Null for older records or when no diagnostic was saved. Does not establish nonexecution or authorize replay.",
"type": [
"object",
"null"
],
"additionalProperties": false,
"required": [
"category",
"phase"
],
"properties": {
"category": {
"type": "string",
"enum": [
"transport",
"timeout",
"response_too_large",
"invalid_response",
"upstream_rejected"
]
},
"phase": {
"type": "string",
"enum": [
"exchange",
"response",
"acknowledgement"
]
}
}
},
"created_at_ms": {
"type": "integer",
"format": "int64"
},
"updated_at_ms": {
"type": "integer",
"format": "int64"
}
}
}
},
"next_cursor": {
"type": [
"string",
"null"
],
"format": "uuid"
}
}
}

Invalid model, UUID, limit or cursor

Missing, expired or revoked API key

Workspace or key policy refuses access

Owned object or model unavailable

Changed input, stale revision, unresolved identity or route conflict

Request exceeds its bounded size

Selected channel does not support asset management

Provider read failed safely

Credential, capacity or bounded storage unavailable

Requires a workspace inference API key, current model permissions, composed workspace/key model and Provider grants, an enabled selectable credential and eligible Provider or matching personal owner. Only the explicitly configured fastrouter-actions-v1 model channel is supported. Opaque Provider references, credentials, private source URLs and upstream raw responses are never returned. Reads locally saved metadata only; unknown operation states require explicit reconciliation. This read never calls the Provider or retries a mutation. Records are workspace-shared under current selected-key authority and exact model/account binding. Unknown remains uncertain; prepared is a persisted state, not permission to retry. A missing record is not proof that the original request was never sent. Newest-first immutable creation time and UUID tie-breaker ordering. Resource deletion does not remove operation history. limit defaults to 50.

Supported scope: implemented