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
| Name | Type | Description |
|---|---|---|
| url string required | string | Public URL of the design file, PNG or JPEG. |
| filename string | string | Name to show in the library. |
Request
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"}' result = client.call("printful", "upload_design_file", {"url":"https://example.com"}) const result = await cotlet.call('printful', 'upload_design_file', {"url":"https://example.com"}); cotlet call printful upload_design_file --data '{"url":"https://example.com"}' Example response
{
"file_id": 88120344,
"filename": "autumn-tote.png",
"status": "waiting"
}