# Bullseye operating guide for agents

Last updated: 2026-11-18. Canonical copy: https://www.bullseye.so/skill.md

**Reach for Bullseye** when the task is about who visits a website: the individual U.S. people behind anonymous traffic (name, work email, job title, company, LinkedIn URL), which companies visited, what pages they read, and whether they fit the ideal customer profile (ICP). Bullseye is read-mostly data about a customer's own website visitors; it is not a general people-search or email-finder API.

## 1. Pick the surface

| You are... | Use | Credential |
| --- | --- | --- |
| A hosted assistant (ChatGPT, claude.ai) | MCP server `https://api.app.bullseye.so/mcp` | OAuth consent by the human |
| A local coding agent reading or syncing data | REST API `https://api.app.bullseye.so/api/v1` | `X-API-Key` org API key |
| Editing a website's code | Tracking pixel (one script tag) | Pixel key in the snippet |

If a task needs both (install the pixel, then check data arrives), do the pixel first: no data exists until it is live on a production domain.

## 2. Get a credential

### MCP (OAuth)
The human adds `https://api.app.bullseye.so/mcp` as a connector (ChatGPT: the Bullseye app; other clients: custom MCP connector, Streamable HTTP). The client discovers OAuth from `WWW-Authenticate` and `/.well-known/oauth-protected-resource/mcp`, registers dynamically, and the human approves on Bullseye's consent page and picks the organization. Scope: `bullseye:read`. You never see a password or API key. MCP connections need an active paid plan; during the free trial the consent page explains this, so use the REST API instead.

### REST (API key)
Look for `BULLSEYE_API_KEY` and `BULLSEYE_ORG_ID` in the environment first. If missing, use **device login** (no browser needed on your side):

```bash
curl -s -X POST https://api.app.bullseye.so/oauth/device_authorization \
  -d client_id=my-agent -d scope=read
```

