List the files a print can be fetched as
const url = 'https://api.pixonaut.app/v1/prints/example/files?form=flat';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.pixonaut.app/v1/prints/example/files?form=flat' \ --header 'Authorization: Bearer <token>'Operation ID: prints.files.list
Every file the print can be handed out as: as stored, for machineProfile, any machine profile of the tenant’s printshops, or for settings, output settings asked for one download (a JSON object, as the order’s list of files takes it): each part (combined, print, cut) of the process file and, where the print has one, the separated file, with the address it is fetched from. settings answers the settings the files are drawn with, null when none are drawn (a print whose ticket cannot be read). machineProfiles lists the profiles to choose from, each with its printshop; a studio member sees them, and may ask for one, only with printshops:read. counted says whether the print was counted as an order already, so getting its files is free. fileForm is the form the print was made in (flat; layered: each printed layer its own optional content group, every glyph a path; or layered_live_text: plain text live as well), layeredFallback and liveTextFallback why it has no file in those forms where it has none, and forms each form with whether its files are made yet and why it is refused where it is; form lists the files of that form, their addresses asking for it.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”Which form of the print’s files: flat, layered (each printed layer its own optional content group, every glyph a path) or layered_live_text (plain text live as well). Left out, the form the print was made in. Another form is made from the print’s document when it is first asked for, and kept.
Which form of the print’s files: flat, layered (each printed layer its own optional content group, every glyph a path) or layered_live_text (plain text live as well). Left out, the form the print was made in. Another form is made from the print’s document when it is first asked for, and kept.
Responses
Section titled “Responses”The print’s files
object
object
object
object
The bleed the file is trimmed to, in mm, or null for the bleed it was rendered with.
Whether crop marks are drawn for a rectangular cut.
The name the cut path is drawn under, or null for a machine that cuts nothing.
How much further out than by default the marks sit, in mm.
Whether the print is mirrored.
The marks the machine reads off the printed sheet.
A UV machine’s white laid under the colour, or null for none.
object
How far in from the inked edge the white stops, in mm; 0 leaves it to the RIP.
Where the white lies.
The spot name the printshop’s RIP reads for this channel.
A UV machine’s varnish laid over the colour, or null for none.
object
Where the varnish lies when the design marks no layer for spot varnish.
The spot name the printshop’s RIP reads for this channel.
object
Examples
Example
{ "counted": null, "fileForm": "flat", "formAsked": "flat", "forms": [ { "form": "flat", "made": true, "own": true, "refusedBecause": null }, { "form": "layered", "made": false, "own": false, "refusedBecause": null }, { "form": "layered_live_text", "made": false, "own": false, "refusedBecause": null } ], "layeredFallback": null, "liveTextFallback": null, "machineProfileAskedId": null, "machineProfiles": [ { "id": "5d6e7f80-9a1b-4c2d-8e3f-4a5b6c7d8e9f", "name": "Epson F2270 DTG", "printshop": "Nordic Print Works" } ], "separationMissing": false, "settings": { "bleedTrimMm": null, "cropMarks": false, "cutName": null, "markOffsetMm": 0, "mirror": false, "registrationMarks": "none", "underbase": null, "varnish": null }, "variants": [ { "file": "process", "handedOut": false, "isDefault": true, "part": "print", "url": "/v1/prints/c4d5e6f7-a8b9-4c0d-9e1f-2a3b4c5d6e7f/file?part=print&file=process" } ]}Headers
Section titled “Headers”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
object
Examples
unauthorized
{ "error": "unauthorized"}Headers
Section titled “Headers”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
object
The feature the tenant does not have. Always sent with feature_disabled.
Examples
feature_disabled
{ "error": "feature_disabled", "feature": "api"}forbidden
{ "error": "forbidden"}origin_forbidden
{ "error": "origin_forbidden"}workspace_suspended
{ "error": "workspace_suspended"}Headers
Section titled “Headers”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: print_not_found, machine_profile_not_found, not_found
object
Examples
machine_profile_not_found
{ "error": "machine_profile_not_found"}not_found
{ "error": "not_found"}print_not_found
{ "error": "print_not_found"}Headers
Section titled “Headers”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_query
object
Examples
invalid_query
{ "error": "invalid_query"}Headers
Section titled “Headers”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
Examples
db_error
{ "error": "db_error"}Headers
Section titled “Headers”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].