Skip to content

Read the colour tables a placement draws with

GET
/v1/blanks/{id}/placements/{placementId}/preview-tables
curl --request GET \
--url https://api.pixonaut.app/v1/blanks/example/placements/example/preview-tables \
--header 'Authorization: Bearer <token>'

Operation ID: blanks.previewTables.get

The estimate and preview tables a design on the placement draws its colours through on screen, where the print goes through an output profile the workspace uploaded: the constraints read naming the placement says this path as cmykPreviewTables once they are made. Refused with no_preview_tables where the design is drawn through a bundled profile’s (cmykPreviewProfile), or the tables are not made.

id
required
string
placementId
required
string

The tables a design on the placement is drawn through

Media typeapplication/json
object
estimate
required

The CMYK the press prints each point of an sRGB grid as.

object
ghostscriptVersion
required
string
gridPoints
required
integer
profileSha256
required
string
text
required

The packed grid, one character per byte (gridTableText).

string
preview
required

The sRGB each point of a CMYK grid is drawn as on screen.

object
ghostscriptVersion
required
string
gridPoints
required
integer
profileSha256
required
string
text
required

The packed grid, one character per byte (gridTableText).

string

Examples

Exampleexample

Example

{
"estimate": {
"ghostscriptVersion": "10.05.1",
"gridPoints": 17,
"profileSha256": "4f1c0d9a6e2b7c3851f0a9d4e6b2c7a1f3e5d8b0c2a4f6e8d0b2c4a6e8f0a2c4",
"text": "\u0000\u0003\u0001\u0002…"
},
"preview": {
"ghostscriptVersion": "10.05.1",
"gridPoints": 9,
"profileSha256": "4f1c0d9a6e2b7c3851f0a9d4e6b2c7a1f3e5d8b0c2a4f6e8d0b2c4a6e8f0a2c4",
"text": "ÿþý\u0001…"
}
}
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, feature_disabled, forbidden, 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, no_preview_tables

Media typeapplication/json
object
error
required
string

Examples

no_preview_tables

{
"error": "no_preview_tables"
}
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. A request that failed unexpectedly answers as text instead.

object
error
required
string

Examples

Exampledb_error

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.

Questions? Write to [email protected].

Status · Terms of service · Privacy policy · Subprocessors