> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superskope.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Hosted MCP endpoint

> Model Context Protocol over streamable HTTP with JSON responses. Send one JSON-RPC message per POST with `Authorization: Bearer <API key>`, `Content-Type: application/json` and an Accept header that includes application/json. Supports initialize, ping, tools/list and tools/call; notifications return 202. tools/list returns read tools plus only the write tools this key’s scopes allow. Each tool call is an ordinary API request made with the same key, so scopes, selected conversations, limits and idempotency apply, and every write gets its own idempotency key. An unknown write outcome is reported as unknown and never retried. Add `?lifecycle=1` to offer phone pairing, QR and disconnect tools, or `?read_only=1` to offer read tools only. GET and DELETE return 405: there is no server-sent event stream and no session to end. OAuth is not offered; send the API key as a header. Bodies are limited to 8 MiB. Each MCP request counts as one API request against the key’s limits.



## OpenAPI

````yaml /openapi.json post /mcp
openapi: 3.1.0
info:
  title: SuperSkope Customer API
  version: 1.4.0
  description: >-
    Dedicated selected-phone customer API. Keys remain server-side, bound to one
    phone, granular permissions and exact selected conversations. groups:create
    explicitly grants phone-wide creation. The separate opt-in groups:created
    grants conversation access only to verified groups created by this key on
    this phone; every read/send/management scope remains required. Stable
    Idempotency-Key required for mutations; unknown operations never retry.
    Staff administration and arbitrary engine/session lifecycle calls are
    excluded. Additive transport routes expose capabilities, exact messages,
    verified access, private pictures, explicit chat state actions and retained
    group history. Older installations may not provide them. Existing registered
    agents can be explicitly delegated to scoped customer keys; pull agents can
    be created and enrolled within exact owner-granted scopes; existing callback
    identities remain separately delegated compatibility clients.
servers:
  - url: https://api.superskope.com/api/v1
    description: SuperSkope API
  - url: https://{installation}/api/v1
    description: >-
      Dedicated installation. Replace the host with your installation's HTTPS
      origin.
    variables:
      installation:
        default: api.superskope.com
        description: Hostname of your SuperSkope installation.
security: []
tags:
  - name: Connection
    description: Check the linked phone, pair it, confirm it and disconnect it.
  - name: Messages
    description: >-
      Read conversations, send messages and files, react and run message
      actions.
  - name: Transport
    description: >-
      Capabilities, exact messages, verified access, pictures, chat state and
      history.
  - name: Events and logs
    description: Metadata events, request state for uncertain operations and request logs.
  - name: Groups
    description: List, create and manage selected WhatsApp groups.
  - name: Scheduling
    description: Recurring and one-off messages to selected groups.
  - name: Work and reports
    description: Tickets, tasks, chat labels and fields, shared library and reports.
  - name: Agents
    description: >-
      Pull agents, delegated agents, enrollment, activations, typing presence
      and pause controls.
  - name: Keys and MCP
    description: >-
      Inspect the calling key and connect MCP clients to the hosted MCP
      endpoint.
paths:
  /mcp:
    post:
      tags:
        - Keys and MCP
      summary: Hosted MCP endpoint
      description: >-
        Model Context Protocol over streamable HTTP with JSON responses. Send
        one JSON-RPC message per POST with `Authorization: Bearer <API key>`,
        `Content-Type: application/json` and an Accept header that includes
        application/json. Supports initialize, ping, tools/list and tools/call;
        notifications return 202. tools/list returns read tools plus only the
        write tools this key’s scopes allow. Each tool call is an ordinary API
        request made with the same key, so scopes, selected conversations,
        limits and idempotency apply, and every write gets its own idempotency
        key. An unknown write outcome is reported as unknown and never retried.
        Add `?lifecycle=1` to offer phone pairing, QR and disconnect tools, or
        `?read_only=1` to offer read tools only. GET and DELETE return 405:
        there is no server-sent event stream and no session to end. OAuth is not
        offered; send the API key as a header. Bodies are limited to 8 MiB. Each
        MCP request counts as one API request against the key’s limits.
      operationId: postMcp
      parameters:
        - name: lifecycle
          in: query
          required: false
          schema:
            type: string
            enum:
              - '1'
          description: >-
            Offer connection pairing, QR and disconnect tools when the key has
            those scopes.
        - name: read_only
          in: query
          required: false
          schema:
            type: string
            enum:
              - '1'
          description: Offer read tools only and refuse every write.
        - name: MCP-Protocol-Version
          in: header
          required: false
          schema:
            type: string
            enum:
              - '2025-06-18'
              - '2025-03-26'
              - '2024-11-05'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/McpMessage'
      responses:
        '200':
          description: >-
            JSON-RPC response. Tool failures are returned as results with
            isError: true.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/McpResult'
        '202':
          description: Notification accepted. No body.
        '400':
          description: >-
            Invalid JSON, a batch, or an unsupported protocol version. Parse and
            batch errors use a JSON-RPC error body.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Customer credential missing, expired or revoked.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Browser origins are not allowed. Keep keys on your server or MCP
            client.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '405':
          description: Use POST. There is no server-sent event stream.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '406':
          description: The Accept header must include application/json.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: Request body is over 8 MiB.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '415':
          description: 'Use Content-Type: application/json.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Usage limit or open-request limit reached. Wait for Retry-After.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: Service temporarily unavailable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - customerKey: []
components:
  schemas:
    McpMessage:
      type: object
      description: One JSON-RPC 2.0 message. Batches are rejected.
      required:
        - jsonrpc
      properties:
        jsonrpc:
          type: string
          enum:
            - '2.0'
        id:
          type:
            - string
            - integer
        method:
          type: string
          description: initialize, ping, tools/list, tools/call or a notification.
        params:
          type: object
      additionalProperties: true
    McpResult:
      type: object
      required:
        - jsonrpc
      properties:
        jsonrpc:
          type: string
          enum:
            - '2.0'
        id:
          type:
            - string
            - integer
            - 'null'
        result:
          type: object
        error:
          type: object
          properties:
            code:
              type: integer
            message:
              type: string
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
  securitySchemes:
    customerKey:
      type: http
      scheme: bearer
      bearerFormat: ss_api_…

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.