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

Fetch exact approved image bytes using an expiring capability

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

GET /v1/media/sources/{token}

Internal Provider handoff capability, not a customer download API. The secret path token authorizes at most four deliveries within sixty seconds. Current consent, policy, detector configuration and retained content are checked on every fetch. Never log or persist the token URL. Issuance is not exposed by this API. Query parameters, request bodies and range requests are unsupported.

Operation: fetchInspectedImageSource.

No OpenAPI security scheme is required. Other request validation still applies.

JSON
[]

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/v1/media/sources/{token}"

Location: path. Required.

JSON
{
"type": "string",
"pattern": "^nis_[a-f0-9]{64}$"
}

No request body is declared.

Exact verified image bytes; Cache-Control no-store, Referrer-Policy no-referrer and X-Content-Type-Options nosniff. No destination credentials are returned.

Content type: image/png.

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

Content type: image/jpeg.

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

Content type: image/webp.

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

Unsupported query or request body

Opaque unavailable capability or source

Only GET is supported

Range requests are unsupported

Transfer capacity exhausted

Response headers:

JSON
{
"Retry-After": {
"schema": {
"type": "integer",
"const": 1
}
}
}

Internal Provider handoff capability, not a customer download API. The secret path token authorizes at most four deliveries within sixty seconds. Current consent, policy, detector configuration and retained content are checked on every fetch. Never log or persist the token URL. Issuance is not exposed by this API. Query parameters, request bodies and range requests are unsupported.