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

List saved workspace materials

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

GET /api/v1/organizations/{organization}/projects/{project}/assets

Member Read permission required. Scope is the selected workspace, not the creating actor. Lists active objects with metadata only, ordered by creation time then identity. limit defaults to 50 and must be 1–100. after must be an active asset in the same workspace and kind filter or conflicts. Follow next_cursor; separate pages are not a frozen snapshot. No ciphertext, actor identifier, Provider URI, procurement or dispatch approval is returned.

Operation: listWorkspaceAssets.

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}/assets" \
-H "Authorization: Bearer $NIU_BEARER_TOKEN"

Location: path. Required.

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

Location: path. Required.

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

Location: query. Optional.

JSON
{
"type": "string",
"enum": [
"image",
"video",
"audio"
]
}

Location: query. Optional.

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

Location: query. Optional.

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

No request body is declared.

Scoped asset metadata; no private ciphertext or actor identifier.

Content type: application/json.

JSON
{
"type": "object",
"required": [
"data",
"next_cursor"
],
"properties": {
"data": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"id",
"name",
"media_kind",
"content_type",
"content_sha256",
"byte_length",
"revision",
"created_at_ms",
"updated_at_ms"
],
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "Internal routing reference; never display as a user label."
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Trimmed display name, at most 200 UTF-8 bytes, without control characters."
},
"media_kind": {
"type": "string",
"enum": [
"image",
"video",
"audio"
]
},
"content_type": {
"type": "string",
"enum": [
"image/png",
"image/jpeg",
"image/webp",
"video/mp4",
"video/webm",
"audio/wav",
"audio/mpeg",
"audio/ogg"
]
},
"content_sha256": {
"type": "string",
"pattern": "^[0-9a-f]{64}$",
"description": "SHA-256 of the immutable original bytes."
},
"byte_length": {
"type": "integer",
"minimum": 1,
"maximum": 8388608
},
"revision": {
"type": "string",
"pattern": "^[1-9][0-9]*$",
"description": "Canonical positive signed-64-bit integer; use for rename/delete concurrency checks."
},
"created_at_ms": {
"type": "integer",
"format": "int64"
},
"updated_at_ms": {
"type": "integer",
"format": "int64"
},
"source": {
"type": [
"object",
"null"
],
"description": "Authorized original generation context. Null when absent or not visible to this actor; sharing a retained copy does not grant source access.",
"additionalProperties": false,
"required": [
"reference",
"kind",
"output",
"model",
"created_at"
],
"properties": {
"reference": {
"type": "string",
"pattern": "^run-[1-9][0-9]{0,18}$"
},
"kind": {
"const": "video"
},
"output": {
"enum": [
"video",
"last_frame"
]
},
"model": {
"type": "string"
},
"created_at": {
"type": "string",
"format": "date-time"
}
}
}
}
}
},
"next_cursor": {
"type": [
"string",
"null"
],
"format": "uuid"
}
}
}

Malformed query/body, unsupported type, invalid media bytes, name, page size or revision.

Missing/invalid member administrator authentication; inference keys do not manage materials.

Authenticated principal lacks workspace scope or required Read/Write permission.

Workspace or scoped active asset not found.

Stale revision, unavailable cursor or serialized workspace quota exceeded.

Bounded processing capacity, encryption or storage unavailable; no successful write is confirmed.

Member Read permission required. Scope is the selected workspace, not the creating actor. Lists active objects with metadata only, ordered by creation time then identity. limit defaults to 50 and must be 1–100. after must be an active asset in the same workspace and kind filter or conflicts. Follow next_cursor; separate pages are not a frozen snapshot. No ciphertext, actor identifier, Provider URI, procurement or dispatch approval is returned.

Supported scope: implemented