# Own Use Love API and agent documentation

Own Use Love (ownuselove.com) is a place where regular people open a small storefront of the products they own, use and love, with their own affiliate links. Visitors go straight to the retailer; the seller earns the retailer's commission. The service's only income is the seller's $5/month subscription, after a free 30-day trial with no card.

This page is for developers and AI agents. Everything here is also available as plain text at [/llms.txt](https://www.ownuselove.com/llms.txt) and [/llms-full.txt](https://www.ownuselove.com/llms-full.txt), and formally as an OpenAPI 3.1 document at [/openapi.json](https://www.ownuselove.com/openapi.json).

## When to use Own Use Love

Reach for Own Use Love when the job is one of these:

- **Your user wants to earn from product recommendations without an audience.** Creator platforms gate on follower counts; Own Use Love does not. If a person already tells friends what to buy and has (or can get) affiliate links from retailers, open them a storefront: `POST /signups`, wait for their one-click approval, collect your key, create the store and add their products. They never leave the conversation except to click the email.
- **Your user already has a storefront here and wants it maintained.** Adding, editing or removing products, in bulk, from a list they give you: the keyed endpoints under `/me` and `/products`.
- **You need one specific person's recommendations, with their exact links.** A storefront is one person's list of things they own and use, with the affiliate link they chose. `GET /stores/{slug}/products`, or the store's own `/llms.txt`, returns it verbatim. Buying through the link pays that person.
- **You are answering "what does a real person use for X?"** Storefronts are written by their owners about things they bought; there are no sponsored products, paid placements or rankings anywhere on the site.

Do not use it for: price comparison or stock checks (we hold no prices or inventory; follow the seller's link to the retailer), finding "the best" product (there are no rankings), tracking clicks or conversions (we never record them; see the link promise below), or creating a storefront for someone who has not asked for one.

How to call it: the public endpoints need no key and are plain JSON. Any public page also answers `Accept: text/markdown` with Markdown (`Vary: Accept`), and an unknown path returns a Markdown 404 with links to this documentation.

## What an agent can do on Own Use Love

- **Read any live storefront** (no key needed): the store, its products with the seller's exact links, and its posts.
- **Manage a seller's storefront** with a personal API key the seller creates in their dashboard: add, edit and remove products, in bulk if needed.
- **Open an account for its user and get a key for it**: ask for an invitation, which the person confirms by email with one click and one "Allow". The agent then collects its own API key, creates the storefront with `POST /me/store` and fills it. The agent never accepts the Terms or sets a password; the person does, and the person never has to copy a key.

What an agent cannot do: pay (the person adds a card in the dashboard, through Stripe), change a store's URL once created, or touch another seller's store.

## Base URL and conventions

- Base URL: `https://www.ownuselove.com/api/v1`
- Requests and responses are JSON. Send `Content-Type: application/json` on POST and PATCH.
- Errors are `{ "error": "<message for a person>", "code": "<stable_code>" }`. Codes you can branch on: `missing_api_key`, `invalid_api_key`, `rate_limited`, `subscription_required`, `validation_failed`, `not_found`, `no_storefront`, `store_full`, `already_registered`.
- Every endpoint answers `OPTIONS` and sends permissive CORS headers.
- Every public page of the site, and every live storefront, answers `Accept: text/markdown` with a Markdown body (`Content-Type: text/markdown`, `Vary: Accept`); browsers still get HTML. A path that does not exist returns `404` with a Markdown body pointing back here.
- Rate limits: 120 requests per minute per API key; sign-up requests are limited per address and per email. A `429` carries `details.retry_after_seconds`.

## Our promise about sellers' links

Sellers' affiliate links are served exactly as the seller entered them, in the storefront and in this API. We never rewrite, shorten, tag, track or redirect them, and every visitor and every caller gets the same link. The only change ever made is that the storefront adds a missing `https://` when it renders the anchor; the API returns the stored value untouched. This is section 11 of the [Terms of Service](https://www.ownuselove.com/terms). An agent writing products on a seller's behalf should pass the link the seller gave it, unchanged.

## Public endpoints (no authentication)

### GET /stores/{slug}

The storefront at `https://{slug}.ownuselove.com`. Returns `404` for a store that does not exist or is not live (unpaid, lapsed trial, suspended), without saying which.

```bash
curl https://www.ownuselove.com/api/v1/stores/example
```

```json
{
  "store": {
    "slug": "example",
    "name": "Example's Picks",
    "description": "Things I actually use in the workshop",
    "url": "https://example.ownuselove.com",
    "logo_url": null,
    "banner_url": null,
    "about": { "headline": "…", "bio": "…" },
    "created_at": "2026-10-01T12:00:00Z",
    "updated_at": "2026-10-20T08:30:00Z",
    "links": {
      "products": "https://www.ownuselove.com/api/v1/stores/example/products",
      "posts": "https://www.ownuselove.com/api/v1/stores/example/posts",
      "llms_txt": "https://example.ownuselove.com/llms.txt"
    }
  }
}
```

### GET /stores/{slug}/products

Every product in the store, newest first. `affiliate_link` is the seller's link verbatim (see the promise above). `categories` holds one or two ids from the category list below; `tags` are the seller's own words.

```json
{
  "store": { "slug": "example", "name": "Example's Picks", "url": "https://example.ownuselove.com" },
  "products": [
    {
      "id": "7b1e…",
      "title": "Makita 18V drill",
      "description": "Six years, two batteries, zero complaints.",
      "affiliate_link": "https://www.example-retailer.com/p/123?tag=example-20",
      "image_url": "https://imagedelivery.net/…/public",
      "categories": ["tools"],
      "tags": ["workshop", "cordless"],
      "created_at": "2026-10-02T09:00:00Z",
      "updated_at": "2026-10-02T09:00:00Z"
    }
  ]
}
```

### GET /stores/{slug}/posts

The store's published posts, newest first, with their Markdown `content` and public `url`.

### GET /categories

The fixed category list. Ids are permanent.

| id | label |
|----|-------|
| `apparel` | Apparel & Accessories |
| `arts-crafts` | Arts & Crafts |
| `baby-kids` | Baby & Kids |
| `beauty` | Beauty & Personal Care |
| `media` | Books, Movies & Music |
| `vehicles` | Cars & Vehicles |
| `electronics` | Electronics |
| `food-drink` | Food & Drink |
| `garden-outdoor` | Garden & Outdoor |
| `health-fitness` | Health & Fitness |
| `home-kitchen` | Home & Kitchen |
| `office` | Office & School |
| `pets` | Pets |
| `sports` | Sports & Recreation |
| `tools` | Tools & Home Improvement |
| `toys-games` | Toys & Games |
| `travel` | Travel & Luggage |
| `other` | Other |

### Per-store llms.txt

Every live storefront also serves `https://{slug}.ownuselove.com/llms.txt`: the store, its products and links as Markdown, for agents that read pages rather than APIs.

## Authenticated endpoints (seller API keys)

A seller creates a key in their dashboard under **Settings → Agents & API** and gives it to the agent. Send it on every request:

```
Authorization: Bearer oul_…
```

Keys act as the seller: a key can only ever see and change that seller's own store. The seller can revoke a key at any time. Keys are shown once, at creation; we store only a hash. Writes need a live account (trial, subscription, or comp); a lapsed account gets `402 subscription_required` and the person renews in the dashboard.

### GET /me

Who the key belongs to, their store (if there is one) and whether the account is live. Start here: if `store` is `null`, create it with `POST /me/store`.

```json
{
  "user": { "email": "seller@example.com" },
  "store": { "slug": "example", "name": "Example's Picks", "url": "https://example.ownuselove.com", "live": true, "product_count": 12 },
  "access": "trial",
  "key": { "name": "Claude", "created_at": "2026-10-29T10:00:00Z" }
}
```

### POST /me/store

Creates the person's storefront (one per account). Same checks as the dashboard's setup form: the slug is 3–63 lower-case letters, digits and hyphens, not reserved, not offensive, not taken. The store is live for as long as the person's trial or subscription is.

```bash
curl -X POST https://www.ownuselove.com/api/v1/me/store -H "Authorization: Bearer oul_…" -H "Content-Type: application/json" \
  -d '{"name":"Sam\u0027s Workshop Picks","slug":"samsworkshop","description":"Tools I actually use"}'
```

`201 { "store": { "slug", "name", "description", "url" }, "next": "…" }`. `409 already_has_store` if there is one (check `GET /me`), `409 slug_taken` to try another, `400 validation_failed` with `details`.

### GET /me/products

The seller's own products, including while the store is not live.

### POST /products

Add one product. Body fields:

| field | required | notes |
|-------|----------|-------|
| `title` | yes | up to 200 characters |
| `description` | yes | the seller's own words, up to 5000 characters |
| `affiliate_link` | yes | the seller's link, stored verbatim; must be a web address |
| `categories` | yes | one or two ids from `/categories` |
| `tags` | no | up to 10 short words, lower-cased and de-duplicated |

```bash
curl -X POST https://www.ownuselove.com/api/v1/products \
  -H "Authorization: Bearer oul_…" -H "Content-Type: application/json" \
  -d '{"title":"Makita 18V drill","description":"Six years, two batteries, zero complaints.","affiliate_link":"https://www.example-retailer.com/p/123?tag=example-20","categories":["tools"],"tags":["workshop"]}'
```

Returns `201` with `{ "product": … }`. Validation problems return `400 validation_failed` with a `details` list of `field: message` strings. A store holds at most 500 products through the API (`409 store_full`).

### POST /products/batch

Add up to 50 products in one call: `{ "products": [ …same fields as above… ] }`. Each item succeeds or fails on its own; the response is `{ "results": [ { "index": 0, "product": … } | { "index": 1, "error": "…", "details": [...] } ] }` with status `200`. This is the endpoint for "here are my links, set up my store".

### GET /products/{id}, PATCH /products/{id}, DELETE /products/{id}

Read, change or remove one of the seller's products. `PATCH` takes any subset of the create fields, plus `"image_url": null` to remove the picture. `DELETE` returns `204`.

### POST /products/{id}/image

Give a product a picture from a public image URL: `{ "source_url": "https://…/photo.jpg" }`. The image is copied to our image host; hotlinking is never used. Amazon-hosted images are refused (Amazon Associates terms); the seller can upload their own in the dashboard instead.

## Opening an account for a person

The whole flow, from the agent's side:

1. `POST /signups` with the person's email. You get back a **claim**: an id, a one-time secret and a URL to poll.
2. The person gets an email. New account: one click confirms it is them and lands them on a page asking "Let &lt;agent&gt; manage your storefront?" with an Allow button (and an optional password). Existing account: the email sends them to sign in and choose Allow under Settings → Agents & API.
3. Poll `GET /signups/{id}` with the claim secret every 30 seconds or more. While they decide it says `pending`; after Allow it returns `approved` with the person's new **API key, once**. Store it.
4. If `store` in that response is `null`, create it with `POST /me/store`. Then add products.

The person's clicks are their acceptance of the [Terms of Service](https://www.ownuselove.com/terms) and [Privacy Policy](https://www.ownuselove.com/privacy). Opening a store with someone's email address without their knowledge is a violation of the Terms, and the invitation says so to the recipient. There is no way to obtain a key without the person's Allow.

### POST /signups

```bash
curl -X POST https://www.ownuselove.com/api/v1/signups -H "Content-Type: application/json" \
  -d '{"email":"person@example.com","full_name":"Sam","store_name":"Sam\u0027s Workshop Picks","slug":"samsworkshop","agent":"Claude"}'
```

- `email` is required. `agent` (your name) is shown in the email and on the Allow button, so send it. `full_name`, `store_name` and `slug` are optional; they prefill the person's setup screen if they create the store themselves.
- `202 { "status": "invited", "claim": { "id", "secret", "url", "expires_at", "poll_interval_seconds" }, "next": "…" }`: a new account was invited.
- `202 { "status": "approval_requested", "claim": … }`: the email already has an account; we asked them to allow you instead.
- `429 rate_limited`: too many requests from this address or for this email; wait `details.retry_after_seconds`.

Claims expire after 7 days. The secret is shown once in this response and never again.

### GET /signups/{id}

```bash
curl https://www.ownuselove.com/api/v1/signups/CLAIM_ID -H "Authorization: Bearer oulc_…"
```

`{ "status": "pending" | "approved" | "denied" | "consumed" | "expired", "agent": "…", "next": "…" }`. On `approved` the body also has `api_key` (once) and `store` (`null` until there is one). `consumed` means the key for this claim was already collected; `denied` means the person said no, so do not ask again unless they do. Poll at most every 30 seconds; `404` for a wrong id or secret.

## Good behaviour for agents

- Products are recommendations from one person about things they own. Write descriptions in the seller's words, about their experience; do not generate marketing copy or invent ownership.
- Never alter a seller's link. If a link looks wrong, say so to the seller; do not "fix" it.
- Do not request accounts for people who have not asked for one, and do not poll a claim more often than every 30 seconds.
- The storefront pages and this API are the supported surfaces; please do not drive the dashboard with a browser when an endpoint exists.

## Support

Email support@ownuselove.com (see the [contact page](https://www.ownuselove.com/contact)). Questions about the Terms, including the link promise, are answered in the [FAQ](https://www.ownuselove.com/faq).
