Skip to main content
POST

Overview

Stores one print-ready file and returns its asset_id. The body is the raw file, not JSON or a form. A letter takes a PDF of 1 to 60 pages. A postcard side takes a PDF, PNG or JPEG. 20 MB maximum. A stored asset never changes. Free. Pass the asset_id to Preview as artwork.file (letter) or artwork.front and artwork.back (postcard).

Authentication

X-Agent-ID plus a signed x-agent-proof with scope: "write", or an access token. See proof authentication. 60 requests a minute per agent.

Headers

string
required
application/pdf, image/png or image/jpeg. The bytes must be that type.

Request Body

The raw bytes of the file. Maximum 20 MB.

Response

string
Asset ID to reference from a preview
string
SHA-256 of the uploaded bytes, hex encoded
string
The Content-Type the file was stored with

Errors