Org Content

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

  • idstringRequired#

    The image's file key, as returned by the upload.

Query parameters

  • fieldsstring#

    Comma-separated top-level fields to return. id is always returned.

Responses

200

The image.

OrgImageEnvelope
{
  "data": {
    "file_key": "oc_7c1e2f3a-4b5c-4d6e-8f90-1a2b3c4d5e6f",
    "url": "https://example.test/oc_7c1e2f3a.png"
  }
}
401

Authentication failed. error.code is one of invalid_token, expired, revoked.

Error
403

Authorization failed. error.code is one of org_disabled, ip_blocked, missing_scope, scope_disabled, user_disabled.

Error
404

Resource not found (error.code = not_found).

Error
422

The request can't be processed (HTTP 422): validation_failed with one ErrorDetail per problem, or a code documented on the operation.

Error
429

Rate limit exceeded (error.code = rate_limited).

Error

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"