# Gathermark Seller API

> The Seller API isn’t open to every seller yet. You can read the docs now; API keys and the Claude connector work once the API is turned on for your account. To ask for access, contact us: https://gathermark.com/help

The Seller API lets you create **draft listings with items** on Gathermark from a script, an AI agent, or Claude. You describe the listing and its items; Gathermark saves it as a draft in your dashboard. You then open the draft on the site, add photos if needed, and publish it yourself.

- API base URL: `https://api.gathermark.com`
- MCP server (for Claude and other AI clients): `https://api.gathermark.com/mcp`
- OpenAPI spec: `https://api.gathermark.com/v1/openapi.json`

Listings are created as drafts only; the API never publishes.

## Quickstart

### 1. Create an API key

Once the Seller API is turned on for your account, go to **Dashboard › Settings › API keys**, choose **Create key**, give it a name (for example "Pen roll script") and copy the key. It is shown once. Keys start with `gm_live_`.

Keep the key secret: anyone with it can create drafts in your shop. If it leaks, revoke it on the same page and create a new one.

### 2. Create your first draft

```bash
export GATHERMARK_API_KEY="gm_live_your_key_here"

curl -X POST "https://api.gathermark.com/v1/listings" \
  -H "Authorization: Bearer $GATHERMARK_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "title": "Vintage pen roll: Parker, Pelikan, Sheaffer",
    "description": "Ten restored pens, all tested.",
    "currency": "USD",
    "items": [
      {
        "name": "Parker 51 Aerometric",
        "price": "185.00",
        "condition": "Excellent",
        "nib_size": "F",
        "quantity": 1,
        "description": "Teal, lustraloy cap."
      }
    ]
  }'
```

The response (`201 Created`):

```json
{
  "id": "h7Gf2KpL9sQw4ZxC",
  "status": "draft",
  "edit_url": "https://gathermark.com/dashboard/listings/h7Gf2KpL9sQw4ZxC/edit",
  "listing_url": null,
  "can_publish": false,
  "missing": ["image", "shipping"],
  "items": [ { "id": "…", "name": "Parker 51 Aerometric", "price": "185.00", "images": [] } ],
  "warnings": []
}
```

### 3. Open the draft and publish

Open `edit_url` in your browser. Add photos, check the details, and publish. Once the listing is published, `listing_url` in every listing response is its public page, the one buyers see (it is `null` while the listing is a draft). `missing` tells you what the site still needs before you can publish (see [Drafts and publishing](https://gathermark.com/developers/drafts-and-publishing)).

## Before you build

Call these first to get the values a listing can use:

- `GET https://api.gathermark.com/v1/me`: your display name, default currency, whether you can publish, and your limits and usage today.
- `GET https://api.gathermark.com/v1/vocab`: allowed `condition` and `nib_size` values, supported currencies, field limits for drafts (`limits`) and the stricter minimums for publishing (`publish_limits`).
- `GET https://api.gathermark.com/v1/shipping-profiles`: your saved shipping profiles.
- `GET https://api.gathermark.com/v1/communities`: the communities a listing can be posted in.

## Rules at a glance

- Prices are decimal strings in the listing currency, with the currency's own decimals: `"185.00"` in USD, `"1500"` in JPY.
- Descriptions are plain text. Separate paragraphs with a blank line.
- Request bodies are strict: an unknown field is rejected with `422` naming the field.
- Only public IDs appear in requests and responses.
- Timestamps are ISO 8601 in UTC, ending in `Z`.
- JSON only.

[Conventions and versioning](https://gathermark.com/developers/conventions-and-versioning) has the details, the breaking-change policy and the changelog.

## More

- [Authentication and scopes](https://gathermark.com/developers/authentication)
- [Limits and errors](https://gathermark.com/developers/limits-and-errors)
- [Images](https://gathermark.com/developers/images)
- [Drafts and publishing](https://gathermark.com/developers/drafts-and-publishing)
- [Conventions and versioning](https://gathermark.com/developers/conventions-and-versioning)
- [API reference](https://gathermark.com/developers/api-reference)
- [Use with Claude](https://gathermark.com/developers/use-with-claude)

Every page is also available as markdown (add `.md` to the page URL; this overview is at [https://gathermark.com/developers/overview.md](https://gathermark.com/developers/overview.md)) and indexed in [llms.txt](https://gathermark.com/developers/llms.txt) for AI agents.
