Get a content image
GET
/org-content/images/{id}Resolves a content image to a presigned URL that works for one hour. Only the organisation that uploaded the image can resolve it; anyone else, and an unknown key, returns 404. Changes nothing.
Path parameters
The image's file key, as returned by the upload.
Query parameters
Comma-separated top-level fields to return.
idis always returned.
Responses
{
"data": {
"file_key": "oc_7c1e2f3a-4b5c-4d6e-8f90-1a2b3c4d5e6f",
"url": "https://example.test/oc_7c1e2f3a.png"
}
}403Error
Authorization failed. error.code is one of org_disabled,
ip_blocked, missing_scope, scope_disabled, user_disabled.
422Error
The request can't be processed (HTTP 422): validation_failed with one ErrorDetail per
problem, or a code documented on the operation.
Examples
curl https://your-org-domain/kong/core/api/v2/org-content/images/{id}\
-H "Authorization: Bearer $HELM_API_KEY"\
-H "Content-Type: application/json"