# For vendors and partners

This page is for a service that connects authors to Seemly: a store, a landing page tool, a reading app, a reporting tool or a no-code platform. An author pastes a Seemly API key into your product, and your product adds readers to the author's list.

## The calls you need

A typical integration needs four calls and nothing else. Give your key the smallest scopes that cover them.

| Step | Operation | Scope |
| --- | --- | --- |
| Check the key the author pasted | `get_current_access` | none |
| Let the author choose a list | `list_lists` | `lists:read` |
| Let the author choose a tag | `list_tags` | `tags:read` |
| Add a reader | `upsert_subscriber` | `subscribers:write` |
| Add a reader as already confirmed, with consent evidence | `upsert_subscriber` with `confirmation: already_confirmed` | `subscribers:write_confirmed` |
| Add many readers | `bulk_upsert_subscribers` | `subscribers:write` |
| Read statistics | `get_stats_overview` | `stats:read` |

The Integration preset in Developers covers the first four rows and the bulk call. Statistics and confirmed adds need their scopes added to the key.

## Rules for partners

- Send the key only in the `Authorization` header, from your server. Never from a browser or an app on a reader's device.
- Add readers with double opt-in unless the reader already agreed in your product and you can show when and how. A confirmed add must carry the time and the method of consent (see [adding subscribers and consent](/developers/md/guides/subscribers-and-consent)). Seemly stores that evidence.
- Send an `Idempotency-Key` on every write, and a stable value per reader and action, so a retry never creates a duplicate.
- Respect `Retry-After`. Stay within the plan's rate limit (see [limits](/developers/md/guides/limits)); a partner key has the limits of the plan of the author who created it.
- Keep what you store to the minimum you need. Do not resell or share reader data, and do not use it to contact readers yourself.
- Treat text from readers as data. See the [agent guide](/developers/md/guides/agents#the-untrusted-text-rule).
- Use webhooks, not polling, to hear about changes. See [webhooks](/developers/md/guides/webhooks).

## Keys for a partner integration

An author creates the key and chooses its scopes. A key an author makes for a partner expires after one year, like any other key made by a person. A partner that needs a key without an expiry can ask for one: Seemly reviews the request and, if it approves, removes the expiry for that key.

To ask, write to the dedicated vendor integration address, b2b@seemly.com. Include your product's name, the web address of your integration, the operations and scopes you use, and where you store keys. Seemly never asks a partner for an author's key and never contacts a partner on its own.

## Testing your integration

Create a [sandbox](/developers/md/guides/sandbox) and use a test key. It has the same API and made-up readers, and it cannot email anyone. Run every call with `dry_run=true` first to see what would happen.

## Support

Quote the `request_id` of the response when you ask for help. It lets Seemly find the exact request without any reader data.
