The prepress API does what the 1-up editor does, for one artwork of an imposition job: its line types and die, bleed and the print-ready file, the 3D scene, trapping and proofs. Every endpoint is under
/a/{team_slug}/prepress/api/v1/artworks/{id}/
where {id} is the artwork's id in the imposition API. An artwork of another team is
a 404. The same endpoints work on a page of a PDF or image in Files, under /a/{team_slug}/prepress/api/v1/documents/{id}/
(see Files documents). Lengths and coordinates are PDF points (1/72 in) in the page's own coordinates, with y pointing up.
Every call takes the same authentication as the rest of the API: an API key of a team member, or a signed-in session that also sends its CSRF token when it changes data (see authentication).
A quick tour#
ART=https://app.example.com/a/acme/prepress/api/v1/artworks/42/
AUTH="Authorization: Api-Key $API_KEY"
# The editor state: inks, paths, line types, die, frames
curl -s "$ART" -H "$AUTH"
# Map the spot colour "CutContour" to Cut and "Crease" to Crease
curl -s -X PATCH "$ART" -H "$AUTH" -H "Content-Type: application/json" \
-d '{"ink_mappings": {"CutContour": "cut", "Crease": "crease"}}'
# Make the print-ready file with 3 mm (8.5 pt) of bleed; 202 means it runs in the background
curl -s -X POST "${ART}bleed/generate/" -H "$AUTH" -H "Content-Type: application/json" \
-d '{"distance_pt": 8.5, "method": "auto"}'
curl -s "${ART}bleed/status/" -H "$AUTH"
# Trap it for offset, then poll the trap state
curl -s -X POST "${ART}trap/run/" -H "$AUTH" -H "Content-Type: application/json" -d '{"preset": "offset"}'
curl -s "${ART}trap/" -H "$AUTH"
The editor state#
/a/{team_slug}/prepress/api/v1/artworks/{id}/
prepress_artwork_state ·
View in API reference
/a/{team_slug}/prepress/api/v1/artworks/{id}/extract/
prepress_artwork_extract ·
View in API reference
The state has artwork (name, quantity, pages, shape, whether a print-ready file is in use), spec (the settings
below), extracted, inks, paths (each with its id, ink, layer, closed, bbox and its points as xy, a
flat [x0, y0, x1, y1, …] list), line_types (path id to line type), line_type_counts, die (outer, holes,
bbox, area, is_rectangle, source, path_ids, inks and warnings) or die_error, bleed_plan,
print_ready_stale, file_bleed_pt, frames (the page boxes of the original and the print-ready file) and trap
(the trap status).
extract/ reads the page's inks and paths again, keeping the line types that still match (see
Inks and line types). Nothing can be mapped until the artwork has been read once.
Change the settings#
/a/{team_slug}/prepress/api/v1/artworks/{id}/
prepress_artwork_update ·
View in API reference
Send only what changes. Objects merge into what is stored, so two clients changing different keys never undo each
other. The answer is the state, without paths.
| Field | What it holds |
|---|---|
ink_mappings |
{ink name: line type}. Merged key by key; null removes a mapping. Layers are named layer:<name>. |
path_mappings |
{path id: line type}, overriding the ink's line type. Merged key by key; null removes one. |
die |
{"mode": "auto"} (the Cut lines), {"mode": "selection", "path_ids": [...]} or {"mode": "rect", "rect": [x0, y0, x1, y1]} (a rectangle; the trim box when rect is left out). Replaced as a whole. |
die_base |
The die your change was made from. When the stored die is no longer that one, the change is refused with 409 conflict. |
adopt_die_shape |
true nests and cuts the artwork by its die (see The die). |
bleed |
The bleed settings, merged key by key: distance_pt (0.5 to 144), corner (miter, round or bevel), method (auto, mirror, stretch or extend: Extend background), dpi (72 to 1200) and inset_pt (0 to 72, or null for automatic). |
tools |
spot_renames ({old name: new name}, at most 50), set_boxes and overprint_technical. Merged key by key. |
safe_inset_pt |
The safe area's inset, 0 to 144, or null for none. |
scene |
The 3D scene: the top-level keys you send replace the stored ones (below). |
trap |
Trapping settings (see Trapping); saving them never runs trapping. |
Line types are the keys of the line types table: cut, crease,
perforation, score, kiss_cut, v_cut, thru_cut, partial_cut, bleed, varnish, foil, glue,
annotation, technical and ignore. The editor's names for bleed corners are Sharp (miter), Round and Flat
(bevel). Changing ink_mappings, path_mappings or die, or sending adopt_die_shape, is refused with 409
extract_first while the artwork's paths are not the ones last read: call extract/ first.
The 3D scene#
| Key | What it holds |
|---|---|
| version | The scene format; always 1. |
| root_panel | The id of the panel the carton stands on (the base panel); null for the largest panel. |
| fold | progress (0 flat to 1 folded), angles (hinge id to degrees, -180 to 180) and sequence (depth, together or order). |
| material | preset (the board's look), caliper_mm (0.03 to 10; null for the preset's), color (#rrggbb or null), board_id (a board catalogue key or null) and flute_axis (x or y). |
| inside | mode board (plain board inside) or page (a page of the file), and the page number. |
| finishes | Up to 16 {plate, type, params}: one finish per spot plate. |
| lighting | preset, rotation (degrees) and exposure (0.1 to 4). |
| camera | The saved view: position, target and fov (10 to 90 degrees); null to frame the carton. |
| background | theme, transparent or a #rrggbb colour. |
material.preset:sbs_coated,sbs_uncoated,kraft,corrugated_e,corrugated_b,corrugated_c,corrugated_bc,metallized,clear_pet,frosted_pet,holographic,label_whiteorlabel_clear(see Board and material). The preset is the look;caliper_mmis the thickness.material.board_id: the board catalogue key the material stands for, such asboard.sbs_c1s_18pt(lowercase letters, digits,_and., at most 64 characters; anything else is dropped). It doesn't change the look.material.flute_axis:xory(the default), the direction corrugated flutes run in the sheet.finishes[].type:gloss_varnish,matte_varnish,soft_touch,spot_uv,foil_gold,foil_silver,foil_holo,foil_color,emboss,debossorwhite_ink(see Finishes).paramstakesstrengthandgloss(0 to 1),roughness(0.02 to 1),raise_umanddeboss_um(0 to 200),height_mm(0 to 2),bevel_mm(0.05 to 3) andcolor(#rrggbb), each only for the types that use it. A plate can have one finish.lighting.preset:studio,softbox,daylightorretail(see Lighting, snapshots and 3D files).fold.sequence:depth(the default) folds the panels next to the base first and the outermost flaps last;togetherfolds every hinge at once;orderfollows the dieline's fold steps (hinges[].fold.sequenceof the structure), and isdepthwithout them.fold.angles: an angle you send wins over the dieline's (hinges[].fold.angle), which wins over the default of the hinge's kind.
Unknown keys are dropped and numbers are clamped to their ranges. A scene over 64 KB is refused.
The print-ready file#
/a/{team_slug}/prepress/api/v1/artworks/{id}/bleed/generate/
prepress_bleed_generate ·
View in API reference
/a/{team_slug}/prepress/api/v1/artworks/{id}/bleed/status/
prepress_bleed_status ·
View in API reference
/a/{team_slug}/prepress/api/v1/artworks/{id}/bleed/revert/
prepress_bleed_revert ·
View in API reference
/a/{team_slug}/prepress/api/v1/artworks/{id}/tools/apply/
prepress_tools_apply ·
View in API reference
/a/{team_slug}/prepress/api/v1/artworks/{id}/bleed/preview/
prepress_artwork_bleed_preview ·
View in API reference
/a/{team_slug}/prepress/api/v1/artworks/{id}/file/
prepress_file ·
View in API reference
bleed/generate/ takes the same bleed settings as PATCH (saved first) and in_request. It answers 200 with the
state when the file was made, or 202 with a job (id, status: queued, running, done or failed,
error) when the band is large: poll bleed/status/ until the job is done. in_request: true makes a large band
while you wait, when it is small enough. tools/apply/ makes the print-ready file again with the output tools,
keeping the bleed the file in use has. bleed/revert/ goes back to the original. What each setting does is on
Bleed and the print-ready file.
bleed/preview/?distance_pt=&corner= returns the band's rings and area without making anything. file/ returns the
PDF: ?which=source for the original, effective (the default) for the file in use, and download=1 to download it.
Geometry and carton structure#
/a/{team_slug}/prepress/api/v1/artworks/{id}/geometry/
prepress_artwork_geometry ·
View in API reference
/a/{team_slug}/prepress/api/v1/artworks/{id}/structure/
prepress_artwork_structure ·
View in API reference
/a/{team_slug}/prepress/api/v1/artworks/{id}/plates/
prepress_artwork_plates ·
View in API reference
geometry/ is the artwork's layout on its page (version 1, in points): frame (MediaBox, CropBox, rotation),
trim_box (the die's box, or the page's TrimBox without a die), bleed_box, bleed_pt, safe_box (or null),
die (outer, holes, path_ids), lines by line type, page_index and meta (artwork, job, name, quantity,
approval version, file hash).
structure/ is the 3D carton: its panels, hinges (each with its id, the panels it joins and its kind), the
root panel, the fold tree and warnings (see The 3D carton). A hinge's id depends only on its two ends,
rounded to 0.1 pt, then sorted. When the source PDF carries a dieline's fold data (the dieline.json attachment, see
The 3D carton), a crease's entry applies to the hinges whose id is its key; else to those it names another way
(a drawn crease lying along the hinge, or a coordinate on a 0.05 pt rounding tie rounded the other way); else, when
it gives its span (a, b, with die_bbox for a die placed elsewhere), to every hinge lying along that span. Then:
- each hinge it matches has
fold:angle(signed degrees, positive folds the print outside),sequence(the fold step, 1 first) andkd_angle(the flat-glued angle, ornull). Other hinges havefold: null. root_sourceishintwhen the root is the panel the data names (givenfor the scene's base panel,largestotherwise).seeded_materialis the scene's newmaterialon the one request that set the dieline's board.
plates/ lists the page's plates (name,
kind, cmyk, rgb), process first; ?file=source reads the original.
Inks#
/a/{team_slug}/prepress/api/v1/artworks/{id}/inks/
prepress_artwork_inks ·
View in API reference
/a/{team_slug}/prepress/api/v1/artworks/{id}/ink/
prepress_ink_sample ·
View in API reference
inks/ is what the job knows about the artwork's inks, per side, for ink-aware ganging: status (ok, pending
until the editor has read the artwork, or unknown for images and unreadable files), basis (vector, raster or
mixed), and front and back, each a list of inks with key, variant, name, kind, role, coverage_pct,
cmyk, rgb, opaque, clear and process_step. Technical inks are left out. It never reads the file for you.
ink/?x=&y=&size=&file= is the densitometer of the editor: the tint of every plate over a size pt square (0.25 to
18, default 1) at a point, and the total ink (see The Tools tab).
Renders and 3D assets#
/a/{team_slug}/prepress/api/v1/artworks/{id}/render.png/
prepress_render ·
View in API reference
/a/{team_slug}/prepress/api/v1/artworks/{id}/assets/
prepress_assets ·
View in API reference
/a/{team_slug}/prepress/api/v1/artworks/{id}/assets/{name}/
prepress_asset ·
View in API reference
render.png/ draws the page with overprint simulated: hide (plate names separated by |, layers as
layer:<name>), dpi (9 to 1200, default 96), clip (x0,y0,x1,y1 in points) and file (effective or
source). The resolution may be lowered to keep the image a reasonable size; the X-Render-Dpi header says what was
used. assets/ is the manifest of the 3D textures, with a URL for each file. Page and trap renders, ink samples, 3D
assets and shares are limited to 120 requests a minute per user; over it you get 429.
Trapping#
/a/{team_slug}/prepress/api/v1/artworks/{id}/trap/
prepress_trap_info ·
View in API reference
/a/{team_slug}/prepress/api/v1/artworks/{id}/trap/run/
prepress_trap_run ·
View in API reference
/a/{team_slug}/prepress/api/v1/artworks/{id}/trap/state/
prepress_trap_state ·
View in API reference
/a/{team_slug}/prepress/api/v1/artworks/{id}/trap/strip/
prepress_trap_strip ·
View in API reference
/a/{team_slug}/prepress/api/v1/artworks/{id}/trap/render.png/
prepress_trap_render ·
View in API reference
/a/{team_slug}/prepress/api/v1/artworks/{id}/trap/overlay.png/
prepress_trap_overlay ·
View in API reference
/a/{team_slug}/prepress/api/v1/artworks/{id}/trap/audit/{name}/
prepress_trap_audit ·
View in API reference
trap/ returns the trap state (none, queued, running, trapped, stale or failed), stale_reason
(settings or file), in_file, enabled, layer_on, the settings, the presets, the editable params with
their defaults, the ink table (inks), the kinds, the audit_options, and the last result (generated) and check
(audit, with a thumbnail URL for each checked area). Poll it while a job runs.
trap/run/ saves any settings it is given and starts a run (202): preset (offset, flexo, digital or
custom), base (offset or flexo, what Custom starts from), overrides (below; only used by custom), inks
({ink name: {"kind": "opaque", "nd": 1.2}}, kinds normal, transparent, opaque, opaque_ignore or technical,
nd from 0.001 to 4) and audit_um (0, 25, 50, 75, 100 or 150; 0 skips the check). Digital makes no traps: its run
is refused with no_trapping.
trap/state/ {"on": true} makes the traps print by default (conventional press), false switches them off
(digital). trap/strip/ removes the trap layer. Both answer {trap, state}. trap/render.png/ draws the file in use
with the traps forced on (on=1) or off (on=0), and trap/overlay.png/ the trap areas alone.
The overrides keys:
| Key | Setting | Values |
|---|---|---|
| width_mm | Trap width | number, 0.01 to 1 mm |
| black_width_mm | Width into black | number, 0.01 to 1.5 mm |
| step_rel | Step limit | number, 0 to 5 |
| image_placement | Image placement | center, spread, choke, normal |
| sliding_limit | Sliding trap limit | number, 0 to 1 |
| spot_width_mm | Width into spot colours (0 = trap width) | number, 0 to 1 mm |
| width_scale_x | Horizontal width scale | number, 0.25 to 4 × |
| width_scale_y | Vertical width scale | number, 0.25 to 4 × |
| step_abs | Minimum ink step (absolute) | number, 0 to 1 |
| common_density_limit | Common density limit | number, 0 to 4 D |
| white_density_limit | Paper density limit | number, 0 to 0.2 D |
| color_reduction | Trap colour intensity | number, 0.1 to 1 × |
| black_color_limit | Black colour limit | number, 0.5 to 1 |
| black_density_limit | Black density limit | number, 0.5 to 4 D |
| keepaway | Rich black keepaway | rich_black, off |
| keepaway_width_mm | Keepaway width | number, 0 to 1.5 mm |
| image_width_mm | Width at images (0 = trap width) | number, 0 to 1 mm |
| image_object | Trap images to objects | true or false |
| image_image | Trap images to images | true or false |
| image_internal | Trap inside images | true or false |
| small_text_pt | Small text up to | number, 0 to 24 pt |
| small_text_scale | Small text width scale | number, 0.1 to 1 × |
| small_object_fraction | Small object protection (per side) | number, 0.05 to 0.5 × |
| min_object_mm | Do not trap objects thinner than | number, 0 to 1 mm |
| thin_reverse_below | Thin objects spread when under | number, 0 to 5 × width |
| thin_spread_factor | Thin object spread | number, 0 to 1 × width |
| consistent_below_mm | Same decision for objects under | number, 0 to 10 mm |
| white_choke_mm | Opaque underprint choke | number, 0 to 1 mm |
| second_white_choke_mm | Second underprint extra choke | number, 0 to 1 mm |
| trap_highlights_min_dot | First printable dot in highlights | number, 0 to 0.2 |
| truncation | Truncation | center, edge |
| close_gaps_mm | Close gaps under | number, 0 to 0.1 mm |
| detect_dpi | Detection resolution | 600, 1200, 2400 |
| viewer_safe_blend | Darken blend (for PDF viewers) | true or false |
What each setting does, and its offset and flexo default, is on Trapping settings and inks.
Share a proof#
/a/{team_slug}/prepress/api/v1/artworks/{id}/share/
prepress_share ·
View in API reference
A multipart POST with include (flat and/or 3d), name, share_mode (simple or advanced) and an optional
poster image for reviewers who can't show 3D. The answer (201) has url (the approval link), version_id,
version_number, request_id and views, the views the link offers: 3d is left out when the 3D files could not
be saved. See Sharing proofs from the editor.
Files documents#
A document is one page of a version of a file in Files, opened in the editor (see
Files and images). POST /a/{team_slug}/prepress/api/v1/documents/ with a version_id from the
Files API and a page_number (0 for the first page) answers with the document's id, whether it was
created, its editor_url and its state: the first time, it is made and seeded from the nearest earlier version's
document, as opening the editor does. A print-ready version saved from the editor opens the version it was made from
(so bleed is never added on top of bleed). Other kinds of file answer 400 not_supported, a page the file doesn't
have no_page, and a version of another team or of a file in the trash 404. Every endpoint above works under
/a/{team_slug}/prepress/api/v1/documents/{id}/, with prepress_document_ operation ids (prepress_document_state,
prepress_document_update, prepress_document_bleed_generate…). A document's state has artwork.kind: "document",
job_id and quantity null, and artwork.document: file_id, version_id, version_number,
latest_version_number, raster (an image, read through its print PDF), raster_params, source_error,
carried_from (document_id, version_number) and review with review_message: "" (prepared), preparing,
needs_review (the die was lost or its cut lines changed), not_prepared (also a preparing that no worker finished
within 40 minutes) or storage_full. Documents of a file in the trash answer 404. Its geometry/ meta
has document_id, file_id, file_version_id and version_number, with artwork_id, job_id and quantity
null.
/a/{team_slug}/prepress/api/v1/documents/
The editor API of one page of a Files version (module docstring).
prepress_document_open ·
View in API reference
/a/{team_slug}/prepress/api/v1/documents/{id}/document/
The editor API of one page of a Files version (module docstring).
prepress_document_fields ·
View in API reference
/a/{team_slug}/prepress/api/v1/documents/{id}/save-version/
The editor API of one page of a Files version (module docstring).
prepress_document_save_version ·
View in API reference
/a/{team_slug}/prepress/api/v1/documents/{id}/download/
The editor API of one page of a Files version (module docstring).
prepress_document_download ·
View in API reference
/a/{team_slug}/prepress/api/v1/documents/
The editor API of one page of a Files version (module docstring).
prepress_document_list ·
View in API reference
/a/{team_slug}/prepress/api/v1/documents/{id}/links/
The editor API of one page of a Files version (module docstring).
prepress_document_links ·
View in API reference
/a/{team_slug}/prepress/api/v1/documents/{id}/apply-to-jobs/
The editor API of one page of a Files version (module docstring).
prepress_document_apply_to_jobs ·
View in API reference
PATCH document/setsback_page_number(another page of the file, ornull) andproduct_type(flat,boundorfolded);die_checked: trueclearsneeds_reviewonce a person has checked the die.POST save-version/with an optionalnote(up to 500 characters) makes the up-to-date print-ready file the file's next version (sourceprepress, the same bytes). It answers201withstatus(added,unchangedorpending),version(id,number) andfile_url, or409withno_print_ready,stale,busyorsuperseded(a newer version was added after this one; saving would make the older file current on top of it). An image's print-ready file is a PDF, so the file's kind becomespdfand its download name ends in.pdf.GET download/downloads the print-ready file as<file> (print-ready).pdf(404without one).GET /documents/?file_id=lists the documents of a file in Files (each page of each ready version that was opened in the editor), newest version first, as{file_id, documents}. Each hasid,version_id,version_number,page_number,page_count,state,reviewwithreview_message,carried_from,print_ready,can_savewithsave_refusal,saved_as(the version number it was saved as, ornull),updated_atandurls(editor,save_version,download).stateisready,stale(made before the latest changes),building,needs_review,not_prepared,storage_fullornone(no print-ready file).print_readyisnullortrim_pt([width, height]),bleed_pt,traps,size(bytes) andbuilt_at. A file of another team is a404.GET links/is what the editor's File tab shows: the file'sfile_id,name,path,file_url,properties_url,folder_url,properties(key,labeland the value as text, set values only),tags,versions(id,number,source,derived_from,current), this document'sstatus(as in the list) andjobs:available(whether imposition artworks can be made from Files versions yet),items, the artworks made from this version and page (artwork_id,name,job_id,job_name,job_url,laid_out,selected,in_sync), andrefusal: why this document's settings can't go to a job (a PDF worked on at another size with Scale),""when they can.POST apply-to-jobs/withartwork_idscopies this document's settings and up-to-date print-ready file onto those artworks (only artworks of your team made from this version and page change) and answersupdated(their ids) andavailable. Until artworks can be made from Files versions,updatedis always empty. An image's size goes with the copy (the artwork prints the image's print PDF at that size); a scaled PDF answers409scaled_pdf.share/proofs the print-ready file while it is up to date, else the version itself; the round is added to the approval artwork of the file. A full storage answers507(quota_exceeded) when an image's print PDF has to be stored first.
Die creation and size (Files documents)#
These endpoints exist for Files documents only (see Create a die and
Size and resolution), under /a/{team_slug}/prepress/api/v1/documents/{id}/.
/a/{team_slug}/prepress/api/v1/documents/{id}/die/create/
Die creation and size tools of a Files document (module docstring).
prepress_document_die_options ·
View in API reference
/a/{team_slug}/prepress/api/v1/documents/{id}/die/preview/
Die creation and size tools of a Files document (module docstring).
prepress_document_die_preview ·
View in API reference
/a/{team_slug}/prepress/api/v1/documents/{id}/die/create/
Die creation and size tools of a Files document (module docstring).
prepress_document_die_create ·
View in API reference
/a/{team_slug}/prepress/api/v1/documents/{id}/die/remove/
Die creation and size tools of a Files document (module docstring).
prepress_document_die_remove ·
View in API reference
/a/{team_slug}/prepress/api/v1/documents/{id}/die/points/
Die creation and size tools of a Files document (module docstring).
prepress_document_die_points ·
View in API reference
/a/{team_slug}/prepress/api/v1/documents/{id}/size/
Die creation and size tools of a Files document (module docstring).
prepress_document_size ·
View in API reference
/a/{team_slug}/prepress/api/v1/documents/{id}/size/
Die creation and size tools of a Files document (module docstring).
prepress_document_size_apply ·
View in API reference
GET die/create/answersparams(the created die's parameters, ornull),meta(its last run:path_ids,die_path_ids,trim,stats,warnings,at, orerror),inks(the die inks to offer, your team's last one first) anddefaults(shape,contour,drawn).POST die/preview/with{"params": {…}}answers the die they make, without saving:outerandholes(rings of[x, y]),bbox,lines(the creases and extra cuts:points,closed,type),stats,warningsand the normalisedparams.POST die/create/with{"params": {…}}makes it the document's die and answers the editor state. Its lines joinpathswithsourcecreatedand the inkCreaseor the die ink, mapped tocutandcreaseinpath_mappings; the die selects the outline and holes, and the created ink joinsinkswithsourcecreated. The parameters are stored asspec.die.created, the last run asspec.die.created_meta; both stay when the die mode changes, and are carried to new versions.POST die/remove/takes it all away.POST die/points/withaction(smooth,straightenorsnap),points([u, v]fractions of the trim box, 2 to 4000) andclosedanswers the newpoints.iterations(1 to 5),tolerance_ptandsnap_pttune them.GET size/answerskind(rasterorpdf),scale,resample_ppi,unsharp,size_ptandnatural_pt(the size atscale1), and for an imagepixels,source_pixels,native_ppi,dpi_source(metadataorassumed) andeffective_ppi;limits(warn_ppi,error_ppi,profile) are the preflight profile's image resolution limits,max_pixelsandpage_limits_ptthe limits a new size must respect.POST size/withscale, and for an imageresample_ppiandunsharp, applies a new size, reads the page again and answers{size, state}.
The parameters (version 1) are kind (shape, contour or drawn), ink (a spot name, Dieline by default),
trim (the trim size they were made for; filled in when left out), the block of the kind, and lines
([{"type": "crease" | "cut", "points": [[u, v], …], "closed": false}], at most 200). Positions are fractions of
the trim box from its bottom-left corner, so the die follows the page when its size changes; lengths are points.
{
"version": 1,
"kind": "contour",
"ink": "CutContour",
"contour": {"source": "alpha", "offset_pt": 4.5, "keep_holes": false, "single_piece": "bridge"},
"lines": [{"type": "crease", "points": [[0.1, 0.5], [0.9, 0.5]]}]
}
shape:shape(rectangle,roundedorellipse),size(trimorcustom, withwidthandheightas shares of the trim andcenter[u, v]),radius_pt(0 to 14400) andoffset_pt(-144 to 144).contour: the fields in Create a die.drawn:points(3 to 4000[u, v]),closed(it must betrue),smooth(0 to 5) andsnap_pt(0 to 72).
Errors#
Errors are {"detail": "…", "code": "…"}, with the message in the user's language and a stable code:
| Status | Codes |
|---|---|
400 |
no_die, open_outline, unknown_paths, bad_rectangle, no_panels, not_pdf, too_large, too_large_for_request, file_unavailable, nothing_to_do (no output tool picked), rename_conflict, write_failed, no_trapping; for documents also raster_error (the image has no print PDF) and storage_full (the print-ready file couldn't be stored in Files); from the die and size tools also bad_params (with field), bad_ink, bad_shape, self_intersecting (with at, where the outline crosses itself), no_alpha, no_background, empty_trace, factor, page_size, resample_ppi and not_raster; from trap/state/ and trap/strip/ also busy (trapping is running) and conflict (the print-ready file changed meanwhile); and field errors from validation |
409 |
conflict (the die changed meanwhile), extract_first, busy (another build of this artwork is running), superseded; from save-version/ no_print_ready, stale, busy and superseded; from apply-to-jobs/ scaled_pdf |
429 |
too many renders |
503 |
server_busy: try again after the Retry-After seconds |
See the API overview for the errors every API shares.