Developer docs

Make an FAQ action from picked entries

POST/sites/{siteId}/pages/{pageId}/faq-suggest/action
Scope
actions:apply
MCP tool
faq_action

Make an FAQ action from picked entries Turns picked entries of the suggested FAQ into an action for this page: the FAQ block (questions as headings, answers under them) and its FAQPage markup, built from the very same text so the markup matches what the page shows. Picking again replaces the draft of the open action. Nothing is written to the website: add the block, publish, then mark the action done.

Parameters

NameInDetails
siteIdRequiredpathstringWebsite id, from GET /sites.
pageIdRequiredpathstringPage id, from GET /pages or GET /pages/findings.

Request body

FieldDetails
pickslist of integer · required; at most 8 items; suggestedFaq indexes to include
headingstring · at most 120 characters; The block's heading; default "Frequently asked questions"
{
  "picks": [
    0,
    1
  ],
  "heading": "Sizing questions"
}

Response

200 · application/json

FieldDetails
actionobject · required
action.idstring · required
action.createdtrue or false · required; False when an open FAQ action for this page was updated
action.rulestring · required; FAQ-ADD-001
action.linkaddress (URL) · required
htmlstring · required; The FAQ block
jsonLdstring · required; The FAQPage markup, as a script element

Errors

StatusMeaning
400Bad request. Codes: missing_argument, bad_pick, bad_heading.
401Missing, unknown or revoked key. Codes: missing_key, invalid_key.
403The key lacks the scope, covers another website, or its owner lost access. Codes: missing_scope, other_site, owner_left, no_owner, forbidden.
404Not found. Codes: not_found.
409Conflict with the current state. Codes: not_run.
429Too many requests this hour for this key. Codes: rate_limited.

Example request

curl -X POST \
  -H "Authorization: Bearer mr_ws_…" \
  -H "Content-Type: application/json" \
  -d '{"picks":[0,1],"heading":"Sizing questions"}' \
  "https://app.monoranks.com/api/v1/sites/SITE_ID/pages/PAGE_ID/faq-suggest/action"

Example response

{
  "action": {
    "id": "b2e4c6a8-1d3f-4a5b-9c7d-0e2f4a6b8c1d",
    "created": true,
    "rule": "FAQ-ADD-001",
    "link": "https://app.monoranks.com/sites/3f6c2a1e-8b4d-4c7a-9e21-5d0b7a6f4c13/actions/b2e4c6a8-1d3f-4a5b-9c7d-0e2f4a6b8c1d"
  },
  "html": "<section class=\"faq\">\n  <h2>Sizing questions</h2>\n  <h3>How do I know what size trail bike I need?</h3>\n  <p>Start from your height: riders from 170 to 180 cm usually fit a size M frame.</p>\n</section>",
  "jsonLd": "<script type=\"application/ld+json\">\n{\"@context\":\"https://schema.org\",\"@type\":\"FAQPage\",\"mainEntity\":[{\"@type\":\"Question\",\"name\":\"How do I know what size trail bike I need?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Start from your height: riders from 170 to 180 cm usually fit a size M frame.\"}}]}\n</script>"
}

The MCP server does the same with the tool faq_action.