{"openapi":"3.0.0","info":{"title":"SpreadJam API","version":"1.0.0"},"servers":[{"url":"https://api.spreadjam.com"}],"tags":[{"name":"Meta","description":"Identity and metadata about the authenticated key."},{"name":"Keywords","description":"Keyword and topic visibility rankings."},{"name":"API keys","description":"Manage the workspace's API keys."},{"name":"Analytics","description":"AI-visibility analytics for the workspace."},{"name":"Brand","description":"The workspace's brand profile and competitors."},{"name":"Prompts","description":"Tracked GEO prompts and their cap state."},{"name":"Visibility runs","description":"Run the AI-visibility scan now."},{"name":"Credits","description":"The workspace's credit balance and recent charges."},{"name":"Actions","description":"Recommended visibility actions and reporting them done."},{"name":"Agent connect","description":"Sign a human up from an agent with one link, then receive an API key once they approve. No API key needed."},{"name":"Pricing","description":"The plans an agent can choose for a human and their monthly prices. No API key needed."},{"name":"Site changes","description":"Code changes Jam prepares for page edits and technical fixes: preview, open the pull request, discard."},{"name":"Research","description":"The research that writes the content plan: its state, its latest report, and running it again."},{"name":"Answers","description":"What each AI platform answered to the tracked prompts, with the sources it cited."},{"name":"Projects","description":"The workspace's projects and the status of each one."},{"name":"Billing","description":"The workspace's plan and the links where a person manages billing."},{"name":"Webhooks","description":"HTTP destinations the workspace notifications are POSTed to, signed with a per-webhook secret."},{"name":"Notifications","description":"Which notifications reach which channels (including webhooks), per event category."},{"name":"Opportunities","description":"Article opportunities: the article pipeline behind the content plan's `new_page` actions, and requests to create content from them."},{"name":"Planning","description":"Run automatic content planning now."},{"name":"Content","description":"Content items, their drafts, and requests to rewrite them."},{"name":"Revisions","description":"A content item's revisions."},{"name":"Publishing","description":"Publishing content to destinations, now or on a schedule."},{"name":"Deliveries","description":"A content item's delivery history."},{"name":"Publications","description":"Where a content item is live."},{"name":"Destinations","description":"Where content is published, its publishing policy, and its connection."}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"A workspace API key issued in Settings → Developer, sent as `Bearer sk_…`."}},"schemas":{"Me":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string","example":"user_123"},"name":{"type":"string","nullable":true,"description":"The key owner's display name; null when absent."},"email":{"type":"string","nullable":true,"description":"The key owner's email; null when absent."}},"required":["id","name","email"]},"workspaceId":{"type":"string","example":"ws_123"},"plan":{"$ref":"#/components/schemas/PlanState"},"project":{"type":"object","nullable":true,"properties":{"id":{"type":"string"},"domain":{"type":"string","nullable":true,"example":"acme.com"}},"required":["id","domain"],"description":"The GEO project this request acts on: the one the X-Jam-Project header selects, else the active project (the newest non-archived one); null before a project is set up."}},"required":["user","workspaceId","plan","project"]},"PlanState":{"type":"object","properties":{"status":{"type":"string","enum":["trialing","active","lapsed","other_workspace","legacy"],"description":"trialing or active: the plan is on and writes work. lapsed: the plan ended (see lapseCause); the workspace is read-only and writes answer 402 until it is resumed (GET /v1/billing has the link). other_workspace: the owner has a plan, but none of its prompts are assigned to this workspace (the owner assigns them in Settings, Billing, or with PUT /v1/billing/allocations). legacy: an older plan with no prompt-priced offer."},"accessUntil":{"type":"string","nullable":true,"description":"ISO-8601 end of the current paid or trial period; null when not active."},"trialEndsAt":{"type":"string","nullable":true,"description":"ISO-8601 end of the trial while trialing; null otherwise."},"lapseCause":{"type":"string","nullable":true,"enum":["trial_ended","plan_ended","payment_failed",null],"description":"Why the plan lapsed, when status is lapsed."},"promptCapacity":{"type":"integer","nullable":true,"description":"Tracked prompts this workspace may have: its share of the plan. One plan can split its prompts across the owner's workspaces; 0 when this workspace has none."},"planPromptCapacity":{"type":"integer","nullable":true,"description":"Tracked prompts the plan allows across every workspace on it."},"platforms":{"type":"array","nullable":true,"items":{"type":"string"},"description":"AI platforms the plan scans, e.g. chatgpt, perplexity."},"cadence":{"type":"string","nullable":true,"enum":["weekly","every_other_day","daily",null],"description":"How often the plan scans."},"workCredits":{"type":"integer","nullable":true,"description":"Work credits the plan grants per period."}},"required":["status","accessUntil","trialEndsAt","lapseCause","promptCapacity","planPromptCapacity","platforms","cadence","workCredits"]},"AnalyticsOverview":{"type":"object","properties":{"project":{"$ref":"#/components/schemas/AnalyticsProject"},"selection":{"$ref":"#/components/schemas/AnalyticsSelection"},"researchSnapshot":{"type":"object","properties":{"revision":{"type":"string"},"asOf":{"type":"string"},"capped":{"type":"boolean"}},"required":["revision","asOf","capped"],"additionalProperties":{"nullable":true},"description":"Present when the numbers come from a saved research snapshot rather than live scans."},"metricSource":{"type":"string","enum":["analytics_dashboard"]},"metricDefinitions":{"$ref":"#/components/schemas/MetricDefinitions"},"client":{"type":"object","properties":{"name":{"type":"string"},"domain":{"type":"string"},"description":{"type":"string"},"lastScanAt":{"type":"string","nullable":true}},"required":["name","domain","description","lastScanAt"],"additionalProperties":{"nullable":true}},"window":{"$ref":"#/components/schemas/AnalyticsWindow"},"providers":{"type":"array","items":{"$ref":"#/components/schemas/AnalyticsPlatform"}},"overview":{"$ref":"#/components/schemas/AnalyticsOverviewSection"},"metricNotes":{"type":"object","additionalProperties":{"type":"string"},"description":"Per-column caveats, keyed by section.field."},"sectionNotices":{"type":"object","additionalProperties":{"type":"string"},"description":"Degradation notices per section; absent when the section is complete."},"trackedPrompts":{"type":"integer","description":"The same as `promptsTracked` (kept for older clients)."},"promptsTracked":{"type":"integer","description":"Tracked (non-archived) prompts in the selection, answered or not. A prompt added since the last scan counts here before it has any answer."},"promptsMeasured":{"type":"integer","description":"Tracked prompts with at least one answer in the window. Every rate (visibilityScore, citationShare, leaderboard) is computed on these prompts' answers, not on `promptsTracked`."},"lastScanAt":{"type":"string","nullable":true},"nextScanAt":{"type":"string","nullable":true}},"required":["project","selection","metricSource","metricDefinitions","client","window","providers","overview","trackedPrompts","promptsTracked","promptsMeasured","lastScanAt","nextScanAt"],"description":"The analytics dashboard model for the selection: the same numbers the dashboard shows. Percentages are 0-100; a null value means unavailable, never zero. Read `metricDefinitions` before quoting a number."},"AnalyticsProject":{"type":"object","properties":{"id":{"type":"string"},"brandName":{"type":"string"},"siteDomain":{"type":"string"},"status":{"type":"string"},"bootstrapCompletedAt":{"type":"string","format":"date-time","nullable":true},"lastVisibilitySuccessAt":{"type":"string","format":"date-time","nullable":true,"description":"When the scheduler last stamped a successful scan. Prefer `lastScanAt` (overview), which also counts answers the collector landed later."}},"required":["id","brandName","siteDomain","status","bootstrapCompletedAt","lastVisibilitySuccessAt"]},"AnalyticsSelection":{"type":"object","properties":{"range":{"type":"string","description":"7d, 30d or 90d."},"providerIds":{"type":"array","items":{"type":"string"}},"segmentIds":{"type":"array","items":{"type":"string"},"description":"Topic filters."}},"required":["range","providerIds","segmentIds"]},"MetricDefinitions":{"type":"object","properties":{"percentages":{"type":"string"},"prompts":{"type":"string","description":"Which prompts the rates are computed on."},"visibility":{"type":"string"},"citations":{"type":"string"},"scope":{"type":"string"},"counts":{"type":"string","description":"How the answer counts on this and other endpoints relate."}},"required":["percentages","prompts","visibility","citations","scope","counts"],"description":"How to read the numbers; quote these, do not infer."},"AnalyticsWindow":{"type":"object","properties":{"label":{"type":"string"},"comparisonLabel":{"type":"string"},"startDate":{"type":"string"},"endDate":{"type":"string"},"pinned":{"type":"boolean","description":"True when the numbers come from a saved research snapshot."},"answerCount":{"type":"integer","description":"Answers collected in the window on tracked prompts (archived prompts excluded). `/v1/answers` lists answers of every prompt, archived ones included, so its total can be larger."},"providerCount":{"type":"integer"}},"required":["label","comparisonLabel","startDate","endDate","answerCount","providerCount"]},"AnalyticsPlatform":{"type":"object","properties":{"id":{"type":"string","description":"The platform id, e.g. chatgpt, perplexity, copilot."},"label":{"type":"string","description":"The platform id (kept for compatibility; use `displayName` to show it)."},"displayName":{"type":"string","description":"The name to show for the platform, e.g. ChatGPT, Copilot Search (Bing)."},"status":{"type":"string","enum":["active","pending","degraded"],"description":"`active`: answering. `pending`: no answer in the window yet, so its metrics are null. `degraded`: more than half of its latest scan failed (see `health.reason`)."},"health":{"$ref":"#/components/schemas/PlatformHealth"}},"required":["id","label","displayName","status"]},"PlatformHealth":{"type":"object","properties":{"scanAt":{"type":"string","nullable":true,"description":"The newest settled answer on this platform in the latest scan."},"settled":{"type":"integer","description":"Answers in the latest scan that finished, answered or failed."},"answered":{"type":"integer"},"failed":{"type":"integer"},"failureRate":{"type":"number","nullable":true,"description":"0-1 share of settled answers that failed."},"errors":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"count":{"type":"integer"}},"required":["code","count"]},"description":"Failures by error code, most frequent first."},"degraded":{"type":"boolean"},"reason":{"type":"string","nullable":true,"description":"Why the platform is degraded; null when it is not."}},"required":["scanAt","settled","answered","failed","failureRate","errors","degraded","reason"]},"AnalyticsOverviewSection":{"type":"object","properties":{"visibilityScore":{"$ref":"#/components/schemas/MetricValue"},"citationShare":{"allOf":[{"$ref":"#/components/schemas/MetricValue"},{"description":"0-100: share of in-scope answers (complete, assessed answers to unbranded prompts) whose sources include the project's domain. Not the `sources` metric's `citedUrlShare`, which is the domain's share of every URL any answer cited, branded prompts included."}]},"averagePosition":{"$ref":"#/components/schemas/MetricValue"},"trend":{"$ref":"#/components/schemas/TrendSeries"},"leaderboard":{"type":"array","items":{"$ref":"#/components/schemas/LeaderboardEntry"}},"mentionCohortCount":{"type":"integer","nullable":true,"description":"In-scope answers every leaderboard rate is measured against: complete, assessed answers to unbranded prompts. Smaller than `window.answerCount` by the branded, failed and unassessed answers."},"providerBreakdown":{"type":"array","items":{"$ref":"#/components/schemas/PlatformBreakdownRow"}},"changeFeed":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"date":{"type":"string"},"kind":{"type":"string"},"label":{"type":"string"}},"required":["id","date","kind","label"],"additionalProperties":{"nullable":true}}},"topicRankings":{"type":"array","items":{"$ref":"#/components/schemas/TopicRanking"}},"leadWithTopics":{"type":"boolean"}},"required":["visibilityScore","citationShare","averagePosition","trend","leaderboard","providerBreakdown","changeFeed","topicRankings"],"additionalProperties":{"nullable":true}},"MetricValue":{"type":"object","properties":{"value":{"type":"number","nullable":true,"description":"The number. Null means unavailable (nothing measured), never zero."},"delta":{"type":"number","nullable":true,"description":"Change against the equal window before this one, in the same units (percentage points, or places for a position). Null when not comparable."},"deltaAvailable":{"type":"boolean","description":"False when there is no comparable prior window, which differs from a measured zero change."}},"required":["value","delta","deltaAvailable"],"description":"0-100: share of in-scope answers that mention the project's brand."},"TrendSeries":{"type":"object","properties":{"brands":{"type":"array","items":{"$ref":"#/components/schemas/AnalyticsBrand"}},"points":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"scores":{"type":"object","additionalProperties":{"type":"number","nullable":true},"description":"Brand key to score (0-100) that day."}},"required":["date","scores"]}},"unit":{"type":"string"}},"required":["brands","points","unit"]},"AnalyticsBrand":{"type":"object","properties":{"key":{"type":"string","description":"Stable brand key; `owned:*` for the project brand."},"name":{"type":"string"},"domain":{"type":"string","description":"The brand domain; empty when unknown (its citation share is then null)."},"isOwned":{"type":"boolean"}},"required":["key","name","domain","isOwned"]},"LeaderboardEntry":{"type":"object","properties":{"rank":{"type":"integer","nullable":true,"description":"By visibility, 1 is best; ties share a rank. Null when unmeasured."},"brand":{"$ref":"#/components/schemas/AnalyticsBrand"},"visibilityScore":{"type":"number","nullable":true,"description":"0-100: share of in-scope answers that mention the brand."},"delta":{"type":"number","nullable":true},"citationShare":{"type":"number","nullable":true,"description":"0-100: share of in-scope answers citing the brand's domain. Null when unmeasurable."},"averagePosition":{"type":"number","nullable":true,"description":"Mean list position when listed, 1-based; lower is better."},"mentions":{"type":"integer","nullable":true,"description":"Answers mentioning the brand, out of `overview.mentionCohortCount`."}},"required":["rank","brand","visibilityScore","delta","citationShare","averagePosition","mentions"]},"PlatformBreakdownRow":{"type":"object","properties":{"providerId":{"type":"string"},"visibilityScore":{"$ref":"#/components/schemas/MetricValue"},"citationShare":{"$ref":"#/components/schemas/MetricValue"},"averagePosition":{"$ref":"#/components/schemas/MetricValue"},"answerCount":{"type":"integer","description":"Answers on this platform in the window."},"status":{"type":"string","enum":["active","pending","degraded"]},"health":{"$ref":"#/components/schemas/PlatformHealth"}},"required":["providerId","visibilityScore","citationShare","averagePosition","answerCount","status"]},"TopicRanking":{"type":"object","properties":{"rankingAvailable":{"type":"boolean"},"topic":{"type":"string"},"promptCount":{"type":"integer"},"eligibleObservationCount":{"type":"integer","description":"In-scope answers the ranking is computed over."},"ranked":{"type":"array","items":{"type":"object","properties":{"brandKey":{"type":"string"},"visibilityScore":{"type":"number","nullable":true}},"required":["brandKey","visibilityScore"]}}},"required":["topic","promptCount","eligibleObservationCount","ranked"]},"PromptAnalytics":{"type":"object","properties":{"project":{"$ref":"#/components/schemas/AnalyticsProject"},"window":{"$ref":"#/components/schemas/AnalyticsWindow"},"providers":{"type":"array","items":{"$ref":"#/components/schemas/AnalyticsPlatform"}},"metricDefinitions":{"$ref":"#/components/schemas/MetricDefinitions"},"prompts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"topic":{"type":"string"},"intent":{"type":"string"},"metrics":{"$ref":"#/components/schemas/PromptMetrics"}},"required":["id","text","topic","intent","metrics"]}},"filters":{"type":"object","properties":{"intents":{"type":"array","items":{"type":"string"}},"topics":{"type":"array","items":{"type":"string"}},"platforms":{"type":"array","items":{"type":"string"}},"query":{"type":"string"}},"description":"The filters applied."},"pageInfo":{"type":"object","properties":{"hasNextPage":{"type":"boolean"},"limit":{"type":"integer"},"totalCount":{"type":"integer","description":"Prompts across all pages (always sent by this route)."},"nextCursor":{"type":"string","description":"Pass as `cursor` with the same filters for the next page."}},"required":["hasNextPage","limit"]}},"required":["project","window","providers","metricDefinitions","prompts","filters","pageInfo"],"description":"The dashboard prompts table, one row per tracked prompt. A prompt that names a roster brand (branded) is out of scope for the cross-brand rates, so its visibility and citation share are null."},"PromptMetrics":{"type":"object","properties":{"visibilityRank":{"type":"integer","nullable":true},"visibilityScore":{"$ref":"#/components/schemas/MetricValue"},"shareOfVoice":{"allOf":[{"$ref":"#/components/schemas/MetricValue"},{"description":"The brand's mentions as a share of every roster brand mention in the same answers."}]},"averagePosition":{"$ref":"#/components/schemas/MetricValue"},"citationShare":{"$ref":"#/components/schemas/MetricValue"},"citationRank":{"type":"integer","nullable":true},"executions":{"type":"integer","description":"Successful answers collected in the window."}},"required":["visibilityRank","visibilityScore","shareOfVoice","averagePosition","citationShare","citationRank","executions"]},"MetricRows":{"type":"object","properties":{"metric":{"type":"string","enum":["visibility","competitors","citations","platforms","topics","sources"]},"rows":{"type":"array","items":{"$ref":"#/components/schemas/MetricRow"}}},"required":["metric","rows"],"description":"The flattened, chart-ready rows for one metric family, from the same model as the overview. `citationShare` and `visibilityScore` are 0-100; `averagePosition` is a 1-based rank."},"MetricRow":{"type":"object","properties":{"date":{"type":"string","description":"visibility, competitors: the day."},"brandKey":{"type":"string"},"brand":{"type":"string"},"domain":{"type":"string"},"isOwned":{"type":"boolean"},"visibilityScore":{"type":"number","nullable":true,"description":"0-100."},"citationShare":{"type":"number","nullable":true,"description":"citations, platforms: 0-100 brand citation share (in-scope answers citing the brand domain). sources: the same value as `citedUrlShare`."},"citedUrlShare":{"type":"number","nullable":true,"description":"sources: 0-100 share of every URL cited in the window's answers (branded prompts included) that is on this domain. Not overview.citationShare, which counts in-scope answers citing the project's domain."},"mentions":{"type":"number","nullable":true},"mentionCohortCount":{"type":"number","nullable":true},"averagePosition":{"type":"number","nullable":true},"rank":{"type":"number","nullable":true},"platform":{"type":"string","description":"platforms: the platform id."},"answerCount":{"type":"number"},"status":{"type":"string","description":"platforms: active, pending or degraded."},"latestScanFailed":{"type":"number","nullable":true},"latestScanSettled":{"type":"number","nullable":true},"latestScanFailureRate":{"type":"number","nullable":true,"description":"platforms: 0-1."},"statusReason":{"type":"string","nullable":true,"description":"platforms: why it is degraded."},"topic":{"type":"string","description":"topics: the topic."},"promptCount":{"type":"number"},"eligibleObservationCount":{"type":"number"},"rankingAvailable":{"type":"boolean"},"citations":{"type":"number","description":"sources: cited URLs on this domain in the window."},"answers":{"type":"number","description":"sources: answers that cited this domain at least once."},"answerShare":{"type":"number","nullable":true,"description":"sources: 0-100 share of the window's answers that cited this domain."}},"additionalProperties":{"nullable":true},"description":"One chart row. Fields present depend on the metric: visibility/competitors (date, brand, visibilityScore), citations, which is brand citation share (brand, visibilityScore, citationShare, mentions, rank), platforms (platform, visibilityScore, citationShare, answerCount, status, latest-scan failures), topics (topic, brand, visibilityScore), sources, the cited source domains, most cited first (rank, domain, isOwned, citations, citedUrlShare of all cited URLs, answers, answerShare of all answers, answerCount: answers in the window, the same on every row)."},"BrandProfile":{"type":"object","properties":{"version":{"type":"integer","example":3},"positioning":{"type":"string","nullable":true},"audience":{"type":"string","nullable":true},"productDescription":{"type":"string","nullable":true},"tone":{"type":"string","nullable":true},"contentStyle":{"type":"string","nullable":true},"competitors":{"type":"array","items":{"type":"string"}},"competitorRoster":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"domain":{"type":"string","nullable":true},"aliases":{"type":"array","items":{"type":"string"}}},"required":["name","domain","aliases"]},"description":"How the next scan matches each competitor: its domain and other names. Set them with POST or PATCH /v1/brand/competitors."},"excludedTopics":{"type":"array","items":{"type":"string"}},"competitorsPinnedAt":{"type":"string","nullable":true,"description":"ISO-8601 UTC when the competitor list was pinned; null when not pinned."},"notConfusedWith":{"type":"array","items":{"$ref":"#/components/schemas/NotConfusedWith"},"description":"Other products that share the brand's name. An answer about one of them is not counted as a mention of the brand. `source` is `user` (set by a person or agent) or `research` (added when research found answers citing it). Set the list with PATCH /v1/brand."}},"required":["version","positioning","audience","productDescription","tone","contentStyle","competitors","competitorRoster","excludedTopics","competitorsPinnedAt","notConfusedWith"]},"NotConfusedWith":{"type":"object","properties":{"name":{"type":"string","example":"Jam"},"domain":{"type":"string","nullable":true,"example":"jam.dev"},"terms":{"type":"array","items":{"type":"string"},"example":["bug report"]},"source":{"type":"string","enum":["user","research"]}},"required":["name","domain","terms","source"]},"SaveBrandPositioningResult":{"type":"object","properties":{"version":{"type":"integer","example":4},"superseded":{"type":"boolean","description":"Whether a prior active version was superseded."},"notConfusedWith":{"type":"array","items":{"$ref":"#/components/schemas/NotConfusedWith"},"description":"The stored list, when the request sent `notConfusedWith`."}},"required":["version","superseded"]},"SaveBrandPositioning":{"type":"object","properties":{"positioning":{"type":"string","minLength":3,"maxLength":2000,"description":"The brand positioning statement. Sending it authors a new version."},"audience":{"type":"string","nullable":true},"productDescription":{"type":"string","nullable":true},"tone":{"type":"string","nullable":true},"competitors":{"type":"array","items":{"type":"string"}},"excludedTopics":{"type":"array","items":{"type":"string"}},"rawIntent":{"type":"string","description":"Verbatim free-text the author typed."},"notConfusedWith":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80,"description":"What answers call the other product.","example":"Jam"},"domain":{"type":"string","nullable":true,"maxLength":253,"description":"The other product's own domain.","example":"jam.dev"},"terms":{"type":"array","items":{"type":"string","minLength":3,"maxLength":80},"maxItems":8,"description":"Phrases that only describe the other product.","example":["bug report"]}},"required":["name"]},"maxItems":10,"description":"Other products with the brand's name (e.g. Jam at jam.dev for Jam at spreadjam.com). Replaces the stored list; [] clears it. Each needs a domain or terms. Answers about them stop counting as mentions from the next scan; stored answers are not rewritten."}}},"CompetitorsResult":{"type":"object","properties":{"count":{"type":"integer","example":5}},"required":["count"]},"PinCompetitors":{"type":"object","properties":{"competitors":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":64,"description":"The competitor list to pin (1 to 64 names)."}},"required":["competitors"]},"Recalibration":{"type":"object","properties":{"runId":{"type":"string"},"dispatch":{"type":"object","properties":{"status":{"type":"string"},"outboxId":{"type":"string","nullable":true}},"required":["status","outboxId"]}},"required":["runId","dispatch"]},"Prompts":{"type":"object","properties":{"prompts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"currentVersionId":{"type":"string","nullable":true,"description":"The version the text comes from; changes on every reword."},"topic":{"type":"string","nullable":true},"persona":{"type":"string","enum":["discoverer","buyer","evaluator","competitor","branded","control"],"description":"The buyer-journey persona the prompt was written for; the values POST /v1/prompts takes."},"intent":{"type":"string","nullable":true},"list":{"type":"string","enum":["tracked","archived"],"description":"`tracked` (scanned, or paused) or `archived` (removed; kept for its history)."},"status":{"type":"string","description":"The detailed state: active, paused, draft, pending_baseline, stale, failed_all_platforms or archived."},"createdBy":{"type":"string"},"pausedReason":{"type":"string","nullable":true},"archivedBy":{"type":"string","nullable":true},"archivedReason":{"type":"string","nullable":true},"hasObservations":{"type":"boolean"},"branded":{"type":"boolean","description":"True when the prompt names a tracked brand: yours (by name, alias, domain label or domain) or a competitor. Computed from the text; Jam never rewrites a prompt to change it."},"scored":{"type":"boolean","description":"Whether its answers count toward visibility, citation share and position. Only prompts that name no tracked brand are scored, for every brand alike; the answers of the others are still stored and readable."},"unscoredReason":{"type":"string","nullable":true,"enum":["names_your_brand","names_a_competitor",null],"description":"Why the prompt is not scored; null when it is."},"updatedAt":{"type":"string","description":"ISO-8601 UTC timestamp."}},"required":["id","text","currentVersionId","topic","persona","intent","list","status","createdBy","pausedReason","archivedBy","archivedReason","hasObservations","branded","scored","unscoredReason","updatedAt"]},"description":"Tracked prompts first (most recently changed first), then archived ones."},"counts":{"type":"object","properties":{"tracked":{"type":"integer"},"paused":{"type":"integer","description":"Tracked prompts that are paused."},"archived":{"type":"integer"}},"required":["tracked","paused","archived"],"description":"Counts across every page, whatever `list` filter is applied."},"pageInfo":{"$ref":"#/components/schemas/PageInfo"},"tracked":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"currentVersionId":{"type":"string","nullable":true,"description":"The version the text comes from; changes on every reword."},"topic":{"type":"string","nullable":true},"persona":{"type":"string","enum":["discoverer","buyer","evaluator","competitor","branded","control"],"description":"The buyer-journey persona the prompt was written for; the values POST /v1/prompts takes."},"intent":{"type":"string","nullable":true},"status":{"type":"string","description":"The detailed state: active, paused, draft, pending_baseline, stale, failed_all_platforms or archived."},"createdBy":{"type":"string"},"pausedReason":{"type":"string","nullable":true},"archivedBy":{"type":"string","nullable":true},"archivedReason":{"type":"string","nullable":true},"hasObservations":{"type":"boolean"},"branded":{"type":"boolean","description":"True when the prompt names a tracked brand: yours (by name, alias, domain label or domain) or a competitor. Computed from the text; Jam never rewrites a prompt to change it."},"scored":{"type":"boolean","description":"Whether its answers count toward visibility, citation share and position. Only prompts that name no tracked brand are scored, for every brand alike; the answers of the others are still stored and readable."},"unscoredReason":{"type":"string","nullable":true,"enum":["names_your_brand","names_a_competitor",null],"description":"Why the prompt is not scored; null when it is."},"updatedAt":{"type":"string","description":"ISO-8601 UTC timestamp."}},"required":["id","text","currentVersionId","topic","persona","intent","status","createdBy","pausedReason","archivedBy","archivedReason","hasObservations","branded","scored","unscoredReason","updatedAt"]},"deprecated":true,"description":"Deprecated, kept for clients written before paging: every tracked prompt, sent only when the request has no `limit`, `cursor` or `list`. Read `prompts` instead."},"archived":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"currentVersionId":{"type":"string","nullable":true,"description":"The version the text comes from; changes on every reword."},"topic":{"type":"string","nullable":true},"persona":{"type":"string","enum":["discoverer","buyer","evaluator","competitor","branded","control"],"description":"The buyer-journey persona the prompt was written for; the values POST /v1/prompts takes."},"intent":{"type":"string","nullable":true},"status":{"type":"string","description":"The detailed state: active, paused, draft, pending_baseline, stale, failed_all_platforms or archived."},"createdBy":{"type":"string"},"pausedReason":{"type":"string","nullable":true},"archivedBy":{"type":"string","nullable":true},"archivedReason":{"type":"string","nullable":true},"hasObservations":{"type":"boolean"},"branded":{"type":"boolean","description":"True when the prompt names a tracked brand: yours (by name, alias, domain label or domain) or a competitor. Computed from the text; Jam never rewrites a prompt to change it."},"scored":{"type":"boolean","description":"Whether its answers count toward visibility, citation share and position. Only prompts that name no tracked brand are scored, for every brand alike; the answers of the others are still stored and readable."},"unscoredReason":{"type":"string","nullable":true,"enum":["names_your_brand","names_a_competitor",null],"description":"Why the prompt is not scored; null when it is."},"updatedAt":{"type":"string","description":"ISO-8601 UTC timestamp."}},"required":["id","text","currentVersionId","topic","persona","intent","status","createdBy","pausedReason","archivedBy","archivedReason","hasObservations","branded","scored","unscoredReason","updatedAt"]},"deprecated":true,"description":"Deprecated, as `tracked`: every archived prompt, sent only on an unpaged request."}},"required":["prompts","counts","pageInfo"]},"PageInfo":{"type":"object","properties":{"limit":{"type":"integer","description":"The page size used.","example":100},"hasNextPage":{"type":"boolean"},"nextCursor":{"type":"string","description":"Pass as `cursor`, with the same filters, for the next page. Absent on the last page."},"totalCount":{"type":"integer","description":"Matching items across every page."}},"required":["limit","hasNextPage","totalCount"]},"PromptCap":{"type":"object","properties":{"activeCount":{"type":"integer","example":12},"cap":{"type":"integer","description":"The effective prompt cap; -1 means unlimited.","example":50},"plan":{"type":"object","nullable":true,"properties":{"promptCapacity":{"type":"integer","description":"This workspace's share of the plan: the cap."},"planPromptCapacity":{"type":"integer","description":"Tracked prompts the plan allows across every workspace on it."},"unassignedPromptCapacity":{"type":"integer","description":"Prompts the plan pays for that no workspace holds."},"split":{"type":"boolean","description":"True when this workspace holds less than the whole plan."},"canManage":{"type":"boolean","description":"True when the key's creator pays for the plan and can move slots between workspaces (PUT /v1/billing/allocations)."}},"required":["promptCapacity","planPromptCapacity","unassignedPromptCapacity","split","canManage"],"description":"The prompt plan behind the cap; null on a legacy plan."}},"required":["activeCount","cap"]},"PromptTopics":{"type":"object","properties":{"topics":{"type":"array","items":{"type":"object","properties":{"topic":{"type":"string","nullable":true,"description":"The topic label; null for prompts without one."},"count":{"type":"integer","description":"Live prompts (active or paused) in this topic.","example":7}},"required":["topic","count"]}}},"required":["topics"]},"RemoveTopicResult":{"type":"object","properties":{"topic":{"type":"string"},"archivedPromptIds":{"type":"array","items":{"type":"string"}},"activeCount":{"type":"integer","description":"Slots occupied after the removal.","example":43},"fillStopped":{"type":"boolean","description":"Present and true when the removal stopped a running Suggest more fill."},"note":{"type":"string","description":"Present when the fill was stopped: what happened."}},"required":["topic","archivedPromptIds","activeCount"]},"SuggestPromptsResult":{"type":"object","properties":{"suggestionId":{"type":"string"},"requested":{"type":"integer","description":"The prompt count the fill works toward.","example":400},"activeCount":{"type":"integer","example":50},"cap":{"type":"integer","description":"The effective prompt cap; -1 means unlimited.","example":400}},"required":["suggestionId","requested","activeCount","cap"]},"SuggestPrompts":{"type":"object","properties":{"target":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"How many tracked prompts to end at. Defaults to the plan capacity and never exceeds it.","example":400},"topics":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50,"description":"Restrict suggestions to these topics. Defaults to the project's topics."}}},"PromptSuggestion":{"type":"object","properties":{"suggestion":{"type":"object","nullable":true,"properties":{"suggestionId":{"type":"string"},"status":{"type":"string","enum":["queued","running","done","failed"]},"requested":{"type":"integer"},"added":{"type":"integer","description":"Prompts the fill has tracked so far."},"startedAt":{"type":"string","description":"ISO-8601 UTC timestamp."},"finishedAt":{"type":"string","nullable":true},"reason":{"type":"string","nullable":true,"description":"Null while the fill runs and when it reached its target. Otherwise why it ended short or failed: no_new_distinct_prompts (Jam found no more distinct prompts, even in new topics), writer_failed, no_topics, no_context, max_rounds, error, user_removed (prompts were removed or paused while it ran) or cancelled."},"detail":{"type":"string","nullable":true,"description":"The error text behind `writer_failed`, for support. Null otherwise."}},"required":["suggestionId","status","requested","added","startedAt","finishedAt","reason","detail"]}},"required":["suggestion"]},"CancelPromptSuggestionResult":{"type":"object","properties":{"suggestion":{"type":"object","properties":{"suggestionId":{"type":"string"},"status":{"type":"string","enum":["queued","running","done","failed"]},"requested":{"type":"integer"},"added":{"type":"integer","description":"Prompts the fill has tracked so far."},"startedAt":{"type":"string","description":"ISO-8601 UTC timestamp."},"finishedAt":{"type":"string","nullable":true},"reason":{"type":"string","nullable":true,"description":"Null while the fill runs and when it reached its target. Otherwise why it ended short or failed: no_new_distinct_prompts (Jam found no more distinct prompts, even in new topics), writer_failed, no_topics, no_context, max_rounds, error, user_removed (prompts were removed or paused while it ran) or cancelled."},"detail":{"type":"string","nullable":true,"description":"The error text behind `writer_failed`, for support. Null otherwise."}},"required":["suggestionId","status","requested","added","startedAt","finishedAt","reason","detail"]}},"required":["suggestion"]},"AddPromptResult":{"type":"object","properties":{"promptId":{"type":"string"},"existing":{"type":"boolean","description":"True when the project already tracked this text: that prompt is returned unchanged (its topic, persona, intent and paused state are kept) and the status is 200. False for a new prompt (201)."},"activeCount":{"type":"integer","example":13},"cap":{"type":"integer","description":"The effective prompt cap; -1 means unlimited.","example":50}},"required":["promptId","existing","activeCount","cap"]},"AddPrompt":{"type":"object","properties":{"text":{"type":"string","minLength":3,"maxLength":500,"description":"Prompt wording (3 to 500 characters)."},"persona":{"type":"string","enum":["discoverer","buyer","evaluator","competitor","branded","control"],"description":"Buyer-journey persona; defaults to discoverer."},"topic":{"type":"string","nullable":true,"description":"Optional topic/theme label."},"intent":{"type":"string","nullable":true,"description":"Optional buyer intent."}},"required":["text"]},"EditPromptResult":{"type":"object","properties":{"promptId":{"type":"string"},"changed":{"type":"boolean","description":"Whether the wording or the topic actually changed."},"wordingChange":{"type":"string","enum":["minor","major","none"],"description":"How much the wording changed; `none` when only the topic changed (or nothing did)."},"topic":{"type":"string","nullable":true,"description":"The prompt's topic after the edit."},"currentVersionId":{"type":"string","nullable":true,"description":"The version the wording now comes from; unchanged when only the topic changed."},"ignored":{"type":"array","items":{"type":"string"},"description":"Fields sent that this endpoint does not change (persona and intent are fixed once a prompt is added; remove it and add it again to change them). Present only when something was ignored.","example":["persona"]}},"required":["promptId","changed","wordingChange","topic","currentVersionId"]},"EditPrompt":{"type":"object","properties":{"text":{"type":"string","minLength":3,"maxLength":500,"description":"The new prompt wording (3 to 500 characters). Omit to keep it."},"topic":{"type":"string","nullable":true,"maxLength":200,"description":"The new topic label (at most 200 characters); null or blank clears it. Changing only the topic keeps the wording, the version and the history.","example":"CRM for startups"},"expectedVersionId":{"type":"string","nullable":true,"description":"The prompt's `currentVersionId` as you read it. When given and the prompt has changed since, the edit is refused with 409 and nothing is written."}}},"BulkEditPromptsResult":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"changed":{"type":"boolean","description":"Whether the wording, the topic or the paused state actually changed."},"wordingChange":{"type":"string","enum":["minor","major","none"],"description":"`none` when only the topic or the paused state changed (or nothing did)."},"status":{"type":"string","enum":["active","paused","archived"],"description":"The prompt's status after the call: present only on items that sent `paused` or `remove`."}},"required":["id","changed","wordingChange"]}},"fillStopped":{"type":"boolean","description":"Present and true when a removal or pause stopped a running Suggest more fill."},"note":{"type":"string","description":"Present when the fill was stopped: what happened."}},"required":["results"]},"BulkEditPrompts":{"type":"object","properties":{"prompts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The prompt to change (a prompt id from GET /v1/prompts).","example":"0b6f3c1e-2d4a-4f8e-9c1b-7a2e5d9f3c10"},"text":{"type":"string","minLength":3,"maxLength":500,"description":"The new wording (3 to 500 characters). Omit to keep it."},"topic":{"type":"string","nullable":true,"maxLength":200,"description":"The new topic label (at most 200 characters); null or blank clears it. Changing only the topic keeps the wording, the version and the history.","example":"CRM for startups"},"paused":{"type":"boolean","description":"true pauses tracking (from active), false resumes it (from paused). Omit to keep. A prompt already in that state is left as it is."},"pausedReason":{"type":"string","nullable":true,"maxLength":500,"description":"Optional note kept on a pause (at most 500 characters)."},"remove":{"type":"boolean","description":"true stops tracking the prompt (as DELETE /v1/prompts/{promptId}); sent alone. An already removed prompt is left as it is."}},"required":["id"]},"minItems":1,"maxItems":100,"description":"The prompts to change by id (1 to 100), each with text, topic, paused or any together, or remove: true."}},"required":["prompts"]},"BulkInsertPromptsResult":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"promptId":{"type":"string"},"created":{"type":"boolean","description":"true if newly tracked, false if an existing prompt was reused."}},"required":["promptId","created"]}},"activeCount":{"type":"integer","example":14},"cap":{"type":"integer","description":"The effective prompt cap; -1 means unlimited.","example":50}},"required":["results","activeCount","cap"]},"BulkInsertPrompts":{"type":"object","properties":{"prompts":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","minLength":3,"maxLength":500,"description":"Prompt wording (3 to 500 characters)."},"persona":{"type":"string","enum":["discoverer","buyer","evaluator","competitor","branded","control"],"description":"Buyer-journey persona; defaults to discoverer."},"topic":{"type":"string","nullable":true,"description":"Optional topic/theme label."},"intent":{"type":"string","nullable":true,"description":"Optional buyer intent."}},"required":["text"]},"minItems":1,"maxItems":100,"description":"The prompts to track (1 to 100). A text matching an existing tracked prompt reuses it."}},"required":["prompts"]},"PausePromptResult":{"type":"object","properties":{"promptId":{"type":"string"},"status":{"type":"string"}},"required":["promptId","status"]},"PausePrompt":{"type":"object","properties":{"paused":{"type":"boolean","description":"true to pause tracking, false to resume."},"reason":{"type":"string","nullable":true,"description":"Optional note on why the prompt was paused."}},"required":["paused"]},"RemovePromptResult":{"type":"object","properties":{"promptId":{"type":"string"},"fillStopped":{"type":"boolean","description":"Present and true when the removal stopped a running Suggest more fill."},"note":{"type":"string","description":"Present when the fill was stopped: what happened."}},"required":["promptId"]},"Prompt":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"currentVersionId":{"type":"string","nullable":true,"description":"The version the text comes from; changes on every reword."},"topic":{"type":"string","nullable":true},"persona":{"type":"string","enum":["discoverer","buyer","evaluator","competitor","branded","control"],"description":"The buyer-journey persona the prompt was written for; the values POST /v1/prompts takes."},"intent":{"type":"string","nullable":true},"list":{"type":"string","enum":["tracked","archived"],"description":"`tracked` (scanned, or paused) or `archived` (removed; kept for its history)."},"status":{"type":"string","description":"The detailed state: active, paused, draft, pending_baseline, stale, failed_all_platforms or archived."},"createdBy":{"type":"string"},"pausedReason":{"type":"string","nullable":true},"archivedBy":{"type":"string","nullable":true},"archivedReason":{"type":"string","nullable":true},"hasObservations":{"type":"boolean"},"branded":{"type":"boolean","description":"True when the prompt names a tracked brand: yours (by name, alias, domain label or domain) or a competitor. Computed from the text; Jam never rewrites a prompt to change it."},"scored":{"type":"boolean","description":"Whether its answers count toward visibility, citation share and position. Only prompts that name no tracked brand are scored, for every brand alike; the answers of the others are still stored and readable."},"unscoredReason":{"type":"string","nullable":true,"enum":["names_your_brand","names_a_competitor",null],"description":"Why the prompt is not scored; null when it is."},"updatedAt":{"type":"string","description":"ISO-8601 UTC timestamp."}},"required":["id","text","currentVersionId","topic","persona","intent","list","status","createdBy","pausedReason","archivedBy","archivedReason","hasObservations","branded","scored","unscoredReason","updatedAt"]},"ReplacePromptResult":{"type":"object","properties":{"promptId":{"type":"string"},"archivedPromptId":{"type":"string"}},"required":["promptId","archivedPromptId"]},"RewordPrompt":{"type":"object","properties":{"text":{"type":"string","minLength":3,"maxLength":500,"description":"The new prompt wording (3 to 500 characters)."}},"required":["text"]},"ApiKeyList":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"keyPrefix":{"type":"string"},"createdAt":{"type":"string","description":"ISO-8601 UTC timestamp."},"lastUsedAt":{"type":"string","nullable":true},"revokedAt":{"type":"string","nullable":true}},"required":["id","name","keyPrefix","createdAt","lastUsedAt","revokedAt"]}}},"required":["keys"]},"IssuedApiKey":{"type":"object","properties":{"id":{"type":"string"},"key":{"type":"string","description":"The raw secret key. Shown once, at creation; store it now."},"keyPrefix":{"type":"string"}},"required":["id","key","keyPrefix"]},"IssueApiKey":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80,"description":"A label so you can find the key later."}},"required":["name"]},"Opportunities":{"type":"object","properties":{"opportunities":{"type":"array","items":{"$ref":"#/components/schemas/Opportunity"}},"pageInfo":{"$ref":"#/components/schemas/PageInfo"}},"required":["opportunities","pageInfo"]},"Opportunity":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"kind":{"type":"string","enum":["create_page","update_page"]},"changeKind":{"type":"string","nullable":true,"description":"For an update: what to change on the page."},"targetPageId":{"type":"string","nullable":true,"description":"For an update: the page it changes."},"title":{"type":"string"},"rationale":{"type":"string"},"topic":{"type":"string"},"persona":{"type":"string"},"intent":{"type":"string"},"score":{"type":"number"},"createdAt":{"type":"string","description":"ISO-8601 UTC timestamp."},"state":{"type":"string","enum":["planned","dismissed","writing","claimed","creation_failed","open"]},"dismissedAt":{"type":"string","nullable":true,"description":"ISO-8601 UTC timestamp."},"creationFailure":{"type":"object","nullable":true,"properties":{"code":{"type":"string","enum":["insufficient_credits","agent_failed","failed"]},"message":{"type":"string"},"at":{"type":"string","description":"ISO-8601 UTC timestamp."}},"required":["code","message","at"],"description":"The last failure to create content from it, if any, with a readable reason."},"contentId":{"type":"string","nullable":true,"description":"The content created from it, if any."},"claim":{"type":"object","nullable":true,"properties":{"kind":{"type":"string","enum":["pipeline","agent"]},"claimedAt":{"type":"string","description":"ISO-8601 UTC timestamp."},"expiresAt":{"type":"string","nullable":true,"description":"ISO-8601 UTC timestamp."}},"required":["kind","claimedAt","expiresAt"],"description":"Who holds it now: a Jam run (`pipeline`, state `writing`) or an external agent (`agent`, state `claimed`). Agent claims expire."}},"required":["id","projectId","kind","changeKind","targetPageId","title","rationale","topic","persona","intent","score","createdAt","state","dismissedAt","creationFailure","contentId","claim"]},"OpportunityDetail":{"allOf":[{"$ref":"#/components/schemas/Opportunity"},{"type":"object","properties":{"prompts":{"type":"array","items":{"type":"object","properties":{"promptId":{"type":"string"},"promptVersionId":{"type":"string","nullable":true},"promptRunId":{"type":"string","nullable":true},"platform":{"type":"string","nullable":true},"evidenceKind":{"type":"string"}},"required":["promptId","promptVersionId","promptRunId","platform","evidenceKind"]}},"demandQueries":{"type":"array","items":{"type":"object","properties":{"demandQueryId":{"type":"string"},"evidenceKind":{"type":"string"}},"required":["demandQueryId","evidenceKind"]}}},"required":["prompts","demandQueries"]}]},"Accepted":{"type":"object","properties":{"status":{"type":"string","enum":["accepted"]}},"required":["status"],"description":"Accepted; the result appears on the resource the request writes."},"OpportunityBrief":{"type":"object","properties":{"opportunityId":{"type":"string"},"kind":{"type":"string","enum":["create_page","update_page"]},"title":{"type":"string"},"rationale":{"type":"string"},"topic":{"type":"string"},"persona":{"type":"string"},"intent":{"type":"string"},"targetPrompts":{"type":"array","items":{"type":"string"},"description":"The questions users ask that this article should answer."},"voice":{"type":"object","properties":{"brand":{"type":"object","nullable":true,"properties":{"name":{"type":"string","nullable":true},"positioning":{"type":"string","nullable":true},"audience":{"type":"string","nullable":true},"productDescription":{"type":"string","nullable":true},"tone":{"type":"string","nullable":true},"contentStyle":{"type":"string","nullable":true},"excludedTopics":{"type":"array","items":{"type":"string"}}},"required":["name","positioning","audience","productDescription","tone","contentStyle","excludedTopics"]},"language":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"nativeName":{"type":"string"},"country":{"type":"string","nullable":true}},"required":["code","name","nativeName","country"]}},"required":["brand","language"]},"research":{"type":"object","nullable":true,"properties":{"evidenceBundleId":{"type":"string"},"sources":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","nullable":true},"facts":{"type":"array","items":{"type":"string"}}},"required":["url","facts"]}}},"required":["evidenceBundleId","sources"],"description":"The sources Jam read and the facts it recorded from each."},"articlePlan":{"$ref":"#/components/schemas/ArticlePlan"},"creditsCharged":{"type":"integer","description":"Credits this read charged. Always 0: the article plan is included in the plan."},"planUnavailable":{"type":"string","nullable":true,"description":"Why no plan could be written, when `articlePlan` is null."},"delivery":{"type":"object","nullable":true,"properties":{"repository":{"type":"string"},"contentRoot":{"type":"string"},"fileExtension":{"type":"string"},"requiredFrontmatter":{"type":"array","items":{"type":"string"}},"publicRoutePattern":{"type":"string"}},"required":["repository","contentRoot","fileExtension","requiredFrontmatter","publicRoutePattern"],"description":"The GitHub destination the article will be delivered to, when the project has one configured."},"submit":{"type":"object","properties":{"method":{"type":"string","enum":["POST"]},"path":{"type":"string","enum":["/v1/content"]},"body":{"type":"object","properties":{"opportunityId":{"type":"string"},"bundleId":{"type":"string","nullable":true},"article":{"type":"object","properties":{"title":{"type":"string"},"metaDescription":{"type":"string"},"slug":{"type":"string"},"keywords":{"type":"array","items":{"type":"string"}},"bodyMarkdown":{"type":"string"}},"required":["title","metaDescription","slug","keywords","bodyMarkdown"]}},"required":["opportunityId","bundleId","article"]}},"required":["method","path","body"],"description":"The exact request that stores the finished article; fill the `article` fields."}},"required":["opportunityId","kind","title","rationale","topic","persona","intent","targetPrompts","voice","research","articlePlan","creditsCharged","planUnavailable","delivery","submit"]},"ArticlePlan":{"type":"object","nullable":true,"properties":{"title":{"type":"string"},"intent":{"type":"string"},"persona":{"type":"string"},"angle":{"type":"string"},"evidenceIds":{"type":"array","items":{"type":"string"}},"outline":{"type":"array","items":{"type":"object","properties":{"heading":{"type":"string"},"intent":{"type":"string"},"evidenceIds":{"type":"array","items":{"type":"string"}}},"required":["heading","intent","evidenceIds"]}}},"required":["title","intent","persona","angle","evidenceIds","outline"]},"ClaimOpened":{"type":"object","properties":{"claimId":{"type":"string"},"expiresAt":{"type":"string","description":"ISO-8601; the claim is released after this."}},"required":["claimId","expiresAt"]},"Claim":{"type":"object","properties":{},"additionalProperties":{"nullable":true},"description":"No fields; send `{}`."},"AgentFailure":{"type":"object","properties":{"reason":{"type":"string","maxLength":2000,"pattern":"\\S","description":"Why the article could not be written, in words a person can read."}},"required":["reason"]},"PlanBatch":{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":20,"description":"Top open article rows to draft, 1 to 20; 3 when absent."}}},"CreatedContent":{"type":"object","properties":{"contentId":{"type":"string"},"revisionId":{"type":"string"}},"required":["contentId","revisionId"]},"CreateContent":{"type":"object","properties":{"opportunityId":{"type":"string","format":"uuid","description":"An id from GET /v1/opportunities, or a new_page action's non-null opportunityId."},"article":{"$ref":"#/components/schemas/Article"},"bundleId":{"type":"string","format":"uuid","description":"The evidence bundle the draft was written from, if any."}},"required":["opportunityId","article"],"example":{"opportunityId":"0b7d6f0e-5f7a-4c43-9a51-2f1d1f0a9c11","article":{"title":"How do I track where my brand shows up in AI answers?","metaDescription":"A practical guide to measuring how often ChatGPT, Perplexity and Gemini mention your brand, and what to change.","slug":"track-brand-in-ai-answers","keywords":["AI visibility","brand mentions in ChatGPT","GEO"],"bodyMarkdown":"Most teams find out how AI answers describe them by accident.\n\n## What does tracking AI answers measure?\n\nIt measures how often a brand is named or cited across a fixed set of prompts."}}},"Article":{"type":"object","properties":{"title":{"type":"string","pattern":"\\S","description":"The article headline."},"metaDescription":{"type":"string","description":"One sentence of at most 160 characters."},"slug":{"type":"string","pattern":"\\S","description":"Lowercase words joined by hyphens."},"keywords":{"type":"array","items":{"type":"string"},"description":"An array of the terms the article targets."},"bodyMarkdown":{"type":"string","pattern":"\\S","description":"The article body in markdown with no YAML frontmatter, no top-level title heading, and sections as level-2 headings."}},"required":["title","metaDescription","slug","keywords","bodyMarkdown"],"description":"One revision's provider-neutral content: exactly these five fields (no `body` or `summary`)."},"ContentList":{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/Content"}},"pageInfo":{"$ref":"#/components/schemas/PageInfo"}},"required":["content","pageInfo"]},"Content":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"opportunityId":{"type":"string"},"createdAt":{"type":"string","description":"ISO-8601 UTC timestamp."},"discardedAt":{"type":"string","nullable":true,"description":"ISO-8601 UTC timestamp."},"updateFailure":{"type":"object","nullable":true,"properties":{"code":{"type":"string","enum":["insufficient_credits","agent_failed","failed"]},"message":{"type":"string"},"at":{"type":"string","description":"ISO-8601 UTC timestamp."}},"required":["code","message","at"],"description":"The last failure to regenerate or edit it, if any."},"currentRevision":{"$ref":"#/components/schemas/RevisionSummary"},"state":{"type":"string","enum":["discarded","drafted"]},"updateFailed":{"type":"boolean","description":"Present while drafted: whether the last update failed after the current revision was stored."}},"required":["id","projectId","opportunityId","createdAt","discardedAt","updateFailure","currentRevision","state"]},"RevisionSummary":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"source":{"type":"string","enum":["pipeline","human","agent"],"description":"Who wrote it: Jam (`pipeline`), a person (`human`) or an external agent (`agent`)."},"basisRevisionId":{"type":"string","nullable":true,"description":"The revision it was written from, if any."},"evidenceBundleId":{"type":"string","nullable":true},"findings":{"type":"array","items":{"type":"object","properties":{"check":{"type":"string","minLength":1},"code":{"type":"string","minLength":1},"severity":{"type":"string","enum":["blocking","advisory"]},"message":{"type":"string"},"quote":{"type":"string","nullable":true}},"required":["check","code","severity","message","quote"]},"description":"Review findings stored with it; `review_unavailable` means the draft was kept without a review."},"needsReview":{"type":"boolean","description":"Whether a person should review it before publishing."},"createdAt":{"type":"string","description":"ISO-8601 UTC timestamp."}},"required":["id","title","source","basisRevisionId","evidenceBundleId","findings","needsReview","createdAt"]},"ContentItem":{"type":"object","properties":{"content":{"$ref":"#/components/schemas/Content"},"currentRevision":{"$ref":"#/components/schemas/Revision"}},"required":["content","currentRevision"]},"Revision":{"allOf":[{"$ref":"#/components/schemas/RevisionSummary"},{"type":"object","properties":{"contentId":{"type":"string"},"article":{"$ref":"#/components/schemas/Article"}},"required":["contentId","article"]}]},"RegenerateContent":{"type":"object","properties":{"basisRevisionId":{"type":"string","format":"uuid","description":"The revision being replaced, normally the current one."}},"required":["basisRevisionId"]},"EditRequest":{"type":"object","properties":{"basisRevisionId":{"type":"string","format":"uuid","description":"The revision to edit, normally the current one."},"instruction":{"type":"string","maxLength":4000,"pattern":"\\S","description":"What to change."}},"required":["basisRevisionId","instruction"]},"Revisions":{"type":"object","properties":{"revisions":{"type":"array","items":{"$ref":"#/components/schemas/RevisionSummary"}}},"required":["revisions"]},"AddedRevision":{"type":"object","properties":{"revisionId":{"type":"string"}},"required":["revisionId"]},"AddRevision":{"type":"object","properties":{"article":{"$ref":"#/components/schemas/Article"},"basisRevisionId":{"type":"string","format":"uuid","description":"The revision this one was written from, if any."},"bundleId":{"type":"string","format":"uuid","description":"The evidence bundle it was written from, if any."}},"required":["article"]},"ContentDestinations":{"type":"object","properties":{"destinations":{"type":"array","items":{"$ref":"#/components/schemas/ContentDestination"}}},"required":["destinations"]},"ContentDestination":{"type":"object","properties":{"destinationId":{"type":"string"},"platform":{"type":"string","enum":["github"]},"state":{"type":"string","enum":["live","cancelled","failed","in_review","scheduled"]},"publishAt":{"type":"string","description":"The latest delivery's time."},"latestDeliveryId":{"type":"string","description":"The latest delivery, read from the deliveries route."}},"required":["destinationId","platform","state","publishAt","latestDeliveryId"]},"AcceptedDelivery":{"type":"object","properties":{"status":{"type":"string","enum":["accepted"]},"deliveryId":{"type":"string","description":"The delivery to follow under /v1/content/{contentId}/deliveries."}},"required":["status","deliveryId"]},"Publish":{"type":"object","properties":{"when":{"type":"string","enum":["now"],"description":"Send `\"now\"` to publish now. Send this or publishAt, not both."},"publishAt":{"type":"string","format":"date-time","description":"When to publish, as an ISO-8601 timestamp. Send this or `when: \"now\"`, not both."}},"example":{"when":"now"}},"Deliveries":{"type":"object","properties":{"deliveries":{"type":"array","items":{"$ref":"#/components/schemas/Delivery"}}},"required":["deliveries"]},"Delivery":{"type":"object","properties":{"id":{"type":"string"},"destinationId":{"type":"string"},"platform":{"type":"string","enum":["github"]},"automatic":{"type":"boolean","description":"Created by auto-publish rather than a person."},"deliverAt":{"type":"string","description":"When it was due to go out."},"cancelledAt":{"type":"string","nullable":true,"description":"ISO-8601 UTC timestamp."},"attemptedAt":{"type":"string","nullable":true,"description":"Null while it waits."},"failureMessage":{"type":"string","nullable":true},"itemUrl":{"type":"string","nullable":true,"description":"The delivered item's page on the platform, such as a pull request."},"publicationId":{"type":"string","nullable":true,"description":"The publication it became."},"state":{"type":"string","enum":["live","cancelled","failed","in_review","scheduled"],"description":"Where this delivery stands: `scheduled` (waiting), `in_review` (a PR is open), `live`, `failed` or `cancelled`."},"prUrl":{"type":"string","nullable":true,"description":"The pull request this delivery opened, for a GitHub destination."},"createdAt":{"type":"string","description":"ISO-8601 UTC timestamp."}},"required":["id","destinationId","platform","automatic","deliverAt","cancelledAt","attemptedAt","failureMessage","itemUrl","publicationId","state","prUrl","createdAt"]},"Publications":{"type":"object","properties":{"publications":{"type":"array","items":{"$ref":"#/components/schemas/Publication"}}},"required":["publications"]},"Publication":{"type":"object","properties":{"id":{"type":"string"},"contentId":{"type":"string"},"url":{"type":"string","description":"The public page the content is live at."},"publishedAt":{"type":"string","description":"ISO-8601 UTC timestamp."}},"required":["id","contentId","url","publishedAt"]},"MarkPublished":{"type":"object","properties":{"url":{"type":"string","description":"The public page the content is live at; http or https.","example":"https://acme.com/blog/choose-a-crm"}},"required":["url"]},"Destinations":{"type":"object","properties":{"destinations":{"type":"array","items":{"$ref":"#/components/schemas/Destination"}}},"required":["destinations"]},"Destination":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"platform":{"type":"string","enum":["github"]},"autoPublish":{"type":"boolean"},"cadence":{"type":"string","enum":["daily","weekly"]},"createdAt":{"type":"string","description":"ISO-8601 UTC timestamp."},"reviewSurface":{"type":"boolean","description":"Whether the platform has a human review step; auto-publish requires one."},"displayName":{"type":"string"},"connection":{"type":"object","properties":{"status":{"type":"string","enum":["ok","problem"]},"message":{"type":"string","description":"What to fix, when there is a problem."}},"required":["status"]}},"required":["id","projectId","platform","autoPublish","cadence","createdAt","reviewSurface","displayName","connection"]},"AddedDestination":{"type":"object","properties":{"destinationId":{"type":"string"}},"required":["destinationId"]},"AddDestination":{"type":"object","properties":{"platform":{"type":"string","enum":["github"],"example":"github"}},"required":["platform"]},"DestinationPolicy":{"type":"object","properties":{"autoPublish":{"type":"boolean","description":"Publish drafted content automatically on the cadence. Turning it on turns it off on the project's other destinations."},"cadence":{"type":"string","enum":["daily","weekly"]}}},"GithubDestination":{"type":"object","properties":{"destinationId":{"type":"string"},"repository":{"type":"string","example":"acme/website"},"baseBranch":{"type":"string"},"contentRoot":{"type":"string"},"publicRoutePattern":{"type":"string"},"fileExtension":{"type":"string"},"requiredFrontmatter":{"type":"array","items":{"type":"string"}}},"required":["destinationId","repository","baseBranch","contentRoot","publicRoutePattern","fileExtension","requiredFrontmatter"]},"ConfigureGithubDestination":{"type":"object","properties":{"owner":{"type":"string","minLength":1,"example":"acme"},"name":{"type":"string","minLength":1,"example":"website"},"baseBranch":{"type":"string","minLength":1,"example":"main"},"contentRoot":{"type":"string","minLength":1,"description":"The folder articles live in.","example":"content/blog"},"publicRoutePattern":{"type":"string","minLength":1,"description":"The address an article is published at, with {slug} where its slug goes.","example":"https://example.com/blog/{slug}"}},"required":["owner","name","baseBranch","contentRoot","publicRoutePattern"]},"VisibilityRun":{"type":"object","properties":{"runId":{"type":"string","description":"The queued visibility run."},"projectId":{"type":"string"},"promptCount":{"type":"integer","description":"Prompts the scan window covers."},"platformCount":{"type":"integer","description":"AI platforms each prompt is asked on."},"expectedMinutes":{"type":"integer","description":"When most answers are usually in, in minutes."}},"required":["runId","projectId","promptCount","platformCount","expectedMinutes"]},"VisibilityRunRequest":{"type":"object","properties":{"promptIds":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":500,"description":"Tracked prompt ids the caller cares about. They are checked against the project; the scan still covers the whole prompt window."}}},"VisibilityRunList":{"type":"object","properties":{"runs":{"type":"array","items":{"$ref":"#/components/schemas/VisibilityRunSummary"}},"pageInfo":{"$ref":"#/components/schemas/PageInfo"},"nextBefore":{"type":"string","nullable":true,"description":"Legacy: the same value as `pageInfo.nextCursor`, null on the last page. Prefer `pageInfo`."},"firstScan":{"$ref":"#/components/schemas/FirstScan"}},"required":["runs","pageInfo","nextBefore","firstScan"]},"VisibilityRunSummary":{"type":"object","properties":{"id":{"type":"string"},"trigger":{"type":"string","description":"`scheduler` for the scheduled scan, `real_user_manual_scan` for a scan run now (dashboard or API), `bootstrap` for the first scan."},"status":{"type":"string","description":"queued, running, retry_scheduled, finishing, success, partial_success, failed, blocked, cancelled or skipped. `finishing`: every task is queued but `answers.pending` answers are still being collected; the status becomes final (and `finishedAt` is set) once none is pending. A finished run that asked nothing itself (an earlier scan today already covered its prompts) is `skipped`; one that recorded no answer is `failed`. `reason` says why."},"storedStatus":{"type":"string","description":"The status the scan pipeline stored, before `status` was derived from the answers."},"reason":{"type":"object","nullable":true,"properties":{"code":{"type":"string","description":"answers_pending (while `finishing`), earlier_scan_in_progress, already_measured_today, no_candidates, tasks_rejected, no_answers, platform_failures (each platform as failed of its `total`), or the error code of a failed run."},"message":{"type":"string"}},"required":["code","message"],"description":"Why the run ended this way; null while running and for a clean success."},"createdAt":{"type":"string","format":"date-time"},"startedAt":{"type":"string","nullable":true,"format":"date-time"},"finishedAt":{"type":"string","nullable":true,"format":"date-time","description":"When every answer settled; null while running or `finishing`."},"storedFinishedAt":{"type":"string","nullable":true,"format":"date-time","description":"When the scan pipeline marked the run finished (its tasks queued), which can be before the last answer lands."},"errorCode":{"type":"string","nullable":true},"answers":{"$ref":"#/components/schemas/VisibilityRunAnswers"},"expectedTotal":{"type":"integer","nullable":true,"description":"Prompt and platform pairs the run will ask, known up front: tracked prompts in scope times platforms. `answers.total` grows toward it while `queuing` is true, so use this for progress, not `answers.total`."},"queuing":{"type":"boolean","description":"True while the run is still queuing its tasks; `answers.total` is not final until it is false."},"platforms":{"type":"array","items":{"type":"object","properties":{"platform":{"type":"string"},"total":{"type":"integer","description":"Prompt and platform pairs the run asked."},"answered":{"type":"integer"},"failed":{"type":"integer","description":"No usable answer: provider error, timeout, rate limit, block or empty answer."},"skipped":{"type":"integer"},"pending":{"type":"integer","description":"Still being collected. The run status is `finishing` until this is 0."},"failureRate":{"type":"number","nullable":true,"description":"0-1 share of settled answers (answered + failed) that failed; null when none settled."},"errors":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"The provider's error code, or the answer status (timeout, rate_limited, …) when it sent none."},"count":{"type":"integer"},"message":{"type":"string","nullable":true,"description":"One stored error message for this code."}},"required":["code","count","message"]},"description":"Failures by error code, most frequent first."}},"required":["platform","total","answered","failed","skipped","pending","failureRate","errors"]},"description":"The same counts per platform, with the failure rate and error codes."}},"required":["id","trigger","status","storedStatus","reason","createdAt","startedAt","finishedAt","storedFinishedAt","errorCode","answers","expectedTotal","queuing","platforms"]},"VisibilityRunAnswers":{"type":"object","properties":{"total":{"type":"integer","description":"Prompt and platform pairs the run asked."},"answered":{"type":"integer"},"failed":{"type":"integer","description":"No usable answer: provider error, timeout, rate limit, block or empty answer."},"skipped":{"type":"integer"},"pending":{"type":"integer","description":"Still being collected. The run status is `finishing` until this is 0."}},"required":["total","answered","failed","skipped","pending"]},"FirstScan":{"type":"object","nullable":true,"properties":{"status":{"type":"string","enum":["queued","running","retrying"],"description":"`queued`: setup is reading the site or the bootstrap is starting it; `running`: answers are coming in; `retrying`: a setup step failed and Jam is retrying it."},"expectedStartAt":{"type":"string","nullable":true,"format":"date-time","description":"When it is expected to start (an estimate), or when it started."},"startedAt":{"type":"string","nullable":true,"format":"date-time"},"runId":{"type":"string","nullable":true,"description":"The visibility run, once it exists."},"message":{"type":"string"}},"required":["status","expectedStartAt","startedAt","runId","message"],"description":"The first scan of a new project while it has not answered. Right after setup it has no run row yet (`queued`, with `expectedStartAt`); it starts on its own, so do not request one. Null once it has answered."},"VisibilityRunDetail":{"allOf":[{"$ref":"#/components/schemas/VisibilityRunSummary"},{"type":"object","properties":{"collection":{"type":"object","properties":{"total":{"type":"integer"},"settled":{"type":"integer"},"completed":{"type":"integer"},"byPlatform":{"type":"object","additionalProperties":{"type":"object","properties":{"total":{"type":"integer"},"settled":{"type":"integer"},"completed":{"type":"integer"}},"required":["total","settled","completed"]}}},"required":["total","settled","completed","byPlatform"],"description":"The collector's tasks for the run: settled tasks have an outcome, completed ones an answer."}},"required":["collection"]}]},"Credits":{"type":"object","properties":{"spendable":{"type":"integer","description":"Credits available now: allowance plus purchased."},"allowanceBalance":{"type":"integer","description":"Credits left from the monthly allowance."},"purchasedBalance":{"type":"integer","description":"Credits the workspace owner bought; spent after the allowance."},"lifetimeUsed":{"type":"integer"},"monthlyAllowance":{"type":"integer","nullable":true,"description":"The monthly allowance the plan grants; null when the plan does not state one."},"resetsAt":{"type":"string","nullable":true,"description":"ISO-8601 UTC time the allowance next refills, when known."},"offer":{"type":"string","enum":["active","inactive","legacy"]},"recentCharges":{"type":"array","items":{"type":"object","properties":{"operation":{"type":"string","description":"The ledger operation, e.g. `llm_query` or `geo_allowance_expiry`."},"description":{"type":"string","description":"What the movement was, in plain words. A `geo_allowance_expiry` at signup is not a spend: the free allowance was replaced by the plan's credits."},"spend":{"type":"boolean","description":"False for plan bookkeeping (an expired allowance, a reversal), true for credits spent on work."},"credits":{"type":"integer","description":"Credits moved out of the balance."},"at":{"type":"string","description":"ISO-8601 UTC timestamp."}},"required":["operation","description","spend","credits","at"]}}},"required":["spendable","allowanceBalance","purchasedBalance","lifetimeUsed","monthlyAllowance","resetsAt","offer","recentCharges"]},"Actions":{"type":"object","properties":{"actions":{"type":"array","items":{"$ref":"#/components/schemas/Action"}},"countsByStatus":{"$ref":"#/components/schemas/ActionCounts"},"pageInfo":{"$ref":"#/components/schemas/PageInfo"}},"required":["actions","countsByStatus","pageInfo"]},"Action":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"kind":{"type":"string","enum":["page_edit","new_page","outreach","technical","community"],"description":"What the work is: `new_page` (publish a page; Jam can draft it), `page_edit` (change a page on your site; Jam can prepare the code change), `technical` (a technical fix on your site; Jam can prepare the code change), `outreach` (pitch a third-party list or page; your agent does it from `agentPrompt`), `community` (take part in a community thread; your agent does it)."},"problem":{"type":"string","enum":["list_absent","list_low_rank","wrong_claim","page_read_rival_won","missing_page","technical_defect","engine_gap","community_absent","unclear_positioning","other"],"description":"The gap the action closes."},"title":{"type":"string"},"why":{"type":"string"},"impact":{"type":"string","enum":["high","medium","low"]},"rank":{"type":"integer","description":"Priority within the Plan; 1 is first."},"targetUrl":{"type":"string","nullable":true},"status":{"type":"string","enum":["suggested","in_progress","sent","done","verified","unverified","dismissed","superseded"],"description":"The action's status, derived from its history: `suggested`: Research recommends it and nobody has acted on it yet. `in_progress`: Someone started it (POST .../start), or Jam is doing it (a draft or a code change is being prepared). `sent`: Outreach only: the pitch went out (reported by the customer or their agent, never sent by Jam). Waiting for the third party to act. `done`: Reported done, or Jam shipped it. Jam checks the page once; until that check passes the action stays done. `verified`: Jam's check found the change on the page (or the brand on the list). `unverified`: Jam's check did not find the change on the page. Fix it and POST .../checks to check again, or POST .../completion with the right URL. `dismissed`: Taken off the Plan by the customer. DELETE .../dismissal puts it back. `superseded`: A later research run no longer proposes it (the gap closed or another action replaced it). Hidden from the list unless includeSuperseded=true."},"opportunityId":{"type":"string","nullable":true,"format":"uuid","description":"The article opportunity (`/v1/opportunities/{id}`) behind a `new_page` action, once Jam has one. Null otherwise. While it is null, `POST /v1/content` cannot store an article for the action: your agent publishes the page itself and reports it with `POST /v1/actions/{id}/completion` and the URL, or `POST /v1/actions/{id}/executions` has Jam draft it (metered), which creates the opportunity."},"contentId":{"type":"string","nullable":true,"format":"uuid","description":"The content item (`/v1/content/{contentId}`) written for that opportunity, once Jam or your agent has written one, discarded or not. Null otherwise. To drop a dismissed article, `DELETE /v1/content/{contentId}`."},"lastSeenAt":{"type":"string","format":"date-time"},"executableByJam":{"type":"boolean","description":"Whether `POST /v1/actions/{id}/executions` (the default mode) would have Jam do this action now: draft its article, or prepare its code change on a project with GitHub connected. False for work that is yours (outreach, community, a page off your site), an action already finished or drafted, or a code change while GitHub is not connected. Credits and work already in flight are checked when you ask. Read `nextStep` either way."},"notExecutableReason":{"type":"string","nullable":true,"enum":["closed","already_drafted","not_jam_work","needs_github","no_page","off_site","third_party",null],"description":"Why Jam would refuse it, when `executableByJam` is false (the same `reason` the executions route answers with): `not_jam_work` (outreach or community: your agent does it from `agentPrompt`), `needs_github` (a code change, and the project has no working GitHub connection; a person fixes it at `resolveUrl`), `no_page`, `off_site` or `third_party` (a code change Jam cannot make), `already_drafted` (its article is written: `contentId`), `closed` (done, dismissed or off the plan). Null when Jam can do it."},"nextStep":{"type":"string","description":"What to do with the action next, with the exact route and ids: the executions request when Jam can do it, otherwise how your agent does the work (`agentPrompt`, then `POST /v1/actions/{id}/completion`) or what a person must fix first."}},"required":["id","kind","problem","title","why","impact","rank","targetUrl","status","opportunityId","contentId","lastSeenAt","executableByJam","notExecutableReason","nextStep"]},"ActionCounts":{"type":"object","properties":{"suggested":{"type":"integer"},"in_progress":{"type":"integer"},"sent":{"type":"integer"},"done":{"type":"integer"},"verified":{"type":"integer"},"unverified":{"type":"integer"},"dismissed":{"type":"integer"},"superseded":{"type":"integer"}},"required":["suggested","in_progress","sent","done","verified","unverified","dismissed","superseded"],"description":"How many of the project's actions are in each status, counted before the request's filters."},"ActionDetail":{"allOf":[{"$ref":"#/components/schemas/Action"},{"type":"object","properties":{"kindLabel":{"type":"string"},"source":{"type":"string","enum":["research","planner","user"],"description":"`research`: proposed by research. `planner`: an article row the planner added. `user`: a page the user asked for in chat."},"details":{"type":"array","items":{"type":"string"},"description":"The evidence and specifics research found."},"sources":{"type":"array","items":{"type":"string"},"description":"Pages research read for this action."},"questions":{"type":"array","items":{"type":"object","properties":{"promptId":{"type":"string","description":"The tracked prompt (`/v1/prompts`)."},"text":{"type":"string","nullable":true}},"required":["promptId","text"]},"description":"The tracked prompts this action should move."},"history":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["suggested","started","sent","marked_done","delivered","verification_passed","verification_failed","dismissed","superseded","reopened","restored"]},"actor":{"type":"string","enum":["system","jam","user","agent"]},"at":{"type":"string","format":"date-time"},"url":{"type":"string","nullable":true},"evidence":{"type":"string","nullable":true},"note":{"type":"string","nullable":true}},"required":["id","type","actor","at","url","evidence","note"]},"description":"Everything that happened to the action, oldest first."},"check":{"type":"object","nullable":true,"properties":{"passed":{"type":"boolean","nullable":true,"description":"Null when the check could not tell."},"evidence":{"type":"string","nullable":true},"url":{"type":"string","nullable":true},"at":{"type":"string","format":"date-time"}},"required":["passed","evidence","url","at"],"description":"Jam's latest one-time check of a done claim."},"agentPrompt":{"type":"string","description":"Executable instructions for your agent: the work, written by research, ending with how to report it done through this API (`POST /v1/actions/{id}/completion`, or `/sent` for an outreach pitch)."},"change":{"$ref":"#/components/schemas/SiteChange"},"firstSeenAt":{"type":"string","format":"date-time"}},"required":["kindLabel","source","details","sources","questions","history","check","agentPrompt","change","firstSeenAt"]}]},"SiteChange":{"type":"object","nullable":true,"properties":{"id":{"type":"string","format":"uuid"},"actionId":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["preparing","proposed","opening","in_review","merged","closed","failed","stale","discarded"],"description":"`preparing`: Jam is finding the file and writing the edit. `proposed`: ready; read `hunks`, then open the pull request or discard it. `opening`: the pull request is being opened. `in_review`: the pull request is open (`prUrl`). `merged` / `closed`: what happened to it. `failed`: Jam could not make it (`failureMessage`). `stale`: the file changed since; prepare it again. `discarded`: dropped."},"repository":{"type":"string","description":"`owner/name`."},"baseBranch":{"type":"string"},"filePath":{"type":"string","nullable":true},"createsFile":{"type":"boolean"},"summary":{"type":"string","nullable":true},"prUrl":{"type":"string","nullable":true},"prNumber":{"type":"integer","nullable":true},"failureMessage":{"type":"string","nullable":true},"fallback":{"type":"string","nullable":true,"enum":["copy_prompt",null],"description":"`copy_prompt` when Jam could not make or keep this change: hand the action's `agentPrompt` to your agent instead."},"hunks":{"type":"array","items":{"type":"object","properties":{"oldStart":{"type":"integer"},"oldLines":{"type":"integer"},"newStart":{"type":"integer"},"newLines":{"type":"integer"},"lines":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["context","add","remove"]},"text":{"type":"string"}},"required":["kind","text"]}}},"required":["oldStart","oldLines","newStart","newLines","lines"]},"description":"The before/after preview as unified diff hunks."},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","actionId","status","repository","baseBranch","filePath","createsFile","summary","prUrl","prNumber","failureMessage","fallback","hunks","createdAt","updatedAt"],"description":"The latest code change Jam prepared for this action (page edits and technical fixes), with its preview. Null when none."},"ActionTransitionResult":{"type":"object","properties":{"status":{"type":"string","enum":["suggested","in_progress","sent","done","verified","unverified","dismissed","superseded"],"description":"The action's status, derived from its history: `suggested`: Research recommends it and nobody has acted on it yet. `in_progress`: Someone started it (POST .../start), or Jam is doing it (a draft or a code change is being prepared). `sent`: Outreach only: the pitch went out (reported by the customer or their agent, never sent by Jam). Waiting for the third party to act. `done`: Reported done, or Jam shipped it. Jam checks the page once; until that check passes the action stays done. `verified`: Jam's check found the change on the page (or the brand on the list). `unverified`: Jam's check did not find the change on the page. Fix it and POST .../checks to check again, or POST .../completion with the right URL. `dismissed`: Taken off the Plan by the customer. DELETE .../dismissal puts it back. `superseded`: A later research run no longer proposes it (the gap closed or another action replaced it). Hidden from the list unless includeSuperseded=true."}},"required":["status"],"description":"The action's status after the request."},"ActionCompletion":{"type":"object","properties":{"url":{"type":"string","maxLength":2000,"format":"uri","description":"Where the finished work lives."},"note":{"type":"string","maxLength":2000}}},"ActionCheck":{"type":"object","properties":{"url":{"type":"string","maxLength":2000,"format":"uri","description":"The page to check, when it moved. Defaults to the last claim."}}},"ActionExecution":{"type":"object","properties":{"status":{"type":"string","enum":["accepted"]},"work":{"type":"string","enum":["draft","site_change","agent_task"],"description":"`draft`: Jam is writing the article (follow `opportunityId` in `/v1/opportunities` and `/v1/content`). `site_change`: Jam is preparing a code change (follow `changeId` in `/v1/site-changes/{changeId}`; in the default mode no pull request is opened until you ask). `agent_task` (agent mode only): outreach or community drafts. In agent mode the ids may be null at first: `GET /v1/actions/{actionId}` carries `opportunityId` and `change` once the run creates them."},"opportunityId":{"type":"string","nullable":true,"format":"uuid"},"changeId":{"type":"string","nullable":true,"format":"uuid"},"runId":{"type":"string","nullable":true,"format":"uuid","description":"Agent mode: the background agent run doing the work; a second request while it runs returns the same run. Null in the default mode."},"chatUrl":{"type":"string","nullable":true,"format":"uri","description":"Agent mode: the run's chat in the Jam app, where the work can be followed, stopped or edited. Null in the default mode."}},"required":["status","work","opportunityId","changeId","runId","chatUrl"]},"ActionExecutionRequest":{"type":"object","properties":{"mode":{"type":"string","enum":["one_shot","agent"],"description":"`one_shot` (default): Jam drafts the article or prepares a code change to preview (no pull request until you ask). `agent`: Jam starts a background agent run in its own chat (`runId`, `chatUrl`); it can also do outreach and community work, and it may open the pull request for a content-only change itself.","example":"agent"}}},"AgentConnectSession":{"type":"object","properties":{"connectUrl":{"type":"string","description":"Give this link to the human. It signs them up, onboards and asks them to approve.","example":"https://www.spreadjam.com/connect/ABCD234567"},"userCode":{"type":"string","description":"Show this code to the human with the link. The approval page shows the same code, so they can check the request came from you.","example":"K7M-Q2X"},"pollToken":{"type":"string","description":"Secret. Poll GET /v1/agent-connect/{pollToken} with it. Never show it to anyone."},"expiresAt":{"type":"string","description":"When the session ends if nobody approves it."},"intervalSeconds":{"type":"integer","description":"Poll no more often than this."},"reviewUrl":{"type":"string","description":"With `onboarding`: the page where the human reviews your setup, pays and approves. The same link as `connectUrl`."},"plan":{"$ref":"#/components/schemas/PlanQuote"},"prompts":{"type":"object","properties":{"count":{"type":"integer"},"suggestedByJam":{"type":"boolean"}},"required":["count","suggestedByJam"],"description":"With `onboarding`: how many prompts you sent, or that Jam will suggest them."},"warnings":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","example":"onboarding.prompts.12"},"code":{"type":"string","enum":["prompt_unscored"]},"reason":{"type":"string","enum":["names_your_brand","names_a_competitor"]},"message":{"type":"string"}},"required":["field","code","reason","message"]},"description":"With `onboarding`: accepted, but worth knowing. `prompt_unscored`: the prompt names a tracked brand, so its answers are stored but not scored. Rewrite it as a category question if you want it scored."}},"required":["connectUrl","userCode","pollToken","expiresAt","intervalSeconds"]},"PlanQuote":{"type":"object","properties":{"configuration":{"type":"object","properties":{"promptCapacity":{"type":"integer"},"cadence":{"type":"string","enum":["weekly","every_other_day","daily"]},"platforms":{"type":"array","items":{"type":"string","enum":["chatgpt","gemini","perplexity","google_ai_mode","google_ai_overview","copilot","claude"]}},"workCredits":{"type":"integer"}},"required":["promptCapacity","cadence","platforms","workCredits"]},"currency":{"type":"string","enum":["usd"]},"monthlyCents":{"type":"integer","example":39900},"monthlyUsd":{"type":"number","description":"The same price in dollars, as the plan page shows it."}},"required":["configuration","currency","monthlyCents","monthlyUsd"],"description":"With `onboarding`: the plan the review page opens on and its monthly price, as the plan page prices it."},"AgentConnectStart":{"type":"object","properties":{"domain":{"type":"string","maxLength":253,"description":"The human's website hostname (for example `acme.com`), prefilled in onboarding. A value that is not a hostname is a 400.","example":"acme.com"},"email":{"type":"string","maxLength":254,"format":"email","description":"The human's email, if the agent knows it."},"agentName":{"type":"string","description":"Shown to the human on the approval step and used to name the key: 1 to 60 printable characters. Omit it and the page says \"Your agent\".","example":"Claude Code"},"onboarding":{"$ref":"#/components/schemas/AgentConnectOnboarding"}}},"AgentConnectOnboarding":{"type":"object","properties":{"site":{"type":"string","maxLength":253,"description":"The founder's website (`acme.com` or a URL). Defaults to `domain`.","example":"acme.com"},"brandName":{"type":"string","maxLength":200,"description":"The company name. Send it with `description`.","example":"Acme"},"description":{"type":"string","maxLength":4000,"description":"What the company does, 20 to 2,000 characters. Send it with `brandName`."},"audience":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","maxLength":200},"blurb":{"type":"string","maxLength":1000}},"required":["title"]},"maxItems":20,"description":"Who buys: 1 to 5 audiences, each a `title` (up to 60 characters) and a one-line `blurb` (up to 160)."},"competitors":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"domain":{"type":"string","nullable":true,"maxLength":253},"aliases":{"type":"array","items":{"type":"string","maxLength":200},"maxItems":20,"description":"Other names AI answers use for it, up to 8 (for example `AthenaHQ` for Athena). A name the domain spells out (athenahq.ai gives AthenaHQ) is matched without one."}},"required":["name"]},"maxItems":50,"description":"Up to 25 competitors, each a `name` (up to 80 characters), an optional `domain` and optional `aliases`. Send the domain: answers are matched to it, and it gives citation share."},"prompts":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","maxLength":1000,"description":"8 to 300 characters."},"topic":{"type":"string","maxLength":200,"description":"Up to 70 characters; at most 15 distinct topics. Omitted: \"General\"."},"persona":{"type":"string","enum":["discoverer","buyer","evaluator","competitor","branded"],"description":"The buyer-journey persona; defaults to discoverer."},"intent":{"type":"string","maxLength":400},"audience":{"type":"string","maxLength":200,"description":"The `title` of one of `audience` this prompt is written for."}},"required":["text"]},"maxItems":1000,"description":"The prompts to track, at most `plan.promptCapacity`. Jam tracks exactly the prompts you send (text, topic and persona as sent) and leaves the other slots empty; fill them later with POST /v1/prompts/suggestions. A prompt that names a tracked brand (yours by name, domain or domain label, or a competitor's) is tracked and its answers are readable, but it is not scored: visibility, citation share and position count only questions that name no tracked brand. The response `warnings` lists each such prompt. The human can still edit prompts on the review page before approving. Omit them and Jam suggests prompts from the site, description, audiences and competitors, the human reviews them, and Jam fills the rest of the plan capacity after checkout."},"notConfusedWith":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":80,"example":"Jam"},"domain":{"type":"string","nullable":true,"maxLength":253,"example":"jam.dev"},"terms":{"type":"array","items":{"type":"string","maxLength":80},"maxItems":8,"example":["bug report"]}},"required":["name"]},"maxItems":10,"description":"Other products that share the brand's name, for example `{ name: 'Jam', domain: 'jam.dev' }` for Jam at spreadjam.com. Each needs a `domain` or `terms` (phrases that only describe the other product). An answer about one of them is not counted as a mention of the brand. Change it later with PATCH /v1/brand."},"locale":{"type":"string","enum":["us-en","uk-en","es-es","de-de","fr-fr","br-pt"],"description":"The market and language prompts are asked in. Defaults to us-en."},"plan":{"type":"object","properties":{"promptCapacity":{"type":"integer"},"cadence":{"type":"string","enum":["weekly","every_other_day","daily"]},"platforms":{"type":"array","items":{"type":"string","enum":["chatgpt","gemini","perplexity","google_ai_mode","google_ai_overview","copilot","claude"]},"minItems":1},"workCredits":{"type":"integer","description":"One of 1000, 2000, 5000, 10000; defaults to 2000."}},"required":["promptCapacity","cadence","platforms"],"description":"The plan the review page opens on (the human can change it). GET /v1/pricing lists the options. Defaults to the plan page default."}},"description":"The setup you prepared for the human. With it, the link opens ONE review page (site, description, audiences, competitors, prompts, plan and price) instead of the onboarding steps; the human approves and starts the trial with one button. Validated with the rules onboarding applies; each problem is a 400 entry in `details`. If the human already has a set-up workspace (an active plan or a finished project), they approve for it as it is and this setup is not applied; a workspace left from an earlier attempt that was approved but never paid takes this setup."},"AgentConnectPoll":{"type":"object","properties":{"status":{"type":"string","enum":["pending","approved","consumed","denied","expired"]},"message":{"type":"string"},"apiKey":{"type":"string","description":"Only on `approved`. Store it now. If it is lost before it is used (the poller died), poll again with the same token within 10 minutes: Jam revokes that key and answers a new one (`replaced: true`). Once the key has been used, or after 10 minutes, the poll answers `consumed`."},"replaced":{"type":"boolean","description":"On `approved`: true when this key replaces an earlier, never used key from this session, which is now revoked."},"workspaceId":{"type":"string"},"expiresAt":{"type":"string"},"stage":{"type":"string","enum":["awaiting_signin","awaiting_review","awaiting_payment","setting_up"],"description":"Only on `pending`: what is left. `awaiting_signin` (the link is not opened by a signed-in person yet), `awaiting_review` (they have not approved), `awaiting_payment` (approved, the trial has not started), `setting_up` (paid, the project is being created)."},"reason":{"type":"string","enum":["checkout_not_started","checkout_open","checkout_abandoned","payment_failed"],"description":"Only on `awaiting_payment`: why the trial has not started. `checkout_not_started` (approved, checkout not opened yet), `checkout_open` (the checkout the human opened is still payable, for up to 31 minutes after it opened; they may still be paying), `checkout_abandoned` (checkout was opened, then closed or expired unpaid), `payment_failed` (the card payment did not go through)."},"checkoutStartedAt":{"type":"string","nullable":true,"description":"Only on `awaiting_payment`: when the human last opened checkout, or null."},"checkoutExpiresAt":{"type":"string","nullable":true,"description":"Only on `awaiting_payment`: when the checkout the human last opened stops being payable (31 minutes after it opened), or null. After it, `reason` is `checkout_abandoned` and \"Finish checkout\" opens a fresh one."},"resumeUrl":{"type":"string","description":"Only on `awaiting_payment`: send the human this link (the same as `connectUrl`). Signed in as the person who approved, it shows \"Finish checkout\", which opens a fresh checkout with the plan they chose. It is never a raw checkout link.","example":"https://www.spreadjam.com/connect/ABCD234567"},"humanMessage":{"type":"string","description":"Only on `awaiting_payment`: a sentence you can pass to the human as is, with the link and what to do."}},"required":["status","message"]},"Pricing":{"type":"object","properties":{"offer":{"type":"string","enum":["geo-v1"]},"currency":{"type":"string","enum":["usd"]},"promptCapacity":{"type":"object","properties":{"min":{"type":"integer"},"max":{"type":"integer"},"step":{"type":"integer"}},"required":["min","max","step"]},"cadences":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","enum":["weekly","every_other_day","daily"]},"label":{"type":"string"}},"required":["value","label"]}},"platforms":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","enum":["chatgpt","gemini","perplexity","google_ai_mode","google_ai_overview","copilot","claude"]},"label":{"type":"string"}},"required":["value","label"]}},"workCredits":{"type":"array","items":{"type":"integer"}},"creditCosts":{"type":"array","items":{"$ref":"#/components/schemas/CreditCost"},"description":"What work credits buy, per action, from the prices Jam charges. Divide a plan's monthly `workCredits` by `credits` to see how many of each it covers. Credits are only spent when you or the founder ask Jam to do work (and on the drafts the first research run starts); scans never use them."},"default":{"$ref":"#/components/schemas/PlanQuote"},"prices":{"type":"array","items":{"type":"object","properties":{"promptCapacity":{"type":"integer"},"cadence":{"type":"string","enum":["weekly","every_other_day","daily"]},"workCredits":{"type":"integer","description":"The work credits this row is priced at (the default)."},"platforms":{"type":"array","items":{"type":"string","enum":["chatgpt","gemini","perplexity","google_ai_mode","google_ai_overview","copilot","claude"]},"description":"The platforms this row is priced for (the default set)."},"monthlyCents":{"type":"integer"}},"required":["promptCapacity","cadence","workCredits","platforms","monthlyCents"]},"description":"The monthly price of every capacity at every cadence at the DEFAULT work credits and platforms, which each row states. `priceTable` has every work credit level and the Claude add-on; quote any other combination with the query parameters."},"priceTable":{"type":"object","properties":{"platforms":{"type":"array","items":{"type":"string","enum":["chatgpt","gemini","perplexity","google_ai_mode","google_ai_overview","copilot","claude"]},"description":"The platforms every row in the table tracks."},"addOn":{"type":"object","properties":{"platform":{"type":"string","enum":["claude"]},"label":{"type":"string"},"description":{"type":"string"}},"required":["platform","label","description"]},"byWorkCredits":{"type":"array","items":{"type":"object","properties":{"workCredits":{"type":"integer"},"prices":{"type":"array","items":{"type":"object","properties":{"promptCapacity":{"type":"integer"},"cadence":{"type":"string","enum":["weekly","every_other_day","daily"]},"monthlyCents":{"type":"integer"},"withClaudeMonthlyCents":{"type":"integer","description":"The same plan with Claude added to `platforms`."}},"required":["promptCapacity","cadence","monthlyCents","withClaudeMonthlyCents"]}}},"required":["workCredits","prices"]}}},"required":["platforms","addOn","byWorkCredits"],"description":"The whole price table, from the same quote the plan page and checkout use: for each work credit level, every capacity at every cadence with `platforms`, and with Claude added. Fewer platforms cost a little less; quote them with the query parameters."},"trial":{"type":"object","properties":{"days":{"type":"integer"},"cardRequired":{"type":"boolean","enum":[true]},"eligibility":{"type":"string"}},"required":["days","cardRequired","eligibility"]}},"required":["offer","currency","promptCapacity","cadences","platforms","workCredits","creditCosts","default","prices","priceTable","trial"]},"CreditCost":{"type":"object","properties":{"action":{"type":"string","enum":["draft_page","open_pull_request","research_again","article_brief","visibility_scan"]},"credits":{"type":"integer","nullable":true,"description":"Credits per action; null when metered with no typical figure."},"estimate":{"type":"boolean","description":"True when `credits` is a typical metered run, not a fixed price."},"description":{"type":"string"}},"required":["action","credits","estimate","description"]},"PricingQuote":{"type":"object","properties":{"offer":{"type":"string","enum":["geo-v1"]},"currency":{"type":"string","enum":["usd"]},"quote":{"allOf":[{"$ref":"#/components/schemas/PlanQuote"},{"description":"The price of the configuration asked for (unsent fields take the default)."}]},"creditCosts":{"type":"array","items":{"$ref":"#/components/schemas/CreditCost"},"description":"What work credits buy, per action, from the prices Jam charges. Divide a plan's monthly `workCredits` by `credits` to see how many of each it covers. Credits are only spent when you or the founder ask Jam to do work (and on the drafts the first research run starts); scans never use them."},"trial":{"type":"object","properties":{"days":{"type":"integer"},"cardRequired":{"type":"boolean","enum":[true]},"eligibility":{"type":"string"}},"required":["days","cardRequired","eligibility"]},"fullPricing":{"type":"string","description":"GET this (no parameters) for every option and the whole price table.","example":"/v1/pricing"}},"required":["offer","currency","quote","creditCosts","trial","fullPricing"]},"ResearchState":{"type":"object","properties":{"state":{"type":"string","enum":["never","running","done","failed"]},"startedAt":{"type":"string","nullable":true,"format":"date-time"},"finishedAt":{"type":"string","nullable":true,"format":"date-time"},"latest":{"type":"object","nullable":true,"properties":{"requestId":{"type":"string","format":"uuid"},"kind":{"type":"string","enum":["first_scan","backfill","manual","top_up"],"description":"`first_scan`: the free run after the first scan. `backfill`: a free run for a project that had none. `manual`: Research again (charged after the first success). `top_up`: Jam's free weekly re-run when the Plan runs low; it only adds rows."},"requestedAt":{"type":"string","format":"date-time"},"startedAt":{"type":"string","nullable":true,"format":"date-time"},"finishedAt":{"type":"string","nullable":true,"format":"date-time"},"outcome":{"type":"string","nullable":true,"enum":["success","failed","abandoned",null]},"failureMessage":{"type":"string","nullable":true}},"required":["requestId","kind","requestedAt","startedAt","finishedAt","outcome","failureMessage"]},"inFlight":{"type":"object","nullable":true,"properties":{"requestId":{"type":"string","format":"uuid"},"kind":{"type":"string","enum":["first_scan","backfill","manual","top_up"],"description":"`first_scan`: the free run after the first scan. `backfill`: a free run for a project that had none. `manual`: Research again (charged after the first success). `top_up`: Jam's free weekly re-run when the Plan runs low; it only adds rows."},"requestedAt":{"type":"string","format":"date-time"}},"required":["requestId","kind","requestedAt"],"description":"The run in flight, if any. Runs take about ten minutes."},"manual":{"type":"object","properties":{"eligible":{"type":"boolean","description":"The workspace's plan includes research."},"free":{"type":"boolean","description":"The next run is free: the project has never had a successful run."},"credits":{"type":"integer","description":"Credits `POST /v1/research-requests` holds now (kept only if the run succeeds); 0 when free."},"blockedBy":{"type":"string","nullable":true,"enum":["plan_required","in_progress","first_scan_running",null],"description":"Why a request would be refused now; null when it would be accepted (credits permitting)."}},"required":["eligible","free","credits","blockedBy"],"description":"Research again, by hand."},"automaticTopUp":{"type":"object","properties":{"eligibleNow":{"type":"boolean"},"notBefore":{"type":"string","nullable":true,"format":"date-time"}},"required":["eligibleNow","notBefore"],"description":"Jam's free automatic re-run: at most once a week, after a successful run, once a scan has new answers, and only while the Plan has fewer than 5 untouched article rows. `notBefore` is when the weekly limit next allows one."}},"required":["state","startedAt","finishedAt","latest","inFlight","manual","automaticTopUp"]},"ResearchReportResult":{"type":"object","properties":{"report":{"$ref":"#/components/schemas/ResearchReport"}},"required":["report"]},"ResearchReport":{"type":"object","nullable":true,"properties":{"runId":{"type":"string","format":"uuid"},"finishedAt":{"type":"string","format":"date-time"},"answersRead":{"type":"integer","nullable":true,"description":"AI answers the run read."},"actionsProposed":{"type":"integer","nullable":true,"description":"Proposals the research produced, before two proposals of the same action were merged. `actions` lists the saved actions, so it can be shorter; their ranks run 1..n."},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"kind":{"type":"string","enum":["page_edit","new_page","outreach","technical","community"],"description":"What the work is: `new_page` (publish a page; Jam can draft it), `page_edit` (change a page on your site; Jam can prepare the code change), `technical` (a technical fix on your site; Jam can prepare the code change), `outreach` (pitch a third-party list or page; your agent does it from `agentPrompt`), `community` (take part in a community thread; your agent does it)."},"problem":{"type":"string","enum":["list_absent","list_low_rank","wrong_claim","page_read_rival_won","missing_page","technical_defect","engine_gap","community_absent","unclear_positioning","other"]},"status":{"type":"string","enum":["suggested","in_progress","sent","done","verified","unverified","dismissed","superseded"],"description":"The action's status, derived from its history: `suggested`: Research recommends it and nobody has acted on it yet. `in_progress`: Someone started it (POST .../start), or Jam is doing it (a draft or a code change is being prepared). `sent`: Outreach only: the pitch went out (reported by the customer or their agent, never sent by Jam). Waiting for the third party to act. `done`: Reported done, or Jam shipped it. Jam checks the page once; until that check passes the action stays done. `verified`: Jam's check found the change on the page (or the brand on the list). `unverified`: Jam's check did not find the change on the page. Fix it and POST .../checks to check again, or POST .../completion with the right URL. `dismissed`: Taken off the Plan by the customer. DELETE .../dismissal puts it back. `superseded`: A later research run no longer proposes it (the gap closed or another action replaced it). Hidden from the list unless includeSuperseded=true."},"title":{"type":"string"},"why":{"type":"string"},"details":{"type":"array","items":{"type":"string"}},"impact":{"type":"string","enum":["high","medium","low"]},"rank":{"type":"integer"},"targetUrl":{"type":"string","nullable":true},"sources":{"type":"array","items":{"type":"string"}},"questions":{"type":"array","items":{"type":"object","properties":{"promptId":{"type":"string","description":"The tracked prompt (`/v1/prompts`)."},"text":{"type":"string","nullable":true}},"required":["promptId","text"]}}},"required":["id","kind","problem","status","title","why","details","impact","rank","targetUrl","sources","questions"]}}},"required":["runId","finishedAt","answersRead","actionsProposed","actions"]},"ResearchRequest":{"type":"object","properties":{"status":{"type":"string","enum":["accepted"]},"requestId":{"type":"string","format":"uuid"},"charged":{"type":"boolean","description":"Whether credits are held for the run."},"credits":{"type":"integer","description":"Credits held; kept only if the run succeeds, refunded otherwise. 0 when free."}},"required":["status","requestId","charged","credits"]},"AnswerPage":{"type":"object","properties":{"answers":{"type":"array","items":{"$ref":"#/components/schemas/Answer"}},"pageInfo":{"$ref":"#/components/schemas/AnswerPageInfo"},"nextCursor":{"type":"string","nullable":true,"description":"Legacy: the same as `pageInfo.nextCursor`, null on the last page. Prefer `pageInfo`."}},"required":["answers","pageInfo","nextCursor"]},"Answer":{"type":"object","properties":{"id":{"type":"string","description":"The answer id."},"runId":{"type":"string","description":"The visibility run (scan) that collected it."},"promptId":{"type":"string"},"promptText":{"type":"string","nullable":true,"description":"The prompt as it was asked."},"promptStatus":{"type":"string","nullable":true,"description":"The prompt's status now: active, paused or archived. Answers of every prompt are listed; the analytics overview counts tracked (non-archived) prompts only, so skip `archived` to reconcile with its `window.answerCount`."},"platform":{"type":"string"},"observedAt":{"type":"string","format":"date-time"},"answer":{"$ref":"#/components/schemas/AnswerText"},"brandMentioned":{"type":"boolean","nullable":true},"brandRecommended":{"type":"boolean","nullable":true},"ownDomainCited":{"type":"boolean","nullable":true,"description":"Whether the project's own domain was cited as a source."},"position":{"type":"integer","nullable":true,"description":"The brand's position in the answer's ranked list, when the answer is a list."},"sentiment":{"type":"string","nullable":true,"description":"How the answer framed the project's own brand, when it was mentioned."},"brandsMentioned":{"type":"array","items":{"$ref":"#/components/schemas/AnswerBrand"},"description":"The tracked brands (the project's own brand and its roster competitors) the answer mentioned, in the order it first mentioned them. Matched on each brand's name, its spelling variants (Otterly.AI as Otterly AI), aliases and domain; where two brands' names overlap the longer one is credited (Ahrefs Brand Radar, not also Ahrefs). Brands outside the roster are not detected by design, so an answer naming only untracked brands has an empty list; read the answer text for those. `listRank` is the number of the first ordered-list item the brand is the subject of; answers assessed before 2026-11-04 may credit both overlapping brands and give two brands one item's rank."},"citedUrls":{"type":"array","items":{"type":"string"},"description":"The sources the platform cited, in its order, at most 30. Tracking and credential query parameters are removed; the rest of each URL is kept."},"citedUrlCount":{"type":"integer"}},"required":["id","runId","promptId","promptText","promptStatus","platform","observedAt","answer","brandMentioned","brandRecommended","ownDomainCited","position","sentiment","brandsMentioned","citedUrls","citedUrlCount"]},"AnswerText":{"type":"object","properties":{"text":{"type":"string","nullable":true},"source":{"type":"string","nullable":true,"enum":["full","excerpt",null],"description":"`full`: the stored answer. `excerpt`: only a 500-character excerpt is stored for this answer (older answers, or answers over the storage limit). null: no text is stored."},"truncated":{"type":"boolean","description":"True when `text` was cut to the requested length; pass `full=true` for all of it."},"length":{"type":"integer","nullable":true,"description":"The stored text's length in characters."}},"required":["text","source","truncated","length"]},"AnswerBrand":{"type":"object","properties":{"name":{"type":"string"},"owned":{"type":"boolean","description":"True for the project's own brand."},"recommended":{"type":"boolean","nullable":true},"listRank":{"type":"integer","nullable":true},"sentiment":{"type":"string","nullable":true}},"required":["name","owned","recommended","listRank","sentiment"]},"AnswerPageInfo":{"type":"object","properties":{"limit":{"type":"integer","description":"The page size used.","example":100},"hasNextPage":{"type":"boolean"},"nextCursor":{"type":"string","description":"Pass as `cursor`, with the same filters, for the next page. Absent on the last page."},"totalCount":{"type":"integer","description":"Matching items across every page."}},"required":["limit","hasNextPage"],"description":"The shared list page shape. `totalCount` is absent when filtering by `competitor` (counting would read every answer)."},"ProjectList":{"type":"object","properties":{"projects":{"type":"array","items":{"$ref":"#/components/schemas/ProjectSummary"}}},"required":["projects"]},"ProjectSummary":{"type":"object","properties":{"id":{"type":"string","description":"Send as the `X-Jam-Project` header to act on this project."},"name":{"type":"string"},"domain":{"type":"string"},"siteUrl":{"type":"string"},"status":{"type":"string","description":"setup, active, paused or blocked."},"createdAt":{"type":"string","format":"date-time"}},"required":["id","name","domain","siteUrl","status","createdAt"]},"Project":{"type":"object","properties":{"id":{"type":"string","description":"Send as the `X-Jam-Project` header to act on this project."},"name":{"type":"string"},"domain":{"type":"string"},"siteUrl":{"type":"string"},"status":{"type":"string","description":"setup, active, paused or blocked."},"createdAt":{"type":"string","format":"date-time"},"setup":{"$ref":"#/components/schemas/ProjectSetup"},"health":{"type":"string","description":"Data freshness: never_run, fresh, stale, degraded, and so on. `degraded` when a platform failed more than half of the latest scan; `healthReasons` says which and why."},"healthReasons":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"`platform_failing` (a platform failed most of the latest scan) or `setup_partial_coverage` (the stored setup state)."},"message":{"type":"string"}},"required":["code","message"]},"description":"Why `health` is not fresh, one entry per cause; empty when nothing is known."},"firstScanDone":{"type":"boolean"},"lastScanAt":{"type":"string","nullable":true,"format":"date-time"},"nextScanAt":{"type":"string","nullable":true,"format":"date-time","description":"When the next scan is due. Until the first scan has answered, that is the first scan (`firstScan`), which starts on its own within minutes of setup; afterwards the cadence slot. Null with neither."},"nextScheduledScanAt":{"type":"string","nullable":true,"format":"date-time","description":"The cadence schedule's next slot; null with no active schedule."},"firstScan":{"allOf":[{"$ref":"#/components/schemas/FirstScan"},{"description":"The first scan while it has not answered yet; null once it has."}]},"platforms":{"type":"array","items":{"type":"string"},"description":"The AI platforms each prompt is asked on."},"cadence":{"type":"object","properties":{"label":{"type":"string","nullable":true,"description":"daily, every_other_day or weekly, named from the scan schedule (the same names as `plan.cadence` on /v1/me)."},"intervalMinutes":{"type":"integer","nullable":true,"description":"Minutes between scheduled scans."}},"required":["label","intervalMinutes"]},"locale":{"type":"object","properties":{"id":{"type":"string","nullable":true},"languageCode":{"type":"string","nullable":true},"marketLocationCode":{"type":"integer","nullable":true}},"required":["id","languageCode","marketLocationCode"]},"prompts":{"type":"object","nullable":true,"properties":{"used":{"type":"integer"},"capacity":{"type":"integer","description":"-1 means unlimited."}},"required":["used","capacity"],"description":"Tracked prompts (active or paused) against the plan capacity."}},"required":["id","name","domain","siteUrl","status","createdAt","setup","health","healthReasons","firstScanDone","lastScanAt","nextScanAt","nextScheduledScanAt","firstScan","platforms","cadence","locale","prompts"]},"ProjectSetup":{"type":"object","properties":{"state":{"type":"string","enum":["setup","active","paused","stuck"],"description":"`setup`: still being set up. `stuck`: a blocking problem needs a person (see `reason`)."},"reason":{"type":"string","nullable":true},"completedAt":{"type":"string","nullable":true,"format":"date-time","description":"When the first research and scan finished."},"blockers":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"since":{"type":"string","format":"date-time"}},"required":["code","message","since"]}}},"required":["state","reason","completedAt","blockers"]},"CompetitorList":{"type":"object","properties":{"competitors":{"type":"array","items":{"type":"string"},"description":"The tracked competitor names."},"roster":{"type":"array","items":{"$ref":"#/components/schemas/CompetitorRosterEntry"},"description":"How the next scan matches each competitor: its domain and other names."},"pinned":{"type":"boolean","description":"True when the list is pinned, so automated discovery leaves it as it is."},"pinnedAt":{"type":"string","nullable":true,"description":"ISO-8601 UTC when it was pinned; null when not pinned."}},"required":["competitors","roster","pinned","pinnedAt"]},"CompetitorRosterEntry":{"type":"object","properties":{"name":{"type":"string"},"domain":{"type":"string","nullable":true,"description":"The domain answers and citations are matched to; null when unknown."},"aliases":{"type":"array","items":{"type":"string"},"description":"Other names answers are matched to. The name's own spellings (Otterly AI for Otterly.AI) and the name the domain spells out (AthenaHQ for Athena at athenahq.ai) also match without being listed."}},"required":["name","domain","aliases"]},"CompetitorEdit":{"type":"object","properties":{"changed":{"type":"array","items":{"type":"string"},"description":"The names this request added, removed or updated; empty when nothing changed."},"competitors":{"type":"array","items":{"type":"string"},"description":"The competitor list after the request."},"pinned":{"type":"boolean","description":"True when the request changed and pinned the list, so automated discovery keeps it."},"roster":{"type":"array","items":{"$ref":"#/components/schemas/CompetitorRosterEntry"},"description":"How the next scan matches each competitor. Stored answers are not rewritten."}},"required":["changed","competitors","pinned","roster"]},"CompetitorAdd":{"type":"object","properties":{"competitors":{"type":"array","items":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"domain":{"type":"string","nullable":true,"maxLength":253,"description":"A bare host such as `athenahq.ai`. null removes one set here (a domain setup found stays).","example":"athenahq.ai"},"aliases":{"type":"array","items":{"type":"string","maxLength":200},"maxItems":20,"description":"Other names AI answers use for it (up to 8). Replaces the stored ones.","example":["AthenaHQ"]}},"required":["name"]}]},"minItems":1,"maxItems":50,"description":"Competitors to add: a name (a domain is fine), or `{ name, domain?, aliases? }`. Sending one already on the list with a domain or aliases updates them.","example":["Profound",{"name":"Athena","domain":"athenahq.ai","aliases":["AthenaHQ"]}]}},"required":["competitors"]},"CompetitorUpdate":{"type":"object","properties":{"domain":{"type":"string","nullable":true,"maxLength":253,"description":"A bare host such as `athenahq.ai`. null removes one set here (a domain setup found stays).","example":"athenahq.ai"},"aliases":{"type":"array","items":{"type":"string","maxLength":200},"maxItems":20,"description":"Other names AI answers use for it (up to 8). Replaces the stored ones.","example":["AthenaHQ"]}}},"Billing":{"type":"object","properties":{"plan":{"$ref":"#/components/schemas/PlanState"},"canManage":{"type":"boolean","description":"True when the key's creator is the workspace owner. Only the owner can change billing, as in the dashboard; anyone else should pass the links to the owner."},"links":{"type":"object","properties":{"manageBilling":{"type":"string","description":"Billing settings: plan, payment method and invoices (the Stripe portal opens from here).","example":"https://www.spreadjam.com/settings?section=billing"},"resumePlan":{"type":"string","description":"Choose a plan again after it ended. The plan dialog opens on this page for a lapsed workspace."},"buyCredits":{"type":"string","description":"Buy a credit pack or turn on auto top-up."},"changePlan":{"type":"string","description":"Change prompt capacity, platforms or scan cadence (the pricing page for a legacy plan)."}},"required":["manageBilling","resumePlan","buyCredits","changePlan"],"description":"Pages a person opens, signed in, to act on billing. Hand them to a person; they are not API calls."},"nextStep":{"type":"string","description":"What to do next, in one sentence."},"planPromptCapacity":{"type":"integer","description":"Tracked prompts the plan allows across every workspace on it."},"assignedPromptCapacity":{"type":"integer","description":"Prompts assigned to a workspace, summed."},"unassignedPromptCapacity":{"type":"integer","description":"Prompts the plan pays for that no workspace holds yet."},"allocations":{"type":"array","items":{"$ref":"#/components/schemas/JarAllocation"},"description":"How the plan's tracked prompts are split across the owner's workspaces. Only for the owner's key while the plan is live; a member's key gets none (its own workspace's share is plan.promptCapacity). Change it with PUT /v1/billing/allocations."}},"required":["plan","canManage","links","nextStep"]},"JarAllocation":{"type":"object","properties":{"workspaceId":{"type":"string","description":"The workspace (Jar) id."},"name":{"type":"string","description":"The workspace name."},"promptCapacity":{"type":"integer","description":"Its share of the plan's tracked prompts; 0 when it holds none."},"trackedPrompts":{"type":"integer","description":"Prompts holding a slot there now (tracked or paused)."},"isHome":{"type":"boolean","description":"The workspace the plan was bought in. It is billed there and keeps at least 10 prompts."}},"required":["workspaceId","name","promptCapacity","trackedPrompts","isHome"]},"BillingAllocationsPreview":{"type":"object","properties":{"planPromptCapacity":{"type":"integer","description":"Tracked prompts the plan allows across every workspace on it."},"assignedPromptCapacity":{"type":"integer","description":"Prompts assigned to a workspace, summed."},"unassignedPromptCapacity":{"type":"integer","description":"Prompts the plan pays for that no workspace holds yet."},"allocations":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/JarAllocation"},{"type":"object","properties":{"previousPromptCapacity":{"type":"integer","description":"Its share before this change."},"overflow":{"type":"integer","description":"Prompts it tracks beyond its new share (they need keep or overflow)."}},"required":["previousPromptCapacity","overflow"]}]}},"needsChoice":{"type":"boolean","description":"True when a workspace would track more than its new share, so the PUT needs keep or overflow."}},"required":["planPromptCapacity","assignedPromptCapacity","unassignedPromptCapacity","allocations","needsChoice"]},"BillingAllocationsChange":{"type":"object","properties":{"allocations":{"type":"array","items":{"type":"object","properties":{"workspaceId":{"type":"string","format":"uuid"},"promptCapacity":{"type":"integer","minimum":0,"description":"0 or 10+, in 10s.","example":100}},"required":["workspaceId","promptCapacity"]},"minItems":1,"maxItems":100},"keep":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":1000}},"overflow":{"type":"string","enum":["archive_lowest_priority"],"description":"Or drop lowest priority."}},"required":["allocations"]},"BillingAllocationsSaved":{"allOf":[{"$ref":"#/components/schemas/BillingAllocations"},{"type":"object","properties":{"archivedPrompts":{"type":"integer","description":"Prompts archived to fit the new shares."}},"required":["archivedPrompts"]}]},"BillingAllocations":{"type":"object","properties":{"planPromptCapacity":{"type":"integer","description":"Tracked prompts the plan allows across every workspace on it."},"assignedPromptCapacity":{"type":"integer","description":"Prompts assigned to a workspace, summed."},"unassignedPromptCapacity":{"type":"integer","description":"Prompts the plan pays for that no workspace holds yet."},"allocations":{"type":"array","items":{"$ref":"#/components/schemas/JarAllocation"},"description":"Every workspace the plan's owner owns, with its share and what it tracks."}},"required":["planPromptCapacity","assignedPromptCapacity","unassignedPromptCapacity","allocations"]},"Webhook":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"url":{"type":"string","description":"Where deliveries are POSTed. Treat it as a secret."},"enabled":{"type":"boolean"},"createdAt":{"type":"string","description":"ISO-8601 UTC timestamp."},"signingSecret":{"type":"string","description":"The secret each delivery is signed with: verify `X-Jam-Signature` = `v1=` + hex HMAC-SHA256(signingSecret, `${X-Jam-Timestamp}.${raw body}`).","example":"whsec_3f1c..."}},"required":["id","name","url","enabled","createdAt","signingSecret"]},"CreateWebhook":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100,"description":"A label (1 to 100 characters).","example":"Ops alerts"},"url":{"type":"string","format":"uri","description":"A public https URL. Private, loopback and cloud metadata addresses are refused.","example":"https://hooks.example.com/jam"},"enabled":{"type":"boolean","description":"Defaults to true."}},"required":["name","url"]},"UpdateWebhook":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100,"description":"A label (1 to 100 characters).","example":"Ops alerts"},"enabled":{"type":"boolean"}}},"NotificationRule":{"type":"object","properties":{"id":{"type":"string"},"eventCategory":{"type":"string","enum":["action_required","error","status_update","insight","completion"],"description":"action_required (needs input), error, status_update, insight, completion. GEO notification types map one to one: geo_action_required, geo_error, geo_status_update, geo_insight, geo_completion."},"channels":{"type":"array","items":{"type":"string"},"description":"Where this category goes: chat, email, slack, discord, telegram, imessage, custom_webhook. custom_webhook sends to every enabled webhook in GET /v1/webhooks."},"isActive":{"type":"boolean","description":"False: this category does not notify at all."},"batchingEnabled":{"type":"boolean"},"batchWindowMinutes":{"type":"integer"},"quietHoursStart":{"type":"string","nullable":true,"description":"HH:MM, in quietHoursTimezone."},"quietHoursEnd":{"type":"string","nullable":true},"quietHoursTimezone":{"type":"string","nullable":true}},"required":["id","eventCategory","channels","isActive","batchingEnabled","batchWindowMinutes","quietHoursStart","quietHoursEnd","quietHoursTimezone"]},"UpdateNotificationRule":{"type":"object","properties":{"channels":{"type":"array","items":{"type":"string","enum":["chat","email","slack","discord","telegram","imessage","custom_webhook"]},"minItems":1,"description":"Replaces the list. At least one channel.","example":["chat","custom_webhook"]},"isActive":{"type":"boolean"}}},"ApiError":{"type":"object","required":["error","code"],"properties":{"error":{"type":"string","description":"What went wrong and how to fix the request."},"code":{"type":"string","description":"Stable machine-readable code, e.g. invalid_request, unauthorized, rate_limited."},"requestId":{"type":"string","description":"Echoes the X-Request-Id header; quote it to support."},"docs":{"type":"string","description":"Where the error is explained."},"resolveUrl":{"type":"string","description":"402/403 plan errors: the dashboard page that resolves it."},"details":{"type":"array","description":"One entry per problem: field (dotted path), in (body, query, path, header) and message, which says what is accepted.","items":{"type":"object","additionalProperties":true}},"reason":{"type":"string","description":"Where one code covers several cases, which one: on POST /v1/visibility-runs 409s, already_running, already_measured_today or not_queued; content_exists or opportunity_dismissed on POST /v1/content; prompt_cap_reached on prompt adds; action_<status> (action_superseded, action_dismissed, ...) when the status of a Plan action refuses the step."},"context":{"type":"object","description":"The facts behind a refusal, as fields: contentId on content_exists; activeCount, cap, room and requested on prompt_cap_reached; actionId and status on a Plan action transition that does not apply.","additionalProperties":true},"overflow":{"type":"array","description":"409 allocation_needs_choice: each workspace whose new share is below what it tracks (workspaceId, name, trackedPrompts, promptCapacity, overflow).","items":{"type":"object","additionalProperties":true}}}}},"parameters":{}},"paths":{"/v1/me":{"get":{"operationId":"get_me","tags":["Meta"],"summary":"The authenticated key's workspace","description":"The key owner, workspace, plan (status, trial end, prompt capacity, platforms, scan cadence) and active project id and domain.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The authenticated workspace context.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Me"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/analytics/overview":{"get":{"operationId":"get_analytics_overview","tags":["Analytics"],"summary":"AI-visibility overview","description":"The dashboard's numbers for the window: visibility, citation share, position (with deltas, per platform), brand leaderboard, topic rankings, last and next scan. Send `X-Jam-Project` to pick a project.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"integer","description":"Days: 7, 30 or 90 (`30d` reads as 30).","enum":[7,30,90],"default":30,"example":30},"required":false,"description":"Days: 7, 30 or 90 (`30d` reads as 30).","name":"rangeDays","in":"query"}],"responses":{"200":{"description":"The visibility overview.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsOverview"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/analytics/prompts":{"get":{"operationId":"list_prompt_analytics","tags":["Analytics"],"summary":"Per-prompt analytics","description":"The dashboard prompts table's numbers for the window, a page at a time, in 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.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"integer","description":"Days: 7, 30 or 90 (`30d` reads as 30).","enum":[7,30,90],"default":30,"example":30},"required":false,"description":"Days: 7, 30 or 90 (`30d` reads as 30).","name":"rangeDays","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":50,"description":"Items per page (1–100).","example":20},"required":false,"description":"Items per page (1–100).","name":"limit","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":512,"description":"`pageInfo.nextCursor` from the previous page. Omit for the first page; send the same filters with it."},"required":false,"description":"`pageInfo.nextCursor` from the previous page. Omit for the first page; send the same filters with it.","name":"cursor","in":"query"},{"schema":{"anyOf":[{"type":"string","enum":["informational","commercial","comparison","transactional","support"]},{"type":"array","items":{"type":"string"}},{"type":"string"}],"description":"Filter by intent."},"required":false,"description":"Filter by intent.","name":"intent","in":"query"},{"schema":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}],"description":"Limit to these topic(s), as the dashboard picker does (repeat or comma-separate; \"Uncategorized\" for none). Metrics are computed over the selection."},"required":false,"description":"Limit to these topic(s), as the dashboard picker does (repeat or comma-separate; \"Uncategorized\" for none). Metrics are computed over the selection.","name":"topic","in":"query"},{"schema":{"anyOf":[{"type":"string","enum":["chatgpt","perplexity","gemini","claude","google_ai_overview","google_ai_mode","copilot"]},{"type":"array","items":{"type":"string"}},{"type":"string"}],"description":"Limit to these AI platform(s), as the dashboard picker does (repeat or comma-separate). One of chatgpt, perplexity, gemini, claude, google_ai_overview, google_ai_mode, copilot. Metrics are computed over the selection. A platform the project does not track (and has no answers from) is a 400 that lists the tracked ones."},"required":false,"description":"Limit to these AI platform(s), as the dashboard picker does (repeat or comma-separate). One of chatgpt, perplexity, gemini, claude, google_ai_overview, google_ai_mode, copilot. Metrics are computed over the selection. A platform the project does not track (and has no answers from) is a 400 that lists the tracked ones.","name":"platform","in":"query"},{"schema":{"type":"string","description":"Free-text search over prompt text and topic."},"required":false,"description":"Free-text search over prompt text and topic.","name":"query","in":"query"}],"responses":{"200":{"description":"The per-prompt analytics page.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromptAnalytics"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/analytics/metrics":{"get":{"operationId":"list_analytics_metrics","tags":["Analytics"],"summary":"Flattened metric rows","description":"Chart-ready rows: visibility, competitors, citations, platforms, topics or sources (cited source domains).","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","enum":["visibility","competitors","citations","platforms","topics","sources"],"description":"The metric family to flatten into chart-ready rows. `citations` is brand citation share: one row per tracked brand (yours and competitors) with its share of the answers that cite it. `sources` is the cited source domains: one row per domain the answers cited, with citation and answer counts and shares, your own site flagged `isOwned`.","example":"visibility"},"required":true,"description":"The metric family to flatten into chart-ready rows. `citations` is brand citation share: one row per tracked brand (yours and competitors) with its share of the answers that cite it. `sources` is the cited source domains: one row per domain the answers cited, with citation and answer counts and shares, your own site flagged `isOwned`.","name":"metric","in":"query"},{"schema":{"type":"integer","description":"Days: 7, 30 or 90 (`30d` reads as 30).","enum":[7,30,90],"default":30,"example":30},"required":false,"description":"Days: 7, 30 or 90 (`30d` reads as 30).","name":"rangeDays","in":"query"}],"responses":{"200":{"description":"The flattened metric rows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricRows"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/keywords":{"get":{"operationId":"list_keywords","tags":["Keywords"],"summary":"Keyword and topic visibility","description":"Per-topic visibility rankings (the `topics` analytics metric under its own name).","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"integer","description":"Days: 7, 30 or 90 (`30d` reads as 30).","enum":[7,30,90],"default":30,"example":30},"required":false,"description":"Days: 7, 30 or 90 (`30d` reads as 30).","name":"rangeDays","in":"query"}],"responses":{"200":{"description":"The topic visibility rows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricRows"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/brand":{"get":{"operationId":"get_brand","tags":["Brand"],"summary":"The active brand profile","description":"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`.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The active brand profile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandProfile"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"patch":{"operationId":"update_brand","tags":["Brand"],"summary":"Save brand positioning","description":"Write a new positioning version (`positioning`), set the products not to confuse the brand with (`notConfusedWith`), or both. Send at least one. Setting only `notConfusedWith` updates the active version in place. Requires a paid plan.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveBrandPositioning"}}}},"responses":{"200":{"description":"The new active version.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveBrandPositioningResult"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/brand/competitors":{"put":{"operationId":"pin_competitors","tags":["Brand"],"summary":"Pin the competitor list","description":"Pin and lock the competitor list on the active profile. Requires a paid plan.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PinCompetitors"}}}},"responses":{"200":{"description":"The pinned competitor count.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompetitorsResult"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"delete":{"operationId":"unpin_competitors","tags":["Brand"],"summary":"Clear the competitor pin","description":"Clear the competitor pin on the active profile, leaving the list untouched. Requires a paid plan.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The current competitor count.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompetitorsResult"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"get":{"operationId":"list_brand_competitors","tags":["Brand"],"summary":"The competitor list","description":"The tracked competitors, how each is matched, and whether the list is pinned.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The competitor list.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompetitorList"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"post":{"operationId":"add_brand_competitors","tags":["Brand"],"summary":"Add competitors","description":"Add competitors to the tracked list (keeping those 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.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompetitorAdd"}}}},"responses":{"200":{"description":"The list after the add.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompetitorEdit"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/brand/recalibrations":{"post":{"operationId":"recalibrate_brand","tags":["Brand"],"summary":"Start a recalibration","description":"Rebuild the GEO system layer toward the active authored positioning: research, demand and the content plan. On a plan with a prompt limit, the prompts Jam suggested, including ones approved during setup, are replaced over the next fill (archived, history kept); prompts you wrote, edited or paused stay. A plain `PATCH /brand` saves the profile and changes no prompts.","security":[{"bearerAuth":[]}],"responses":{"201":{"description":"The recalibration run.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Recalibration"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/prompts":{"get":{"operationId":"list_prompts","tags":["Prompts"],"summary":"Tracked and archived prompts","description":"Editable prompts with topic, persona and intent: tracked first, then archived (`list` narrows to one). Paged: `limit` (default 100, at most 100) and `cursor`; `pageInfo` says whether more pages follow and `counts` covers every page.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"anyOf":[{"type":"string","enum":["tracked","archived"]},{"type":"array","items":{"type":"string"}},{"type":"string"}],"description":"Only `tracked` or only `archived` prompts. Default both."},"required":false,"description":"Only `tracked` or only `archived` prompts. Default both.","name":"list","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":100,"description":"Items per page (1–100).","example":20},"required":false,"description":"Items per page (1–100).","name":"limit","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":512,"description":"`pageInfo.nextCursor` from the previous page. Omit for the first page; send the same filters with it."},"required":false,"description":"`pageInfo.nextCursor` from the previous page. Omit for the first page; send the same filters with it.","name":"cursor","in":"query"}],"responses":{"200":{"description":"The editable prompts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Prompts"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"post":{"operationId":"add_prompt","tags":["Prompts"],"summary":"Track a new prompt","description":"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.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddPrompt"}}}},"responses":{"200":{"description":"The project already tracked this text; the existing prompt, unchanged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddPromptResult"}}}},"201":{"description":"The new tracked prompt.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddPromptResult"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"put":{"operationId":"edit_prompts_bulk","tags":["Prompts"],"summary":"Reword, relabel, pause or resume many prompts at once","description":"Change up to 100 prompts by id atomically, keeping their history: each item sends `text`, `topic` (as PATCH /v1/prompts/{promptId}), `paused` (as POST .../pause), or any together, or `remove: true` alone (as DELETE /v1/prompts/{promptId}). Pausing, resuming or removing many prompts is one call per 100, not one per prompt. Pause applies to an active prompt and resume to a paused one; a prompt already in the state asked for is left as it is. A paused prompt keeps its slot under the prompt cap, so resuming never needs room. Any item that is missing, not editable, has invalid text, or cannot be paused or resumed fails the whole batch. Requires a paid plan.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkEditPrompts"}}}},"responses":{"200":{"description":"The per-prompt reword results.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkEditPromptsResult"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/prompts/cap":{"get":{"operationId":"get_prompt_cap","tags":["Prompts"],"summary":"Prompt cap state","description":"How many prompt slots are occupied and the effective cap.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The prompt cap state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromptCap"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/prompts/topics":{"get":{"operationId":"list_prompt_topics","tags":["Prompts"],"summary":"Live prompts by topic","description":"The topics of the workspace's active GEO project's tracked prompts, with counts.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The topics.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromptTopics"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/prompts/topics/{topic}":{"delete":{"operationId":"remove_prompt_topic","tags":["Prompts"],"summary":"Stop tracking a whole topic","description":"Archive every prompt of one topic, freeing their slots (history kept). Requires a paid plan.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200,"description":"The topic label, URL-encoded.","example":"CRM for startups"},"required":true,"description":"The topic label, URL-encoded.","name":"topic","in":"path"}],"responses":{"200":{"description":"The archived prompts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveTopicResult"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/prompts/suggestions":{"post":{"operationId":"suggest_prompts","tags":["Prompts"],"summary":"Suggest more prompts","description":"Jam writes relevant prompts up to the plan capacity (or a lower target). Runs in the background; poll GET /prompts/suggestions for progress. Requires a paid plan.","security":[{"bearerAuth":[]}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuggestPrompts"}}}},"responses":{"202":{"description":"The fill was queued.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuggestPromptsResult"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"get":{"operationId":"get_prompt_suggestion","tags":["Prompts"],"summary":"Progress of the latest suggestion fill","description":"The latest Suggest more fill's status; null when none was requested.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The fill progress.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromptSuggestion"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"delete":{"operationId":"cancel_prompt_suggestion","tags":["Prompts"],"summary":"Stop the running suggestion fill","description":"Stop the running Suggest more fill. Prompts it already added stay tracked. 409 when no fill is running. Removing or pausing prompts also stops it.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The stopped fill.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelPromptSuggestionResult"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/prompts/{promptId}":{"patch":{"operationId":"edit_prompt","tags":["Prompts"],"summary":"Reword or relabel a prompt in place","description":"Change a prompt's wording, topic or both, keeping its measurement history. Send `text`, `topic`, or both: a new wording starts a new version, a topic change alone keeps the version, and `topic: null` clears the label. Persona and intent are set when the prompt is added and cannot be changed; to change them, remove the prompt and add it again (a request that sends them still applies `text` and `topic` and lists them in `ignored`). Requires a paid plan.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"0b6f3c1e-2d4a-4f8e-9c1b-7a2e5d9f3c10"},"required":true,"name":"promptId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditPrompt"}}}},"responses":{"200":{"description":"The changed prompt.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditPromptResult"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"delete":{"operationId":"remove_prompt","tags":["Prompts"],"summary":"Stop tracking a prompt","description":"Soft-archive a tracked prompt (history kept). Idempotent. For many, send `remove: true` on up to 100 items to PUT /v1/prompts. Stops a running Suggest more fill (`fillStopped`). To track it again, POST /v1/prompts with its text. Requires a paid plan.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"0b6f3c1e-2d4a-4f8e-9c1b-7a2e5d9f3c10"},"required":true,"name":"promptId","in":"path"}],"responses":{"200":{"description":"The archived prompt.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemovePromptResult"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"get":{"operationId":"get_prompt","tags":["Prompts"],"summary":"One prompt","description":"One prompt by id, tracked or archived, with the fields GET /v1/prompts lists.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"promptId","in":"path"}],"responses":{"200":{"description":"The prompt.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Prompt"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/prompts/bulk":{"post":{"operationId":"add_prompts_bulk","tags":["Prompts"],"summary":"Track many prompts at once","description":"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.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkInsertPrompts"}}}},"responses":{"201":{"description":"The per-prompt tracking results.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkInsertPromptsResult"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/prompts/{promptId}/pause":{"post":{"operationId":"pause_prompt","tags":["Prompts"],"summary":"Pause or resume a prompt","description":"Toggle whether a prompt is measured; for many, send `paused` on up to 100 items to PUT /v1/prompts (edit_prompts_bulk) instead. Idempotent: pausing a paused prompt (or resuming an active one) answers 200 with its current status. Requires a paid plan.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"0b6f3c1e-2d4a-4f8e-9c1b-7a2e5d9f3c10"},"required":true,"name":"promptId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PausePrompt"}}}},"responses":{"200":{"description":"The prompt with its new status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PausePromptResult"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/prompts/{promptId}/replacements":{"post":{"operationId":"replace_prompt","tags":["Prompts"],"summary":"Replace a prompt, resetting history","description":"Reword a prompt and reset its measurement history (the old prompt is archived, a new one tracked in its place). Requires a paid plan.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"0b6f3c1e-2d4a-4f8e-9c1b-7a2e5d9f3c10"},"required":true,"name":"promptId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RewordPrompt"}}}},"responses":{"201":{"description":"The replacement prompt.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplacePromptResult"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/api-keys":{"get":{"operationId":"list_api_keys","tags":["API keys"],"summary":"List API keys","description":"The workspace's API keys (never the raw secret).","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The workspace's keys.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyList"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"post":{"operationId":"create_api_key","tags":["API keys"],"summary":"Create an API key","description":"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.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssueApiKey"}}}},"responses":{"201":{"description":"The created key, including the raw secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuedApiKey"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/api-keys/{keyId}":{"delete":{"operationId":"revoke_api_key","tags":["API keys"],"summary":"Revoke an API key","description":"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.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"keyId","in":"path"}],"responses":{"204":{"description":"The key was revoked (or was already revoked)."},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/opportunities":{"get":{"operationId":"list_opportunities","tags":["Opportunities"],"summary":"List opportunities","description":"The project's article opportunities and 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.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"anyOf":[{"type":"string","enum":["planned","dismissed","writing","claimed","creation_failed","open"]},{"type":"array","items":{"type":"string"}},{"type":"string"}],"description":"Only opportunities in these states."},"required":false,"description":"Only opportunities in these states.","name":"state","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":100,"description":"Items per page (1–100).","example":20},"required":false,"description":"Items per page (1–100).","name":"limit","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":512,"description":"`pageInfo.nextCursor` from the previous page. Omit for the first page; send the same filters with it."},"required":false,"description":"`pageInfo.nextCursor` from the previous page. Omit for the first page; send the same filters with it.","name":"cursor","in":"query"}],"responses":{"200":{"description":"The opportunities.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Opportunities"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/opportunities/{opportunityId}":{"get":{"operationId":"get_opportunity","tags":["Opportunities"],"summary":"Get an opportunity","description":"One opportunity with its state and the research it came from.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"0b6f2c1e-6d2a-4c3e-9a1f-5e8d7c4b3a21"},"required":true,"name":"opportunityId","in":"path"}],"responses":{"200":{"description":"The opportunity.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityDetail"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/opportunities/{opportunityId}/dismissal":{"post":{"operationId":"dismiss_opportunity","tags":["Opportunities"],"summary":"Dismiss an opportunity","description":"Dismiss an opportunity with no content; with content, discard the content instead (`DELETE /v1/content/{contentId}`), which takes the article out of the pipeline. Repeating it changes nothing. 422 when the opportunity has content: the message names the content, `reason` is `has_content`, or `content_discarded` when that content is already discarded (nothing left to do). Requires a paid plan.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"0b6f2c1e-6d2a-4c3e-9a1f-5e8d7c4b3a21"},"required":true,"name":"opportunityId","in":"path"}],"responses":{"204":{"description":"The opportunity is dismissed."},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"delete":{"operationId":"restore_opportunity","tags":["Opportunities"],"summary":"Restore a dismissed opportunity","description":"Undo a dismissal on an opportunity that has no content. Repeating it changes nothing. 422 when the opportunity has content (it was never dismissed): the message names the content, which `POST /v1/content/{contentId}/restorations` brings back if discarded. Requires a paid plan.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"0b6f2c1e-6d2a-4c3e-9a1f-5e8d7c4b3a21"},"required":true,"name":"opportunityId","in":"path"}],"responses":{"204":{"description":"The dismissal is undone."},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/opportunities/{opportunityId}/plan-requests":{"post":{"operationId":"request_opportunity_plan","tags":["Opportunities"],"summary":"Create content from an opportunity","description":"Jam researches, writes and reviews content for the opportunity (Plan, or Retry after a failure). Runs in the background; the content appears under /v1/content. Requires a paid plan.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"0b6f2c1e-6d2a-4c3e-9a1f-5e8d7c4b3a21"},"required":true,"name":"opportunityId","in":"path"}],"responses":{"202":{"description":"The request is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Accepted"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/opportunities/{opportunityId}/brief":{"get":{"operationId":"get_opportunity_brief","tags":["Opportunities"],"summary":"The brief to write an article from","description":"What an agent needs to write the article: the opportunity, its prompts, brand voice, sources, article plan, required GitHub frontmatter, and the exact `POST /v1/content` body. 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.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"0b6f2c1e-6d2a-4c3e-9a1f-5e8d7c4b3a21"},"required":true,"name":"opportunityId","in":"path"}],"responses":{"200":{"description":"The brief.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityBrief"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/opportunities/{opportunityId}/claims":{"post":{"operationId":"claim_opportunity","tags":["Opportunities"],"summary":"Claim an opportunity for an agent","description":"Hold the opportunity while your agent writes it: it becomes `claimed`, and neither Jam nor another agent writes 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.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"0b6f2c1e-6d2a-4c3e-9a1f-5e8d7c4b3a21"},"required":true,"name":"opportunityId","in":"path"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Claim"}}}},"responses":{"201":{"description":"The claim is open.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimOpened"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/opportunities/{opportunityId}/claims/current":{"delete":{"operationId":"release_opportunity_claim","tags":["Opportunities"],"summary":"Release an agent claim","description":"Give the opportunity back without a result; it is open again. 404 when no agent claim is open. Requires a paid plan.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"0b6f2c1e-6d2a-4c3e-9a1f-5e8d7c4b3a21"},"required":true,"name":"opportunityId","in":"path"}],"responses":{"204":{"description":"The claim is released."},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/opportunities/{opportunityId}/agent-failures":{"post":{"operationId":"report_opportunity_agent_failure","tags":["Opportunities"],"summary":"Report that the agent could not write it","description":"Release the agent claim and record `reason` as the failure users see (`creationFailure.code` `agent_failed`). 409 when the opportunity already has content. Requires a paid plan.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"0b6f2c1e-6d2a-4c3e-9a1f-5e8d7c4b3a21"},"required":true,"name":"opportunityId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFailure"}}}},"responses":{"204":{"description":"The failure is recorded and the claim released."},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/plan-batches":{"post":{"operationId":"create_plan_batch","tags":["Planning"],"summary":"Plan now","description":"Draft the top open content plan articles now: Jam picks the `count` best open article rows (default 3) as the batch runs and writes them in the background. Credits are the only limit. Requires a paid plan.","security":[{"bearerAuth":[]}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanBatch"}}}},"responses":{"202":{"description":"The request is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Accepted"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/content":{"post":{"operationId":"create_content","tags":["Content"],"summary":"Store a draft","description":"Store your agent's article as an opportunity's content, with its first revision (source `agent`). Releases the agent claim on the opportunity. Requires a paid plan.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateContent"}}}},"responses":{"201":{"description":"The new content and its first revision.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedContent"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"get":{"operationId":"list_content","tags":["Content"],"summary":"List content","description":"The project's content, states and current revision summaries, newest first. Paged: `limit` (default 100, at most 100) and `cursor`; `pageInfo` says whether more pages follow.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"anyOf":[{"type":"string","enum":["discarded","drafted"]},{"type":"array","items":{"type":"string"}},{"type":"string"}],"description":"Only content in these states."},"required":false,"description":"Only content in these states.","name":"state","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":100,"description":"Items per page (1–100).","example":20},"required":false,"description":"Items per page (1–100).","name":"limit","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":512,"description":"`pageInfo.nextCursor` from the previous page. Omit for the first page; send the same filters with it."},"required":false,"description":"`pageInfo.nextCursor` from the previous page. Omit for the first page; send the same filters with it.","name":"cursor","in":"query"}],"responses":{"200":{"description":"The content.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentList"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/content/{contentId}":{"get":{"operationId":"get_content","tags":["Content"],"summary":"Get content","description":"One content item with its state and current revision.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"7c9e6679-7425-40de-944b-e07fc1f90ae7"},"required":true,"name":"contentId","in":"path"}],"responses":{"200":{"description":"The content item.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentItem"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"delete":{"operationId":"discard_content","tags":["Content"],"summary":"Discard content","description":"Discard a content item. Its opportunity stays used. Repeating it changes nothing. Requires a paid plan.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"7c9e6679-7425-40de-944b-e07fc1f90ae7"},"required":true,"name":"contentId","in":"path"}],"responses":{"204":{"description":"The content is discarded."},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/content/{contentId}/restorations":{"post":{"operationId":"restore_content","tags":["Content"],"summary":"Restore discarded content","description":"Undo a discard. Repeating it changes nothing. Requires a paid plan.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"7c9e6679-7425-40de-944b-e07fc1f90ae7"},"required":true,"name":"contentId","in":"path"}],"responses":{"204":{"description":"The content is restored."},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/content/{contentId}/regenerations":{"post":{"operationId":"regenerate_content","tags":["Content"],"summary":"Write the content again","description":"Jam researches and writes the content again; it replaces the basis revision as the current draft. Runs in the background. Requires a paid plan.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"7c9e6679-7425-40de-944b-e07fc1f90ae7"},"required":true,"name":"contentId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegenerateContent"}}}},"responses":{"202":{"description":"The request is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Accepted"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/content/{contentId}/edit-requests":{"post":{"operationId":"request_content_edit","tags":["Content"],"summary":"Request an edit","description":"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.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"7c9e6679-7425-40de-944b-e07fc1f90ae7"},"required":true,"name":"contentId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditRequest"}}}},"responses":{"202":{"description":"The request is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Accepted"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/content/{contentId}/revisions":{"get":{"operationId":"list_content_revisions","tags":["Revisions"],"summary":"List revisions","description":"The content item's revisions without their articles, newest first.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"7c9e6679-7425-40de-944b-e07fc1f90ae7"},"required":true,"name":"contentId","in":"path"}],"responses":{"200":{"description":"The revisions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Revisions"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"post":{"operationId":"add_content_revision","tags":["Revisions"],"summary":"Store a revision","description":"Store an article you wrote as a new revision; it becomes the current draft. Requires a paid plan.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"7c9e6679-7425-40de-944b-e07fc1f90ae7"},"required":true,"name":"contentId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddRevision"}}}},"responses":{"201":{"description":"The new revision.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddedRevision"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/content/{contentId}/revisions/{revisionId}":{"get":{"operationId":"get_content_revision","tags":["Revisions"],"summary":"Get a revision","description":"One revision with its article.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"7c9e6679-7425-40de-944b-e07fc1f90ae7"},"required":true,"name":"contentId","in":"path"},{"schema":{"type":"string","format":"uuid","example":"2f1d3c4b-5a69-4e7d-8c0b-1a2b3c4d5e6f"},"required":true,"name":"revisionId","in":"path"}],"responses":{"200":{"description":"The revision.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Revision"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/content/{contentId}/destinations":{"get":{"operationId":"list_content_destinations","tags":["Publishing"],"summary":"Content's destinations","description":"Each destination the content is scheduled for, its publishing state and latest delivery attempt.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"7c9e6679-7425-40de-944b-e07fc1f90ae7"},"required":true,"name":"contentId","in":"path"}],"responses":{"200":{"description":"The publishing state per destination.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentDestinations"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/content/{contentId}/destinations/{destinationId}":{"put":{"operationId":"publish_content","tags":["Publishing"],"summary":"Publish content to a destination","description":"Ship 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.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"7c9e6679-7425-40de-944b-e07fc1f90ae7"},"required":true,"name":"contentId","in":"path"},{"schema":{"type":"string","format":"uuid","example":"a3bb189e-8bf9-4888-9912-ace4e6543002"},"required":true,"name":"destinationId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Publish"}}}},"responses":{"202":{"description":"The request is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptedDelivery"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"delete":{"operationId":"cancel_content_publishing","tags":["Publishing"],"summary":"Cancel publishing to a destination","description":"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.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"7c9e6679-7425-40de-944b-e07fc1f90ae7"},"required":true,"name":"contentId","in":"path"},{"schema":{"type":"string","format":"uuid","example":"a3bb189e-8bf9-4888-9912-ace4e6543002"},"required":true,"name":"destinationId","in":"path"},{"schema":{"type":"string","enum":["true","false"],"description":"Confirm that cancelling may withdraw an item in review on the provider.","example":"true"},"required":false,"description":"Confirm that cancelling may withdraw an item in review on the provider.","name":"withdraw","in":"query"}],"responses":{"204":{"description":"The schedule is cancelled."},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/content/{contentId}/deliveries":{"get":{"operationId":"list_content_deliveries","tags":["Deliveries"],"summary":"Content's deliveries","description":"Every request to send the content to a destination, newest first: when due, whether cancelled, how its attempt went.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"7c9e6679-7425-40de-944b-e07fc1f90ae7"},"required":true,"name":"contentId","in":"path"}],"responses":{"200":{"description":"The deliveries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Deliveries"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/content/{contentId}/publications":{"get":{"operationId":"list_content_publications","tags":["Publications"],"summary":"Content's publications","description":"Every page the content is live at, newest first.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"7c9e6679-7425-40de-944b-e07fc1f90ae7"},"required":true,"name":"contentId","in":"path"}],"responses":{"200":{"description":"The publications.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Publications"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"post":{"operationId":"mark_content_published","tags":["Publications"],"summary":"Mark as published","description":"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.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"7c9e6679-7425-40de-944b-e07fc1f90ae7"},"required":true,"name":"contentId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkPublished"}}}},"responses":{"201":{"description":"The publication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Publication"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/destinations":{"get":{"operationId":"list_destinations","tags":["Destinations"],"summary":"List destinations","description":"The active GEO project's destinations with their policy and connection status.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The destinations.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Destinations"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"post":{"operationId":"create_destination","tags":["Destinations"],"summary":"Add a destination","description":"Add a destination on a platform to the active GEO project. The project's first destination becomes its default. Requires a paid plan.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddDestination"}}}},"responses":{"201":{"description":"The new destination.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddedDestination"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/destinations/{destinationId}":{"patch":{"operationId":"update_destination","tags":["Destinations"],"summary":"Change publishing policy","description":"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.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"a3bb189e-8bf9-4888-9912-ace4e6543002"},"required":true,"name":"destinationId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DestinationPolicy"}}}},"responses":{"204":{"description":"The policy is changed."},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"delete":{"operationId":"remove_destination","tags":["Destinations"],"summary":"Remove a destination","description":"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.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"a3bb189e-8bf9-4888-9912-ace4e6543002"},"required":true,"name":"destinationId","in":"path"}],"responses":{"204":{"description":"The destination is removed."},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/destinations/{destinationId}/github":{"put":{"operationId":"configure_destination_github","tags":["Destinations"],"summary":"Connect a GitHub repository","description":"Connect the destination to a repository: Jam checks the repository, branch and folder, detects the article format, and stores it. Configuring again replaces it. Requires a paid plan.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"a3bb189e-8bf9-4888-9912-ace4e6543002"},"required":true,"name":"destinationId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigureGithubDestination"}}}},"responses":{"200":{"description":"The stored configuration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GithubDestination"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/visibility-runs":{"post":{"operationId":"create_visibility_run","tags":["Visibility runs"],"summary":"Run the visibility scan now","description":"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. Every 409 has `Retry-After` and a `reason`: `already_running` (the message names the run; Retry-After 60), `already_measured_today` (Retry-After counts down to the next UTC day) or `not_queued` (retry shortly).","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VisibilityRunRequest"}}}},"responses":{"202":{"description":"The scan is queued.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VisibilityRun"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"get":{"operationId":"list_visibility_runs","tags":["Visibility runs"],"summary":"List visibility runs","description":"Recent visibility scans, newest first: trigger, status, timing and answers per platform. Send `X-Jam-Project` to pick a project.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":50,"default":10,"description":"Items per page (1–50).","example":20},"required":false,"description":"Items per page (1–50).","name":"limit","in":"query"},{"schema":{"type":"string","format":"uuid","description":"The previous page's `pageInfo.nextCursor`."},"required":false,"description":"The previous page's `pageInfo.nextCursor`.","name":"cursor","in":"query"},{"schema":{"type":"string","format":"uuid","description":"Legacy `cursor` (the previous page's `nextBefore`)."},"required":false,"description":"Legacy `cursor` (the previous page's `nextBefore`).","name":"before","in":"query"}],"responses":{"200":{"description":"The runs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VisibilityRunList"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/visibility-runs/{runId}":{"get":{"operationId":"get_visibility_run","tags":["Visibility runs"],"summary":"Get a visibility run","description":"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.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"runId","in":"path"}],"responses":{"200":{"description":"The run.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VisibilityRunDetail"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/credits":{"get":{"operationId":"get_credits","tags":["Credits"],"summary":"The credit balance","description":"The key's workspace credit balance, plan allowance, refill time and recent charges.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"integer","nullable":true,"minimum":0,"maximum":50,"default":10,"description":"How many recent charges to include (default 10)."},"required":false,"description":"How many recent charges to include (default 10).","name":"recent","in":"query"}],"responses":{"200":{"description":"The credit balance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Credits"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/actions":{"get":{"operationId":"list_actions","tags":["Actions"],"summary":"List actions","description":"The project's Plan, highest priority first, with the count 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 content 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.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"anyOf":[{"type":"string","enum":["suggested","in_progress","sent","done","verified","unverified","dismissed","superseded"]},{"type":"array","items":{"type":"string"}},{"type":"string"}],"description":"Only actions in these statuses (repeat or comma-separate). One of: suggested, in_progress, sent, done, verified, unverified, dismissed, superseded."},"required":false,"description":"Only actions in these statuses (repeat or comma-separate). One of: suggested, in_progress, sent, done, verified, unverified, dismissed, superseded.","name":"status","in":"query"},{"schema":{"anyOf":[{"type":"string","enum":["page_edit","new_page","outreach","technical","community"]},{"type":"array","items":{"type":"string"}},{"type":"string"}],"description":"Only actions of these kinds. One of: page_edit, new_page, outreach, technical, community."},"required":false,"description":"Only actions of these kinds. One of: page_edit, new_page, outreach, technical, community.","name":"kind","in":"query"},{"schema":{"type":"string","enum":["true","false"],"description":"Also list actions a later research run no longer proposes. Default false."},"required":false,"description":"Also list actions a later research run no longer proposes. Default false.","name":"includeSuperseded","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":100,"description":"Items per page (1–100).","example":20},"required":false,"description":"Items per page (1–100).","name":"limit","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":512,"description":"`pageInfo.nextCursor` from the previous page. Omit for the first page; send the same filters with it."},"required":false,"description":"`pageInfo.nextCursor` from the previous page. Omit for the first page; send the same filters with it.","name":"cursor","in":"query"}],"responses":{"200":{"description":"The actions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Actions"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The workspace has no GEO project.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/actions/{actionId}":{"get":{"operationId":"get_action","tags":["Actions"],"summary":"Read an action","description":"Everything to do one action: evidence (`details`, `sources`), prompts to move (`questions`), target page, history, latest check, Jam's prepared code change, and `agentPrompt` (instructions for your agent, ending with how to report the work).","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"0b6f2c1e-6d2a-4c3e-9a1f-5e8d7c4b3a21"},"required":true,"name":"actionId","in":"path"}],"responses":{"200":{"description":"The action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionDetail"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such action in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/actions/{actionId}/completion":{"post":{"operationId":"complete_action","tags":["Actions"],"summary":"Mark an action done","description":"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.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"0b6f2c1e-6d2a-4c3e-9a1f-5e8d7c4b3a21"},"required":true,"name":"actionId","in":"path"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionCompletion"}}}},"responses":{"200":{"description":"The action after the report.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionTransitionResult"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such action in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"The action is dismissed or superseded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/actions/{actionId}/start":{"post":{"operationId":"start_action","tags":["Actions"],"summary":"Mark an action started","description":"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 content 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.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"0b6f2c1e-6d2a-4c3e-9a1f-5e8d7c4b3a21"},"required":true,"name":"actionId","in":"path"}],"responses":{"200":{"description":"The action after the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionTransitionResult"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such action in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"The action is not `suggested`, `unverified` or already `in_progress`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/actions/{actionId}/sent":{"post":{"operationId":"report_action_sent","tags":["Actions"],"summary":"Report an outreach pitch sent","description":"Outreach only: the pitch went out; 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.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"0b6f2c1e-6d2a-4c3e-9a1f-5e8d7c4b3a21"},"required":true,"name":"actionId","in":"path"}],"responses":{"200":{"description":"The action after the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionTransitionResult"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such action in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"The action is not `suggested`, `in_progress` or `unverified`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/actions/{actionId}/dismissal":{"post":{"operationId":"dismiss_action","tags":["Actions"],"summary":"Dismiss an action","description":"Take an open action off the content plan (status `dismissed`). `DELETE` restores it. Safe to repeat: an action already in that status answers 200 with it and records nothing.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"0b6f2c1e-6d2a-4c3e-9a1f-5e8d7c4b3a21"},"required":true,"name":"actionId","in":"path"}],"responses":{"200":{"description":"The action after the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionTransitionResult"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such action in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"The action is already done, verified or superseded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"delete":{"operationId":"restore_action","tags":["Actions"],"summary":"Restore a dismissed action","description":"Put a dismissed action back on the content plan, as it was before any work (`suggested`). Safe to repeat: an action already in that status answers 200 with it and records nothing.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"0b6f2c1e-6d2a-4c3e-9a1f-5e8d7c4b3a21"},"required":true,"name":"actionId","in":"path"}],"responses":{"200":{"description":"The action after the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionTransitionResult"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such action in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"The action is not dismissed (or already `suggested`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/actions/{actionId}/checks":{"post":{"operationId":"check_action_again","tags":["Actions"],"summary":"Check a done action again","description":"Re-verify a `done` or `unverified` action: a new done claim (at `url`, else the last claim's page) that Jam checks again. 409 when the action is not `done` or `unverified`.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"0b6f2c1e-6d2a-4c3e-9a1f-5e8d7c4b3a21"},"required":true,"name":"actionId","in":"path"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionCheck"}}}},"responses":{"200":{"description":"The action after the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionTransitionResult"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such action in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"The action is not `done` or `unverified`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/actions/{actionId}/executions":{"post":{"operationId":"create_action_execution","tags":["Actions"],"summary":"Have Jam do an action","description":"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.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"0b6f2c1e-6d2a-4c3e-9a1f-5e8d7c4b3a21"},"required":true,"name":"actionId","in":"path"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionExecutionRequest"}}}},"responses":{"202":{"description":"The work is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionExecution"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"Credits cannot cover it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such action in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Default mode: the action is done or dismissed, its article is past drafting, or a change is already in flight.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Jam cannot do this action (use its `agentPrompt`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/action-completions/{token}":{"post":{"operationId":"complete_action_with_token","tags":["Actions"],"summary":"Report an action done with its completion token","description":"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.","parameters":[{"schema":{"type":"string","pattern":"^gac_[0-9a-f]{32}$","example":"gac_00000000000000000000000000000000"},"required":true,"name":"token","in":"path"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionCompletion"}}}},"responses":{"200":{"description":"The action after the report.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["suggested","in_progress","sent","done","verified","unverified","dismissed","superseded"]}},"required":["status"]}}}},"400":{"description":"The token is not a completion token."},"402":{"description":"The workspace's plan has ended: it is read-only."},"404":{"description":"No action has this token."}}}},"/v1/agent-connect":{"post":{"operationId":"start_agent_connect","tags":["Agent connect"],"summary":"Start an agent connect session","description":"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.","security":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentConnectStart"}}}},"responses":{"201":{"description":"The session.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentConnectSession"}}}}}}},"/v1/agent-connect/{pollToken}":{"get":{"operationId":"get_agent_connect","tags":["Agent connect"],"summary":"Poll an agent connect session","description":"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.","security":[],"parameters":[{"schema":{"type":"string","pattern":"^jcp_[0-9a-f]{64}$","example":"jcp_0000000000000000000000000000000000000000000000000000000000000000"},"required":true,"name":"pollToken","in":"path"}],"responses":{"200":{"description":"Where the session stands.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentConnectPoll"}}}}}}},"/v1/pricing":{"get":{"operationId":"get_pricing","tags":["Pricing"],"summary":"Plans and prices","description":"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.","security":[],"parameters":[{"schema":{"type":"integer","nullable":true,"description":"Quote this capacity (50 to 1,000 in steps of 50).","example":200},"required":false,"description":"Quote this capacity (50 to 1,000 in steps of 50).","name":"promptCapacity","in":"query"},{"schema":{"type":"string","enum":["weekly","every_other_day","daily"],"description":"Quote this scan cadence."},"required":false,"description":"Quote this scan cadence.","name":"cadence","in":"query"},{"schema":{"type":"string","description":"Quote these platforms, comma separated (chatgpt, gemini, perplexity, google_ai_mode, google_ai_overview, copilot, claude).","example":"chatgpt,perplexity,gemini"},"required":false,"description":"Quote these platforms, comma separated (chatgpt, gemini, perplexity, google_ai_mode, google_ai_overview, copilot, claude).","name":"platforms","in":"query"},{"schema":{"type":"integer","nullable":true,"description":"Quote this monthly work credit allowance (1000, 2000, 5000, 10000)."},"required":false,"description":"Quote this monthly work credit allowance (1000, 2000, 5000, 10000).","name":"workCredits","in":"query"}],"responses":{"200":{"description":"The offer.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Pricing"},{"$ref":"#/components/schemas/PricingQuote"}]}}}}}}},"/v1/site-changes/{changeId}":{"get":{"operationId":"get_site_change","tags":["Site changes"],"summary":"Read a site change","description":"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).","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"7c9e6679-7425-40de-944b-e07fc1f90ae7"},"required":true,"name":"changeId","in":"path"}],"responses":{"200":{"description":"The change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteChange"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such change in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"delete":{"operationId":"discard_site_change","tags":["Site changes"],"summary":"Discard a site change","description":"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.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"7c9e6679-7425-40de-944b-e07fc1f90ae7"},"required":true,"name":"changeId","in":"path"}],"responses":{"204":{"description":"Discarded."},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/site-changes/{changeId}/pull-requests":{"post":{"operationId":"create_site_change_pull_request","tags":["Site changes"],"summary":"Open the pull request for a site change","description":"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.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"7c9e6679-7425-40de-944b-e07fc1f90ae7"},"required":true,"name":"changeId","in":"path"}],"responses":{"202":{"description":"The pull request is being opened.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Accepted"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/research":{"get":{"operationId":"get_research","tags":["Research"],"summary":"Read the research state","description":"Research state: running or not, the latest run's timing and end, the request in flight, whether Research again is accepted and its hold (500 credits; the first run is free), and whether the free top-up could run.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The research state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResearchState"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The workspace has no GEO project.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/research/report":{"get":{"operationId":"get_research_report","tags":["Research"],"summary":"Read the latest research report","description":"The latest successful research: answers read, and each proposed action, best first, with its why, evidence (`details`, `sources`) and target prompts. `report` is null before any run succeeded. Each action is also at `GET /v1/actions/{id}` with its `agentPrompt`.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The report.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResearchReportResult"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The workspace has no GEO project.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/research-requests":{"post":{"operationId":"create_research_request","tags":["Research"],"summary":"Research again","description":"Ask Jam to research the active project again and rewrite the content 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.","security":[{"bearerAuth":[]}],"responses":{"202":{"description":"The run is requested.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResearchRequest"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/answers":{"get":{"operationId":"list_answers","tags":["Answers"],"summary":"List AI answers","description":"The project's AI answers, newest first: what each platform said to each prompt, the tracked brands it named and the sources it cited. Filter by prompt, platform, time, own-domain citation or competitor. Send `X-Jam-Project` to pick a project.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","description":"Only answers to this prompt."},"required":false,"description":"Only answers to this prompt.","name":"promptId","in":"query"},{"schema":{"anyOf":[{"type":"string","enum":["chatgpt","perplexity","gemini","claude","google_ai_overview","google_ai_mode","copilot"]},{"type":"array","items":{"type":"string"}},{"type":"string"}],"description":"Only answers from these platforms."},"required":false,"description":"Only answers from these platforms.","name":"platform","in":"query"},{"schema":{"type":"string","description":"Only answers observed at or after this time. An ISO-8601 date-time with a zone, e.g. 2026-11-01T00:00:00Z (send + as %2B), or a bare date (2026-11-01) for midnight UTC.","format":"date-time","example":"2026-11-01T00:00:00Z"},"required":false,"description":"Only answers observed at or after this time. An ISO-8601 date-time with a zone, e.g. 2026-11-01T00:00:00Z (send + as %2B), or a bare date (2026-11-01) for midnight UTC.","name":"since","in":"query"},{"schema":{"type":"string","description":"Only answers observed before this time. An ISO-8601 date-time with a zone, e.g. 2026-11-01T00:00:00Z (send + as %2B), or a bare date (2026-11-01) for midnight UTC.","format":"date-time","example":"2026-11-01T00:00:00Z"},"required":false,"description":"Only answers observed before this time. An ISO-8601 date-time with a zone, e.g. 2026-11-01T00:00:00Z (send + as %2B), or a bare date (2026-11-01) for midnight UTC.","name":"until","in":"query"},{"schema":{"type":"string","enum":["true","false"],"description":"true: only answers citing the project's domain; false: only those not citing it."},"required":false,"description":"true: only answers citing the project's domain; false: only those not citing it.","name":"cited","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Only answers naming this tracked competitor (case-insensitive)."},"required":false,"description":"Only answers naming this tracked competitor (case-insensitive).","name":"competitor","in":"query"},{"schema":{"type":"string","enum":["true","false"],"description":"true: each answer whole (up to 50,000 characters). By default the text is cut to 1,000 characters and `answer.truncated` says so."},"required":false,"description":"true: each answer whole (up to 50,000 characters). By default the text is cut to 1,000 characters and `answer.truncated` says so.","name":"full","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20,"description":"Items per page (1–100).","example":20},"required":false,"description":"Items per page (1–100).","name":"limit","in":"query"},{"schema":{"type":"string","maxLength":500,"description":"The `nextCursor` of the previous page."},"required":false,"description":"The `nextCursor` of the previous page.","name":"cursor","in":"query"}],"responses":{"200":{"description":"One page of answers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnswerPage"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/prompts/{promptId}/answers":{"get":{"operationId":"list_prompt_answers","tags":["Answers"],"summary":"List one prompt's answers","description":"One prompt's answers across scans, newest first; filters as `GET /v1/answers`.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"promptId","in":"path"},{"schema":{"anyOf":[{"type":"string","enum":["chatgpt","perplexity","gemini","claude","google_ai_overview","google_ai_mode","copilot"]},{"type":"array","items":{"type":"string"}},{"type":"string"}],"description":"Only answers from these platforms."},"required":false,"description":"Only answers from these platforms.","name":"platform","in":"query"},{"schema":{"type":"string","description":"Only answers observed at or after this time. An ISO-8601 date-time with a zone, e.g. 2026-11-01T00:00:00Z (send + as %2B), or a bare date (2026-11-01) for midnight UTC.","format":"date-time","example":"2026-11-01T00:00:00Z"},"required":false,"description":"Only answers observed at or after this time. An ISO-8601 date-time with a zone, e.g. 2026-11-01T00:00:00Z (send + as %2B), or a bare date (2026-11-01) for midnight UTC.","name":"since","in":"query"},{"schema":{"type":"string","description":"Only answers observed before this time. An ISO-8601 date-time with a zone, e.g. 2026-11-01T00:00:00Z (send + as %2B), or a bare date (2026-11-01) for midnight UTC.","format":"date-time","example":"2026-11-01T00:00:00Z"},"required":false,"description":"Only answers observed before this time. An ISO-8601 date-time with a zone, e.g. 2026-11-01T00:00:00Z (send + as %2B), or a bare date (2026-11-01) for midnight UTC.","name":"until","in":"query"},{"schema":{"type":"string","enum":["true","false"],"description":"true: only answers citing the project's domain; false: only those not citing it."},"required":false,"description":"true: only answers citing the project's domain; false: only those not citing it.","name":"cited","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Only answers naming this tracked competitor (case-insensitive)."},"required":false,"description":"Only answers naming this tracked competitor (case-insensitive).","name":"competitor","in":"query"},{"schema":{"type":"string","enum":["true","false"],"description":"true: each answer whole (up to 50,000 characters). By default the text is cut to 1,000 characters and `answer.truncated` says so."},"required":false,"description":"true: each answer whole (up to 50,000 characters). By default the text is cut to 1,000 characters and `answer.truncated` says so.","name":"full","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20,"description":"Items per page (1–100).","example":20},"required":false,"description":"Items per page (1–100).","name":"limit","in":"query"},{"schema":{"type":"string","maxLength":500,"description":"The `nextCursor` of the previous page."},"required":false,"description":"The `nextCursor` of the previous page.","name":"cursor","in":"query"}],"responses":{"200":{"description":"One page of answers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnswerPage"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/projects":{"get":{"operationId":"list_projects","tags":["Projects"],"summary":"List projects","description":"The workspace's projects that are not archived, newest first. A project's data is not nested under it: send its `id` in the `X-Jam-Project` header on the other routes (for example `GET /v1/prompts` with `X-Jam-Project: <id>`); without the header a request acts on the default project. Over MCP, pass `projectId` instead.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The projects.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectList"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/projects/{projectId}":{"get":{"operationId":"get_project","tags":["Projects"],"summary":"Get a project","description":"One project's status: setup state (and why stuck), first scan done, last and next scan, platforms, cadence, locale and prompt capacity. A project's data is not nested under it: send its `id` in the `X-Jam-Project` header on the other routes (for example `GET /v1/prompts` with `X-Jam-Project: <id>`); without the header a request acts on the default project. Over MCP, pass `projectId` instead.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"projectId","in":"path"}],"responses":{"200":{"description":"The project.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/brand/competitors/{name}":{"patch":{"operationId":"update_brand_competitor","tags":["Brand"],"summary":"Set a competitor's domain or other names","description":"Set one competitor's domain and/or other names (`aliases`), 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.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200,"example":"Athena"},"required":true,"name":"name","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompetitorUpdate"}}}},"responses":{"200":{"description":"The list and roster after the update.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompetitorEdit"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"delete":{"operationId":"remove_brand_competitor","tags":["Brand"],"summary":"Remove a competitor","description":"Remove a competitor by name (case-insensitive, URL-encoded) and pin the list. The name may be another name of a tracked one (an alias, or its domain); an alias two competitors share removes neither. Idempotent: an untracked name answers 200 with `changed: []` and writes nothing. Acts on the active project. Requires a paid plan.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200,"example":"Profound"},"required":true,"name":"name","in":"path"}],"responses":{"200":{"description":"The list after the removal.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompetitorEdit"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/billing":{"get":{"operationId":"get_billing","tags":["Billing"],"summary":"Plan state and billing links","description":"The plan (status, trial or paid end, why it lapsed, what it includes), whether the key's creator (owner only) may change it, and dashboard links to manage billing, resume, buy credits or change plan. Credit balances are at GET /v1/credits. A 402 answer carries the matching link as `resolveUrl`.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The billing summary.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Billing"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/billing/allocations/preview":{"post":{"operationId":"preview_billing_allocations","tags":["Billing"],"summary":"Preview a split of the plan's prompts","description":"What PUT /v1/billing/allocations would do, writing nothing. Each workspace's new share and how many of its prompts would not fit. Owner only.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingAllocationsChange"}}}},"responses":{"200":{"description":"The split as it would be.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingAllocationsPreview"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"The key's creator is not the workspace owner, or the plan does not allow a split.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"A workspace in the body is not one the owner owns.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"The split breaks a rule (steps, the plan total, the home workspace); the message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/billing/allocations":{"put":{"operationId":"set_billing_allocations","tags":["Billing"],"summary":"Split prompts across workspaces","description":"Moves prompt slots between workspaces. For example 100 to one and 400 to another on a 500 prompt plan; no charge, the plan total does not change. A workspace given fewer slots than it tracks archives prompts, so send `keep` or `overflow` for it; without either the answer is 409 `allocation_needs_choice` listing each such workspace. Owner only. Safe to retry with an `Idempotency-Key`.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingAllocationsChange"}}}},"responses":{"200":{"description":"The split as saved.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingAllocationsSaved"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"The key's creator is not the workspace owner, or the plan does not allow a split.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"A workspace in the body is not one the owner owns.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"`allocation_needs_choice` (with `overflow`), another billing change still running (`reason` busy, retry after `Retry-After`), or prompts changed since the keep list was chosen (`reason` keep_stale).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"The split breaks a rule (steps, the plan total, the home workspace) or a keep list is longer than its share.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/webhooks":{"get":{"operationId":"list_webhooks","tags":["Webhooks"],"summary":"List webhooks","description":"The workspace's webhook destinations, oldest first, each with its signing secret. Notifications routed to custom webhooks are POSTed to every enabled one.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The webhooks.","content":{"application/json":{"schema":{"type":"object","properties":{"webhooks":{"type":"array","items":{"$ref":"#/components/schemas/Webhook"}}},"required":["webhooks"]}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"post":{"operationId":"create_webhook","tags":["Webhooks"],"summary":"Add a webhook","description":"Add a destination for the notifications routed to custom webhooks. Returns the webhook with its signing secret. Accepts `Idempotency-Key`.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWebhook"}}}},"responses":{"201":{"description":"The new webhook.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/webhooks/{webhookId}":{"patch":{"operationId":"update_webhook","tags":["Webhooks"],"summary":"Rename, enable or disable a webhook","description":"A disabled webhook keeps its URL and secret but receives nothing.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","description":"A webhook id from GET /v1/webhooks."},"required":true,"description":"A webhook id from GET /v1/webhooks.","name":"webhookId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWebhook"}}}},"responses":{"200":{"description":"The updated webhook.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"delete":{"operationId":"delete_webhook","tags":["Webhooks"],"summary":"Remove a webhook","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","description":"A webhook id from GET /v1/webhooks."},"required":true,"description":"A webhook id from GET /v1/webhooks.","name":"webhookId","in":"path"}],"responses":{"204":{"description":"The webhook is removed."},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/notification-rules":{"get":{"operationId":"list_notification_rules","tags":["Notifications"],"summary":"Notification rules","description":"The key creator's notification routing: one rule per event category, its channels, and whether it is on. Rules are per member, as in Settings > Notifications; the defaults are created on first read.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The rules.","content":{"application/json":{"schema":{"type":"object","properties":{"rules":{"type":"array","items":{"$ref":"#/components/schemas/NotificationRule"}}},"required":["rules"]}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/notification-rules/{category}":{"patch":{"operationId":"update_notification_rule","tags":["Notifications"],"summary":"Change a notification rule","description":"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.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","enum":["action_required","error","status_update","insight","completion"],"description":"The event category the rule covers.","example":"action_required"},"required":true,"description":"The event category the rule covers.","name":"category","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateNotificationRule"}}}},"responses":{"200":{"description":"The updated rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationRule"}}}},"400":{"description":"Invalid request: a parameter or body field is wrong. `details` lists each problem and what is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed or revoked API key (`Authorization: Bearer sk_…`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"The plan has lapsed or credits are short; `resolveUrl` is where a person fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"The resource, or the project the key or `X-Jam-Project` selects, does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited` (per-key rate) or `too_many_concurrent` (expensive reads in flight); retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}}}}