Skip to main content

File Library API

You can use this API to directly add files to the library, and later use File IDs when creating orders.

PrintfulStoreClient.fileLibrary

Printful API Reference

Source


Add a new file

Printful API Reference

Adds a new File to the library by providing URL of the file.

Method

PrintfulStoreClient.fileLibrary.addFile(fileData: File)

Arguments

fileData - Information about file being added

Example Usage:

//Soon to be added

Get file

Printful API Reference

Returns information about the given file.

Method

PrintfulStoreClient.fileLibrary.getFile(id: number | string)

Arguments

id - File ID.

Example Usage:

//Soon to be added

Return available thread colors from provided image URL

Printful API Reference

Returns colors in hexadecimal format.

Returned thread colors are matched as closely as possible to provided image colors.

Method

PrintfulStoreClient.fileLibrary.getThreadColors(file_url: string)

Arguments

file_url - URL to file

Example Usage:

//Soon to be added