# Presscart authentication for AI agents

Presscart (https://www.presscart.com/) is a self-service PR marketplace. This file tells an AI agent or script how to authenticate. Facts taken from the public docs at https://docs.presscart.com.

## Summary

- Two ways in: OAuth 2.1 for MCP clients (Claude, Claude Code, Codex and others), or an API token for server-to-server REST calls.
- MCP endpoint: https://mcp.presscart.com/mcp (Streamable HTTP, OAuth 2.1). You do not need to create or paste an API token for it.
- REST API base URL: https://api.presscart.com
- API token format: prefixed with `pc_`. Header: `Authorization: Bearer pc_...`
- Use the MCP server or the REST API as your path in. The app's sign-up and login pages are for people in a browser and may return 429 to automated clients.
- A person with a Presscart account signs in (MCP) or supplies the token (REST). The public docs do not describe an agent creating accounts or tokens for itself.

## Option 1: MCP with OAuth (interactive clients)

Add https://mcp.presscart.com/mcp as a remote MCP server and complete the browser sign-in and consent flow.

- OAuth 2.1 with PKCE (S256) and dynamic client registration at https://mcp.presscart.com/oauth/register, so no client ID or secret has to be created beforehand.
- Authorization server metadata: https://mcp.presscart.com/.well-known/oauth-authorization-server
- Protected resource metadata: https://mcp.presscart.com/.well-known/oauth-protected-resource
- OAuth scopes advertised: `profile`, `offline_access`. Presscart enforces the signed-in person's own permissions on every request.
- Claude Code: `claude mcp add --transport http presscart https://mcp.presscart.com/mcp`, then run `/mcp` in a session to sign in.
- Codex: `codex mcp add presscart --url https://mcp.presscart.com/mcp`, then `codex mcp login presscart` if the browser does not open.
- Claude and Claude Desktop: Settings, Connectors, add a custom connector with the endpoint URL.
- Setup guide: https://docs.presscart.com/ai/mcp-server
- If a tool reports a missing permission, reconnect the connector or ask a workspace admin to approve the access.

## Option 2: REST API token (servers and scripts)

Send the token on every request:

```
Authorization: Bearer pc_xxxx_xxxxxxx_xxxxxxxx_xxxxxxxx
```

- The raw token is shown only when it is created or regenerated. Tokens are stored hashed.
- Token types: `full_access` (bypasses scope checks on API-token routes), `custom` (only the explicit scopes attached) and `read_only` (read and list for its scopes, no writes).
- Scopes include `outlets.lists`, `outlets.read`, `products.read`, `orders.lists`, `orders.read`, `orders.create`, `teams.read`, `teams.update`, `profiles.create`, `profiles.update`, `profiles.lists`, `campaigns.lists`, `campaigns.read`, `campaigns.create` and `campaigns.update`. The route each scope unlocks is listed in the docs.
- Verify a token: `GET https://api.presscart.com/auth/token` returns the team ID, token type and granted scopes.
- OAuth access tokens issued to MCP clients do not work on the REST API (it answers 401).
- How to get a token and the full scope table: https://docs.presscart.com/getting-started/authentication
- OpenAPI: https://api.presscart.com/openapi.json

## What an agent cannot do

- Approve briefs or drafts. Content is reviewed by a person in the Presscart app.
- Make publisher decisions: approving publishing, requesting a revision, requesting more information or rejecting a submission.
- Delete user accounts or invite team members.
- Anything outside the signed-in person's permissions or the token's scopes.

## Where to read more

- Connect your AI: https://www.presscart.com/connect-your-ai
- API documentation: https://docs.presscart.com
- MCP server docs: https://docs.presscart.com/ai/mcp-server
- Pricing in markdown: https://www.presscart.com/pricing.md
- Index for LLMs: https://www.presscart.com/llms.txt
- Create an account (people, in a browser; the page sits behind a bot check and may return 429 to automated clients): https://app.presscart.com/register
- Contact support: https://www.presscart.com/support
