# Pingram auth.md

Agents call Pingram in two ways. The marketing site does not accept API credentials. Use the API host or the MCP host below.

## REST API

Audience: a backend or agent that already has a Pingram secret API key.

Base URL: `https://api.pingram.io`

Credential: `Authorization: Bearer pingram_sk_...`

Create and rotate keys on the API Keys page in the dashboard at `https://app.pingram.io`. There is no public endpoint that mints an API key for an anonymous agent. A person with a Pingram account creates the key and gives it to the agent.

Some SDK calls also accept HTTP Basic client credentials (`clientId:clientSecret`) or end-user basic auth. Prefer the secret API key for server-side sends.

Health check, no credential: `GET https://api.pingram.io/status`

Machine-readable description: `https://www.pingram.io/openapi.json`

Catalog: `https://www.pingram.io/.well-known/api-catalog`

Docs: `https://www.pingram.io/docs/features/environments`

## MCP

Audience: an MCP client (Claude, ChatGPT, Cursor, VS Code, OpenClaw) acting as a signed-in Pingram user.

Endpoints, one per account region:

- US: `https://mcp.pingram.io`
- Canada: `https://mcp.ca.pingram.io`
- EU: `https://mcp.eu.pingram.io`

Use the host that matches the account. The US host is the default.

The user signs in with the same email, Google, or Microsoft login they use in the dashboard. The agent never receives that password. Tool calls use the access token from this OAuth flow.

Discovery for the US host (the same paths exist on the Canada and EU hosts):

- Protected resource metadata: `https://mcp.pingram.io/.well-known/oauth-protected-resource`
- Authorization server metadata: `https://mcp.pingram.io/.well-known/oauth-authorization-server`
- OpenID configuration: `https://mcp.pingram.io/.well-known/openid-configuration`
- Client registration: `POST https://mcp.pingram.io/register`

Registration is OAuth 2.0 dynamic client registration with PKCE (`S256`). Redirect URIs are limited to known MCP clients and loopback. Token exchange is PKCE-only.

Server card: `https://www.pingram.io/.well-known/mcp/server-card.json`

Docs: `https://www.pingram.io/docs/integrations/mcp`

## What not to do

Do not send the API key to `www.pingram.io`. Do not look for OAuth metadata on the marketing host. Do not invent a signup call. Account creation through MCP (`accounts_createAccount`) requires a user who is already signed in.
