Morningscore Ms Chat API

The msChat API from Morningscore — 9 operation(s) for mschat.

GitHub OpenAPI

Operations 9

GET /v1/ms-chat/session-identity Resolve the verified user, companies and roles behind an ms-chat session key #
POST /v1/ms-chat/wordpress/connect-state Start the approved WordPress agent connection after OAuth #
POST /v1/ms-chat/agent-authorization/status Check the current integration agent authorization #
POST /v1/ms-chat/verify-state Verify ms-chat deep-link state #
POST /v1/ms-chat/wp/register Register WordPress site heartbeat #
POST /v1/ms-chat/wp/unregister Unregister WordPress site #
POST /v1/ms-chat/confirm Confirm ms-chat WordPress agent link #
POST /v1/ms-chat/wordpress/revoke Revoke WordPress agent access using the installation agent token #
POST /v1/ms-chat/wordpress/authorization-status Introspect active WordPress agent authorization #

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/morningscore-io:morningscore-io-mschat-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

morningscore-io-mschat-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Morningscore Ms Chat API
  version: 1.0.0
  description: 'The Morningscore API gives you programmatic access to our SEO and website analysis tools. With this API, you can:


    - Fetch detailed domain information

    - Analyze onsite SEO issues

    - Retrieve AI fixes for issues


    Visit our SEO API information for detailed feature descriptions, pricing plans, and practical use cases.


    ## MCP


    We also provide a Morningscore MCP interface for agent and LLM workflows that prefer tool-style access over direct REST integration.


    With MCP, integrations can call curated Morningscore tools through a single protocol endpoint instead of manually orchestrating multiple REST calls.


    The MCP endpoint is currently available at `mcp.morningscore.io/mcp`.


    MCP clients register with the Morningscore app at `/oauth/register` and use Passport OAuth Bearer tokens. The MCP resource exchanges those tokens with the app for a short-lived API context.


    MCP is currently in **BETA** and may change as we continue improving it.


    ## Endpoint Groups


    - **Domains**: List available domains, inspect domain-level metrics, and score history.

    - **Competitors**: List saved competitors with optional SEO, link, and GEO metrics, fetch suggestions, and add or remove competitors for a domain.

    - **Missions**: List, create, archive, unarchive, and delete SEO missions for a domain.

    - **Health**: Analyze onsite SEO pages, issues, AI fixes, crawler IPs, and overall health summaries.

    - **Keywords**: List ranking and tracked keywords, inspect keyword metrics, compare competitor overlap, research keyword ideas, read cached Google SERP results, and fetch suggested keywords.

    - **AI**: GEO Score (AI visibility) and tracked prompts.

    - **GEO Health**: Six-pillar GEO Health reports (read and start generation).

    - **Links**: Retrieve backlink data for a domain

    - **Writer**: Generate and retrieve AI-written articles based on keywords

    - **Page Booster**: Optimize the SEO of any landing page. Send HTML and receive an improved version.


    ## Authentication


    All API requests require an API key, which can be obtained from your Morningscore dashboard.


    ## Rate Limiting


    Each API key is limited to a maximum of **20 requests per second**. This is calculated using a running window, meaning at any given moment, the number of requests made in the previous 5 seconds cannot exceed 100.'
  termsOfService: https://morningscore.io/terms/
  contact:
    email: mail@morningscore.io
    name: Morningscore
servers:
- url: https://api.morningscore.io
  description: Morningscore API Base URL
