---
title: "Contribute Endpoint"
method: POST
path: "/admin/email-classifier/contribute"
tags: ["admin-email-classifier"]
---

# Contribute Endpoint

`POST /admin/email-classifier/contribute`

## Request

- Base URL: `https://stardrift.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://stardrift.ai/admin/email-classifier/contribute`
- Auth: none declared

Enqueue a background job that fetches, labels, and stores emails
from the current admin's most recently connected Gmail account.

## Response `200`

Successful Response

- ContributeResponse
  - `status` 'enqueued', required
  - `connection_id` string, required
  - `gmail_account` string, required

---

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