Tokolaku Channels API

Channel resmi & mode routing pesan masuk — sesi login.

GitHub OpenAPI

Operations 2

GET /api/dev/channels Daftar channel resmi org + mode routing pesan masuk #
PATCH /api/dev/channels/{id}/inbound-mode Atur cara channel menangani pesan masuk (bot | webhook | both) #

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-channels-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-channels-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Tokolaku Engine Channels 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: Channels
  description: Channel resmi & mode routing pesan masuk — sesi login.
paths:
  /api/dev/channels:
    get:
      tags:
      - Channels
      summary: Daftar channel resmi org + mode routing pesan masuk
      security:
      - sessionAuth: []
      responses:
        '200':
          description: Daftar channel
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Channel'
              example:
                data:
                - id: ch_...
                  tenant_id: ten_...
                  provider: cloud_api
                  phone_number: 628...
                  inbound_mode: bot
      operationId: getApiDevChannels
      x-operation-id-source: derived
  /api/dev/channels/{id}/inbound-mode:
    patch:
      tags:
      - Channels
      summary: Atur cara channel menangani pesan masuk (bot | webhook | both)
      security:
      - sessionAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InboundModeRequest'
            example:
              mode: webhook
      responses:
        '200':
          description: Mode berhasil diubah
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                  inbound_mode:
                    type: string
              example:
                ok: true
                inbound_mode: webhook
        '400':
          description: Body tidak valid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
              example:
                error:
                  code: invalid_body
                  message: '...'
        '404':
          description: Channel tidak ditemukan / bukan milik sub-akun Anda
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
              example:
                error:
                  code: not_found
                  message: Channel tidak ditemukan
      operationId: patchApiDevChannelsByIdInboundMode
      x-operation-id-source: derived
components:
  schemas:
    InboundModeRequest:
      type: object
      properties:
        mode:
          type: string
          enum:
          - bot
          - webhook
          - both
      required:
      - mode
    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
    Channel:
      type: object
      properties:
        id:
          type: string
        tenant_id:
          type: string
        provider:
          type: string
          enum:
          - cloud_api
          - instagram
          - messenger
        phone_number:
          type:
          - string
          - 'null'
        inbound_mode:
          type: string
          enum:
          - bot
          - webhook
          - both
      required:
      - id
      - tenant_id
      - provider
      - phone_number
      - inbound_mode
  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.