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

Retrieve a bounded saved video or last frame

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

GET /v1/video/jobs/{id}/results/{kind}

Requires current workspace/model and compatible Guardrail access, checked again after retrieval. Uses encrypted references with a fixed 24-hour retention window. URLs may expire sooner. Never returns or redirects to a signed Provider URL. Supports MP4/WebM up to 64 MiB and PNG/JPEG up to 10 MiB; no Range support or automatic retry. Local transport tests do not qualify a live channel.

Operation: retrieveVideoResult.

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/video/jobs/{id}/results/{kind}" \
-H "Authorization: Bearer $NIU_BEARER_TOKEN"

Authentication alternative: niuApiKeyAuth.

Shell
curl --fail-with-body -X GET "$NIU_ORIGIN/v1/video/jobs/{id}/results/{kind}" \
-H "X-Niu-API-Key: $NIU_API_KEY"

Location: path. Required.

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

Location: path. Required.

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

No request body is declared.

Attachment with private no-store caching and nosniff headers

Content type: video/mp4.

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

Content type: video/webm.

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

Content type: image/png.

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

Content type: image/jpeg.

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

Unknown result kind

Invalid, expired or revoked key

Required policy cannot be satisfied

Inaccessible, missing, locally expired or deleted reference

Safe media_result_* error category for unavailable links, rejected destinations, oversized or invalid media, or transport failure

Encryption, configuration or bounded retrieval capacity unavailable; capacity errors use media_result_busy

Overall result retrieval deadline exceeded; media_result_timeout

Requires current workspace/model and compatible Guardrail access, checked again after retrieval. Uses encrypted references with a fixed 24-hour retention window. URLs may expire sooner. Never returns or redirects to a signed Provider URL. Supports MP4/WebM up to 64 MiB and PNG/JPEG up to 10 MiB; no Range support or automatic retry. Local transport tests do not qualify a live channel.