GEThttps://api.veriko.mx/v1/validations/{id}/image

Get the receipt image

Audience
public
Auth
API key
Permission
validations:read
How-to guide →

Returns the receipt image attached to an OCR validation. Available for both image (base64) and image_url submissions. Images are served without EXIF/XMP/ICC metadata (already sanitized at upload time). Only available when has_image: true on the Validation object.

Parameters
ParameterInTypeRequiredDescription
id*pathstring (uuid)required

Validation UUID.

Request
curl -X GET 'https://api.veriko.mx/v1/validations/{id}/image' \
  -H 'Authorization: Bearer veriko_••••'

Python example — coming soon.

JavaScript example — coming soon.

PHP example — coming soon.

Response status codesGET /v1/validations/{id}/image
StatusClassDescriptionBody
2002xxReceipt image. Content-Type reflects the original format derived from the on-disk MIME (image/png, image/jpeg, image/webp). If the MIME is not in the whitelist it is served as application/octet-stream.No body
4014xxAuthentication is required or the provided credentials are invalid.ErrorResponse
4034xxInsufficient permissions.ErrorResponse
4044xxValidation not found (not_found) or has no associated image (image_not_available). The latter is also returned if the on-disk file fails the realpath check (defense-in-depth against symlinks outside the storage directory).ErrorResponse
4224xxInvalid UUID in path (invalid_uuid).ErrorResponse
Response headers200
HeaderTypeDescription
Cache-ControlstringPrivately cacheable for 1 hour.
Content-DispositionstringInline serving; filename derived from the validation_id and the MIME extension.
Cross-Origin-Resource-PolicystringPrevents cross-origin exfiltration via <img>.
X-Content-Type-OptionsstringDefense against MIME-sniffing.
Errors from GET /v1/validations/{id}/image
StatusCodeExample
401unauthorized

Invalid or missing authentication credentials.

Envelope
meta.request_id
c4d5e6f7a8b9
403forbidden

You do not have permission to access this resource.

Envelope
meta.request_id
d5e6f7a8b9c0