# Doing the work Source: https://docs.spreadjam.com/actions/doing-the-work Do an action three ways: send it to Jam, copy its prompt into your own agent, or do it yourself. Then report it done so Jam can check it. Every action on the Plan has two buttons side by side: **Send to Jam** has Jam do it, and **Copy prompt** hands it to your own agent. Each action also has its own page with the evidence, the article or the change, and its history. ## Send to Jam Jam starts a background agent run on the action, in its own chat, so you can follow it and answer if it needs you. * A `new_page` action is researched and written as a draft. Drafting is metered: a page is charged what its writing cost, about 65 credits for an agent run (about 45 for a one-shot draft). Credits for the most it may cost are held at the start and the rest is returned; nothing is charged when no page is saved. * A `page_edit` or `technical` action gets a prepared code change to preview. A content-only change may get its pull request opened by the run; anything touching code stops at the change, for you to open with **Make PR** (20 credits, kept only if the pull request opens). * Outreach and community actions get a drafted pitch or reply for you to send. From the API: `create_action_execution` with `{"mode": "agent"}`. It answers `202` with `runId` and `chatUrl`. Without a body it does the one-shot version: a draft for a `new_page`, a prepared change (`changeId`) for a `page_edit` or `technical` action, and `422` for outreach and community. ## Copy prompt Copies the action's instructions for any agent: what to do, the evidence, the target page, and a link to report it done that needs no API key. See [Copy prompt](/onboard-with-your-agent/copy-prompt). ## Do it yourself Read the action's page (or `get_action`), make the change, then press **Mark done** and give the URL of what changed. ## Report it done Reporting an action done (**Mark done**, `complete_action`, or the link in a copied prompt) records `done`, optionally with the URL of the finished work. Jam then checks the page once and marks the action `verified` or `unverified`. **Check again** (`check_action_again`) checks a `done` or `unverified` action once more. For outreach, report the pitch sent with `report_action_sent` (status `sent`); Jam then watches the list for your brand. ## Many at once `create_plan_batch` (Plan now) drafts the top open Plan articles in the background, 3 by default and up to 20. Credits are the only limit. # The Plan Source: https://docs.spreadjam.com/actions/the-plan The Plan is the ranked list of actions that should raise your AI visibility: pages to write or fix, technical changes, sources to earn and people to pitch. Research writes the Plan. Each action says what to do, why (the evidence from the answers and sources), which tracked prompts it should move and which page it targets. ## Kinds of action | Kind | What it is | Who can do it | | - | - | - | | `new_page` | A page to publish, such as a comparison or a guide. | Jam drafts it, or your agent writes it. | | `page_edit` | A change to a page already on your site. | Jam prepares the code change, or your agent makes it. | | `technical` | A technical fix on your site. | Jam prepares the code change, or your agent makes it. | | `outreach` | Pitch a third-party list or page. | Your agent or you, from `agentPrompt`. A Send to Jam run can draft it. | | `community` | Take part in a community thread. | Your agent or you. A Send to Jam run can draft it. | ## Status | Status | Meaning | | - | - | | `suggested` | On the Plan, not started. | | `in_progress` | Someone started it. | | `sent` | Outreach went out; waiting on the third party. | | `done` | Reported done. | | `verified` / `unverified` | Jam checked whether it took effect. | | `dismissed` | Taken off the Plan. | | `superseded` | Research no longer proposes it. Hidden from the list by default. | Transitions are safe to repeat: starting a started action, or dismissing a dismissed one, changes nothing. To take a started action off the Plan, dismiss it; restoring it puts it back as `suggested`. ## Read it from your agent * `list_actions`: the Plan, best first, with `countsByStatus` covering every page. * `get_action`: everything for one action, including `agentPrompt`, the instructions for your agent. Actions and opportunities are two lists over one Plan. Opportunities (`list_opportunities`) are the article pipeline behind `new_page` actions: when Jam drafts one, the action carries its `opportunityId`. Work from actions; read an opportunity only to write the article yourself from its brief. Next: [Doing the work](/actions/doing-the-work). # Check a done action again Source: https://docs.spreadjam.com/api-reference/actions/check-a-done-action-again https://api.spreadjam.com/openapi.json post /v1/actions/{actionId}/checks Re-verify a `done` or `unverified` action: records a new done claim (at `url`, or the page the last claim named) and Jam checks it once more. 409 when the action is not `done` or `unverified`. # Dismiss an action Source: https://docs.spreadjam.com/api-reference/actions/dismiss-an-action https://api.spreadjam.com/openapi.json post /v1/actions/{actionId}/dismissal Take an open action off the Plan (status `dismissed`). `DELETE` restores it. Safe to repeat: an action already in that status answers 200 with it and records nothing. # Have Jam do an action Source: https://docs.spreadjam.com/api-reference/actions/have-jam-do-an-action https://api.spreadjam.com/openapi.json post /v1/actions/{actionId}/executions Ask Jam to do the work. By default (no body, or `{"mode": "one_shot"}`) nothing changed: a `new_page` action (or any action linked to an article) is drafted, metered against credits; a `page_edit` or `technical` action gets a prepared code change to preview (opening its pull request is a separate request that holds the Make PR price); outreach and community work is yours (422, use `agentPrompt` from `GET /v1/actions/{actionId}`). 409 when the action is finished or dismissed, or a change is already in flight. With `{"mode": "agent"}`, as the dashboard's "Send to Jam": Jam starts a background agent run on the action in its own chat (`runId`, `chatUrl`), which also drafts outreach and community work; a content-only change may get its pull request opened by the run, anything touching code stops at the change for you to open. A repeat while the run is going returns the same `runId`; 409 when its article is already drafted, in review or live (edit it there); 422 when Jam cannot do it (an action done or dismissed, or agent runs are not available to the workspace yet). 402 when credits cannot cover it. Requires a paid plan. # List actions Source: https://docs.spreadjam.com/api-reference/actions/list-actions https://api.spreadjam.com/openapi.json get /v1/actions The active GEO project's Plan, highest priority first, with how many actions are in each status. Superseded actions are left out unless `includeSuperseded=true` or `status` names them. Paged: `limit` (default 100, at most 100) and `cursor`; `pageInfo` says whether more pages follow and `countsByStatus` covers every page. Actions are the Plan: everything research recommends (new pages, page edits, technical fixes, outreach). Opportunities (`/v1/opportunities`) are the article pipeline behind `new_page` actions: when Jam drafts a `new_page` action it creates (or links) an opportunity, and the action carries its `opportunityId`. Work from actions; use opportunities only to write an article yourself from its brief. # Mark an action done Source: https://docs.spreadjam.com/api-reference/actions/mark-an-action-done https://api.spreadjam.com/openapi.json post /v1/actions/{actionId}/completion Report an action done, optionally with the URL of the finished work. Jam then checks the page once (status `done`, then `verified` or `unverified`). Applies to open actions and repeats on done work; 409 for a dismissed or superseded action. # Mark an action started Source: https://docs.spreadjam.com/api-reference/actions/mark-an-action-started https://api.spreadjam.com/openapi.json post /v1/actions/{actionId}/start Record that work on the action has begun (status `in_progress`). There is no undo for start (the dashboard has none either): to take a started action off the Plan, dismiss it; restoring it then puts it back as `suggested`. Safe to repeat: an action already in that status answers 200 with it and records nothing. # Read an action Source: https://docs.spreadjam.com/api-reference/actions/read-an-action https://api.spreadjam.com/openapi.json get /v1/actions/{actionId} Everything needed to do one action: its evidence (`details`, `sources`), the tracked prompts it should move (`questions`), the target page, its history and latest check, the code change Jam prepared for it (if any), and `agentPrompt`: executable instructions for your agent ending with how to report the work done. # Report an action done with its completion token Source: https://docs.spreadjam.com/api-reference/actions/report-an-action-done-with-its-completion-token https://api.spreadjam.com/openapi.json post /v1/action-completions/{token} For the agent that did the work: the token in the action's copied prompt reports that one action done (an outreach action: the pitch sent). No API key needed. An agent with an API key uses `POST /v1/actions/{actionId}/completion` instead. # Report an outreach pitch sent Source: https://docs.spreadjam.com/api-reference/actions/report-an-outreach-pitch-sent https://api.spreadjam.com/openapi.json post /v1/actions/{actionId}/sent Outreach actions only: the pitch went out and the third party has not acted yet (status `sent`). Jam watches the list for your brand. 422 for any other kind. Safe to repeat: an action already in that status answers 200 with it and records nothing. # Restore a dismissed action Source: https://docs.spreadjam.com/api-reference/actions/restore-a-dismissed-action https://api.spreadjam.com/openapi.json delete /v1/actions/{actionId}/dismissal Put a dismissed action back on the Plan, as it was before any work (`suggested`). Safe to repeat: an action already in that status answers 200 with it and records nothing. # Poll an agent connect session Source: https://docs.spreadjam.com/api-reference/agent-connect/poll-an-agent-connect-session https://api.spreadjam.com/openapi.json get /v1/agent-connect/{pollToken} No API key needed. `pending` (with `stage`: what is left) until the human approves and, for a session started with `onboarding`, until the trial has started and the project exists; then `approved` with the API key; then `consumed`. The raw key is never stored, so it is not shown twice: a poll within 10 minutes of the first `approved` whose key was never used gets a replacement key (the first is revoked, `replaced: true`), so a poller that died before storing it can recover. `denied` and `expired` are final. # Start an agent connect session Source: https://docs.spreadjam.com/api-reference/agent-connect/start-an-agent-connect-session https://api.spreadjam.com/openapi.json post /v1/agent-connect No API key needed. Returns a link for the human to sign up, onboard and approve, a short `userCode` to show the human beside the link (the approval page shows the same code), and a poll token for the agent. Send `onboarding` (site, name, description, audiences, competitors, prompts, plan) and the human reviews it on one page and approves with one button that starts the trial, instead of walking the onboarding steps; the answer then adds `reviewUrl` and the quoted `plan`. An empty or unprintable `agentName`, a `domain` that is not a hostname, or an `onboarding` field that breaks an onboarding rule is a 400 with `details`. Rate limited per IP. # AI-visibility overview Source: https://docs.spreadjam.com/api-reference/analytics/ai-visibility-overview https://api.spreadjam.com/openapi.json get /v1/analytics/overview The numbers the analytics dashboard shows for the window: visibility, citation share and position with deltas, per platform, the brand leaderboard and topic rankings, plus the last and next scan. Send `X-Jam-Project` to pick a project. # Flattened metric rows Source: https://docs.spreadjam.com/api-reference/analytics/flattened-metric-rows https://api.spreadjam.com/openapi.json get /v1/analytics/metrics Chart-ready rows for one of visibility, competitors, citations, platforms, or topics. # Per-prompt analytics Source: https://docs.spreadjam.com/api-reference/analytics/per-prompt-analytics https://api.spreadjam.com/openapi.json get /v1/analytics/prompts The per-prompt numbers the analytics dashboard prompts table shows for the window, one page at a time (default 50, at most 100), in the table order (topic by topic). When `pageInfo.hasNextPage` is true, pass `pageInfo.nextCursor` as `cursor` with the same filters for the next page; `pageInfo.totalCount` is the number of prompts across all pages. Send `X-Jam-Project` to pick a project. # List AI answers Source: https://docs.spreadjam.com/api-reference/answers/list-ai-answers https://api.spreadjam.com/openapi.json get /v1/answers The project's AI answers, newest first: what each platform said to each tracked prompt, which tracked brands it mentioned, and the sources it cited. Filter by prompt, platform, time, own-domain citation or competitor. Send `X-Jam-Project` to pick a project. # List one prompt's answers Source: https://docs.spreadjam.com/api-reference/answers/list-one-prompts-answers https://api.spreadjam.com/openapi.json get /v1/prompts/{promptId}/answers One tracked prompt's answers across scans, newest first, with the same filters as `GET /v1/answers`. # Create an API key Source: https://docs.spreadjam.com/api-reference/api-keys/create-an-api-key https://api.spreadjam.com/openapi.json post /v1/api-keys Not available to API keys: an API key cannot create keys, so a leaked key cannot mint its own replacement. This answers 403 `forbidden_for_api_key`. A person creates keys in Settings > Developer, where the raw secret is shown once. # List API keys Source: https://docs.spreadjam.com/api-reference/api-keys/list-api-keys https://api.spreadjam.com/openapi.json get /v1/api-keys The workspace's API keys (never the raw secret). # Revoke an API key Source: https://docs.spreadjam.com/api-reference/api-keys/revoke-an-api-key https://api.spreadjam.com/openapi.json delete /v1/api-keys/{keyId} Revoke the API key making this request (send its own id from GET /v1/api-keys). A key may revoke only itself; revoking another key answers 403 `forbidden_for_api_key` (a person revokes other keys in Settings > Developer). Revoking is a soft delete and is idempotent; an unknown key id answers 404. # Plan state and billing links Source: https://docs.spreadjam.com/api-reference/billing/plan-state-and-billing-links https://api.spreadjam.com/openapi.json get /v1/billing The workspace's plan (status, trial or paid end, why it lapsed, what it includes), whether the key's creator may change it (the owner only), and the dashboard links where a person manages billing, resumes a lapsed plan, buys credits or changes the plan. Credit balances are at GET /v1/credits. A 402 answer carries the matching link as `resolveUrl`. # Add competitors Source: https://docs.spreadjam.com/api-reference/brand/add-competitors https://api.spreadjam.com/openapi.json post /v1/brand/competitors Add one or more competitors to the tracked list, keeping the ones already on it, and pin the list. Each is a name or `{ name, domain?, aliases? }`; the domain and other names are what answers are matched to from the next scan on. Names already on the list are not added twice (their domain and aliases are updated when sent). Acts on the active project. Requires a paid plan. # Clear the competitor pin Source: https://docs.spreadjam.com/api-reference/brand/clear-the-competitor-pin https://api.spreadjam.com/openapi.json delete /v1/brand/competitors Clear the competitor pin on the active profile, leaving the list untouched. Requires a paid plan. # Pin the competitor list Source: https://docs.spreadjam.com/api-reference/brand/pin-the-competitor-list https://api.spreadjam.com/openapi.json put /v1/brand/competitors Pin and lock the competitor list on the active profile. Requires a paid plan. # Remove a competitor Source: https://docs.spreadjam.com/api-reference/brand/remove-a-competitor https://api.spreadjam.com/openapi.json delete /v1/brand/competitors/{name} Remove one competitor from the tracked list by name (case-insensitive, URL-encoded) and pin the list. Acts on the active project. Requires a paid plan. # Save brand positioning Source: https://docs.spreadjam.com/api-reference/brand/save-brand-positioning https://api.spreadjam.com/openapi.json patch /v1/brand Author a new positioning version (`positioning`), set the products the brand is not to be confused with (`notConfusedWith`), or both. Send at least one. Setting only `notConfusedWith` updates the active version in place. Requires a paid plan. # Set a competitor's domain or other names Source: https://docs.spreadjam.com/api-reference/brand/set-a-competitors-domain-or-other-names https://api.spreadjam.com/openapi.json patch /v1/brand/competitors/{name} Set the domain and/or the other names (`aliases`) of one competitor on the list or roster, by name (case-insensitive, URL-encoded). Answers are matched to them from the next scan on; stored answers are not rewritten. Acts on the active project. Requires a paid plan. # Start a recalibration Source: https://docs.spreadjam.com/api-reference/brand/start-a-recalibration https://api.spreadjam.com/openapi.json post /v1/brand/recalibrations Rebuild the GEO system layer toward the active authored positioning. # The active brand profile Source: https://docs.spreadjam.com/api-reference/brand/the-active-brand-profile https://api.spreadjam.com/openapi.json get /v1/brand Positioning, audience, product, tone, competitors, excluded topics, and pin state. While a new project is still being set up (its first minute or so), this is a 409 `setup_in_progress` with `Retry-After`. # Discard content Source: https://docs.spreadjam.com/api-reference/content/discard-content https://api.spreadjam.com/openapi.json delete /v1/content/{contentId} Discard a content item. Its opportunity stays used. Repeating it changes nothing. Requires a paid plan. # Get content Source: https://docs.spreadjam.com/api-reference/content/get-content https://api.spreadjam.com/openapi.json get /v1/content/{contentId} One content item with its state and current revision. # List content Source: https://docs.spreadjam.com/api-reference/content/list-content https://api.spreadjam.com/openapi.json get /v1/content The active GEO project's content with states and current revision summaries, newest first. Paged: `limit` (default 100, at most 100) and `cursor`; `pageInfo` says whether more pages follow. # Request an edit Source: https://docs.spreadjam.com/api-reference/content/request-an-edit https://api.spreadjam.com/openapi.json post /v1/content/{contentId}/edit-requests Ask Jam to edit the basis revision following your instruction. Runs in the background; the edited revision becomes the current draft. Requires a paid plan. # Restore discarded content Source: https://docs.spreadjam.com/api-reference/content/restore-discarded-content https://api.spreadjam.com/openapi.json post /v1/content/{contentId}/restorations Undo a discard. Repeating it changes nothing. Requires a paid plan. # Store a draft Source: https://docs.spreadjam.com/api-reference/content/store-a-draft https://api.spreadjam.com/openapi.json post /v1/content Store an article your agent wrote as the content for an opportunity, with its first revision (source `agent`). Releases the agent claim on the opportunity. Requires a paid plan. # Write the content again Source: https://docs.spreadjam.com/api-reference/content/write-the-content-again https://api.spreadjam.com/openapi.json post /v1/content/{contentId}/regenerations Ask Jam to research and write the content again, replacing the basis revision as the current draft. Runs in the background. Requires a paid plan. # The credit balance Source: https://docs.spreadjam.com/api-reference/credits/the-credit-balance https://api.spreadjam.com/openapi.json get /v1/credits The key's workspace credit balance, plan allowance, refill time and recent charges. # Content's deliveries Source: https://docs.spreadjam.com/api-reference/deliveries/contents-deliveries https://api.spreadjam.com/openapi.json get /v1/content/{contentId}/deliveries Every request to send the content to a destination, newest first: when it was due, whether it was cancelled, and how its attempt went. # Add a destination Source: https://docs.spreadjam.com/api-reference/destinations/add-a-destination https://api.spreadjam.com/openapi.json post /v1/destinations Add a destination on a platform to the active GEO project. The project's first destination becomes its default. Requires a paid plan. # Change publishing policy Source: https://docs.spreadjam.com/api-reference/destinations/change-publishing-policy https://api.spreadjam.com/openapi.json patch /v1/destinations/{destinationId} Change a destination's auto-publish, cadence or default flag. Turning auto-publish off cancels its automatically scheduled items; turning it on schedules drafted content in the background. Requires a paid plan. # Connect a GitHub repository Source: https://docs.spreadjam.com/api-reference/destinations/connect-a-github-repository https://api.spreadjam.com/openapi.json put /v1/destinations/{destinationId}/github Connect the destination to a repository: Jam checks the repository, branch and content folder, detects how its articles are written, and stores the configuration. Configuring again replaces it. Requires a paid plan. # List destinations Source: https://docs.spreadjam.com/api-reference/destinations/list-destinations https://api.spreadjam.com/openapi.json get /v1/destinations The active GEO project's destinations with their policy and connection status. # Remove a destination Source: https://docs.spreadjam.com/api-reference/destinations/remove-a-destination https://api.spreadjam.com/openapi.json delete /v1/destinations/{destinationId} Remove a destination and cancel its open schedules. Removing the default makes the oldest remaining destination the default. Repeating it changes nothing. Requires a paid plan. # Errors and limits Source: https://docs.spreadjam.com/api-reference/errors Error codes, rate limits, idempotency and request ids for the Jam API and MCP server. Every error has the same JSON body: ```json theme={} { "error": "Invalid request: limit must be at most 100.", "code": "invalid_request", "requestId": "6f1c2e0a-...", "docs": "https://docs.spreadjam.com/api-reference/errors#invalid_request", "details": [ { "field": "limit", "in": "query", "message": "Too big", "maximum": 100, "received": 500 } ] } ``` * `error` is a sentence that says what to change. * `code` is stable. Branch on it, not on `error`. New codes may be added; none is renamed. * `requestId` matches the `X-Request-Id` response header. Quote it to support. You can send your own `X-Request-Id`. * `details` appears on validation errors, one entry per field, with what is accepted (`allowed`, `minimum`, `maximum`, `expected`). Every `402` (and a `403 plan_required`) also carries `resolveUrl`, the dashboard page where a person fixes it: resume the plan, buy credits or manage billing. `GET /v1/billing` lists all of these links. Over MCP, an error comes back as a tool result with `isError: true` and this body as its text. A tool called without a required path argument (for example `get_action` with no `actionId`) answers `invalid_request` with "actionId is required" before any request is made. ## Codes | Code | Status | What to do | | - | - | - | | `invalid_request` | 400 | Fix the fields named in `details`. Also a malformed `X-Jam-Project` header, a `limit` outside 1 to 100, or a `cursor` the API did not hand out. | | `body_required` | 400 | Send a JSON body with `Content-Type: application/json` (`{}` when every field is optional). | | `malformed_json` | 400 | The body is not valid JSON. | | `unsupported_media_type` | 415 | Send the body as JSON. | | `unauthorized` | 401 | Send `Authorization: Bearer sk_...` with a live key. The message says what was wrong. | | `forbidden` | 403 | The key may not do this. | | `forbidden_for_api_key` | 403 | A person has to do this in the dashboard (for example creating API keys). | | `plan_required` | 402, 403 | The workspace needs a paid plan or a plan feature it lacks. | | `plan_inactive` | 402 | The plan ended. Reads work; writes wait until the plan is resumed in the dashboard. | | `insufficient_credits` | 402 | Not enough credits. Check `GET /v1/credits`; add credits or wait for the reset. | | `payment_required` | 402 | Another payment step is missing. | | `not_found` | 404 | No such resource in this workspace, or no such route. API paths start with `/v1`. Also an `X-Jam-Project` that is not an active project of the workspace: list them with `GET /v1/projects`. | | `method_not_allowed` | 405 | The path exists with other methods, listed in the `Allow` header. | | `conflict` | 409 | The resource's state does not allow this yet (for example a scan is already running). Change the state or retry later. Repeating a change that already happened (pausing a paused prompt, starting a started action, dismissing a dismissed one) is not a conflict: it answers `200`. | | `unprocessable` | 422 | The resource can never accept this request as sent. | | `idempotency_key_reused` | 422 | The `Idempotency-Key` was used for a different request. Use a new key. | | `rate_limited` | 429 | Wait `Retry-After` seconds, then retry. | | `too_many_concurrent` | 429 | Too many slow reads in flight, for this key or across the API. Wait `Retry-After` seconds, then retry. | | `upstream_failed` | 502 | A downstream system did not take the work; nothing was written. Retry later. | | `internal_error` | 500 | Unexpected. Retry once, then email support with the `requestId`. | ## Rate limits Limits are per API key. | Requests | Sustained | Burst | | - | - | - | | Reads (`GET`, `HEAD`) | 10 per second | 30 | | Writes (`POST`, `PUT`, `PATCH`, `DELETE`) | 2 per second | 10 | Every response with a key carries `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset` (seconds until the bucket is full). Over the limit you get `429 rate_limited` with `Retry-After` in seconds. At most 4 of these slow reads run at once per key: `GET /v1/analytics/overview`, `/v1/analytics/prompts`, `/v1/analytics/metrics`, `/v1/keywords` and `/v1/opportunities/{id}/brief`. The fifth gets `429 too_many_concurrent` with `Retry-After: 2`. Across all keys, the API runs at most 2 of these slow reads at once. A slow read over that cap waits up to 5 seconds for a slot, then gets `429 too_many_concurrent` with `Retry-After: 5`. Wait that long and retry; the cap protects every other request from slowing down. Agent connect has no key, so it is limited per IP address: 10 new sessions per 10 minutes, and 120 polls per minute. Its `429` uses the same error body (`rate_limited`) and `Retry-After`. ## Idempotency Send `Idempotency-Key: ` on a write you might retry. It is honoured on `POST /v1/prompts`, `/v1/prompts/bulk`, `/v1/visibility-runs`, `/v1/plan-batches`, `/v1/opportunities/{id}/plan-requests`, `/v1/content`, `/v1/actions/{id}/executions`, `/v1/site-changes/{id}/pull-requests`, `/v1/research-requests`, `/v1/brand/competitors` and `/v1/webhooks`. * The same key with the same request within 24 hours returns the first response again, with `Idempotent-Replayed: true` and the usual `X-Request-Id` and `X-RateLimit-*` headers. * Only successful responses are kept, so a failed attempt can be retried with the same key. * The same key with a different method, path or body answers `422 idempotency_key_reused`. * The same key while the first request is still running answers `409 conflict`. Retry shortly. Treat it as protection against double submits, not a permanent record: a replay is not guaranteed across a deploy. ## Support Email [jia@spreadjam.com](mailto:jia@spreadjam.com) or [mal@spreadjam.com](mailto:mal@spreadjam.com) with the `requestId`. # Keyword and topic visibility Source: https://docs.spreadjam.com/api-reference/keywords/keyword-and-topic-visibility https://api.spreadjam.com/openapi.json get /v1/keywords Per-topic visibility rankings (the `topics` analytics metric under its own name). # MCP server Source: https://docs.spreadjam.com/api-reference/mcp The Jam MCP server at https://api.spreadjam.com/mcp: one tool per API route, OAuth or key auth, tool annotations and project selection. ```text theme={} https://api.spreadjam.com/mcp ``` A remote MCP server over Streamable HTTP. It is stateless: each request stands alone, and `GET` and `DELETE` on the endpoint answer `405`. ## Tools There is one tool per REST route, named by its operation id: `get_me`, `get_analytics_overview`, `list_prompts`, `list_actions`, `get_action`, `create_research_request`, `publish_content` and so on. A tool's input is the route's path and query parameters and JSON body, merged. Each tool call runs the REST route with your credentials, so validation, plan checks, rate limits and error bodies are exactly the REST ones. The full descriptions are in the [endpoint reference](/api-reference/overview) and the [OpenAPI spec](https://api.spreadjam.com/openapi.json). A few routes are not tools, because a connected agent can never use them: `create_api_key`, the key-less `start_agent_connect` and `get_agent_connect`, and `complete_action_with_token`. The server also sends instructions your client shows its model: a good order of work, starting with `get_me`. See [What your agent can do](/onboard-with-your-agent/what-your-agent-can-do). ## Auth Send either: * an API key: `Authorization: Bearer sk_...`, or * an OAuth access token, which clients that sign in get for you. See [Other MCP clients](/onboard-with-your-agent/other-clients#clients-that-sign-in-oauth) for the endpoints. A request without a usable token answers `401` with `WWW-Authenticate: Bearer resource_metadata="https://api.spreadjam.com/.well-known/oauth-protected-resource"`. ## Annotations | Hint | Set on | | - | - | | `readOnlyHint: true` | Every read (`GET`). | | `destructiveHint: true` | Tools that spend credits, publish, or delete. A tool that spends credits starts its description with the cost, for example "Costs 500 credits (the first research run is free)." | | `idempotentHint: true` | Reads, `PUT` and `PATCH`, and a few safe `POST`s (`add_prompt`, `pause_prompt`, `start_action`, `dismiss_action`, `dismiss_opportunity`). | `openWorldHint` is `false` on every tool. ## Projects Tools under a project route take an optional `projectId` (an id from `list_projects`), sent for that one call. To pin a whole connection to one project, send `X-Jam-Project: ` with it. The argument wins. Without either, tools act on the newest project. ## Errors A failed call comes back as a tool result with `isError: true` and the REST error body as its text. A tool called without a required path argument (for example `get_action` with no `actionId`) answers `invalid_request` before any request is made. See [Errors and limits](/api-reference/errors). ## Searching these docs This docs site has its own MCP server for searching the documentation, separate from the Jam server above. Use the **Copy page** menu at the top of any page to connect it. # The authenticated key's workspace Source: https://docs.spreadjam.com/api-reference/meta/the-authenticated-keys-workspace https://api.spreadjam.com/openapi.json get /v1/me Where the key stands in one call: the key owner, the workspace, its plan (status, trial end, prompt capacity, platforms, scan cadence) and the active project id and domain. # Change a notification rule Source: https://docs.spreadjam.com/api-reference/notifications/change-a-notification-rule https://api.spreadjam.com/openapi.json patch /v1/notification-rules/{category} Turn a category on or off, or set its channels. To receive GEO events at a webhook, add custom_webhook to the categories you want (for example action_required and completion) and add the webhook with POST /v1/webhooks. # Notification rules Source: https://docs.spreadjam.com/api-reference/notifications/notification-rules https://api.spreadjam.com/openapi.json get /v1/notification-rules The key creator's notification routing in this workspace: one rule per event category, with its channels and whether it is on. Rules are per member, as in Settings > Notifications; the defaults are created on first read. # Claim an opportunity for an agent Source: https://docs.spreadjam.com/api-reference/opportunities/claim-an-opportunity-for-an-agent https://api.spreadjam.com/openapi.json post /v1/opportunities/{opportunityId}/claims Hold the opportunity while your agent writes it: its state becomes `claimed`, Jam does not write it, and no other agent can claim it. Released by `POST /v1/content`, `DELETE .../claims/current`, `POST .../agent-failures`, or after 24 hours. 409 when it is already held, planned or dismissed. Requires a paid plan. # Create content from an opportunity Source: https://docs.spreadjam.com/api-reference/opportunities/create-content-from-an-opportunity https://api.spreadjam.com/openapi.json post /v1/opportunities/{opportunityId}/plan-requests Ask Jam to research, write and review content for the opportunity (Plan, or Retry after a failure). Runs in the background; the content appears under /v1/content. Requires a paid plan. # Dismiss an opportunity Source: https://docs.spreadjam.com/api-reference/opportunities/dismiss-an-opportunity https://api.spreadjam.com/openapi.json post /v1/opportunities/{opportunityId}/dismissal Dismiss an opportunity that has no content. Repeating it changes nothing. Requires a paid plan. # Get an opportunity Source: https://docs.spreadjam.com/api-reference/opportunities/get-an-opportunity https://api.spreadjam.com/openapi.json get /v1/opportunities/{opportunityId} One opportunity with its state and the research it came from. # List opportunities Source: https://docs.spreadjam.com/api-reference/opportunities/list-opportunities https://api.spreadjam.com/openapi.json get /v1/opportunities The active GEO project's article opportunities with their states, highest score first. Opportunities are the article pipeline behind the Plan's `new_page` actions (`GET /v1/actions`), not a second plan: an action that Jam drafts gets an opportunity, and the action carries its `opportunityId`. Work from actions; read an opportunity to write its article yourself from the brief. Paged: `limit` (default 100, at most 100) and `cursor`; `pageInfo` says whether more pages follow. # Release an agent claim Source: https://docs.spreadjam.com/api-reference/opportunities/release-an-agent-claim https://api.spreadjam.com/openapi.json delete /v1/opportunities/{opportunityId}/claims/current Give the opportunity back without a result; it is open again. 404 when no agent claim is open. Requires a paid plan. # Report that the agent could not write it Source: https://docs.spreadjam.com/api-reference/opportunities/report-that-the-agent-could-not-write-it https://api.spreadjam.com/openapi.json post /v1/opportunities/{opportunityId}/agent-failures Release the agent claim and record `reason` as the failure users see on the opportunity (`creationFailure.code` is `agent_failed`). 409 when the opportunity already has content. Requires a paid plan. # Restore a dismissed opportunity Source: https://docs.spreadjam.com/api-reference/opportunities/restore-a-dismissed-opportunity https://api.spreadjam.com/openapi.json delete /v1/opportunities/{opportunityId}/dismissal Undo a dismissal on an opportunity that has no content. Repeating it changes nothing. Requires a paid plan. # The brief to write an article from Source: https://docs.spreadjam.com/api-reference/opportunities/the-brief-to-write-an-article-from https://api.spreadjam.com/openapi.json get /v1/opportunities/{opportunityId}/brief Everything an agent needs to write the article: the opportunity, the prompts it answers, the brand voice, the research sources, the article plan, the frontmatter the GitHub destination requires, and the exact `POST /v1/content` body to store the result. The first read researches and plans the article, which is included in the plan at no credit cost (`creditsCharged` is 0), and takes 30 to 60 seconds, so use a client timeout of at least 90 s. Every later read returns the stored plan in under a second. While one read writes the plan, concurrent first reads answer 409; read again shortly. Requires a paid plan. To act on the Plan, start from `GET /v1/actions`: an opportunity is the article behind a `new_page` action. # API overview Source: https://docs.spreadjam.com/api-reference/overview Authenticate with a workspace API key and call the Jam REST API over HTTPS. Every endpoint is also an MCP tool. The Jam REST API exposes everything the dashboard does: visibility, answers, prompts, brand, research, the Plan, content, delivery, credits, billing and webhooks. Every endpoint is listed under **Endpoints** in this section, built from the live [OpenAPI spec](https://api.spreadjam.com/openapi.json), so it matches what the API serves. Try requests in the browser in the [API playground](https://www.spreadjam.com/api-playground). ## Base URL and auth ```http theme={} https://api.spreadjam.com/v1 ``` Send your key as a bearer token on every request: ```http theme={} Authorization: Bearer sk_... ``` Create a key in **Settings**, **Developer**, **Create API key**. It is shown once. Keys look like `sk_` followed by 64 hex characters and reach the workspace's real data; there are no test keys. A key acts with its creator's role, and revoking it takes effect immediately. An agent can also get a key for its human with [agent connect](/onboard-with-your-agent/agent-connect). A missing or invalid key returns `401`. Every error uses one body with a stable `code` and a `requestId`: see [Errors and limits](/api-reference/errors). ## Try it ```bash theme={} export JAM=https://api.spreadjam.com/v1 auth=(-H "Authorization: Bearer $JAM_API_KEY") curl -sS "${auth[@]}" $JAM/me # which workspace this key is for curl -sS "${auth[@]}" $JAM/analytics/overview # visibility, mentions, citations curl -sS "${auth[@]}" "$JAM/prompts?limit=20" # what is tracked, one page curl -sS "${auth[@]}" $JAM/actions # the Plan: what to do next curl -sS "${auth[@]}" $JAM/credits # credits left and when they reset ``` Always send `limit` to `/v1/prompts`: without it the response also carries the older `tracked` and `archived` lists next to the first page, which is a few hundred KB on a large project. ## Projects A project is one website Jam tracks. Project routes act on the newest active project unless you send `X-Jam-Project: ` (ids from `GET /v1/projects`). Routes for one item by id (`/v1/actions/{actionId}`, `/v1/content/{contentId}`, ...) act on that item wherever it lives in the workspace. ## Lists and pages Lists that can grow are paged the same way: `limit` (1 to 100) and `cursor` in, `pageInfo` out. ```json theme={} "pageInfo": { "limit": 100, "hasNextPage": true, "nextCursor": "eyJhIjo...", "totalCount": 326 } ``` When `hasNextPage` is true, send `nextCursor` back as `cursor` with the same filters. `totalCount` counts every match across all pages. ## Writes * Send `Idempotency-Key` on writes you might retry. * Work that hands off to Jam answers `202`; read the result back from the resource it names. * Writes need an active plan. When a plan ends, writes answer `402 plan_inactive`; see [Plans and credits](/billing/plans-and-credits). ## Use it from an agent The [MCP server](/api-reference/mcp) at `https://api.spreadjam.com/mcp` turns every endpoint into a tool, with the same auth, limits and errors. See [Onboard with your agent](/onboard-with-your-agent). > [!TIP] > > **Python: set a `User-Agent` header.** The API sits behind Cloudflare, which blocks the default `Python-urllib/3.x` user agent with `403` ("error code: 1010"). Send your own, for example `{"User-Agent": "my-agent/1.0"}`. # Plan now Source: https://docs.spreadjam.com/api-reference/planning/plan-now https://api.spreadjam.com/openapi.json post /v1/plan-batches Draft the active GEO project's top open Plan articles now: Jam picks the `count` best open article rows (default 3) when the batch runs and writes them in the background. Credits are the only limit. Requires a paid plan. # Plans and prices Source: https://docs.spreadjam.com/api-reference/pricing/plans-and-prices https://api.spreadjam.com/openapi.json get /v1/pricing No API key needed. Without parameters: the plan options an agent can choose for a human (prompt capacity, scan cadence, platforms, work credits), the monthly price of each capacity and cadence exactly as the plan page computes it, what work credits buy per action (`creditCosts`), and the trial terms. Send `promptCapacity`, `cadence`, `platforms` or `workCredits` and the answer is just that quote (`quote`, `creditCosts`, `trial`, and `fullPricing`, the link back to the whole table); a combination that is not sold is a 400 naming why. Put the chosen plan in `onboarding.plan` on POST /v1/agent-connect. Rate limited per IP. # Get a project Source: https://docs.spreadjam.com/api-reference/projects/get-a-project https://api.spreadjam.com/openapi.json get /v1/projects/{projectId} One project's status: setup state (and why it is stuck), whether the first scan is done, the last and next scan, platforms, cadence, locale, and prompt capacity. # List projects Source: https://docs.spreadjam.com/api-reference/projects/list-projects https://api.spreadjam.com/openapi.json get /v1/projects The workspace's projects that are not archived, newest first. # Live prompts by topic Source: https://docs.spreadjam.com/api-reference/prompts/live-prompts-by-topic https://api.spreadjam.com/openapi.json get /v1/prompts/topics The topics of the workspace's active GEO project's tracked prompts, with counts. # Pause or resume a prompt Source: https://docs.spreadjam.com/api-reference/prompts/pause-or-resume-a-prompt https://api.spreadjam.com/openapi.json post /v1/prompts/{promptId}/pause Toggle whether a tracked prompt is measured. Idempotent: pausing a paused prompt (or resuming an active one) answers 200 with its current status. Requires a paid plan. # Progress of the latest suggestion fill Source: https://docs.spreadjam.com/api-reference/prompts/progress-of-the-latest-suggestion-fill https://api.spreadjam.com/openapi.json get /v1/prompts/suggestions The status of the latest Suggest more fill for the active GEO project, or null when none was requested. # Prompt cap state Source: https://docs.spreadjam.com/api-reference/prompts/prompt-cap-state https://api.spreadjam.com/openapi.json get /v1/prompts/cap How many prompt slots are occupied and the effective cap. # Replace a prompt, resetting history Source: https://docs.spreadjam.com/api-reference/prompts/replace-a-prompt-resetting-history https://api.spreadjam.com/openapi.json post /v1/prompts/{promptId}/replacements Reword a tracked prompt and reset its measurement history (archives the old prompt, tracks a new one in its place). Requires a paid plan. # Reword a prompt in place Source: https://docs.spreadjam.com/api-reference/prompts/reword-a-prompt-in-place https://api.spreadjam.com/openapi.json patch /v1/prompts/{promptId} Reword a tracked prompt, keeping its measurement history. Only the wording changes: topic, persona and intent are set when the prompt is added and cannot be edited (the dashboard cannot edit them either); to change them, remove the prompt and add it again. Requires a paid plan. # Reword many prompts at once Source: https://docs.spreadjam.com/api-reference/prompts/reword-many-prompts-at-once https://api.spreadjam.com/openapi.json put /v1/prompts Reword up to 100 tracked prompts by id in one atomic operation, keeping each prompt's measurement history. Any item that is missing, not editable, or has invalid text fails the whole batch. Requires a paid plan. # Stop tracking a prompt Source: https://docs.spreadjam.com/api-reference/prompts/stop-tracking-a-prompt https://api.spreadjam.com/openapi.json delete /v1/prompts/{promptId} Soft-archive a tracked prompt (measurement history is retained). Idempotent: removing an already removed prompt answers 200. To track it again, POST /v1/prompts with its text. Requires a paid plan. # Stop tracking a whole topic Source: https://docs.spreadjam.com/api-reference/prompts/stop-tracking-a-whole-topic https://api.spreadjam.com/openapi.json delete /v1/prompts/topics/{topic} Soft-archive every tracked prompt of one topic, freeing their slots (history is retained). Requires a paid plan. # Suggest more prompts Source: https://docs.spreadjam.com/api-reference/prompts/suggest-more-prompts https://api.spreadjam.com/openapi.json post /v1/prompts/suggestions Ask Jam to write relevant prompts for the active GEO project up to the plan capacity (or a lower target). Runs in the background; poll GET /prompts/suggestions for progress. Requires a paid plan. # Track a new prompt Source: https://docs.spreadjam.com/api-reference/prompts/track-a-new-prompt https://api.spreadjam.com/openapi.json post /v1/prompts Add a tracked prompt to the workspace's active GEO project. Safe to retry: a text the project already tracks answers 200 with `existing: true` and leaves that prompt untouched. Requires a paid plan. # Track many prompts at once Source: https://docs.spreadjam.com/api-reference/prompts/track-many-prompts-at-once https://api.spreadjam.com/openapi.json post /v1/prompts/bulk Track up to 100 prompts in one atomic operation. An incoming text matching an existing tracked prompt reuses that prompt rather than duplicating it. The prompt cap is checked once over the whole batch; a batch that would exceed it is rejected and nothing is tracked. Requires a paid plan. # Tracked and archived prompts Source: https://docs.spreadjam.com/api-reference/prompts/tracked-and-archived-prompts https://api.spreadjam.com/openapi.json get /v1/prompts The editable prompts for the workspace's active GEO project, each with its topic, persona and intent: tracked prompts first, then archived ones (`list` narrows to one). Paged: `limit` (default 100, at most 100) and `cursor`; `pageInfo` says whether more pages follow and `counts` covers every page. # Content's publications Source: https://docs.spreadjam.com/api-reference/publications/contents-publications https://api.spreadjam.com/openapi.json get /v1/content/{contentId}/publications Every page the content is live at, newest first. # Mark as published Source: https://docs.spreadjam.com/api-reference/publications/mark-as-published https://api.spreadjam.com/openapi.json post /v1/content/{contentId}/publications Record that you published the content yourself at `url`. Recording the same URL again returns the existing publication. Refused for discarded content. Requires a paid plan. # Cancel publishing to a destination Source: https://docs.spreadjam.com/api-reference/publishing/cancel-publishing-to-a-destination https://api.spreadjam.com/openapi.json delete /v1/content/{contentId}/destinations/{destinationId} Cancel the latest schedule. An item in review on the provider (an open GitHub PR) is cancelled only with `withdraw=true`, which also withdraws it from the provider in the background; without it the response is 409 and nothing changes. Requires a paid plan. # Content's destinations Source: https://docs.spreadjam.com/api-reference/publishing/contents-destinations https://api.spreadjam.com/openapi.json get /v1/content/{contentId}/destinations Each destination the content has been scheduled for, with its publishing state and its latest delivery attempt. # Publish content to a destination Source: https://docs.spreadjam.com/api-reference/publishing/publish-content-to-a-destination https://api.spreadjam.com/openapi.json put /v1/content/{contentId}/destinations/{destinationId} Publish the current revision to the destination now (`{"when":"now"}`), or at publishAt (`{"publishAt":"2026-12-01T09:00:00Z"}`). The body is required, so publishing is always explicit. When it is already scheduled there, the schedule moves to the new time. Also retries a failed attempt and publishes again after a cancel or withdrawal. Runs in the background. Requires a paid plan. # Read the latest research report Source: https://docs.spreadjam.com/api-reference/research/read-the-latest-research-report https://api.spreadjam.com/openapi.json get /v1/research/report What the latest successful research run found: how many AI answers it read and every action it proposed, best first, with its why, evidence (`details`, `sources`) and the prompts it targets. `report` is null before any run succeeded. Each action is also at `GET /v1/actions/{id}` with its `agentPrompt`. # Read the research state Source: https://docs.spreadjam.com/api-reference/research/read-the-research-state https://api.spreadjam.com/openapi.json get /v1/research The active project's research: whether it is running, when the latest run started and finished and how it ended, the request in flight, whether Research again would be accepted and what it holds (500 credits once the project has a successful run; the first run is free), and whether Jam's free automatic top-up could run. # Research again Source: https://docs.spreadjam.com/api-reference/research/research-again https://api.spreadjam.com/openapi.json post /v1/research-requests Ask Jam to research the active project again and rewrite the Plan. The first run is free; after a successful run each request holds 500 credits, kept only if the run succeeds. Takes about ten minutes; poll `GET /v1/research`. 409 while a run is in flight or the first scan has not finished; 402 when credits cannot cover it; 403 when the plan does not include research. # Get a revision Source: https://docs.spreadjam.com/api-reference/revisions/get-a-revision https://api.spreadjam.com/openapi.json get /v1/content/{contentId}/revisions/{revisionId} One revision with its article. # List revisions Source: https://docs.spreadjam.com/api-reference/revisions/list-revisions https://api.spreadjam.com/openapi.json get /v1/content/{contentId}/revisions The content item's revisions without their articles, newest first. # Store a revision Source: https://docs.spreadjam.com/api-reference/revisions/store-a-revision https://api.spreadjam.com/openapi.json post /v1/content/{contentId}/revisions Store an article you wrote as a new revision; it becomes the current draft. Requires a paid plan. # Discard a site change Source: https://docs.spreadjam.com/api-reference/site-changes/discard-a-site-change https://api.spreadjam.com/openapi.json delete /v1/site-changes/{changeId} Drop a change before its pull request is requested (`preparing` or `proposed`). The action stays on the Plan. 409 once a pull request was requested. # Open the pull request for a site change Source: https://docs.spreadjam.com/api-reference/site-changes/open-the-pull-request-for-a-site-change https://api.spreadjam.com/openapi.json post /v1/site-changes/{changeId}/pull-requests Ship a `proposed` change: Jam opens its pull request on your connected repository. Holds 20 credits (the Make PR price), kept only if the pull request opens. The change moves to `opening`, then `in_review` with `prUrl`; read it back with `GET /v1/site-changes/{changeId}`. 409 while it is still preparing or once it has moved on; 402 when credits cannot cover it. Requires a paid plan. # Read a site change Source: https://docs.spreadjam.com/api-reference/site-changes/read-a-site-change https://api.spreadjam.com/openapi.json get /v1/site-changes/{changeId} One code change Jam prepared, with its before/after preview (`hunks`). Poll it after `POST /v1/actions/{actionId}/executions` until it leaves `preparing` (usually a minute or two). # Get a visibility run Source: https://docs.spreadjam.com/api-reference/visibility-runs/get-a-visibility-run https://api.spreadjam.com/openapi.json get /v1/visibility-runs/{runId} One scan's progress: answers collected, failed and still pending per platform, and the collector's task counts. Poll it after `POST /v1/visibility-runs` until `status` is final and `answers.pending` is 0. # List visibility runs Source: https://docs.spreadjam.com/api-reference/visibility-runs/list-visibility-runs https://api.spreadjam.com/openapi.json get /v1/visibility-runs The project's recent visibility scans, newest first, each with its trigger, status, timing and answers collected per platform. Send `X-Jam-Project` to pick a project. # Run the visibility scan now Source: https://docs.spreadjam.com/api-reference/visibility-runs/run-the-visibility-scan-now https://api.spreadjam.com/openapi.json post /v1/visibility-runs Queues one AI-visibility scan for the key's workspace project. One scan runs at a time per project; the tracking subscription covers it (no credits are charged). Answers are recorded once per prompt and platform per UTC day, so once today's scan has answered every prompt a new scan returns 409 until the next UTC day. # Webhooks Source: https://docs.spreadjam.com/api-reference/webhooks Receive Jam's notifications at your own URL, choose which ones are sent, and verify each delivery's signature. Jam can POST its notifications to a URL you run: a plan is ready, a pull request opened, a scan failed. Any member of the workspace can manage webhooks, from **Settings**, **Notifications** or from the API. ## Add a webhook ```bash theme={} curl -sS -X POST https://api.spreadjam.com/v1/webhooks \ -H "Authorization: Bearer $JAM_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: add-ops-hook" \ -d '{"name": "Ops alerts", "url": "https://hooks.example.com/jam"}' ``` The URL must be a public `https` address; private, loopback and cloud metadata addresses are refused. The answer includes the webhook's `signingSecret`. `GET /v1/webhooks` lists every webhook with its secret, `PATCH /v1/webhooks/{webhookId}` renames, enables or disables one, and `DELETE` removes it. Over MCP these are `list_webhooks`, `create_webhook`, `update_webhook` and `delete_webhook`. ## Choose what is sent Each person in the workspace has a rule per notification category: `action_required`, `error`, `status_update`, `insight` and `completion`. A category reaches your webhooks when its rule lists the `custom_webhook` channel. ```bash theme={} curl -sS -X PATCH https://api.spreadjam.com/v1/notification-rules/completion \ -H "Authorization: Bearer $JAM_API_KEY" \ -H "Content-Type: application/json" \ -d '{"channels": ["chat", "custom_webhook"]}' ``` `GET /v1/notification-rules` lists the rules. They belong to the person who created the key, as each member sets their own in the dashboard. ## What a delivery looks like ```json theme={} { "event": "notification", "notification": { "title": "Your plan is ready", "message": "...", "priority": "medium", "timestamp": "2026-11-04T10:00:00.000Z", "data": { "type": "geo_completion", "geoEventType": "geo.plan.ready", "projectId": "...", "dashboardHref": "..." } } } ``` `notification.data.type` names the notification. GEO notifications are `geo_action_required`, `geo_error`, `geo_completion`, `geo_insight` and `geo_status_update`, and their `data` carries ids and a dashboard link, never drafts, diffs or pull request contents. ## Verify the signature Every delivery carries three headers: | Header | Value | | - | - | | `X-Jam-Webhook-Id` | The webhook's id. | | `X-Jam-Timestamp` | When it was sent, in unix seconds. | | `X-Jam-Signature` | `v1=` followed by the hex HMAC-SHA256 of `.`, keyed by the webhook's `signingSecret`. | Read the raw body before parsing it, recompute the signature, compare in constant time, and reject a timestamp more than five minutes old. ```js theme={} import { createHmac, timingSafeEqual } from 'node:crypto' export function verifyJamWebhook(secret, rawBody, headers) { const ts = headers['x-jam-timestamp'] if (!ts || Math.abs(Date.now() / 1000 - Number(ts)) > 300) return false const expected = 'v1=' + createHmac('sha256', secret).update(`${ts}.${rawBody}`).digest('hex') const got = headers['x-jam-signature'] ?? '' return got.length === expected.length && timingSafeEqual(Buffer.from(got), Buffer.from(expected)) } ``` The settings page has a **Test** button that sends a test notification with empty `data`. # Add a webhook Source: https://docs.spreadjam.com/api-reference/webhooks/add-a-webhook https://api.spreadjam.com/openapi.json post /v1/webhooks Add a destination that receives the workspace notifications routed to custom webhooks. Returns the webhook with its signing secret. Accepts `Idempotency-Key`. # List webhooks Source: https://docs.spreadjam.com/api-reference/webhooks/list-webhooks https://api.spreadjam.com/openapi.json get /v1/webhooks The workspace's webhook destinations, oldest first, each with its signing secret. Notifications routed to custom webhooks are POSTed to every enabled one. # Remove a webhook Source: https://docs.spreadjam.com/api-reference/webhooks/remove-a-webhook https://api.spreadjam.com/openapi.json delete /v1/webhooks/{webhookId} # Rename, enable or disable a webhook Source: https://docs.spreadjam.com/api-reference/webhooks/rename-enable-or-disable-a-webhook https://api.spreadjam.com/openapi.json patch /v1/webhooks/{webhookId} A disabled webhook keeps its URL and secret but receives nothing. # Plans and credits Source: https://docs.spreadjam.com/billing/plans-and-credits How Jam's plan is priced, what work credits buy, the free trial, and what happens when a plan ends. ## The plan You build one plan from four choices. The price page and `get_pricing` (`GET /v1/pricing`, no key needed) show the monthly price of every combination. | Choice | Options | | - | - | | Prompt capacity | 50 to 1,000 prompts, in steps of 50. | | Scan cadence | Weekly, every other day, or daily. | | Platforms | ChatGPT, Gemini, Perplexity, Google AI Mode, Google AI Overviews and Microsoft Copilot are included. Claude is an add-on. | | Work credits | 1,000, 2,000, 5,000 or 10,000 a month. | Send `promptCapacity`, `cadence`, `platforms` or `workCredits` to `get_pricing` for a quote on one combination. ## Free trial An account that has never had a Jam subscription gets a 14-day free trial. Checkout asks for a card, and the first charge is at the end of the trial. An account that had a subscription before is charged at checkout. ## What credits buy Scans are covered by the plan and use no credits. Work Jam does for you spends credits from the monthly allowance: | Work | Credits | | - | - | | Draft a new page | Metered: what its writing actually cost. About 45 for a one-shot draft, about 65 when Jam researches and writes it as an agent. Nothing is charged when no page is saved. | | Open a pull request | 20, kept only if the pull request opens. | | Research again | 500, kept only if the run succeeds. The first run is free. | | Read an article brief | Included. | | Visibility scans | Included. | These are the figures `get_pricing` returns in `creditCosts`; read it for the current numbers. A tool that spends credits says what it costs at the start of its description. When the first research run finishes, Jam drafts up to three of the top new pages by itself, once per project, from the plan's credits. ## Your balance `get_credits` (`GET /v1/credits`) shows the balance, the allowance, when it resets, and recent charges. Each charge has a plain `description`, and `spend: false` when it is bookkeeping rather than work. A request that needs more credits than you have answers `402 insufficient_credits`. Buy more credits, or turn on top-up, in **Settings**, **Billing**. ## When a plan ends The workspace becomes read only: reads keep working, and writes answer `402 plan_inactive` until the plan is resumed. Every `402` carries `resolveUrl`, the dashboard page where a person fixes it. `get_billing` returns the plan state, whether the key's owner can manage billing (`canManage`, workspace owners only), and links to manage billing, resume the plan, buy credits and change the plan. The API never charges a card or opens a checkout itself: a person does that on those pages. # GitHub Source: https://docs.spreadjam.com/delivery/github Connect your site's repository so Jam opens a pull request for each page and change. You review and merge. ## Connect a repository **1. Connect GitHub** On the Plan, choose **Connect GitHub**, or open **Settings** and the delivery methods. Jam asks you to install its GitHub App on the account or organisation that owns your site's repository. **2. Choose where articles go** | Field | What it is | Example | | - | - | - | | Repository | Your site's repository. | `acme/website` | | Base branch | The branch pull requests target. | `main` | | Content folder | The folder your articles live in. | `content/blog` | | Public route | The address an article is published at, with `{slug}` where its slug goes. | `https://acme.com/blog/{slug}` | Jam checks the repository, branch and folder, and detects how your existing articles are written, so new ones match. **3. Check the connection** The delivery method shows **Connected** when the last check was fine. Use **Check connection** after changing access on GitHub. ## Ship a page When a draft is ready, **Make PR** opens a pull request with the page on your base branch. Over the API, `publish_content` publishes the current revision to the destination now (`{"when": "now"}`) or at a time (`{"publishAt": "2026-12-01T09:00:00Z"}`). It also retries a failed attempt. `list_content_deliveries` lists each attempt with its `state` and `prUrl`. Merging the pull request is up to you; the page goes live when your site deploys. ## Ship a change A `page_edit` or `technical` action gets a prepared code change. Preview it on the action's page, then **Make PR**, or `create_site_change_pull_request` over the API. It holds 20 credits, kept only if the pull request opens, and the change moves to `in_review` with its `prUrl`. ## Publish on a schedule A destination can publish drafted content by itself: `update_destination` with `autoPublish: true` and a `cadence` of `daily` or `weekly`. Turning it on for one destination turns it off for the project's others. ## Withdraw Cancelling publishing on an item that has an open pull request also withdraws it there. Over the API that is `cancel_content_publishing` with `withdraw=true`; without it, the call answers `409` so nothing is withdrawn by accident. ## Set it up from the API | Step | Tool | | - | - | | Add a GitHub destination | `create_destination` with `{"platform": "github"}` | | Point it at a repository | `configure_destination_github` with `owner`, `name`, `baseBranch`, `contentRoot`, `publicRoutePattern` | | List destinations | `list_destinations` | The GitHub App itself is installed from the dashboard. # Markdown Source: https://docs.spreadjam.com/delivery/markdown Get each article as Markdown to publish yourself, or hand it to your coding agent to add to your site. With Markdown delivery, Jam writes and stores the article and you publish it. Choose **Use Markdown** on the Plan, or switch in **Settings**. ## Get the article Open a drafted article and use: * **Download Markdown**: a `.md` file of the current revision. * **Copy Markdown**: the same text on your clipboard. * **Copy prompt**: instructions for your coding agent to add the page to your site. Over the API, the text is at `currentRevision.article.bodyMarkdown` on `get_content` (`GET /v1/content/{contentId}`). The list view (`list_content`) carries the title and state, not the body. ## Tell Jam where it is live After you publish, record the URL with **Mark published**, or `mark_content_published` with `{"url": "https://acme.com/blog/..."}`. The page then shows as live. ## Write it with your own agent Your agent can write the article instead of Jam: **1. Read the brief** `get_opportunity_brief`. The first read plans the article and can take 30 to 60 seconds; it is included in the plan. **2. Claim it** `claim_opportunity`, so Jam and other agents do not write it at the same time. It answers `409` when someone else holds it. **3. Store the draft** `create_content` with the article: `title`, `metaDescription`, `slug`, `keywords` and `bodyMarkdown`. This releases the claim. If the agent cannot finish, `report_opportunity_agent_failure` with a reason, or `release_opportunity_claim`. The draft then follows the same delivery as one Jam wrote. # Delivery Source: https://docs.spreadjam.com/delivery/overview How finished pages leave Jam and reach your site: a pull request on GitHub, or Markdown you publish yourself. A drafted page stays in Jam until it is delivered. Choose one delivery method per project: > [card] [GitHub](/delivery/github) > > Jam opens a pull request on your site's repository. You review and merge. > [card] [Markdown](/delivery/markdown) > > Get each article as a Markdown file to publish yourself, or hand it to your > agent. Until you choose, the Plan shows both options once: **Use Markdown** or **Connect GitHub**. You can change it later in **Settings**. ## What is delivered * **New pages** (`new_page` actions): the article, as a draft you can read, edit and request changes to first. * **Page edits and technical fixes**: a prepared code change. These need GitHub; with Markdown delivery, copy the action's prompt to your coding agent instead. Nothing is sent to your site without a request: the drafts Jam writes after the first research run stay in Jam until someone publishes them. ## Where a page is live Once a page is published, `list_content_publications` shows where it is live. If you published it yourself, record the URL with `mark_content_published` (**Mark published**). To have Jam check the page for the action, report the action done with the URL (see [Doing the work](/actions/doing-the-work)). # Concepts Source: https://docs.spreadjam.com/get-started/concepts The nouns of Jam: workspaces, projects, prompts, scans, answers, the Plan, research and credits, in the dashboard and the API. ## Workspace and key An API key belongs to one workspace. Possession of the key is access to that workspace: everything the key reads or changes is scoped to it. `GET /v1/me` names the workspace and the person who created the key. A key acts with its creator's current role in the workspace. A member's key can do what a member can do in the dashboard; owner-only actions (managing billing) need the owner. If the creator leaves the workspace, their keys stop working. A key cannot create other keys, and can revoke only itself. ## Connecting a founder (agent connect) An agent with no key starts a session with `POST /v1/agent-connect` and gives the human the link. The human signs in, and the agent polls until it receives a key for the workspace they approved. The agent can also do the whole setup: the site, the brand description, audiences, competitors, prompts and the plan (`onboarding`, with prices from `GET /v1/pricing`). The human then sees one review page, approves and starts the trial with one button, and the agent receives its key once the trial has started and the project exists. While it waits, the poll's `stage` says what is left: `awaiting_signin`, `awaiting_review`, `awaiting_payment` or `setting_up`. A founder whose workspace already has an active plan or a finished project approves for that workspace instead, and the agent's setup is not applied. While approval waits on payment, the poll returns a `resumeUrl` and a `humanMessage` to pass on. See [Agent connect](/onboard-with-your-agent/agent-connect). ## Project A project is one website Jam tracks, with its brand, competitors and prompts. A workspace usually has one. `GET /v1/projects` lists them. Every project-scoped route (analytics, answers, prompts, brand, the Plan, research, opportunities, content, destinations, scans and `/v1/me`) acts on the newest active project unless you send `X-Jam-Project: `. Routes for one item by id (`/v1/actions/{actionId}`, `/v1/content/{contentId}`, ...) act on that item wherever it lives in the workspace. A header that is not a project id answers `400 invalid_request`; a project outside the workspace answers `404 not_found`. Over MCP, pass `projectId` to the tool instead. ## Prompts A prompt is a question a buyer asks an AI assistant, like "best invoicing tool for freelancers". Jam asks each tracked prompt on every platform on every scan. Each prompt has a `topic`, an `intent` and a `persona` (`discoverer`, `buyer`, `evaluator`, `competitor`, `branded` or `control`, the same values `POST /v1/prompts` takes). They are set when the prompt is added; `PATCH /v1/prompts/{promptId}` changes only the wording, so to change a topic or persona, remove the prompt and add it again. Your plan sets how many prompts you can track; `GET /v1/prompts/cap` shows the cap and how much room is left. Add, edit, pause, replace and remove prompts under `/v1/prompts`, or ask Jam to suggest more with `POST /v1/prompts/suggestions`. ## Scans (visibility runs) A scan asks every tracked prompt on every platform the plan covers: ChatGPT, Gemini, Perplexity, Google AI Mode, Google AI Overviews and Microsoft Copilot, plus Claude when the plan adds it. Scans run on the plan's cadence (daily, every other day or weekly). `POST /v1/visibility-runs` starts one now; it answers `202` with a `runId` and the expected minutes, or `409` while a scan is already running. A run fills in as Jam queues its questions, so `answers.total` grows during the first minutes. Read progress against `expectedTotal`, the prompt and platform pairs the run will ask, which is known up front; `queuing` is `true` until every question is queued. A platform that could not be reached shows its failed answers with a plain cause in `platforms[].errors`, and the project's `healthReasons` names a platform that failed most of the latest scan. ## Answers Each scan stores the AI answer for every prompt and platform: whether your brand was mentioned or recommended, its position, the brands mentioned in order, and the URLs cited. `GET /v1/answers` lists them newest first; `GET /v1/prompts/{promptId}/answers` is one prompt's history. ## Analytics The numbers on the dashboard: visibility score, mentions, citation share (a 0 to 100 percentage) and how they moved. `GET /v1/analytics/overview` for the summary, `/v1/analytics/prompts` per prompt, `/v1/analytics/metrics` for chart rows by family: | `metric` | One row per | | - | - | | `visibility`, `competitors` | Day and brand: the visibility score over the window. | | `citations` | Tracked brand (yours and competitors): its brand citation share, mentions and rank. | | `sources` | Cited domain: how many cited URLs and answers it appears in, each as a count and a 0 to 100 share, with your own site marked `isOwned: true`. | | `platforms` | AI platform: its scores, answer count and latest-scan failures. | | `topics` | Topic and brand: visibility within the topic. | `citations` answers "which brands get cited"; `sources` answers "which sites the AI assistants cite". Both use the same window (`rangeDays`: 7, 30 or 90). ## Brand and competitors `GET /v1/brand` is how Jam describes your company and who it compares you with. Change the positioning with `PATCH /v1/brand` and the competitors under `/v1/brand/competitors`. ## Research Research is what Jam learns about your market from the answers: which pages AI assistants trust, which sources cite competitors, and where your brand is missing. It feeds the Plan and the content opportunities. ## The Plan (actions) The Plan is the ranked list of actions that should raise your visibility: pages to write or fix, sites to get listed on, people to pitch. `GET /v1/actions` lists them. Each action has a status: | Status | Meaning | | - | - | | `suggested` | On the Plan, not started. | | `in_progress` | Someone started it. | | `sent` | Outreach went out; waiting on the third party. | | `done` | Reported done (`POST /v1/actions/{actionId}/completion`). | | `verified` / `unverified` | Jam checked whether it took effect. | | `dismissed` | Taken off the Plan. | | `superseded` | Research no longer proposes it. | Transitions are safe to repeat: starting a started action, or dismissing a dismissed one, answers `200` with the status and records nothing. There is no undo for start (the dashboard has none either). To take a started action off the Plan, dismiss it; restoring it (`DELETE /v1/actions/{actionId}/dismissal`) puts it back as `suggested`. ## Content opportunities Opportunities are pages worth writing. `GET /v1/opportunities` lists them and `GET /v1/opportunities/{id}/brief` returns the brief to write from. An agent can claim one, write it, and store the draft with `POST /v1/content`; Jam can also write it for you (`POST /v1/opportunities/{id}/plan-requests`). Publish to a connected GitHub repository with `PUT /v1/content/{id}/destinations/{destinationId}`. A draft's text is at `currentRevision.article.bodyMarkdown` on `GET /v1/content/{id}` (the list view carries the title and state, not the body). ## Credits Work Jam does for you (writing, research, outreach) costs credits. The plan grants an allowance that resets each period. `GET /v1/credits` shows the balance, allowance, reset time and recent charges; each charge has a plain `description` and `spend: false` when it is bookkeeping rather than work. A new account's first row is a `geo_allowance_expiry`: the free allowance replaced by the plan's credits, not a spend. A request that needs more credits than you have answers `402 insufficient_credits`. > [!NOTE] > > When a project's first research run finishes, Jam drafts up to 3 new pages (the highest-ranked `new_page` actions) by itself, once per project, paid from the plan's included credits. They are written one after another, about 5 minutes each, so the third can show as queued for a while. Those actions go `in_progress` with actor `jam`, and `llm_query` charges appear in `recentCharges` without a request from you. The drafts stay in Jam until someone publishes them; nothing is sent to your site. Later research runs draft nothing on their own: more drafts wait for a request (`POST /v1/plan-batches` or a single action). ## Plan state and billing When a plan ends the workspace becomes read-only: reads keep working and writes answer `402 plan_inactive` until the plan is resumed in the dashboard. Every `402` carries `resolveUrl`, the dashboard page where a person fixes it. `GET /v1/billing` returns the plan state, whether this key's creator can manage billing (`canManage`, owners only) and the links to manage billing, resume the plan, buy credits and change plan. The API never charges a card or opens a checkout itself: a person does that on those pages. ## Lists and pages Lists that can grow are paged the same way: `limit` (1 to 100) and `cursor` in, and a `pageInfo` object out. ```json theme={} "pageInfo": { "limit": 100, "hasNextPage": true, "nextCursor": "eyJhIjo...", "totalCount": 326 } ``` When `hasNextPage` is true, send `nextCursor` back as `cursor` with the same filters for the next page. `totalCount` counts every matching item across all pages. A `limit` outside 1 to 100, or a cursor the API did not hand out, is a `400`. This shape is used by `GET /v1/prompts`, `/v1/actions`, `/v1/opportunities`, `/v1/content`, `/v1/analytics/prompts`, `/v1/answers` and `/v1/visibility-runs`. Counts that summarise a list (`countsByStatus` on actions, `counts` on prompts) always cover every page. Older fields stay for clients that already read them: `/v1/answers` also has `nextCursor` at the top level, and `/v1/visibility-runs` has `nextBefore` (and accepts `before` as well as `cursor`). `/v1/answers` leaves out `totalCount` when you filter by `competitor`, because counting would read every answer. Without `limit`, `GET /v1/prompts` also returns the older `tracked` and `archived` lists beside the first page, so send `limit`. ## Webhooks and notifications Jam can POST its notifications (plan ready, PR opened, scan failed, ...) to your own URL. Manage the URLs with `/v1/webhooks` and choose which notifications go there with `/v1/notification-rules`. See [Webhooks](/api-reference/webhooks). ## Scored and unscored questions A question that names your brand (by name, alias, domain or domain label, for example "spreadjam reviews") or names a tracked competitor ("X vs Y", "X alternatives") is tracked and its answers are kept, but it does not count toward visibility, mentions or citation share. Those rates only use questions a buyer asks without naming a vendor. `GET /v1/prompts` returns `branded`, `scored` and `unscoredReason` for each question, and `POST /v1/agent-connect` returns `warnings` for sent questions that will be unscored. ## Name collisions If another product shares your brand name (Jam and jam.dev), an answer about the other product does not count as a mention of yours. The brand profile has a `notConfusedWith` list (set it in `onboarding.notConfusedWith` or with `PATCH /v1/brand`); research adds to it when answers cite a same-named product on another domain. # Quickstart Source: https://docs.spreadjam.com/get-started/quickstart Set up your site in the Jam dashboard, start the trial, and read your first results and Plan. Prefer to let your agent do the setup? See [Onboard with your agent](/onboard-with-your-agent). ## 1. Set up your site Open [spreadjam.com/start](https://www.spreadjam.com/start) and sign in or create an account. Setup asks a few questions, each on its own page: **1. What site should Jam track?** Enter your website, for example `acme.com`. **2. How should Jam describe you?** Jam drafts a description of your company from your site. Edit anything that is off: this is how Jam talks about you. **3. Who buys from you, and who do you compete with?** Your audiences and competitors. Jam uses them to write prompts and to rank you against the right brands. **4. Which questions should Jam watch?** The prompts: questions buyers ask AI assistants when they look for something like you. Edit, add or remove any. See [Prompts](/tracking/prompts). **5. Choose your plan** Pick a prompt capacity, a scan cadence, the platforms and your work credits. A new account gets a 14-day free trial; checkout asks for a card. See [Plans and credits](/billing/plans-and-credits). ## 2. Read your first results The first scan starts when your plan is active. It asks every prompt on every platform, so it takes a few minutes; the numbers fill in as answers arrive. You then see: * **Visibility**: how often AI assistants mention and recommend you, against your competitors. * **Answers**: the full text of every AI answer, with the brands it named and the URLs it cited. * **Sources**: which sites the assistants cite. Your own site is marked. See [Scans and answers](/tracking/scans-and-answers). ## 3. Work the Plan When the first scan finishes, Jam runs its first [research](/research/overview) (free) and writes the Plan. Jam also drafts up to three of the top new pages by itself, once, from your plan's credits. Each action on the Plan has two buttons: **Send to Jam** has Jam do it, and **Copy prompt** hands it to your own agent. See [Doing the work](/actions/doing-the-work). ## 4. Choose how pages reach your site The Plan asks once: **Use Markdown** (you get each article as a file to publish yourself) or **Connect GitHub** (Jam opens a pull request on your site's repository). You can change it later in **Settings**. See [Delivery](/delivery/overview). # Jam docs Source: https://docs.spreadjam.com/index Jam shows where AI assistants recommend you, works out what to change, and ships the work. Use it from the dashboard, or from your own agent over MCP and the API. Jam asks ChatGPT, Gemini, Perplexity, Google AI Mode, Google AI Overviews and Microsoft Copilot (and Claude, as an add-on) the questions your buyers ask. It records every answer and shows whether your brand is mentioned, recommended and cited. Research turns the gaps into a Plan: pages to write or fix, technical changes, sources to earn. Jam can do the work and ship it to your site, or hand it to your own agent. > [card] [Quickstart](/get-started/quickstart) > > Set up your site in the dashboard and read your first results. > [card] [Onboard with your agent](/onboard-with-your-agent) > > Connect Claude, Claude Code, ChatGPT, Cursor or any MCP client. ## How Jam works **1. Tracking** Jam asks every [tracked prompt](/tracking/prompts) on every platform your plan covers, on your plan's cadence, and keeps each answer. See [Tracking](/tracking/overview). **2. Research** Jam reads the answers to learn which pages AI assistants trust, which sources cite your competitors and where you are missing. See [Research](/research/overview). **3. Actions** Research becomes the Plan: a ranked list of actions, each with its evidence. Send one to Jam, copy its prompt into your own agent, or do it yourself. See [The Plan](/actions/the-plan). **4. Delivery** Finished pages reach your site as a pull request on GitHub, or as Markdown you publish yourself. See [Delivery](/delivery/overview). ## Two ways to work * **The dashboard** at [spreadjam.com](https://www.spreadjam.com/start). Everything in these docs has a button there. * **Your own agent.** The [MCP server](/api-reference/mcp) at `https://api.spreadjam.com/mcp` and the [REST API](/api-reference/overview) at `https://api.spreadjam.com/v1` expose everything the dashboard does. Claude and ChatGPT sign in with OAuth; other clients send an API key. > [!NOTE] > > Work that writes pages, opens pull requests or runs research again spends > credits. Scans of your tracked prompts do not. See [Plans and > credits](/billing/plans-and-credits). # Onboard with your agent Source: https://docs.spreadjam.com/onboard-with-your-agent Connect Claude, Claude Code, ChatGPT, Cursor or any MCP client to Jam. Your agent can then read the Plan, run research and ship the work. Jam is built to be used from an agent. Everything in the dashboard is a tool on the Jam MCP server and a route on the REST API, so your agent can set Jam up, read where you stand, and do the work on the Plan. | | | | - | - | | MCP server | `https://api.spreadjam.com/mcp` (Streamable HTTP) | | REST API | `https://api.spreadjam.com/v1` | | OpenAPI spec | [`https://api.spreadjam.com/openapi.json`](https://api.spreadjam.com/openapi.json) | ## Pick your client > [card] [Claude](/onboard-with-your-agent/claude) > > Claude.ai and Claude Desktop. Add a custom connector and sign in. > [card] [Claude Code](/onboard-with-your-agent/claude-code) > > One command. Sign in in the browser, or use an API key. > [card] [ChatGPT](/onboard-with-your-agent/chatgpt) > > Add a connector in developer mode and sign in. > [card] [Cursor](/onboard-with-your-agent/cursor) > > Add the server to `mcp.json` with an API key. > [card] [Other MCP clients](/onboard-with-your-agent/other-clients) > > Any client that speaks Streamable HTTP, with OAuth or a key. > [card] [No account yet](/onboard-with-your-agent/agent-connect) > > Your agent sets Jam up for you and sends you one link to approve. ## Two ways to sign in **OAuth (no key to paste).** The client opens a Jam page in your browser. You sign in (or sign up and choose a plan), check the workspace and where you will be sent back to, and approve. Jam supports OAuth 2.1 with dynamic client registration and PKCE, so any MCP client that can sign in to a remote server works this way, as long as its sign-in returns to an `https` address or to `localhost`. **API key.** Create one in **Settings**, **Developer**, **Create API key**. It is shown once. Keys look like `sk_` followed by 64 hex characters. The client sends it on every request as `Authorization: Bearer sk_...`. Either way the connection belongs to one workspace and acts with your role in it. An OAuth sign-in shows up in **Settings**, **Developer** as a key named after the client, for example "Claude (connector)". Revoke it there to disconnect. ## Then what Once connected, ask your agent something like "How visible are we in AI answers, and what should we do first?" See [What your agent can do](/onboard-with-your-agent/what-your-agent-can-do) for the order of work, and the [operating guide](/onboard-with-your-agent/operating-guide) for instructions to paste into your agent's context. Already using the dashboard? Every action has a **Copy prompt** button that hands one job to any agent, connected or not. See [Copy prompt](/onboard-with-your-agent/copy-prompt). # Agent connect Source: https://docs.spreadjam.com/onboard-with-your-agent/agent-connect An agent with no Jam account or key sets Jam up for its human, sends them one link to review and approve, and receives an API key. Agent connect is for an agent whose human has no Jam account yet, or no key to hand over. The agent starts a session without a key, sends the human one link, and polls until it receives an API key for the workspace they approved. It can also do the whole setup (site, brand, audiences, competitors, prompts and plan), so the human only reviews, starts the trial and approves. For a human who already uses Jam, [signing in from the client](/onboard-with-your-agent) or a key from **Settings**, **Developer** is simpler. ## Start a session The agent starts a session. No key is needed for this call. ```bash theme={} curl -sS -X POST https://api.spreadjam.com/v1/agent-connect \ -H "Content-Type: application/json" \ -d '{"domain": "acme.com", "agentName": "Claude Code"}' ``` ```json theme={} { "connectUrl": "https://www.spreadjam.com/connect/ABCD234567", "userCode": "K7M-Q2X", "pollToken": "jcp_...", "expiresAt": "2026-11-04T12:00:00.000Z", "intervalSeconds": 5 } ``` `agentName` is optional (1 to 60 printable characters; without it the page says "Your agent"). `domain` is optional and must be a website hostname such as `acme.com`. `email` is optional too: the human's email, if you know it. Anything else is a `400 invalid_request` whose `details` names the field. Give the human the `connectUrl` and the `userCode` together, for example: "Open this link and check that it shows the code K7M-Q2X." The approval page shows the same code, the email they are signed in with and the workspace the key will belong to (they can switch to another of their workspaces there). They sign up or sign in, set up their site (the domain you sent is filled in), choose a plan, and approve. If they already use Jam, they only approve. After they approve, the page tells them to return to you while you finish connecting. Keep the `pollToken` secret, and poll every `intervalSeconds`: ```bash theme={} curl -sS https://api.spreadjam.com/v1/agent-connect/$POLL_TOKEN ``` | `status` | Meaning | | - | - | | `pending` | Not done yet. `stage` says what is left: `awaiting_signin`, `awaiting_review`, `awaiting_payment` (approved, the trial has not started) or `setting_up` (paid, the project is being created). Poll again. | | `approved` | The response carries `apiKey` and `workspaceId`. This is the only time the key is shown: store it now. | | `consumed` | The key was already handed out. Start a new session if it was lost. | | `denied` | The human declined. | | `expired` | Nobody approved within two hours. Start a new session. | Starting sessions is limited to 10 per IP address every 10 minutes. ## Set Jam up for them (recommended) You can do the setup yourself, so the human only reviews, pays and approves. Read the plans first (no key needed): ```bash theme={} curl -sS https://api.spreadjam.com/v1/pricing curl -sS "https://api.spreadjam.com/v1/pricing?promptCapacity=100&cadence=weekly&platforms=chatgpt,gemini,perplexity,google_ai_overview" ``` The first lists prompt capacities (50 to 1,000 in steps of 50), scan cadences, platforms, work credits, the monthly price of every capacity and cadence, and the trial terms (14 days for a new account, card required). The second quotes one configuration. These are the prices the plan page shows. Then send the setup as `onboarding`: ```bash theme={} curl -sS -X POST https://api.spreadjam.com/v1/agent-connect \ -H "Content-Type: application/json" \ -d '{ "agentName": "Claude Code", "email": "founder@acme.com", "onboarding": { "site": "acme.com", "brandName": "Acme", "description": "Acme is invoicing and time tracking software for agencies of 5 to 50 people that bill clients by the hour.", "audience": [ { "title": "Agency owners", "blurb": "Run a 5 to 50 person services agency" }, { "title": "Operations leads", "blurb": "Own billing and time tracking at an agency" } ], "competitors": [ { "name": "Harvest", "domain": "getharvest.com" }, { "name": "FreshBooks", "domain": "freshbooks.com" } ], "prompts": [ { "text": "best invoicing software for small agencies", "topic": "Agency invoicing", "persona": "buyer" }, { "text": "Harvest vs FreshBooks for agency time billing", "topic": "Time billing", "persona": "competitor" }, { "text": "how should a 20 person agency track billable hours", "topic": "Time billing", "audience": "Operations leads" } ], "locale": "us-en", "plan": { "promptCapacity": 100, "cadence": "weekly", "platforms": ["chatgpt", "gemini", "perplexity", "google_ai_overview"] } } }' ``` The answer adds `reviewUrl` (the same link as `connectUrl`), the quoted `plan` and the prompt count: ```json theme={} { "connectUrl": "https://www.spreadjam.com/connect/ABCD234567", "reviewUrl": "https://www.spreadjam.com/connect/ABCD234567", "userCode": "K7M-Q2X", "pollToken": "jcp_...", "expiresAt": "2026-11-04T12:00:00.000Z", "intervalSeconds": 5, "plan": { "configuration": { "promptCapacity": 100, "cadence": "weekly", "platforms": ["chatgpt", "gemini", "perplexity", "google_ai_overview"], "workCredits": 2000 }, "currency": "usd", "monthlyCents": 18600, "monthlyUsd": 186 }, "prompts": { "count": 3, "suggestedByJam": false } } ``` Every field is optional except the site (`onboarding.site`, or `domain`). The rules are the ones onboarding applies: `brandName` and `description` together (description 20 to 2,000 characters), 1 to 5 audiences, up to 25 competitors (never the site itself), prompts of 8 to 300 characters with no duplicates, at most 15 topics and at most `plan.promptCapacity` prompts. A prompt without `topic` goes under "General"; `persona` is one of `discoverer` (default), `buyer`, `evaluator`, `competitor`, `branded`; `audience` names one of your audience titles. Leave out `prompts` and Jam suggests them from the site, and the human reviews them before the trial. Anything that breaks a rule is a `400 invalid_request` whose `details` names the field, for example `onboarding.prompts.2`. The link then opens one review page instead of the onboarding steps: the code, the site, the brand, audiences, competitors, prompts, the plan with its price (the human can change it), what the key can do, and one button, "Approve Claude Code and start trial", which opens checkout. Tell the human what to expect, for example: "Open this link, check the code K7M-Q2X, review the setup and press Approve. Checkout asks for a card; the trial is free for 14 days." While you poll, `stage` tells you what is left; the key arrives on the first poll after the trial has started and the project exists, with no second approval. If the human already has a Jam workspace with an active plan or a finished project, they approve for that workspace and your setup is not applied. A workspace left unpaid from an earlier attempt still gets your setup. While the human has approved but not paid, the poll returns `reason`, `resumeUrl` and `humanMessage`: pass the message and link on so they can finish checkout; the session waits 24 hours after approval. > [!TIP] > > **Python: set a `User-Agent` header.** The API sits behind Cloudflare, which blocks the default `Python-urllib/3.x` user agent with `403` ("error code: 1010"). Send your own, for example `urllib.request.Request(url, headers={"User-Agent": "my-agent/1.0"})`, and do the same with any HTTP client whose requests come back `403` with that body. ## The key Keys look like `sk_` followed by 64 hex characters. A key reaches its workspace's real data; there are no test keys. It can read everything in the workspace and make the changes its creator can make in the dashboard, including work that spends credits. It acts with its creator's role, so a member's key cannot do owner-only things such as managing billing. Revoke a key in **Settings**, **Developer** (a key can also revoke itself with `DELETE /v1/api-keys/{keyId}`). Next: [connect the MCP server](/onboard-with-your-agent/other-clients) with the key, and read [What your agent can do](/onboard-with-your-agent/what-your-agent-can-do). # ChatGPT Source: https://docs.spreadjam.com/onboard-with-your-agent/chatgpt Connect Jam to ChatGPT as a custom connector with OAuth sign-in. **1. Turn on developer mode** Custom connectors need ChatGPT's developer mode. Turn it on in ChatGPT's settings, under connectors. **2. Add the connector** Create a connector with: | Field | Value | | - | - | | URL | `https://api.spreadjam.com/mcp` | | Authentication | OAuth | **3. Sign in to Jam** ChatGPT opens a Jam page. Sign in (or sign up and choose a plan), check the workspace and where you will be sent back to, and approve. ChatGPT registers itself with Jam on the first sign-in, so there is no client id or secret to enter. ## Check it works In a new chat with the connector on, ask: "Use Jam: which workspace are you connected to, and what is our visibility score?" ## Disconnect The connection appears in Jam under **Settings**, **Developer** as a key named after the client. Revoke it there. > [!NOTE] > > ChatGPT's menus for connectors change often and differ by plan. If the steps > above do not match what you see, the two values that matter are the URL and > OAuth authentication. # Claude Source: https://docs.spreadjam.com/onboard-with-your-agent/claude Connect Jam to Claude.ai or Claude Desktop as a custom connector. You sign in with your Jam account; there is no key to paste. **1. Add the connector** In Claude, open **Settings**, **Connectors**, **Add custom connector**. Name it Jam and enter the URL: ```text theme={} https://api.spreadjam.com/mcp ``` **2. Sign in to Jam** Claude opens a Jam page in your browser. Sign in, or sign up and choose a plan if you are new. The page shows the email you are signed in with, the workspace the connection will belong to (you can switch to another of your workspaces there) and where you will be sent back to. **3. Approve** Press approve. Claude finishes connecting and lists the Jam tools. The sign-in request waits up to two hours, so there is time to sign up and pay before approving. ## Check it works Ask Claude: "Use Jam to tell me which workspace you are connected to and how visible we are." It calls `get_me` and `get_analytics_overview`. ## Disconnect The connection appears in Jam under **Settings**, **Developer** as a key named "Claude (connector)". Revoke it there to end the connection; Claude has to sign in again to reconnect. Removing the connector in Claude also stops it from calling Jam. ## Good to know * Claude stays signed in: each access token lasts an hour and renews by itself. If the connection goes unused for 30 days, sign in again. A renewal token that is used twice is treated as stolen and ends the connection. * Tools that spend credits, publish or delete are marked as destructive, so Claude can ask before using them. Reads are marked read only. # Claude Code Source: https://docs.spreadjam.com/onboard-with-your-agent/claude-code Add the Jam MCP server to Claude Code with one command. Sign in through the browser, or send an API key. > [tab] Sign in (OAuth) > > Add the server: > > ```bash theme={} > claude mcp add --transport http jam https://api.spreadjam.com/mcp > ``` > > Then, inside Claude Code, run `/mcp`, pick **jam** and choose to authenticate. Your browser opens a Jam page: sign in, check the workspace, and approve. > > Claude Code receives the sign-in on your own machine (a `localhost` address), so the Jam page shows a note that you are being sent back to a local app. That is expected here; decline if you did not start the sign-in yourself. > [tab] API key > > Create a key in Jam under **Settings**, **Developer**, **Create API key**, then: > > ```bash theme={} > export JAM_API_KEY=sk_... > claude mcp add --transport http jam https://api.spreadjam.com/mcp \ > --header "Authorization: Bearer $JAM_API_KEY" > ``` > > The key is shown once. Keep it out of files you commit. Add `--scope user` to use Jam in every project, or `--scope project` to share the server (not the key) with your team through `.mcp.json`. ## Check it works ```text theme={} > Which Jam workspace are you connected to, and what is first on our Plan? ``` Claude Code calls `get_me`, then `list_actions`. ## Several sites If your workspace tracks more than one site, pass `projectId` (an id from `list_projects`) to any project tool, or add the header to the connection: ```bash theme={} claude mcp add --transport http jam-acme https://api.spreadjam.com/mcp \ --header "Authorization: Bearer $JAM_API_KEY" \ --header "X-Jam-Project: " ``` Without either, tools act on your newest project. ## Give it the playbook Paste the [operating guide](/onboard-with-your-agent/operating-guide) into your `CLAUDE.md` so Claude Code works Jam in the right order and asks before spending credits. # Copy prompt Source: https://docs.spreadjam.com/onboard-with-your-agent/copy-prompt Every action in the dashboard has a Copy prompt button. It copies the instructions an agent needs to do that one job through the Jam API, with a key if you want one. **Copy prompt** sits next to **Send to Jam** on every action on the Plan. Send to Jam has Jam do the work. Copy prompt hands it to your own agent instead: Claude Code, Cursor, ChatGPT or anything else that can make HTTP requests. The agent does not need the MCP server. ## What gets copied The prompt is written for the job in front of you: | Where | What the agent is asked to do | | - | - | | An action on the Plan | Do that action from its brief, then report it done through the completion link in the prompt. No key needed. | | An article to write | Write one article from its brief and store it in Jam as a draft. The prompt names the title, topic, audience, brand voice and language. | | A drafted page with no delivery method | Add the page to your site yourself. | Each prompt says where to send the result, so the work lands back in Jam. ## The key The article prompt tells the agent to call the Jam API, which needs a key for your workspace. If the workspace has no key yet, Jam asks first: * **Create key**: Jam creates a key named "Agent prompt" and writes it into the copied prompt. The key is shown once; save it if your agent will need it again. * **Copy without key**: the prompt has `` where the key goes. Add one later from **Settings**, **Developer**. If the workspace already has a key, the prompt is copied with the placeholder, so no key is copied without you asking. > [!WARNING] > > A prompt with a key in it gives whoever holds it access to your workspace. > Paste it only into an agent you trust, and revoke the key in **Settings**, > **Developer** when you are done. ## Reporting the work done An action's prompt ends with a completion link for that one action, which needs no key, so any agent can report the action done with the URL of what changed. Jam then checks the page. An agent that holds a key uses `complete_action` instead. ## When Jam cannot do an action Some work is yours: outreach, community posts, or a change Jam could not make. The action then offers Copy prompt as its main button, and over the API the action carries `fallback: "copy_prompt"`: hand its `agentPrompt` to your agent. ## From the API The same instructions are on every action: `GET /v1/actions/{actionId}` (`get_action`) returns `agentPrompt`, which ends with the keyed `complete_action` route instead of the completion link. An agent connected over MCP can read it directly, so it does not need you to copy anything. # Cursor Source: https://docs.spreadjam.com/onboard-with-your-agent/cursor Add the Jam MCP server to Cursor with an API key. **1. Create an API key** In Jam, open **Settings**, **Developer**, **Create API key**, and copy the key. It is shown once. **2. Add the server** Add Jam to `.cursor/mcp.json` in your project, or to `~/.cursor/mcp.json` for every project: ```json .cursor/mcp.json theme={} { "mcpServers": { "jam": { "url": "https://api.spreadjam.com/mcp", "headers": { "Authorization": "Bearer sk_..." } } } } ``` **3. Check it works** Open Cursor's MCP settings and check that **jam** is connected and lists its tools. Then ask the agent: "Which Jam workspace are you connected to?" > [!WARNING] > > A project `.cursor/mcp.json` holding a key should not be committed. Use the > file in your home folder, or keep the project file out of version control. ## Why a key and not sign-in Jam's sign-in only returns to `https` addresses or to `localhost`. Cursor's sign-in returns to a `cursor://` address, which Jam does not accept today, so use a key. To work on one site of several, add `"X-Jam-Project": ""` to `headers`, or pass `projectId` to a tool. # How to operate Jam Source: https://docs.spreadjam.com/onboard-with-your-agent/operating-guide A guide to paste into your agent's context (AGENTS.md, CLAUDE.md, a skill or a system prompt) so it uses Jam well. Copy the block below into your agent's instructions. It assumes the Jam MCP server is connected or `JAM_API_KEY` is set. ```markdown theme={} # Jam (AI search visibility) Jam tracks how ChatGPT, Gemini, Perplexity, Google AI Mode, Google AI Overviews and Microsoft Copilot (and Claude, as an add-on) answer the questions buyers ask, and turns the gaps into a Plan of actions. - REST: https://api.spreadjam.com/v1, header `Authorization: Bearer $JAM_API_KEY`. Spec: https://api.spreadjam.com/openapi.json - MCP: https://api.spreadjam.com/mcp (same header). Tool names are the operation ids below. - Docs: https://docs.spreadjam.com. Support: jia@spreadjam.com, mal@spreadjam.com. ## No key yet 1. `POST /v1/agent-connect` with `{"domain": "", "agentName": ""}`. 2. Show the human the `connectUrl` and the `userCode`. Say: open it, check that the page shows this code, sign up, set up the site, approve. If the codes do not match, they decline. 3. Poll `GET /v1/agent-connect/{pollToken}` every `intervalSeconds` until `status` is `approved`. Save `apiKey` immediately (it is shown once). Never print the poll token or key. ## Each session, in this order 1. `get_me` (GET /v1/me): confirm the workspace. 2. Where things stand: `get_analytics_overview`, `list_prompts`, `get_prompt_cap`, `get_credits`. 3. Detail when asked: `list_prompt_analytics`, `list_analytics_metrics`, `get_brand`, the AI answers for a prompt. 4. The Plan: `list_actions` (status `suggested` first), then `get_action` for one action's evidence and `agentPrompt`. 5. Act, then report: do the action (or `create_action_execution` to have Jam do it), then `complete_action` with the URL of what changed. 6. Research: `get_research` before `create_research_request` (500 credits after the free first run). Never start one while a run is going. ## Rules - Summarise numbers the way the dashboard does: visibility score and citation share are 0 to 100. - Before a write that costs credits or changes what is tracked (adding prompts, scans, asking Jam to write content), tell the human what it will do and get a yes. One spend happens without a request: when the first research run finishes, Jam drafts the top 3 new pages from the plan's included credits. Expect it; do not report it as unexplained. - Read scan progress against `expectedTotal`, not `answers.total`, while `queuing` is true. - `create_visibility_run` only when the human asks for fresh numbers; it answers 409 while a scan runs. Do not start another; check back after `expectedMinutes`. - Send `Idempotency-Key` on writes you might retry. - On an error, read `code` and `error`; `details` says which field and what is accepted. `429`: wait `Retry-After` seconds. `402 plan_inactive`: the plan ended, tell the human to resume it in the dashboard. `402 insufficient_credits`: tell the human. - Several sites? Pass `projectId` to the tool (or send `X-Jam-Project: `); otherwise the newest project is used. - Lists are paged: when `pageInfo.hasNextPage` is true, call again with `cursor: pageInfo.nextCursor` and the same filters. `totalCount` is the full size. - Tools marked `destructiveHint` spend credits, publish or delete; their description says the cost. Ask first. - `402`: open `resolveUrl` with the human, or read `get_billing` for the links. - Quote `requestId` when you report a problem to support. ``` ## Why this order Reading `/v1/me` first catches a key for the wrong workspace before anything else. The overview and prompts tell you whether there is data yet: a project that has not finished its first scan has empty analytics. The Plan is where the next step comes from, so an agent asked "what should I do" reads `list_actions` rather than inventing advice from the numbers. # Other MCP clients Source: https://docs.spreadjam.com/onboard-with-your-agent/other-clients Connect any MCP client to Jam: the server URL, OAuth discovery for clients that sign in, and the header for clients that take a key. The Jam MCP server speaks Streamable HTTP at one URL: ```text theme={} https://api.spreadjam.com/mcp ``` It is stateless: every request stands alone, so there is no session to keep open. Each tool call runs the matching REST route with your credentials, so limits, plan checks and error bodies are the same as the [API](/api-reference/overview). ## Clients that sign in (OAuth) Point the client at the URL and choose OAuth. A request without a token answers `401` with a `WWW-Authenticate` header that names the metadata, and the client takes it from there: | | | | - | - | | Protected resource metadata | `https://api.spreadjam.com/.well-known/oauth-protected-resource` (also at `.../oauth-protected-resource/mcp`) | | Authorization server metadata | `https://api.spreadjam.com/.well-known/oauth-authorization-server` | | Dynamic client registration | `POST https://api.spreadjam.com/oauth/register` | | Authorize | `https://api.spreadjam.com/oauth/authorize` | | Token | `https://api.spreadjam.com/oauth/token` | | Revoke | `https://api.spreadjam.com/oauth/revoke` | What Jam accepts: * Public clients only (no client secret), with PKCE `S256`. * Redirect addresses that are `https`, or `http` on `localhost`, `127.0.0.1` or `[::1]` (any port). Custom schemes such as `myapp://` are refused; use a key for those clients. * Grants: `authorization_code` and `refresh_token`. There are no scopes: a connection can do what its owner can do in the workspace. * Access tokens last one hour. Refresh tokens last 30 days and are single use; each refresh returns a new pair. ## Clients that take a key Create a key in **Settings**, **Developer**, **Create API key**, and send it as a header: ```http theme={} Authorization: Bearer sk_... ``` Most clients put this in their config next to the URL, for example: ```json theme={} { "mcpServers": { "jam": { "url": "https://api.spreadjam.com/mcp", "headers": { "Authorization": "Bearer sk_..." } } } } ``` A client that only runs local (stdio) servers can reach Jam through a bridge such as `mcp-remote`: ```json theme={} { "mcpServers": { "jam": { "command": "npx", "args": [ "-y", "mcp-remote", "https://api.spreadjam.com/mcp", "--header", "Authorization: Bearer ${JAM_API_KEY}" ], "env": { "JAM_API_KEY": "sk_..." } } } } ``` ## No MCP at all Every tool is a REST route. Call `https://api.spreadjam.com/v1` with the same header, using the [OpenAPI spec](https://api.spreadjam.com/openapi.json) to build requests. See [API overview](/api-reference/overview). ## No account yet An agent with no key can set Jam up for its human and get a key once they approve. See [Agent connect](/onboard-with-your-agent/agent-connect). # What your agent can do Source: https://docs.spreadjam.com/onboard-with-your-agent/what-your-agent-can-do Once connected, your agent can read where you stand, work the Plan, run research and ship pages, with the same tools as the dashboard. The MCP server has one tool per API route, named by its operation id. A connected agent can do what you can do in the dashboard with your role, except create API keys. ## Read where you stand | Ask | Tools | | - | - | | Which workspace and site is this? | `get_me`, `list_projects` | | How visible are we? | `get_analytics_overview`, `list_prompt_analytics`, `list_analytics_metrics` | | What do the AI assistants actually say? | `list_answers`, `list_prompt_answers` | | What is tracked, and how much room is left? | `list_prompts` (send `limit`), `get_prompt_cap` | | Who are we compared with? | `get_brand` | | How many credits are left? | `get_credits` | ## Read the Plan `list_actions` returns the Plan, best first, with counts per status. `get_action` returns everything needed to do one action: its evidence, the prompts it should move, the target page, the change Jam prepared (if any) and `agentPrompt`, instructions your agent can follow, ending with how to report the work done. See [The Plan](/actions/the-plan). ## Run research `get_research` says whether research is running and whether another run would be accepted. `get_research_report` returns what the latest run found. `create_research_request` asks Jam to research again and rewrite the Plan: the first run is free, each later one holds 500 credits, kept only if it succeeds. It takes about ten minutes. See [Research](/research/overview). `create_visibility_run` asks every prompt again now. Scans use no credits; it answers `409` while a scan is already running. ## Ship work An agent can do an action three ways: * **Have Jam do it.** `create_action_execution` drafts a new page, or prepares a code change for a page edit or technical fix. With `{"mode": "agent"}` it starts the same background run as the dashboard's **Send to Jam**. * **Do it itself.** Follow the action's `agentPrompt`. For a new page: read the brief (`get_opportunity_brief`), claim it (`claim_opportunity`), write it, and store the draft (`create_content`). * **Ship it.** Open the pull request for a prepared change (`create_site_change_pull_request`, 20 credits, kept only if it opens), or publish a draft to your connected repository (`publish_content`). Then it reports the work with `complete_action` and the URL of what changed. Jam checks the page and marks the action `verified` or `unverified`. See [Doing the work](/actions/doing-the-work) and [Delivery](/delivery/overview). ## Manage what is tracked Add, reword, pause, replace or remove prompts (`add_prompt`, `add_prompts_bulk`, `edit_prompt`, `pause_prompt`, `replace_prompt`, `remove_prompt`), ask Jam for more (`suggest_prompts`), and edit the brand and competitors (`update_brand`, `add_brand_competitors`, `remove_brand_competitor`). ## Get told when things happen Send Jam's notifications to your own URL with `create_webhook`, and choose which ones with `update_notification_rule`. See [Webhooks](/api-reference/webhooks). ## How tools are marked * Reads are `readOnlyHint: true`. * Tools that spend credits, publish to your site or repository, or delete something are `destructiveHint: true`. A tool that spends credits says what it costs at the start of its description. * Tools that are safe to repeat are `idempotentHint: true`. Set your client to approve reads on its own and ask before the rest. Writes need an active plan; when a plan ends the workspace becomes read only and writes answer `402`. ## A first conversation ```text theme={} You: How are we doing in AI search, and what should we do first? Agent: get_me, get_analytics_overview, list_actions "You are mentioned in 18% of answers, behind Harvest at 41%. The top action is a comparison page for 'Harvest alternatives for agencies'. Jam can draft it (about 45 credits), or I can write it from the brief. Which do you want?" ``` # Research Source: https://docs.spreadjam.com/research/overview Research reads the AI answers to work out what to change: which pages AI assistants trust, which sources cite your competitors, and where you are missing. It writes the Plan. Research is how Jam goes from numbers to work. It reads the answers from your scans, looks at the pages and sources the assistants cite, and proposes actions, best first, each with its evidence and the prompts it should move. Those actions are [the Plan](/actions/the-plan). ## When it runs * **The first run** starts once the first scan has finished. It is part of setting up the project and costs nothing. * **Research again** reruns it and rewrites the Plan. Each later run holds 500 credits, kept only if the run succeeds and refunded otherwise. A run takes about ten minutes. When the first run finishes, Jam also drafts up to three of the top new pages by itself, once per project, from your plan's credits. They are written one after another, about five minutes each. The drafts stay in Jam until someone publishes them; nothing is sent to your site. ## From the dashboard Use **Research again** on the Plan. The button shows what it costs, or that the run is free. ## From your agent | Tool | Route | What it does | | - | - | - | | `get_research` | `GET /v1/research` | Whether a run is going, how the last one ended, and whether Research again would be accepted now and what it would cost. | | `get_research_report` | `GET /v1/research/report` | What the latest successful run found: how many answers it read and every action it proposed, with its why, evidence and target prompts. | | `create_research_request` | `POST /v1/research-requests` | Research again. Poll `get_research` until it finishes. | `create_research_request` answers `409` while a run is in flight or before the first scan has finished, `402` when credits cannot cover it, and `403` when your plan does not include research. > [!TIP] > > Research again is worth running after you ship several actions or change what > you track. Ask your agent to check `get_research` first, so it does not spend > credits while a run is already going. # Tracking Source: https://docs.spreadjam.com/tracking/overview Jam asks AI assistants the questions your buyers ask, on a schedule, and shows where you are mentioned, recommended and cited. Tracking is the base of everything else in Jam. You choose the questions (prompts); Jam asks each one on every platform your plan covers, on your plan's cadence, and keeps every answer. ## Platforms | Platform | API value | | - | - | | ChatGPT | `chatgpt` | | Gemini | `gemini` | | Perplexity | `perplexity` | | Google AI Mode | `google_ai_mode` | | Google AI Overviews | `google_ai_overview` | | Microsoft Copilot | `copilot` | | Claude (add-on) | `claude` | Claude is off by default. Each Claude answer is asked through Anthropic with web search and costs far more than one on any other platform, so it is priced as an add-on. See [Plans and credits](/billing/plans-and-credits). ## Cadence Scans run weekly, every other day or daily, as your plan sets. You can also start one now (`create_visibility_run`). Scans use no credits. ## What Jam measures | Measure | Meaning | | - | - | | Visibility score | How often and how prominently you appear in answers, 0 to 100. | | Mentions | Answers that name your brand. | | Recommendations and position | Whether an answer recommends you, and where you sit in its list. | | Citation share | Your share of the citations in answers, 0 to 100. | | Sources | Which sites the answers cite, with your own site marked. | Each measure is also shown for your competitors, so you see who is recommended instead of you. Read them with `get_analytics_overview`, `list_prompt_analytics` and `list_analytics_metrics`. ## Scored and unscored questions A prompt that names your brand ("Acme reviews") or a tracked competitor ("Harvest vs FreshBooks", "Harvest alternatives") is tracked and its answers are kept, but it does not count toward visibility, mentions or citation share. Those numbers only use questions a buyer asks without naming a vendor, so they show whether AI assistants find you on their own. ## Name collisions If another product shares your name, an answer about it does not count as a mention of yours. The brand profile has a `notConfusedWith` list for this; research adds to it when answers cite a same-named product on another domain. ## Next * [Prompts](/tracking/prompts): choosing, editing and adding questions. * [Scans and answers](/tracking/scans-and-answers): how a scan runs and what each answer records. # Prompts Source: https://docs.spreadjam.com/tracking/prompts Prompts are the questions Jam asks AI assistants for you. Choose them, edit them, and stay within your plan's capacity. A prompt is a question a buyer asks an AI assistant, like "best invoicing tool for small agencies". Jam asks every tracked prompt on every platform on every scan. ## Prompt capacity Your plan sets how many prompts you can track, from 50 to 1,000 in steps of 50. `get_prompt_cap` shows the cap and how much room is left. Adding past the cap is refused. ## Topics and personas Every prompt has a `topic` (prompts without one go under "General") and a `persona`. The API also accepts `control`, which setup treats like `branded`. | Persona | Who asks it | | - | - | | `discoverer` | Someone exploring the problem. The default. | | `buyer` | Someone ready to choose a product. | | `evaluator` | Someone comparing options in detail. | | `competitor` | A question that names a competitor. Tracked, not scored. | | `branded` | A question that names you. Tracked, not scored. | Topic and persona are set when a prompt is added. Rewording a prompt keeps them; to change either, remove the prompt and add it again. ## Change what is tracked Edit prompts on the dashboard's prompts page, or over the API and MCP: | Do | Tools | | - | - | | Add one or many | `add_prompt`, `add_prompts_bulk` | | Reword in place (history kept) | `edit_prompt`, `edit_prompts_bulk` | | Replace (history reset) | `replace_prompt` | | Pause or resume | `pause_prompt` | | Stop tracking one, or a whole topic | `remove_prompt`, `remove_prompt_topic` | | Ask Jam for more | `suggest_prompts`, then `get_prompt_suggestion` for progress | `add_prompt` takes 3 to 500 characters and is safe to retry: a text the project already tracks answers `200` with `existing: true`. Setup (and agent connect) asks for 8 to 300 characters and at most 15 topics. > [!TIP] > > Write prompts the way a buyer would type them, without your brand name. > Branded and competitor questions are worth tracking, but they do not move your > visibility score. # Scans and answers Source: https://docs.spreadjam.com/tracking/scans-and-answers How a visibility scan runs, how to follow its progress, and what Jam records about each AI answer. ## Scans A scan (a visibility run) asks every tracked prompt on every platform your plan covers. Scans run on your plan's cadence and use no credits. To scan now, use the dashboard or `create_visibility_run` (`POST /v1/visibility-runs`). It answers `202` with a `runId` and `expectedMinutes`, or `409` while a scan is already running: wait for that one instead of starting another. A run fills in as Jam queues its questions, so `answers.total` grows during the first minutes. Read progress against `expectedTotal`, the prompt and platform pairs the run will ask, which is known up front; `queuing` stays `true` until every question is queued. Follow a run with `get_visibility_run`, and list past runs with `list_visibility_runs`. A platform that could not be reached shows its failed answers with a plain cause in `platforms[].errors`. When a platform failed most of the latest scan, the project's `healthReasons` names it. ## Answers For every prompt and platform, each scan stores: * the full answer text, * whether your brand was mentioned and whether it was recommended, and its position, * the brands mentioned, in order, * the URLs cited. `list_answers` (`GET /v1/answers`) lists them newest first; `list_prompt_answers` is one prompt's history. Answers are the evidence for everything else: research reads them, and each action on the Plan links to the answers behind it. ## Analytics The dashboard's numbers come from the answers in a window of 7, 30 or 90 days (`rangeDays`). | `list_analytics_metrics` family | One row per | | - | - | | `visibility`, `competitors` | Day and brand: the visibility score over the window. | | `citations` | Tracked brand (yours and competitors): its citation share, mentions and rank. | | `sources` | Cited domain: how many cited URLs and answers it appears in, with your own site marked `isOwned: true`. | | `platforms` | AI platform: its scores, answer count and latest-scan failures. | | `topics` | Topic and brand: visibility within the topic. | `citations` answers "which brands get cited"; `sources` answers "which sites the AI assistants cite". The first analytics read of a project can take several seconds while Jam builds its numbers; later reads are fast until a new scan lands.