security:
- bearerAuth: []
tags:
- name: msChat
paths:
  /v1/ms-chat/session-identity:
    get:
      summary: Resolve the verified user, companies and roles behind an ms-chat session key
      tags:
      - msChat
      parameters: []
      operationId: msChat.sessionIdentity
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                type: object
                properties:
                  user_id:
                    type: number
                  user_name:
                    type:
                    - string
                    - 'null'
                  companies:
                    type: array
                    items:
                      type: object
                      properties:
                        company_id:
                          type: number
                        company_global_identifier:
                          type: string
                        company_name:
                          type:
                          - string
                          - 'null'
                        role:
                          type:
                          - string
                          - 'null'
                        all_websites:
                          type: boolean
                      required:
                      - company_id
                      - company_global_identifier
                      - company_name
                      - role
                      - all_websites
                required:
                - user_id
                - user_name
                - companies
        '401':
          description: '401'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: '403'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: '404'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: '429'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TooManyRequestsError'
        '500':
          description: '500'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalError'
      x-order: 100
  /v1/ms-chat/wordpress/connect-state:
    post:
      summary: Start the approved WordPress agent connection after OAuth
      tags:
      - msChat
      parameters: []
      operationId: msChat.wpConnectState
      requestBody:
        description: Body
        content:
          application/json:
            schema:
              type: object
              properties:
                site_url:
                  type: string
                  minLength: 1
              required:
              - site_url
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                type: object
                properties:
                  allowed:
                    type: boolean
                  state:
                    type:
                    - string
                    - 'null'
                required:
                - allowed
                - state
        '400':
          description: '400'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestError'
        '401':
          description: '401'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: '404'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: '429'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TooManyRequestsError'
        '500':
          description: '500'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalError'
      x-order: 800
  /v1/ms-chat/agent-authorization/status:
    post:
      summary: Check the current integration agent authorization
      tags:
      - msChat
      parameters: []
      operationId: msChat.agentAuthorizationStatus
      requestBody:
        description: Body
        content:
          application/json:
            schema:
              type: object
              properties:
                platform:
                  type: string
                  enum:
                  - wordpress
                  - shopify
                external_key:
                  type: string
                  minLength: 1
              required:
              - platform
              - external_key
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                type: object
                properties:
                  allowed:
                    type: boolean
                required:
                - allowed
        '400':
          description: '400'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestError'
        '401':
          description: '401'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: '404'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: '429'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TooManyRequestsError'
        '500':
          description: '500'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalError'
      x-order: 800
  /v1/ms-chat/verify-state:
    post:
      summary: Verify ms-chat deep-link state
      tags:
      - msChat
      parameters: []
      operationId: msChat.verifyState
      requestBody:
        description: Body
        content:
          application/json:
            schema:
              type: object
              properties:
                state:
                  type: string
                  minLength: 1
              required:
              - state
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                type: object
                properties:
                  valid:
                    type: boolean
                    enum:
                    - true
                  state:
                    type: object
                    properties:
                      resourceId:
                        type: string
                      returnUrl:
                        type: string
                      exp:
                        type: number
                      nonce:
                        type: string
                      siteUrl:
                        type: string
                      shopDomain:
                        type: string
                    required:
                    - resourceId
                    - returnUrl
                    - exp
                    - nonce
                required:
                - valid
                - state
        '400':
          description: '400'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '500':
          description: '500'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalError'
      security: []
      x-order: 800
  /v1/ms-chat/wp/register:
    post:
      summary: Register WordPress site heartbeat
      tags:
      - msChat
      parameters: []
      operationId: msChat.wpRegister
      requestBody:
        description: Body
        content:
          application/json:
            schema:
              type: object
              properties:
                site_url:
                  type: string
                  minLength: 1
                plugin_version:
                  type: string
                wp_version:
                  type: string
                php_version:
                  type: string
              required:
              - site_url
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                    - true
                  site_url:
                    type: string
                required:
                - success
        '400':
          description: '400'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestError'
        '401':
          description: '401'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: '404'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: '429'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TooManyRequestsError'
        '500':
          description: '500'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalError'
      x-order: 800
  /v1/ms-chat/wp/unregister:
    post:
      summary: Unregister WordPress site
      tags:
      - msChat
      parameters: []
      operationId: msChat.wpUnregister
      requestBody:
        description: Body
        content:
          application/json:
            schema:
              type: object
              properties:
                site_url:
                  type: string
                  minLength: 1
              required:
              - site_url
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                    - true
                  site_url:
                    type: string
                required:
                - success
        '400':
          description: '400'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestError'
        '401':
          description: '401'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: '404'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: '429'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TooManyRequestsError'
        '500':
          description: '500'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalError'
      x-order: 800
  /v1/ms-chat/confirm:
    post:
      summary: Confirm ms-chat WordPress agent link
      tags:
      - msChat
      parameters: []
      operationId: msChat.wpConfirm
      requestBody:
        description: Body
        content:
          application/json:
            schema:
              type: object
              properties:
                resource_id:
                  type: string
                  minLength: 1
                site_url:
                  type: string
                  minLength: 1
                agent_token:
                  type: string
                  minLength: 1
                agent_token_hash:
                  type: string
                ms_chat_state:
                  type: string
                  minLength: 1
              required:
              - resource_id
              - site_url
              - agent_token
              - ms_chat_state
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                    - true
                  return_url:
                    type: string
                  site_url:
                    type: string
                required:
                - success
                - site_url
        '400':
          description: '400'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestError'
        '401':
          description: '401'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: '403'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    enum:
                    - authorization_pending
                    - authorization_revoked
                  message:
                    type: string
                required:
                - error
                - message
        '404':
          description: '404'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: '409'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    enum:
                    - authorization_pending
                    - authorization_revoked
                  message:
                    type: string
                required:
                - error
                - message
        '429':
          description: '429'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TooManyRequestsError'
        '500':
          description: '500'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalError'
      x-order: 800
  /v1/ms-chat/wordpress/revoke:
    post:
      summary: Revoke WordPress agent access using the installation agent token
      tags:
      - msChat
      parameters: []
      operationId: msChat.wpAgentRevoke
      requestBody:
        description: Body
        content:
          application/json:
            schema:
              type: object
              properties:
                site_url:
                  type: string
                  minLength: 1
              required:
              - site_url
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                    - true
                required:
                - success
        '401':
          description: '401'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '500':
          description: '500'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalError'
      security: []
      x-order: 800
  /v1/ms-chat/wordpress/authorization-status:
    post:
      summary: Introspect active WordPress agent authorization
      tags:
      - msChat
      parameters: []
      operationId: msChat.wpAgentAuthorizationStatus
      requestBody:
        description: Body
        content:
          application/json:
            schema:
              type: object
              properties:
                site_url:
                  type: string
                  minLength: 1
                resource_id:
                  type: string
                  minLength: 1
              required:
              - site_url
              - resource_id
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                type: object
                properties:
                  active:
                    type: boolean
                required:
                - active
        '500':
          description: '500'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalError'
      security: []
      x-order: 800
