Skip to main content
POST
Upload a file from a URL

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 file to download from a public URL.

url
string<uri>
required

A public http(s) URL of a PNG, JPEG, WebP, GIF, SVG, TIFF or PDF, up to 50 MB.

Maximum string length: 2048
title
string

A name for the file. Default: from the URL.

Required string length: 1 - 200
folderId
string

A graphic folder to put it in.

Required string length: 1 - 200
tags
string[]

Labels for finding it again.

Maximum array length: 50
Required string length: 1 - 50

Response

Created.

An image or graphic in your account.

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

Use it as asset in design operations.

title
string | null
required
contentType
string | null
required
size
number | null
required

Bytes.

width
number | null
required

Pixels, when known.

height
number | null
required

Pixels, when known.

url
string
required

The original file.

previewUrl
string
required

A small preview image.

tags
string[]
required
created
string<date-time> | null
required
modified
string<date-time> | null
required