---
title: "Portfolio Events"
method: GET
path: "/api/v1/gems/portfolio/events"
tags: ["Gemstones"]
---

# Portfolio Events

`GET /api/v1/gems/portfolio/events`

## 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/portfolio/events`
- Auth: HTTP bearer

GET /api/v1/gems/portfolio/events?days=365
Saved-gem addition markers for the portfolio chart: one event per gem
saved in the window ({date, type:"added", label, value, gemstone_id},
ascending). value = the scan-time anchor, null when no estimate existed.
Standalone while PR #53 is unmerged — can fold into
GET /gems/portfolio/history post-#53.

## Query parameters

- `days` integer

## Response `200`

Successful Response

- PortfolioEventsResponse
  - `events` PortfolioEvent[], required
    - `date` string, required
    - `type` string, required
    - `label` string, required
    - `value` number, nullable
    - `gemstone_id` integer, required

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