components:
  schemas:
    InternalError:
      type: object
      properties:
        error:
          type: string
          example: Internal Server Error
        message:
          type: string
        details: {}
      required:
      - error
      title: InternalError
    RateLimitError:
      type: object
      properties:
        message:
          type: string
          description: Rate limit exceeded.
          example: Too many requests
      required:
      - message
      title: RateLimitError
    TooManyRequestsError:
      oneOf:
      - $ref: '#/components/schemas/Error'
      - $ref: '#/components/schemas/RateLimitError'
      title: TooManyRequestsError
      description: Per-window rate limit exceeded, or a monthly usage quota (e.g. live SERP) was exhausted.
    Error:
      type: object
      properties:
        error:
          type: string
          description: Human-readable error message.
          example: Domain not found
      required:
      - error
      title: Error
    BadRequestError:
      oneOf:
      - $ref: '#/components/schemas/Error'
      - type: object
        properties:
          message:
            type: string
            example: Invalid request
        required:
        - message
      title: BadRequestError
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
x-tagGroups:
- name: SEO Data
  tags:
  - domains
  - competitors
  - missions
  - health
  - keywords
  - searchConsole
  - links
- name: AI Tools
  tags:
  - ai
  - geoHealth
  - writer
  - pageBooster
- name: Account
  tags:
  - other