Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: SEOmatic Upgrade API
version: 1.0.0
description: 'SEOmatic public API v1. Authenticate with a workspace API key: `Authorization: Bearer smk_live_...`. GET /tools lists the full scope-filtered capability surface (identical to the MCP server); POST /tools/{name} invokes any of them. Keys carry scopes: free keys can read and ask; acting requires an agents:act key, and acting over REST requires the Infrastructure plan. Rate limits are per key; responses carry X-RateLimit-* headers and 429s carry Retry-After. Workspaces metered for free questions also get X-SEOmatic-Questions-Remaining (free questions left this month) on /tools/{name} and /ask answers, limit refusals included. One question is one user turn: market-data calls from the same key share one question while each comes within 90 seconds of the previous one, up to 5 lookups; the 6th starts a new question. Search Console, site and stored reads never use a question. Pay as you go: a workspace without a plan can buy prepaid credits in US dollars (from $20, never expire, only spendable on SEOmatic services, not transferable, no cash-out, unused refunded on request). They pay per call once its free questions are used, and for articles, scans and approved fixes; prices at GET /pricing. Too few credits answers 402 PREPAID_CREDITS_EMPTY with the top-up steps, a cap reached answers 402 PREPAID_CREDITS_CAP_REACHED, and failed calls are never charged (a valid no-data answer is a successful call). GET /usage shows the plan, free questions left, the prepaid balance and this key''s cap. Errors are RFC 9457 problem details (send Accept: application/problem+json for that media type; the body is the same either way) and keep their `code`; a 402 adds plan_rule and how_to_upgrade. Every write (POST, PUT, PATCH, DELETE) accepts an Idempotency-Key header: a repeat with the same key and body gets the first answer (Idempotent-Replayed: true), never a second run. Test keys (smk_test_) only stage previews: writes and acting tools answer what they would do, change nothing and charge nothing; `dry_run: true` does the same for one acting tool call on a live key. The same tool with the same arguments repeated 8 times within a minute by one key answers 429 LOOP_DETECTED, uncharged. Renamed tools keep answering to their old names. Agencies: a key reaches the other workspaces of the team it was made in by adding `?site=` to any URL; the request then runs as that workspace, with the key creator''s role and that workspace''s plan there. A site the key cannot reach answers 403 SITE_NOT_REACHABLE, a host two workspaces share answers 409 SITE_AMBIGUOUS (use the workspace id). WordPress plugin keys stay on their own site.'
contact:
email: contact@seomatic.ai
url: https://seomatic.ai/contact
license:
name: Proprietary
url: https://seomatic.ai/terms
servers:
- url: https://app.seomatic.ai/api/v1
security:
- bearerAuth: []
tags:
- name: Upgrade
paths:
/upgrade/{token}:
get:
x-internal: true
operationId: openUpgradeLink
security: []
summary: 'A browser upgrade link from a quota or acting wall: forwards to the upgrade…'
parameters:
- name: token
in: path
required: true
schema:
type: string
responses:
'302':
description: The upgrade page
headers:
Location:
schema:
type: string
format: uri
example: https://app.seomatic.ai/upgrade/tok_123
tags:
- Upgrade
post:
x-internal: true
operationId: startUpgradeCheckout
security: []
summary: 'The upgrade page''s button: spends the single-use token and redirects to Stripe…'
parameters:
- name: token
in: path
required: true
schema:
type: string
responses:
'303':
description: Stripe Checkout, or the plans page
headers:
Location:
schema:
type: string
format: uri
example: https://checkout.stripe.com/c/pay/cs_live_…
tags:
- Upgrade
/upgrade/{token}/ask-owner:
post:
x-internal: true
operationId: askOwnerToUpgrade
security: []
summary: A signed-in workspace member asks the owner to upgrade (one request a day); the…
parameters:
- name: token
in: path
required: true
schema:
type: string
responses:
'303':
description: Back to the upgrade page
headers:
Location:
schema:
type: string
format: uri
example: https://app.seomatic.ai/upgrade/tok_123?asked=1
tags:
- Upgrade
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: Workspace API key (smk_live_... / smk_test_...).