chatrail-dev Internal API

Called by the transport, not by you.

Operations 4

POST /v1/billing/creem/webhook Creem webhook #
POST /v1/billing/nowpayments/webhook NOWPayments payment notification #
POST /v1/provider/{providerName}/{token} Provider callback #
POST /v1/provider/{providerName}/sessions/{sessionId} Signed provider callback #

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/chatrail-dev:chatrail-dev-internal-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

chatrail-dev-internal-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ChatRail Internal API
  version: 1.0.0
  description: 'Send, schedule and receive WhatsApp messages through a linked-device session.


    **Two things the API is careful about, which shape every endpoint below.**


    *Accepted is not delivered.* A 202 means the message is durably stored and queued. Only the `status` field ever claims WhatsApp delivered anything, and `queued`, `submitted`, `sent`, `delivered` and `read` are deliberately distinct.


    *A retry must not send twice.* Send `Idempotency-Key` on every send. A replay returns the original response; a concurrent duplicate is told to retry rather than allowed to race.'
  contact:
    name: ChatRail
    url: https://www.chatrail.dev
servers:
- url: https://www.chatrail.dev
security:
- apiKey: []
tags:
- name: Internal
  description: Called by the transport, not by you.
paths:
  /v1/billing/creem/webhook:
    post:
      summary: Creem webhook
      description: Called by Creem, not by you. Verified against `creem-signature`, a plain HMAC-SHA256 of the exact request body — Creem retries a non-2xx for up to 24 hours, so redeliveries are expected and deduplicated by event id.
      tags:
      - Internal
      operationId: post_v1_billing_creem_webhook
      responses:
        '200':
          description: 'Accepted — `duplicate: true` if this event id was already processed.'
      security: []
  /v1/billing/nowpayments/webhook:
    post:
      summary: NOWPayments payment notification
      description: Called by NOWPayments, not by you. Verified against `x-nowpayments-sig`, an HMAC-SHA512 of the key-sorted JSON body. Repeated notifications are deduplicated by payment id and status.
      tags:
      - Internal
      operationId: post_v1_billing_nowpayments_webhook
      responses:
        '200':
          description: 'Accepted — `duplicate: true` if this notification was already processed.'
      security: []
  /v1/provider/{providerName}/{token}:
    post:
      summary: Provider callback
      description: Called by the WhatsApp transport, not by you. Authenticated by the per-connection token returned once when the connection was created. Redeliveries are deduplicated.
      tags:
      - Internal
      operationId: post_v1_provider__providerName___token_
      parameters:
      - name: providerName
        in: path
        required: true
        schema:
          type: string
        description: Transport name, e.g. `waha`.
      - name: token
        in: path
        required: true
        schema:
          type: string
        description: The connection callback token.
      responses:
        '202':
          description: Handled or ignored.
        '404':
          description: Unknown callback.
      security: []
  /v1/provider/{providerName}/sessions/{sessionId}:
    post:
      summary: Signed provider callback
      description: Called by the WhatsApp transport, not by you. The URL names the session; the body is signed with the connection’s own key (`X-Webhook-Hmac`, HMAC-SHA512 over the exact bytes). Replaces the token URL, which put a credential in every proxy log.
      tags:
      - Internal
      operationId: post_v1_provider__providerName__sessions__sessionId_
      parameters:
      - name: providerName
        in: path
        required: true
        schema:
          type: string
        description: Transport name, e.g. `waha`.
      - name: sessionId
        in: path
        required: true
        schema:
          type: string
        description: The transport’s session name.
      responses:
        '202':
          description: Handled or ignored.
        '404':
          description: Unknown session or bad signature.
      security: []
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: 'A workspace API key, `cr_live_…`. Server-side only: it carries workspace authority and must never reach a browser.'
    session:
      type: apiKey
      in: cookie
      name: chatrail_session
      description: Dashboard session cookie. Set by `/v1/auth/verify`.