Upload design file

Add a design file to your file library from a URL.

POST https://cotlet.dev/api/v1/printful/design-files

write Confirm

Adds the file to your Printful file library, which Printful then processes. The URL must be public. Use the file ID in a product or order. The file stays in the library until you remove it there. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: upload_design_file
NameTypeDescription
url string required string Public URL of the design file, PNG or JPEG.
filename string string Name to show in the library.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/printful/design-files \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com"}'
Python
result = client.call("printful", "upload_design_file", {"url":"https://example.com"})
Node.js
const result = await cotlet.call('printful', 'upload_design_file', {"url":"https://example.com"});
CLI
cotlet call printful upload_design_file --data '{"url":"https://example.com"}'

Example response

JSON

{
  "file_id": 88120344,
  "filename": "autumn-tote.png",
  "status": "waiting"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.