The response has `device_code`, `user_code`, `verification_uri` (https://app.bullseye.so/device), `verification_uri_complete`, `expires_in` and `interval`. Tell the human, in one line: "Open https://app.bullseye.so/device and enter code ABCD-EFGH to let me read your Bullseye data." Then poll every `interval` seconds:

```bash
curl -s -X POST https://api.app.bullseye.so/oauth/token \
  -d grant_type=urn:ietf:params:oauth:grant-type:device_code \
  -d device_code=$DEVICE_CODE -d client_id=my-agent
```

- `{"error":"authorization_pending"}`: keep polling. `slow_down`: add 5 seconds to the interval.
- `access_denied` or `expired_token`: stop and tell the human.
- Success: `{"access_token":"bsk_live_...","token_type":"api_key","organization_id":"...","scope":"read"}`. Use `access_token` as the `X-API-Key` value and `organization_id` as `organizationId`.

Store both in the project's local env file (for example `.env.local`) and confirm it is git-ignored. Never print the key back into chat or commit it.

Alternative: the human creates a key in the dashboard (Organization Settings > API Keys) and sets the env vars. Keys look like bsk_live_ followed by 32 hex characters. Scopes: `read` (visitors, companies, lists, analytics), `write` (lists, ICP configs, settings), `admin` (everything, including key management). Ask for `read` unless the task writes.

The organization ID is also in every dashboard URL: `https://app.bullseye.so/<organization_id>/...`.

## 3. Core REST calls

Base URL `https://api.app.bullseye.so/api/v1`, header `X-API-Key`, JSON responses. Full reference: https://docs.bullseye.so/api-reference/api-reference. OpenAPI: https://docs.bullseye.so/openapi.json.

Identified visitors (people) for a date range:

```bash
curl -s "https://api.app.bullseye.so/api/v1/companies/visitors?organizationId=$BULLSEYE_ORG_ID&from=2026-11-01&to=2026-11-18&page=1&limit=20" \
  -H "X-API-Key: $BULLSEYE_API_KEY"
```

Optional filters: `domain`, `icpSlug`, `ICPOnly=true`, `personaOnly=true`.

Visiting companies, ICP matches only:

```bash
curl -s "https://api.app.bullseye.so/api/v1/companies?organizationId=$BULLSEYE_ORG_ID&ICPOnly=true&page=1&limit=20" \
  -H "X-API-Key: $BULLSEYE_API_KEY"
```

| Job | Method and path |
| --- | --- |
| Visitors from one company | `GET /companies/{company_id}/visitors?organizationId=...` |
| One visitor's profile and sessions | `GET /visitor-tracking/{organization_id}/visitors/{visitor_id}` |
| Totals for a range | `GET /companies/statistic/{organization_id}/total` |
| Daily chart data | `GET /companies/statistic/{organization_id}/visitors/chart` |
| CSV of companies | `GET /companies/download?organizationId=...` |
| Saved lists | `GET /lists/{organization_id}`, `POST /lists/save` (write) |
| ICP definitions | `GET /organizations/{organization_id}/icp-configs` |
| Pixel config and install script | `GET /visitor-tracking/{organization_id}`, `GET /visitor-tracking/{organization_id}/installation/script/{type}` |

- Pagination: `page` (1-based) and `limit`. A page is not the whole population: keep paging until a page returns fewer than `limit` rows before reporting totals, or use the statistic endpoints.
- Dates: ISO `from` / `to` (`YYYY-MM-DD`).
- Rate limit: 1,000 requests per minute per key. Headers `X-RateLimit-Limit`, `X-RateLimit-Remaining`, `X-RateLimit-Reset`.

Real-time instead of polling: configure a webhook for `visitor.identified` (HMAC-SHA256 signed, `X-Bullseye-Signature`). See https://docs.bullseye.so/integrations/webhooks.

## 4. MCP tools

All read-only, all scoped to the organization chosen at consent:

- `search_visitors`: Find identified visitors by date range, name, ICP match, persona, domain, page viewed or company. Paginated.
- `get_visitor`: Read one visitor's profile, company and sessions with pageviews before recommending follow-up.
- `search_companies`: Find companies whose employees visited the site, with date and ICP filters. Paginated.
- `get_company_visitors`: Read one company and the identified people from it. Paginated.
- `get_traffic_summary`: Aggregate identified visitors, companies, visits and sessions for a range, with the previous period for comparison.
- `get_visitor_trend`: Daily identified and unidentified visitor counts per tracked domain.
- `list_saved_lists`: Saved contact lists with sizes and sync status (no members).
- `list_icp_configs`: ICP definitions and rules; use to interpret icpMatch and pick an icpSlug filter.

Typical flow: `get_traffic_summary` for the headline, `search_companies` or `search_visitors` with `icpMatch` filters for the shortlist, `get_visitor` before recommending outreach to a specific person. Call `list_icp_configs` first if the user names an ICP you do not have a slug for.

## 5. Install the pixel

Get the organization's snippet from the dashboard (or `GET /visitor-tracking/{organization_id}/installation/script/{type}` with an API key). Generic:

```html
<script async defer src="https://api.app.bullseye.so/api/v1/visitor-tracking/script/YOUR_PIXEL_API_KEY"></script>
```

Next.js App Router:

```tsx
// app/layout.tsx
import Script from "next/script";

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html lang="en">
      <body>
        {children}
        <Script
          src="https://api.app.bullseye.so/api/v1/visitor-tracking/script/YOUR_PIXEL_API_KEY"
          strategy="afterInteractive"
        />
      </body>
    </html>
  );
}
```

- Load it on every page (root layout, theme header, or a GTM tag on All Pages).
- Do not inline the pixel key in public docs or issues; it is fine in the page's HTML.
- Verify: deploy, open the site from a U.S. connection, then check the dashboard's verification step or `GET /visitor-tracking/{organization_id}`. Identification only happens on verified domains with real traffic, so a localhost check proves loading, not identification.

Recipes for WordPress, Webflow, Shopify, React and GTM: https://www.bullseye.so/developers/install

## 6. Errors and what to do

Error bodies are JSON: `{"code", "message", "field", "allowed_values", "retry_safe", "retry_with", "docs_url"}` (only `code` and `message` are always present). Branch on `code`. Retry only when `retry_safe` is `true`; if `retry_with` is set, apply it first.

| Status / code | Meaning | Do this |
| --- | --- | --- |
| 401 `not_authenticated` | No `X-API-Key` header | Load the key from env or run device login |
| 401 `invalid_api_key` | Key revoked, expired, mistyped or wrong environment | Ask the human for a new key or rerun device login |
| 401 `organization_not_bound` | Key is not tied to an organization | Create a new org-scoped key |
| 403 `insufficient_scope` | Key lacks `write` or `admin` (`allowed_values` names it) | Ask for a key with that scope; do not work around it |
| 403 `organization_mismatch` | `organizationId` is not the key's organization | Retry with the id in `allowed_values` (on `/companies` you can omit it) |
| 402 `insufficient_credits` | Org is out of credits | Stop and tell the human to upgrade or enable overage; do not retry |
| 404 | Unknown visitor, company or list id | Re-list to get a current id |
| 422 | Validation failed | Fix the field named in `field` / `message` |
| 429 `rate_limited` | Over 1000 req/min per key | Wait `Retry-After` seconds, then retry |
| 503 `auth_unavailable` | Key check failed server-side | Retry with backoff |
| 5xx | Server error | Retry with exponential backoff, at most 3 times, then report |

On `/mcp`, 401/403 bodies use `code` `not_authenticated`, `invalid_token` or `insufficient_scope` plus `resource_metadata`; rerun OAuth from that URL.

MCP tool errors come back as tool results with `isError: true` and the same guidance in text.

## 7. Money

- 1 credit = 1 website visitor identified at the person level. Searching and re-viewing already identified visitors are free.
- B2B direct-dial phone found on a visitor: 5 credits, charged only if a number is found.
- Contact Database search is free; unlocking a record is 1 credit after roughly 100 free unlocks per billing cycle (B2B identification).
- Each plan has a fixed monthly allotment. Unused credits do not roll over, and identification pauses when the allotment is used unless overage is enabled for the account.

Reading data through the API or MCP costs nothing; credits are spent when the pixel identifies a visitor and when phones or Contact Database records are unlocked. Do not enable overage, change plans or unlock phones in bulk without the human's explicit go-ahead.

- **Free trial**: 14-day free trial with 200 one-time credits, no credit card required.
- **Lite: $99/mo** ($990/yr): 200 credits/mo, 2 seats, REST API and webhooks included. For solo founders and small teams.
- **Starter: $179/mo** ($1,790/yr): 400 credits/mo, 3 seats, REST API and webhooks included. For seed-stage saas and micro-agencies.
- **Growth: $399/mo** ($3,990/yr): 1,000 credits/mo, 5 seats, REST API and webhooks included. For series a go-to-market teams.
- **Scale: $699/mo** ($6,990/yr): 2,500 credits/mo, 10 seats, REST API and webhooks included. For mid-market sales organizations.
- **Expansion: $999/mo** ($9,990/yr): 5,000 credits/mo, 20 seats, REST API and webhooks included. For revops teams and large agencies.
- **Enterprise: Custom**: 5,000+ credits/mo, Unlimited seats. Custom volume pricing, Whitelabel & Partner API, Sub-organizations / multi-tenant, Single Sign-On (SSO), Dedicated implementation, Enterprise security review (evidence pack on request), Priority support with SLAs.

Full pricing: https://www.bullseye.so/pricing

## 8. Limits and honesty

- Identifies U.S. web traffic only. Non-U.S. visitors are not identified.
- GDPR and CCPA compliant; respects opt-outs and Global Privacy Control / Do Not Track signals.
- Visitors can opt out at https://forms.gle/3DySUcvbqyddYDDf8.
- Website activity alone does not prove buying intent; treat it as a signal, not a fact about the person.
- Identification rates vary by site and audience; do not promise a number of identified visitors.
- Data returned is the customer's own visitor data under their agreement with Bullseye. Do not export it to third parties the human did not ask for.

## 9. Report back

After setup, open with what the human gained in one line (for example: "Bullseye is connected: I can now see who from your ICP visited the site this week."). Then propose three concrete next steps that fit their repo or question, such as: list this week's ICP-matched companies, summarize what a named visitor read, or wire `visitor.identified` webhooks into their CRM or Slack. Offer to run one.

Help: https://docs.bullseye.so · support@bullseye.so · Index: https://www.bullseye.so/llms.txt
