Tokolaku MCP API

Endpoint MCP (Model Context Protocol) — colok Tokolaku ke Claude/AI agent sebagai tool server. Transport Streamable HTTP (stateless), payload JSON-RPC 2.0.

GitHub OpenAPI

Operations 1

POST /mcp Endpoint MCP — JSON-RPC (initialize, tools/list, tools/call) #

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/tokolaku-id:tokolaku-id-mcp-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

tokolaku-id-mcp-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Tokolaku Engine MCP API
  version: 1.0.0
  description: 'REST API untuk integrasi bot AI, pengiriman pesan (WhatsApp/Instagram/Messenger via BYON), webhook real-time, dan manajemen sub-akun/reseller di Tokolaku.


    **Autentikasi**

    - Endpoint publik `/api/v1/*` (Messaging): header `Authorization: Bearer ` (format `tk_live_sk_...` / `tk_test_sk_...`). Setiap key punya scope (`chat:write`, `messages:write`, dst).

    - Endpoint dashboard `/api/dev/*`: sesi login (cookie) developer — dipanggil dari aplikasi/dashboard kamu sendiri, bukan server-to-server publik.


    **Webhook (kami → aplikasi kamu)**

    Event `message.received` dan `message.status` dikirim sebagai `POST` ke URL webhook yang kamu daftarkan, dengan header:

    - `X-Tokolaku-Event`: nama event (mis. `message.received`)

    - `X-Tokolaku-Signature`: `sha256=`

    - `X-Tokolaku-Delivery`: id pengiriman (dipakai juga untuk dedup saat retry)


    Body mengikuti skema `WebhookEvent`. Balas `2xx` untuk menandai sukses; kegagalan di-retry dengan backoff eksponensial (60s → 1920s, hingga 6x).'
  contact:
    name: Tokolaku
    url: https://tokolaku.id
servers:
- url: https://api.tokolaku.id
  description: Production
security:
- bearerAuth: []
tags:
- name: MCP
  description: Endpoint MCP (Model Context Protocol) — colok Tokolaku ke Claude/AI agent sebagai tool server. Transport Streamable HTTP (stateless), payload JSON-RPC 2.0.
paths:
  /mcp:
    post:
      tags:
      - MCP
      summary: Endpoint MCP — JSON-RPC (initialize, tools/list, tools/call)
      description: 'Satu endpoint untuk seluruh protokol MCP (Streamable HTTP, **stateless** — tiap POST independen, tanpa session). Klien MCP standar (Claude Code/Desktop, SDK MCP) menangani protokol ini otomatis — cukup daftarkan URL + header `x-api-key`.


        Tools v1 (tampil sesuai scope key): `send_message` (messages:write), `generate_bot_reply` (chat:write), `list_channels` (channels:read), `list_conversations` + `get_conversation` (inbox:read), `list_products` (products:read), `get_subscription` (subscription:read).


        Hanya **secret key**; publishable key ditolak 403. `GET`/`DELETE` ke endpoint ini dijawab 405. Sertakan header `Accept: application/json, text/event-stream`.'
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/McpJsonRpcRequest'
            examples:
              initialize:
                summary: Handshake initialize
                value:
                  jsonrpc: '2.0'
                  id: 1
                  method: initialize
                  params:
                    protocolVersion: '2025-03-26'
                    capabilities: {}
                    clientInfo:
                      name: my-agent
                      version: '1.0'
              toolsList:
                summary: Daftar tools (mengikuti scope key)
                value:
                  jsonrpc: '2.0'
                  id: 2
                  method: tools/list
                  params: {}
              toolsCall:
                summary: Panggil tool get_subscription
                value:
                  jsonrpc: '2.0'
                  id: 3
                  method: tools/call
                  params:
                    name: get_subscription
                    arguments: {}
      responses:
        '200':
          description: Respons JSON-RPC (error level tool/protokol juga dibungkus 200)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/McpJsonRpcResponse'
              example:
                jsonrpc: '2.0'
                id: 3
                result:
                  content:
                  - type: text
                    text: "{\n  \"billing_plan\": \"sandbox\",\n  \"environment\": \"test\",\n  \"quota_remaining\": 100\n}"
        '401':
          description: API key tak ada / tidak valid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
              example:
                error:
                  code: no_key
                  message: API key tidak ada
        '403':
          description: Publishable key ditolak — MCP hanya menerima secret key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
              example:
                error:
                  code: secret_key_required
                  message: Endpoint MCP hanya menerima secret key (tk_*_sk_*)
        '405':
          description: Method selain POST
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
              example:
                error:
                  code: method_not_allowed
                  message: Endpoint MCP stateless — hanya POST
        '429':
          description: Rate limit / kuota bulan ini habis
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
              example:
                error:
                  code: quota_exceeded
                  message: Kuota percakapan bulan ini habis
      operationId: postMcp
      x-operation-id-source: derived
components:
  schemas:
    McpJsonRpcResponse:
      type: object
      required:
      - jsonrpc
      properties:
        jsonrpc:
          type: string
          enum:
          - '2.0'
        id:
          oneOf:
          - type: integer
          - type: string
        result:
          type: object
          additionalProperties: true
        error:
          type: object
          description: Error level JSON-RPC (tetap HTTP 200).
          properties:
            code:
              type: integer
            message:
              type: string
    ErrorEnvelope:
      type: object
      description: Envelope error konsisten untuk semua endpoint Engine API.
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
          required:
          - code
          - message
      required:
      - error
    McpJsonRpcRequest:
      type: object
      required:
      - jsonrpc
      - method
      properties:
        jsonrpc:
          type: string
          enum:
          - '2.0'
        id:
          description: ID request (angka/string). Absen = notification.
          oneOf:
          - type: integer
          - type: string
        method:
          type: string
          description: 'Method MCP: `initialize`, `tools/list`, `tools/call`, dst.'
        params:
          type: object
          additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Secret key developer, format `tk_live_sk_...` (produksi) atau `tk_test_sk_...` (sandbox). Kirim via header `Authorization: Bearer <key>` (atau `X-API-Key: <key>`).'
    sessionAuth:
      type: apiKey
      in: cookie
      name: session
      description: Endpoint dashboard `/api/dev/*` diautentikasi via sesi login developer (cookie), bukan API key — dipanggil dari aplikasi/dashboard kamu sendiri saat sudah login.