---
title: "Return available thread colors from provided image URL"
method: POST
path: "/files/thread-colors"
tags: ["File Library API"]
---

# Return available thread colors from provided image URL

`POST /files/thread-colors`

Returns colors in hexadecimal format.

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

[See examples](#tag/Examples/File-Library-API-examples/Suggest-thread-colors)

## Request body

- object
  - `file_url` string — URL to file

## Response `200`

OK

- object
  - `code` integer — Response status code `200`
  - `thread_colors` string[]

## Other responses

- `400` — Bad Request
- `401` — Unauthorized

---

[API](https://skmtc.net/printful/apis/api-documentation-printful.md) · [All operations](https://skmtc.net/printful/apis/api-documentation-printful/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/printful/api-documentation-printful/revisions/18e2f2e178dd/schema)
