SEOmatic Me API

The Me API from SEOmatic — 3 operation(s) for me.

GitHub OpenAPI

Operations 3

POST /me/revoke Revoke the calling API key itself (for example when an integration or browser… #
POST /me/rotate Replace the calling API key with a new one. #
GET /me Introspect the calling key: workspace, environment, scopes, and the plan… #

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/seomatic-ai:seomatic-ai-me-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

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.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

seomatic-ai-me-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SEOmatic Me 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: Me
paths:
  /me/revoke:
    post:
      operationId: revokeMyKey
      summary: Revoke the calling API key itself (for example when an integration or browser…
      responses:
        '204':
          description: The key is revoked (or was already invalid).
          headers:
            X-RateLimit-Remaining:
              schema:
                type: string
              example: '119'
        '429':
          description: Too many invalid API keys from this address. Retry-After header set.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Me
  /me/rotate:
    post:
      operationId: rotateMyKey
      summary: Replace the calling API key with a new one.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                expires_in_days:
                  type:
                  - integer
                  - 'null'
                  minimum: 1
                  maximum: 3650
              additionalProperties: false
            example:
              expires_in_days: 365
      responses:
        '201':
          description: The new key (shown only in this response).
          content:
            application/json:
              schema:
                type: object
                properties:
                  key:
                    type: string
                  key_id:
                    type: string
                  scopes:
                    type: array
                    items:
                      type: string
                  expires_at:
                    type:
                    - string
                    - 'null'
                  revoked_key_id:
                    type: string
              example:
                key: smk_live_0123456789abcdef0123456789abcdef
                key_id: 3f6a1c2e-8d4b-4e7f-9a1b-2c3d4e5f6a7b
                scopes:
                - read
                - write
                expires_at: '2027-11-19T00:00:00.000Z'
                revoked_key_id: 9e8d7c6b-5a4f-4e3d-8c2b-1a0f9e8d7c6b
        '400':
          description: Bad body, or an assistant sign-in token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: The key is already revoked or expired, or the workspace is at its key limit.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Me
  /me:
    get:
      operationId: getMe
      summary: 'Introspect the calling key: workspace, environment, scopes, and the plan…'
      parameters:
      - name: X-Seomatic-Client
        in: header
        required: false
        schema:
          type: string
          enum:
          - n8n
          - make
        description: Identifies an automation-platform integration (the official n8n node sends `n8n`, the Make app sends `make`). When set, every call, including a connection test against /me, requires the Infrastructure plan, else 402 AUTOMATION_NOT_ENTITLED. Omit it for plain REST usage.
      responses:
        '200':
          description: Key and workspace details
          content:
            application/json:
              schema:
                type: object
                properties:
                  workspace:
                    type: object
                    properties:
                      id:
                        type: string
                      name:
                        type: string
                      gsc_connected:
                        type: boolean
                  key:
                    type: object
                    properties:
                      environment:
                        type: string
                        enum:
                        - live
                        - test
                      scopes:
                        type: array
                        items:
                          type: string
                  capabilities:
                    type: object
                    description: Plan-gated surface permissions (reads/chat work on any plan).
                    properties:
                      rest_act:
                        type: boolean
                        description: agents:act over REST (Infrastructure).
                      zapier:
                        type: boolean
                        description: Zapier, Make and n8n reads and triggers (Infrastructure plan).
                      webhooks:
                        type: boolean
                        description: Outbound webhooks (Infrastructure).
                  free_questions:
                    type:
                    - object
                    - 'null'
                    description: Free-plan question meter that tool calls spend (the pool is shared with chat and MCP). null on paid plans, where tool calls are not metered.
                    properties:
                      monthly_limit:
                        type: integer
                      used_this_month:
                        type: integer
                      bonus_remaining:
                        type: integer
                        description: Purchased or earned questions, spent after the monthly allowance.
                      remaining:
                        type: integer
                        description: Tool calls still available right now.
                      prepaid_credits_usd:
                        type: string
                        description: Prepaid credits left ("$12.40"), spent per call once remaining is 0; see GET /pricing.
              example:
                workspace:
                  id: 7c1e2f4a-9b3d-4e5f-8a6b-1c2d3e4f5a6b
                  name: Acme Plumbing
                  gsc_connected: true
                key:
                  environment: live
                  scopes:
                  - read:gsc
                  - chat:ask
                capabilities:
                  rest_act: false
                  zapier: false
                  webhooks: false
                free_questions:
                  monthly_limit: 10
                  used_this_month: 3
                  bonus_remaining: 0
                  remaining: 7
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: X-Seomatic-Client is n8n or make and the workspace is not on the Infrastructure plan (AUTOMATION_NOT_ENTITLED). Body carries upgrade_url.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited (per key). Retry-After header set.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Me
components:
  schemas:
    Error:
      type: object
      properties:
        type:
          type: string
          description: urn:seomatic:error:<code>, or about:blank
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
        instance:
          type: string
        plan_rule:
          type: string
          description: '402 only: the plan or balance rule this request hit.'
        how_to_upgrade:
          type: string
          description: '402 only: how to get past it.'
        error:
          type: string
        code:
          type: string
        reason:
          type: string
        details:
          type: object
        upgrade_url:
          type: string
      required:
      - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Workspace API key (smk_live_... / smk_test_...).