Peach / Docs / API

Opportunities

What to fix, ranked from your checks, and how to act on each one, from a brief for a new article to a correction for a wrong claim.

Updated

This page as Markdown

In short. After every check Peach lists what to fix, ranked by how much it matters: questions where a competitor is named and you aren't, questions nobody wins, answers that name you but link elsewhere, and more. Each one can become an article, point at an existing page, or be dismissed.

All paths are relative to https://app.gotopeach.com/api/v1.

Listing and refreshing

Endpoint What it does Credits Key permission
GET /sites/{domain}/opportunities What to fix, ranked: competitor gaps, unanswered questions, named but not linked, slipping, weak pages, wrong claims. MCP: list_opportunities. Free opportunities
POST /sites/{domain}/opportunities/refresh Work out the opportunities again from the latest check, with Google ranks and fact checks. 15 opportunities + spend
PATCH /opportunities/{id} Dismiss, snooze, reopen or mark an opportunity done. MCP: update_opportunity. Free opportunities + write

Opportunities are worked out again after every check, at no charge. Refresh also looks up where your pages rank in Google and checks the engines' answers against the verified claims in your Company Brain, which is why it costs credits.

Each opportunity has an impact from 0 to 100 and a band: High from 60, Medium from 35, Low below. Impact weighs the kind of gap, the question's priority, how many engines missed you and how strongly competitors are named.

Kinds

type What it means
competitor_gap A competitor is named for a tracked question and you aren't.
unanswered Nobody you track is named for the question.
not_cited An engine that searched the web named you, but linked to other sites.
slipping You were named for the question before and aren't now.
weak_page The page meant to win the question ranks poorly in Google.
wrong_claim An engine says something that contradicts a verified claim in your Company Brain.

Statuses

open, in_progress, done, snoozed and dismissed. List with ?status= (default open, or all) and ?type=.

  • Dismiss with an optional dismissReason of up to 200 characters. A dismissed opportunity stays dismissed.
  • Snooze for snoozeDays, 1 to 90 (7 by default).
  • Done marks it fixed. An opportunity is only closed by itself when the gap is really fixed, and a done one opens again if the gap comes back.
  • Publishing an article made for an opportunity marks it done.

Acting on one

Endpoint What it does Credits Key permission
GET /opportunities/{id}/pages Pages that may already answer the opportunity's question, and whether to create or improve. Free opportunities
POST /opportunities/{id}/brief Start an article for the opportunity: makes an approved topic you can outline. MCP: create_brief. Free opportunities + write
POST /opportunities/{id}/owner Set the page on your site that should win the question. Free opportunities + write
POST /opportunities/{id}/skip Skip it: an existing page already covers the question. Free opportunities + write
POST /opportunities/{id}/correction A correction brief for a wrong claim the engines make (a draft article). Free opportunities + write
  1. Check what you already have. GET /opportunities/{id}/pages lists pages on your site that may already answer the question, and says whether to improve one or create a new one.
  2. Then one of:
    • Brief. Makes an approved topic for the question and answers with its topicId. Next, write its outline with POST /topics/{id}/outline.
    • Owner. Sets the https page on your site that should win the question. To replace an owner already set, send replace: true.
    • Skip. An existing page already covers it.
    • Correction. For a wrong_claim: a correction brief, as a draft article, saying what the engines get wrong and what is true. Free.

The searches the engines ran

Endpoint What it does Credits Key permission
GET /sites/{domain}/searches The web searches the engines ran when answering, and whether each is tracked. Free opportunities

When an engine searched the web to answer a tracked question, Peach keeps the searches it ran. This lists them for the site, and whether each is a question you already track. A search worth tracking can be added with POST /sites/{domain}/questions.