---
title: "My Labels Endpoint"
method: GET
path: "/admin/email-classifier/my-labels"
tags: ["admin-email-classifier"]
---

# My Labels Endpoint

`GET /admin/email-classifier/my-labels`

Return metadata for all labeled emails tied to the caller's
connected Gmail accounts. Bodies are fetched separately on demand.

## Query parameters

- `sort` 'date' | 'confidence'

## Response `200`

Successful Response

- MyLabelsResponse
  - `gmail_accounts` string[], required
  - `emails` EmailMetadata[], required
    - `id` string, required
    - `gmail_message_id` string, required
    - `gmail_account` string, required
    - `sender` string, required
    - `subject` string, required
    - `email_date` string, date-time, required
    - `label` boolean, required
    - `reasoning` string, required
    - `confidence` number, required
    - `category` string, required
    - `original_label` boolean, nullable, required
    - `original_reasoning` string, nullable, required
    - `reviewed_by_user_id` string, nullable, required
    - `reviewed_at` string, date-time, nullable, required
    - `reviewer_notes` string, nullable, required
    - `created_at` string, date-time, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/stardrift/apis/fastapi.md) · [All operations](https://skmtc.dev/stardrift/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/stardrift/fastapi/revisions/00746572572a/schema)
