Skip to main content
POST
Create a project

Authorizations

Authorization
string
header
required

A secret key from Print.App admin → Domains → Secret keys, sent as Authorization: Bearer sk_…. Server-side only.

Headers

Idempotency-Key
string

Makes a retry safe: a second request with the same key and the same body gets the first response back (for 24 hours) instead of creating the resource again. Use a new key, such as a UUID, for every new request.

Required string length: 1 - 255

Body

application/json

A new project: blank pages at a trim size, or a copy of a design's pages. Give designId, or width and height, not both.

designId
string

A design to start from: the project gets a copy of its pages and their content, as when a customer opens it. Leave out for blank pages.

Required string length: 1 - 200
title
string

The project's name. Default: the design's title, or New project.

Required string length: 1 - 200
unit
enum<string>
default:in

Blank pages: the unit for width, height, bleed and safeMargin, and the unit the project is measured in afterwards.

Available options:
in,
mm,
cm,
pt,
px,
ft
width
number

Blank pages: trim width.

height
number

Blank pages: trim height.

pages
integer
default:1

Blank pages: how many.

Required range: 1 <= x <= 200
pageTitles
string[]

Blank pages: a title per page, for example ["Front", "Back"]. Default Page 1, Page 2, …

Maximum array length: 200
Maximum string length: 100
bleed
number
default:0

Blank pages: bleed on every edge, outside the trim.

Required range: x >= 0
safeMargin
number
default:0

Blank pages: safe margin on every edge, inside the trim.

Required range: x >= 0
userId

The customer's id in your store, the userId your product page passes to PrintAppClient (on WooCommerce, the WordPress user id). With product, the project is listed in that customer's saved designs in the store, where they can resume it and add it to the cart.

Required string length: 1 - 100
product
object

The store product the project is for, in the shape your product page passes to PrintAppClient: { id, name } on WooCommerce.

userData
object

Your own customer or order details, as store plugins save them: id, name, email, phone, info. Up to 50 KB.

Response

Created.

A customer's saved design.

object
string
required
Allowed value: "project"
id
string
required

The projectId from the editor's app:saved event.

title
string | null
required
status
enum<string>
required

submitted: the customer finished the design (the editor's submit). saved: saved for later. draft: autosaved, not yet saved by the customer.

Available options:
draft,
saved,
submitted
product
object | null
required

Exactly the product object your page passed to PrintAppClient when the project was created — for example { id, ref }. Use it to check the project was made for the product being ordered. It passes through the customer's browser, so treat it as the customer's claim about the page, not as proof.

userId
string | null
required

The userId your page passed to PrintAppClient, if any.

userData
object | null
required

Customer details attached to the project by a store plugin or your page: id, name, email, phone, info.

designId
string | null
required

The design (template) the project was made from.

created
string<date-time> | null
required
modified
string<date-time> | null
required

Last save.

pages
object[]
required
exports
object
required

Print files, rendered on request from the project's current state.