---
title: "POST /products/upload-image"
method: POST
path: "/products/upload-image"
tags: ["Products"]
---

# POST /products/upload-image

`POST /products/upload-image`

We recommend uploading images to Faire before attempting to use them for a product or variant. This provides you with immediate feedback on whether the image is valid and accessible.

## Request body

- UploadImageRequestV2 — Request to upload an image by providing a base64-encoded image attachment.
  - `attachment` string — The image file, encoded in Base64.

## Response `200`

Successful response

- UploadImageResponseV2 — Response containing the URL of the uploaded image hosted on Faire's CDN.
  - `url` string — The URL of the uploaded image hosted on Faire's CDN.

## Other responses

- `400` — Bad Request -- Your request is invalid.
- `401` — Unauthorized -- Your API key is wrong.
- `404` — Not found -- The requested resource could not be found.
- `405` — Method Not Allowed -- You tried to access an entity with an invalid method.
- `429` — Too Many Requests.
- `500` — Internal Server Error -- We had a problem with our server. Try again later.
- `503` — Service Unavailable -- We're temporarily offline for maintenance. Please try again later.

---

[API](https://skmtc.net/faire/apis/faire-external-api.md) · [All operations](https://skmtc.net/faire/apis/faire-external-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/faire/faire-external-api/revisions/19558399745c/schema)
