# Sendopedia auth.md

> Public catalog data needs no credentials. The vendor portal MCP resource (https://sendopedia.com/mcp/vendor) needs an OAuth 2.1 access token issued to a verified employee of a vendor listed on Sendopedia.

## Who this is for

- AI agents and MCP clients acting for an employee of a vendor listed on Sendopedia who wants to read the vendor's profile or send correction requests (right of reply) to the editors.
- Everything else is public and read-only: the catalog, the JSON API (https://sendopedia.com/api/v1/vendors.json) and the public MCP server (https://sendopedia.com/mcp). Do not register and do not send an Authorization header for those.

## Resources

| Resource | Access | Metadata |
|---|---|---|
| https://sendopedia.com/mcp | public, read-only, no token | https://sendopedia.com/.well-known/mcp/server-card.json |
| https://sendopedia.com/mcp/vendor | OAuth 2.1 bearer token in the Authorization header | https://sendopedia.com/.well-known/oauth-protected-resource/mcp/vendor |

Without a token, https://sendopedia.com/mcp/vendor answers 401 with WWW-Authenticate: Bearer resource_metadata="https://sendopedia.com/.well-known/oauth-protected-resource/mcp/vendor".

## Authorization server

- Issuer: https://sendopedia.com (metadata: https://sendopedia.com/.well-known/oauth-authorization-server, keys: https://sendopedia.com/.well-known/jwks.json)
- Authorization endpoint: https://sendopedia.com/oauth/authorize (authorization code with PKCE; S256 only)
- Token endpoint: https://sendopedia.com/oauth/token (grants: authorization_code, refresh_token, urn:workos:agent-auth:grant-type:claim)
- Dynamic client registration: https://sendopedia.com/oauth/register (RFC 7591; public clients only, token_endpoint_auth_method "none"; redirect URIs https or http on 127.0.0.1, [::1] or localhost)
- Revocation: https://sendopedia.com/oauth/revoke (RFC 7009)

Scopes:

- `vendor:read` — Read your vendor profile(s) and your own correction requests.
- `corrections:write` — Submit correction requests for your vendor (editors review every request).

## Registration methods

### 1. Authorization code + PKCE (MCP clients with a browser)

Register with https://sendopedia.com/oauth/register, send the person to the authorization endpoint with resource=https://sendopedia.com/mcp/vendor, code_challenge_method=S256 and the scopes you need. The person signs in to the vendor portal with a one-time code sent to their work email and approves your app on a consent screen. Exchange the code at the token endpoint.

### 2. Agent registration with the person's work email (service_auth)

For agents without a redirect URI. POST JSON to https://sendopedia.com/oauth/agent/claim:

```json
{"type": "service_auth", "login_hint": "jane@vendor-domain.com", "client_name": "Your agent name"}
```

The identity_assertion shape with assertion_type "verified_email" is accepted as an alias of the same flow:

```json
{"type": "identity_assertion", "assertion_type": "verified_email", "assertion": "jane@vendor-domain.com"}
```

The email is not trusted as asserted: the person must still prove it by signing in with a one-time code. The response is the same for every address:

- registration_id, claim_token (keep it in memory only; it is returned once), claim_token_expires (15 minutes)
- claim: user_code, verification_uri, expires_in, interval (the same four fields are also repeated at the top level)

Show the person the verification_uri and the user_code. They open the page, sign in to the vendor portal with that same work email, check what you asked for and type the user_code. Meanwhile poll https://sendopedia.com/oauth/token with form fields grant_type=urn:workos:agent-auth:grant-type:claim and claim_token=<claim_token>, at most once every interval seconds. Answers: authorization_pending, slow_down, access_denied (declined or too many wrong codes), expired_token, or the tokens.

Need a fresh user_code within the claim window? POST {"claim_token": "…", "email": "<the same email>"} to https://sendopedia.com/oauth/agent/claim.

## Credentials

- Access token: RS256 JWT (typ at+jwt), valid 60 minutes, audience https://sendopedia.com/mcp/vendor. Send it only as Authorization: Bearer <token>, never in a URL.
- Refresh token: opaque, valid 30 days, rotated on every use (grant_type=refresh_token). Using an old refresh token again revokes the whole chain. Agents registered by email use the same refresh grant.
- The person can revoke any app at https://sendopedia.com/portal/apps/; the tokens stop working at once.

## Tools on the vendor portal MCP resource

- get_my_vendor_profile (vendor:read): The vendors the signed-in employee may act for, and the full public profile of one.
- list_my_correction_requests (vendor:read): The employee's own correction requests with status and editor comments.
- submit_correction_request (corrections:write): Send a correction request with a public https source to the editors.

## Limits

- 20 correction requests per account and 200 per vendor per day; each needs an https link to a public source.
- 20 client registrations and 10 agent registrations per IP address per hour; 429 with Retry-After when exceeded.
- Merged or discontinued vendors are read-only. Free email addresses (Gmail, Outlook.com and similar) are never accepted as a vendor identity.

## Rules

- Nothing on Sendopedia changes automatically. Editors check every request against its source and answer within 5 business days: https://sendopedia.com/corrections/
- An agent never needs the person's email sign-in code. Do not ask for it.
- Sendopedia is published by JG Invest PSA, the company that also owns NetSendo, one of the email marketing tools listed in this catalog. NetSendo uses this same portal and process.
- Privacy: https://sendopedia.com/privacy/
