API · Documents
Download one picture
/api/v1/documents/{id}/images/{image_id}
The image file itself: image/png for a cropped figure, image/jpeg for a whole page, at most 1568px on the long side. Use the url from the images list rather than building it.
Path parameters
-
idstring requiredThe document's id.
-
image_idstring requiredThe image's id, from the images list.
Returns 200
The image bytes (image/png or image/jpeg)
Errors
-
401Missing, revoked or expired key
-
402Payment required. Either the plan's monthly request quota is spent (
quota_exceeded, trial plans only — pay as you go is never capped) or the workspace is out of credit (insufficient_credits). -
404No document or query with that id for this key (documents are scoped to the key's workspace and live/test mode)
-
409The document has not finished processing
-
410Retention ran out and the result was purged
-
429Per-second burst limit for the plan exceeded; retry after
Retry-Afterseconds
Every error has the same shape. See Errors.