# How to use the Outmano API

The Outmano API is an MCP server: one HTTP endpoint, `https://outmano.com/mcp`, that speaks JSON-RPC. It is read-only and included in every plan. Follow these steps to call it from a script. To use Outmano from an AI app, [connect your AI](/docs/connect-your-ai) instead. Most apps only need you to sign in.

## 1. Create an API key

1. Go to **Integrations → MCP**. Only the workspace **owner** can create a key.
2. Under **Generate a new key**, give the key a label, confirm your password, and click **Generate key**. (If you signed in with Google there's no password to confirm.)
3. Copy the key. It starts with `outmano_sk_` and is shown only once.

## 2. List the tools

Replace `YOUR_KEY` with your key:

```bash
curl https://outmano.com/mcp \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
```

The reply lists each tool with its name, description, and input schema. This call also works with no key, so you can read the catalog before you sign up.

## 3. Call a tool

Send `tools/call` with the tool's name and arguments:

```bash
curl https://outmano.com/mcp \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"outmano_list_competitor_pricing_changes","arguments":{"limit":5}}}'
```

The data is JSON text in `result.content[0].text`.

## 4. Handle errors

- **401:** the call needs a key, or the key isn't valid. Keys only work while the workspace has an active subscription (the trial counts). The body has `error` and `error_description`.
- **429:** each key is limited to 120 requests a minute. Wait for the number of seconds in the `Retry-After` header, then try again.
- **200 with an error:** a tool call that fails still returns 200. Check for `error` or `result.isError` in the body.

## Use the CLI instead

The [Outmano CLI](/mcp/setup#terminal) wraps the same server. Add `--json` for the raw payload:

```bash
npx outmano pricing-changes --json
```

The source is [on GitHub](https://github.com/whiletrueventures/outmano-cli).

## Call the public endpoints with no key

These answer questions about Outmano itself, not your workspace:

- `GET https://outmano.com/llms/json?query=pricing`: search facts about Outmano, as JSON
- `GET https://outmano.com/llms.txt`: the site map for agents
- `GET https://outmano.com/pricing.md`: plans and trial terms as Markdown

The [OpenAPI file](https://outmano.com/openapi.json) describes these endpoints and the MCP endpoint.