MeyktAPI Documentation

Download a currently assigned article image

All field references · Articles

GET /v1/articles/{id}/images

Get a private five-minute download URL for an image currently assigned to the article, its gallery or a variant. Pass image_ref unchanged from the article response. Unassigned, unknown and foreign references all return not found. Test keys cannot read live catalogue images. The response is not cacheable; a previously issued download URL remains usable until its short expiry.

Required scopes: "products:read".

How to read these tables

#Parameters

#path: id

Required. Article whose current image assignment authorizes this download.

FieldTypePresencenullMeaning, limits and examples
$ (whole value)stringWhole valueNot allowedformat: "uuid".

#query: image_ref

Required. Unchanged image_ref currently returned by this article, its gallery or one of its variants. Unassigned prepared images cannot be downloaded through this read operation.

FieldTypePresencenullMeaning, limits and examples
$ (whole value)stringWhole valueNot allowedUnchanged image_ref currently returned by this article, its gallery or one of its variants. Unassigned prepared images cannot be downloaded through this read operation. minLength: 1. maxLength: 1500.

#Request body

No request body is defined for this operation.

#Response 200

200: Success

Content type: application/json

FieldTypePresencenullMeaning, limits and examples
$ (whole value)objectWhole valueNot allowedAdditional properties are not allowed.
dataobjectRequired when parent is presentNot allowedTemporary access to one image currently assigned to the article. Additional properties are not allowed.
data.image_refstringRequired when parent is presentNot allowedThe unchanged image reference requested. minLength: 1.
data.download_urlstringRequired when parent is presentNot allowedTemporary private download URL for the currently assigned image. Do not persist this URL instead of image_ref. format: "uri".
data.expires_in_secondsnumberRequired when parent is presentNot allowedThe download link expires five minutes after issuance. A previously issued link remains valid for this short lifetime after the image is unassigned. const: 300.

#Response 401, 403, 404, 422, 429, 500, 503

401: The key is missing, unknown, revoked or expired. 403: The key lacks a required scope, or the operation requires a live key. 404: Not found. Also applies to IDs that belong to another organization — we deliberately do not distinguish between "does not exist" and "does not belong to you". 422: Content validation failed. The response lists all affected locations at once. 429: A rate limit was reached and the request did not run. Wait for Retry-After, then repeat it unchanged. X-RateLimit-Scope names the limit: key (120 requests per minute), organization (300 per minute across all keys), write (1,000 at once, refilling at 60 per minute) or list (300 unfiltered list pages at once, refilling at 10 per minute). 500: Unexpected error on our side. 503: Temporarily unavailable. Repeat the same request with the same business identity.

Content type: application/json

FieldTypePresencenullMeaning, limits and examples
$ (whole value)objectWhole valueNot allowed—
errorobjectRequired when parent is presentNot allowedMachine-readable error code; use it to select the documented recovery path.
error.codestringRequired when parent is presentNot allowedMachine-readable, permanently stable error code. Program against it, not against message.
error.messagestringRequired when parent is presentNot allowedExplanation for humans. May change at any time.
error.fieldstringOptionalNot allowedAffected location in the request, if it can be determined.
error.doc_urlstringRequired when parent is presentNot allowedDocumentation link explaining this API error. format: "uri".

Machine-readable version of this page: https://www.meykt.com/developers/fields-read-article-image.md