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
| Credential | Prefix | Reaches | Used by |
|---|---|---|---|
| Site token | mseo_ | One website | The Laravel package installed on that website |
| Organization token | mtl_ | Every website in the account, with seo:read and/or seo:write | Agencies, 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)
| Endpoint | Purpose |
|---|---|
POST /connect/handshake | The package introduces itself; returns site settings and the metadata version. |
POST /sync/pages | Page inventory in batches of up to 500; complete: true closes the inventory. |
GET /sync/metadata | Published metadata, active redirects and settings, with since and cursor. |
POST /sync/not-found | 404s observed by the website, aggregated. |
POST /sync/redirect-hits | How often each redirect rule was applied. |
GET /verify/token | The verification token to expose at /.well-known/mentola-seo.json. |
Organization endpoints (organization token)
| Endpoint | Purpose |
|---|---|
GET /plan | Plan, limits and usage. |
GET|POST /sites, GET|PATCH /sites/{site} | Websites and their settings. |
POST /sites/{site}/verify | Run 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}/metadata | Read or save metadata; publish: true publishes and writes a version. |
GET /pages/{page}/history, POST /pages/{page}/rollback | Versions, 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}/issues | Request and read audits. |
GET /sites/{site}/issues, PATCH /issues/{issue} | Current issues; ignore or reopen one. |
GET /sites/{site}/health | Health score, trend and open issues by severity. |
GET /sites/{site}/sitemap | What the website's sitemap reports. |
GET /sites/{site}/search-performance | Search Console data grouped by date, page or query. |
GET /sites/{site}/suggestions, POST /suggestions/{suggestion}/decide, POST /sites/{site}/suggestions/generate | Review and request suggestions. |
GET /sites/{site}/changes | The change history. |
POST /sites/{site}/automation/run | For 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.