# OhSpotted: agent guide

OhSpotted follows public LinkedIn pages (profiles, company pages and jobs) for its users: once a day it reads each page again, keeps what changed as signals and emails them. Never promise real-time alerts, nor access to anything that isn't public on LinkedIn.

## Connect

MCP (Streamable HTTP, stateless): `https://www.ohspotted.com/api/mcp`
- Auth: OAuth for clients that support it (Claude, ChatGPT): add the URL, then log in and allow access. Otherwise `Authorization: Bearer <API_KEY>` (a key starts with `spt_`, created in the account's API tab), or `?key=<API_KEY>` for clients that only accept a URL.
- Claude Code: `claude mcp add --transport http ohspotted https://www.ohspotted.com/api/mcp --header "Authorization: Bearer <API_KEY>"`

## Recommended flow

1. `get_usage` for the credits left and the room on the list.
2. `add_target` with a LinkedIn address (a profile, a company page or a job) after asking the user.
3. `get_signals` (one `target_id`, or all) to read what changed; a page just added has no signal until its second daily read.
4. `update_target` to pause or mute a page, `remove_target` (ask first) to stop following one.

## Tools

| Tool | Arguments | Returns |
| --- | --- | --- |
| `get_usage` | none | plan, plan_name, credits, targets, target_limit, monthly_credits, requests_per_hour, manage_url |
| `list_targets` | `url?`, `kind?`, `page?`, `limit?` | targets (see the Target object), total, page |
| `get_target` | `target_id` | The Target object |
| `add_target` | `url` | The Target object |
| `update_target` | `target_id`, `paused?`, `muted?`, `seen?` | The Target object |
| `remove_target` | `target_id` | deleted, id |
| `get_signals` | `target_id?`, `limit?`, `unread?` | signals (see the Signal object), unread_total |

Everything here uses the account's own list and credits, like the app: each page followed is read once a day, never in real time, and costs 2 credits a day for a profile, 3 for a company page and 1 for a job. The free plan includes 120 credits a month and up to 2 pages; the Spotter plan, or credits left from a bought pack, up to 200. The API itself is not billed: an account can make 600 requests an hour, and add 60 pages an hour. When a tool fails, its text ends with the error code in parentheses, e.g. `(target_limit)`.

## Errors

| HTTP | Code | When |
| --- | --- | --- |
| 400 | `invalid_target` | url isn't the address of a LinkedIn profile, company page or job. |
| 400 | `invalid_option` | A setting isn't valid: kind, paused, muted, seen or unread. Also when the body isn't a JSON object, or a required argument is missing. |
| 401 | `unauthorized` | The API key is missing, revoked or invalid. |
| 402 | `no_credits` | The account hasn't enough credits for the first daily read of the page being added or resumed. |
| 403 | `target_limit` | The list is full (2 pages on the free plan, 200 on Spotter), or a page beyond what the plan reads can't be resumed. |
| 403 | `page_blocked` | The page was removed from OhSpotted at its owner's request and can't be followed. |
| 403 | `paused_by_team` | Our team paused the page (pause_reason admin): it can't be resumed through the API. Write to us. |
| 404 | `not_found` | No target with this id on the account's list. |
| 409 | `already_watching` | The page is already on the account's list. |
| 429 | `too_many_failed_pages` | 10 pages added within a day couldn't be found on their first read. Until the day is over, only pages already read can be added. |
| 429 | `rate_limited` | More than 600 requests (or 60 added pages) in an hour. Retry-After says when to try again. |
| 500 | `generic` | Something went wrong on our side. Try again. |

## Chrome extension

For people rather than agents: OhSpotted's Chrome extension (coming soon to the Chrome Web Store) follows the LinkedIn page they are on in one click and shows the latest changes. It isn't needed to connect an agent. What it does: https://www.ohspotted.com/linkedin-companion-chrome-extension

## REST API

The same key works with the REST API: `https://www.ohspotted.com/api/v1`. OpenAPI schema: https://www.ohspotted.com/openapi.json. Documentation: https://www.ohspotted.com/docs

| Method | Path | What |
| --- | --- | --- |
| GET | `/usage` | Get your plan and credits |
| GET | `/targets` | List the pages you follow |
| POST | `/targets` | Follow a page |
| GET | `/targets/{id}` | Get a page you follow |
| PATCH | `/targets/{id}` | Pause, resume, mute or mark a page as seen |
| DELETE | `/targets/{id}` | Stop following a page |
| GET | `/targets/{id}/signals` | Read what changed on a page |
| GET | `/signals` | Read what changed on all your pages |
| POST | `/signals/seen` | Mark everything as seen |

Examples (replace `YOUR_API_KEY`; pages are read once a day, so a page just added has no signal yet):

```sh
curl -X POST "https://www.ohspotted.com/api/v1/targets" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://www.linkedin.com/in/jane-doe"}'

curl "https://www.ohspotted.com/api/v1/targets?url=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fjane-doe" \
  -H "Authorization: Bearer YOUR_API_KEY"

curl "https://www.ohspotted.com/api/v1/signals?unread=1" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

Following people is the user's responsibility: only follow pages for a legitimate purpose. The owner of a page can ask for it to be removed at https://www.ohspotted.com/opt-out. How it works: https://www.ohspotted.com/guide.md. Plans and credits: https://www.ohspotted.com/pricing.md

## Credits without a subscription

An account can also buy credit packs, without subscribing: valid 12 months after the latest pack, used after the month's credits. While credits from a bought pack remain, the account follows up to 200 pages, as on Spotter. Free credits from rewards or reviews don't raise the limit on their own. Packs are bought on the website: https://www.ohspotted.com/pricing
