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.
Authentication
Section titled “Authentication”Use the credential and permission scope described above. Each object below is an alternative; schemes within one object are required together.
[ { "bearerAuth": [] }, { "niuApiKeyAuth": [] }]HTTP request
Section titled “HTTP request”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.
curl --fail-with-body -X GET "$NIU_ORIGIN/v1/video/jobs/{id}/results/{kind}" \ -H "Authorization: Bearer $NIU_BEARER_TOKEN"Authentication alternative: niuApiKeyAuth.
curl --fail-with-body -X GET "$NIU_ORIGIN/v1/video/jobs/{id}/results/{kind}" \ -H "X-Niu-API-Key: $NIU_API_KEY"Parameters
Section titled “Parameters”Location: path. Required.
{ "type": "string", "format": "uuid"}Location: path. Required.
{ "type": "string", "enum": [ "video", "last_frame" ]}Request body
Section titled “Request body”No request body is declared.
Responses
Section titled “Responses”HTTP 200
Section titled “HTTP 200”Attachment with private no-store caching and nosniff headers
Content type: video/mp4.
{ "type": "string", "format": "binary"}Content type: video/webm.
{ "type": "string", "format": "binary"}Content type: image/png.
{ "type": "string", "format": "binary"}Content type: image/jpeg.
{ "type": "string", "format": "binary"}HTTP 400
Section titled “HTTP 400”Unknown result kind
HTTP 401
Section titled “HTTP 401”Invalid, expired or revoked key
HTTP 403
Section titled “HTTP 403”Required policy cannot be satisfied
HTTP 404
Section titled “HTTP 404”Inaccessible, missing, locally expired or deleted reference
HTTP 502
Section titled “HTTP 502”Safe media_result_* error category for unavailable links, rejected destinations, oversized or invalid media, or transport failure
HTTP 503
Section titled “HTTP 503”Encryption, configuration or bounded retrieval capacity unavailable; capacity errors use media_result_busy
HTTP 504
Section titled “HTTP 504”Overall result retrieval deadline exceeded; media_result_timeout
Behavior and supported scope
Section titled “Behavior and supported scope”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.