---
title: "Tray Scan"
method: POST
path: "/api/v1/gems/tray-scan"
tags: ["Tray Scan"]
---

# Tray Scan

`POST /api/v1/gems/tray-scan`

## 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/gems/tray-scan`
- Auth: HTTP bearer

Accept ONE tray photograph, segment individual stones, and stream per-stone
identification results via SSE.

Response stream events:
  - `start`    : {"image_width", "image_height"}
  - `detected` : {"stones": [{"index","x","y","width","height","confidence"}]}
  - `stone`    : {"index","result":{"species",..., "market_insights":...}}
  - `error`    : {"index","message"}
  - `complete` : {"total_detected","total_identified","elapsed_ms"}

## Response `200`

Successful Response

- unknown

## 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)
