Mentola SEO API, version 1

Everything the product does is available over HTTP. The Laravel package uses one half of it; agencies, Revixon Admin and your own automation use the other.

Base URL and versioning

https://marketing.mentola.com/api/seo/v1. Additive changes ship within v1. Removing or renaming a field, or changing a status code, goes to v2 and v1 keeps answering.

Authentication

CredentialPrefixReachesUsed by
Site tokenmseo_One websiteThe Laravel package installed on that website
Organization tokenmtl_Every website in the account, with seo:read and/or seo:writeAgencies, integrations, automation

Both travel as Authorization: Bearer. The token decides the tenant: no request names an organization, and a token for one website cannot reach another. Tokens are stored hashed and can be revoked from the dashboard at any time.

Errors

{ "error": { "code": "validation_failed", "message": "The given data was invalid.", "details": { "url": ["..."] } } }

Codes: validation_failed, unauthenticated, forbidden, not_found, conflict, rate_limited, server_error, plan_limit_reached (402), site_not_verified and audit_running (409), redirect_loop (409). Write endpoints accept an Idempotency-Key header.

Site endpoints (site token)

EndpointPurpose
POST /connect/handshakeThe package introduces itself; returns site settings and the metadata version.
POST /sync/pagesPage inventory in batches of up to 500; complete: true closes the inventory.
GET /sync/metadataPublished metadata, active redirects and settings, with since and cursor.
POST /sync/not-found404s observed by the website, aggregated.
POST /sync/redirect-hitsHow often each redirect rule was applied.
GET /verify/tokenThe verification token to expose at /.well-known/mentola-seo.json.

Organization endpoints (organization token)

EndpointPurpose
GET /planPlan, limits and usage.
GET|POST /sites, GET|PATCH /sites/{site}Websites and their settings.
POST /sites/{site}/verifyRun DNS, meta tag or package verification now.
POST /sites/{site}/tokens, DELETE /sites/{site}/tokens/{token}Issue and revoke site tokens.
GET /sites/{site}/pages, GET /pages/{page}The page inventory and crawl facts.
GET|PUT /pages/{page}/metadataRead or save metadata; publish: true publishes and writes a version.
GET /pages/{page}/history, POST /pages/{page}/rollbackVersions, and publishing an earlier one as a new version.
GET|POST /sites/{site}/redirects, DELETE /redirects/{redirect}Redirect rules; loops and chains answer 409.
GET|POST /sites/{site}/audits, GET /audits/{audit}, GET /audits/{audit}/issuesRequest and read audits.
GET /sites/{site}/issues, PATCH /issues/{issue}Current issues; ignore or reopen one.
GET /sites/{site}/healthHealth score, trend and open issues by severity.
GET /sites/{site}/sitemapWhat the website's sitemap reports.
GET /sites/{site}/search-performanceSearch Console data grouped by date, page or query.
GET /sites/{site}/suggestions, POST /suggestions/{suggestion}/decide, POST /sites/{site}/suggestions/generateReview and request suggestions.
GET /sites/{site}/changesThe change history.
POST /sites/{site}/automation/runFor agents: audit, suggest or sync_search_console.

The metadata object

{
  "title": "string, up to 70 characters recommended",
  "description": "string, up to 155 characters recommended",
  "canonical": "https://... or null",
  "robots": "index, follow",
  "og_title": "...", "og_description": "...", "og_image": "https://...",
  "twitter_card": "summary | summary_large_image",
  "focus_keyword": "...",
  "schema": [ { "@type": "..." } ],
  "hreflang": { "en": "https://...", "da": "https://..." },
  "images": { "/img/team.jpg": "The team in Aarhus" }
}

Identifiers

Every record has an opaque public id with a type prefix: site_, spg_ (page), smeta_, srdr_, saud_, siss_, ssug_, stok_. Internal ids never appear.

Rate limits

Site endpoints: 120 requests a minute per token. Organization endpoints: 300 a minute. A 429 carries rate_limited.

Installation guide · Back to Mentola SEO