Skip to content

Draw a revision of a design

GET
/v1/designs/{id}/revisions/{revision}/image
curl --request GET \
--url 'https://api.pixonaut.app/v1/designs/example/revisions/example/image?format=jpeg&fit=cover' \
--header 'Authorization: Bearer <token>'

Operation ID: designs.revisions.image.get

What the design’s revision revision prints, drawn as its proof is but unwatermarked, read with the credentials that read the design. width draws it no larger than the box it is shown in. A JPEG, as a proof is, unless format=png asks for a PNG that keeps the design’s transparency. A revision never changes but when the design’s personal data is erased, and it is drawn through the output profile of the machine its blank goes to, so the answer carries an etag naming the revision, that erasure, the format, the renderer and that profile, and asking again with it is answered 304 without drawing. A drawing that had to leave out a picture the document names is answered no-store. A revision whose document the current model cannot read is refused design_doc_unreadable.

id
required
string
revision
required

A revision number.

string

A revision number.

format

png draws it as a PNG that keeps the design’s transparency; absent or jpeg, the proof’s JPEG.

string
Allowed values: jpeg png

png draws it as a PNG that keeps the design’s transparency; absent or jpeg, the proof’s JPEG.

width

The width in pixels the drawing is shown at. Its long edge is derived from the design’s declared ratio, and never larger than a proof’s for a key; a studio session is drawn up to 4096 px.

string
/^\d+$/

The width in pixels the drawing is shown at. Its long edge is derived from the design’s declared ratio, and never larger than a proof’s for a key; a studio session is drawn up to 4096 px.

fit

cover when the image is cropped to fill its box: width is then its short edge.

string
Allowed values: cover

cover when the image is cropped to fill its box: width is then its short edge.

The drawing

string
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Not modified: the If-None-Match etag still names this revision, its erasure, format and renderer

X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: invalid_id

Media typeapplication/json
object
error
required
string

Examples

Exampleinvalid_id

invalid_id

{
"error": "invalid_id"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: unauthorized

Media typeapplication/json
object
error
required
string

Examples

Exampleunauthorized

unauthorized

{
"error": "unauthorized"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: origin_forbidden, forbidden, feature_disabled, workspace_suspended

Media typeapplication/json
object
error
required
string
feature

The feature the tenant does not have. Always sent with feature_disabled.

string

Examples

feature_disabled

{
"error": "feature_disabled",
"feature": "api"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: not_found

Media typeapplication/json
object
error
required
string

Examples

Examplenot_found

not_found

{
"error": "not_found"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: design_doc_unreadable, asset_map_too_large, invalid_query

Media typeapplication/json
object
bytes

Always sent with asset_map_too_large.

number
error
required
string
maxBytes

Always sent with asset_map_too_large.

number

Examples

asset_map_too_large

{
"bytes": 0,
"error": "asset_map_too_large",
"maxBytes": 0
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: rate_limited

Media typeapplication/json
object
error
required
string

Examples

Examplerate_limited

rate_limited

{
"error": "rate_limited"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: db_error, render_failed. A request that failed unexpectedly answers as text instead.

object
error
required
string

Examples

db_error

{
"error": "db_error"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: assets_unavailable

Media typeapplication/json
object
error
required
string

Examples

Exampleassets_unavailable

assets_unavailable

{
"error": "assets_unavailable"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Questions? Write to [email protected].

Status · Terms of service · Privacy policy · Subprocessors