---
title: "Import Market Data"
method: POST
path: "/api/v1/market/import"
tags: ["Market"]
---

# Import Market Data

`POST /api/v1/market/import`

## Request

- Base URL: `https://api.gemstoneaiapp.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.gemstoneaiapp.com/api/v1/market/import`
- Auth: none declared

Import gemstone market data from CSV or Excel file.
Admin-only (X-Admin-Key). Upserts the rows behind the Markets tab and
scan valuations, so an unauthenticated caller could rewrite pricing.

For Excel: Merges data from multiple sheets:
- "Description": Textual characteristics, value drivers, market dynamics, insights.
- "Price v2": Pricing, historical avgs, event notes.

Expected columns match sheet headers (see schema aliases).
Merges on 'Variety'; partial data is handled gracefully.

## Headers

- `x-admin-key` string, nullable

## Response `200`

Successful Response

- ImportResponse
  - `success` boolean, required
  - `message` string, required
  - `imported_count` integer, required
  - `updated_count` integer, required
  - `failed_count` integer, required
  - `errors` string[], nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/gemstoneaiapp/apis/gemstoneai-api.md) · [All operations](https://skmtc.dev/gemstoneaiapp/apis/gemstoneai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/gemstoneaiapp/apis/gemstoneai-api/revisions/fcb441f55161?raw)
