CodeB Chat API

Chat platform — DM, groups, file transfers, invitations

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 8

GET /chat.ashx?op=me Return the OIDC-clamped identity of the calling chat user #
GET /chat.ashx?op=list-threads Chat list threads #
POST /chat.ashx?op=send Chat send #
POST /chat.ashx?op=upload File transfer (multipart/form-data) #
GET /chat.ashx?op=download Chat download #
GET /chat-ws.ashx?ticket= WebSocket upgrade — realtime chat push. #
POST /chat-invite.ashx?op=create Invite create #
GET /chat-invite.ashx?op=verify Public verification of a chat invite token (single-use, expiry-clamped) #

Specifications

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/codeb:codeb-chat-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

codeb-chat-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: CodeB Sovereign Communications — Public Chat API
  version: 2026-10-13 csc-rqes
  summary: REST + WebSocket + OpenID Connect + OpenID4VP + OpenID4VCI + LOTL + Federation + SIP-over-WebSocket surface, all multi-tenant by Host header. Aloaha-owned, built from scratch, hosted in Malta.
  description: 'This spec covers every publicly reachable endpoint exposed by the CodeB Sovereign Communications platform: the OIDC provider + EU Wallet verifier (oidc.ashx), the OpenID4VCI issuer (vci.ashx), the LOTL trust-anchor cache (lotl.ashx), the RP-certificate CA (rp-cert.ashx), the chat + file-transfer platform (chat.ashx + chat-ws.ashx + chat-invite/widget/email .ashx), the property-management inbox (pms.ashx), the per-tenant admin surface (signal.ashx), the v1 REST outbound-AI + numbers + transcripts (api.ashx/v1), the bridge health passthroughs (/sip-tls/health, /sip-ws/health, /sfu/health), and remote signing for EU Digital Identity Wallets (CSC v2 profile /rqes/csc/v2, also answered at /csc/rqes/v2, on csc.ashx + its OAuth 2.0 server csc-oauth.ashx). Every endpoint is tenant-scoped by the Host header; there is no cross-tenant data access. Import this file into Postman, Insomnia, Swagger UI or any OpenAPI-3-compatible tool to explore the surface. Machine-generated clients welcome. Authentication: `oidc-bearer` = an OIDC access-token minted by /oauth2/v1/token; `hmac-admin` = X-CodeB-Admin-Signature header = hex(HMAC-SHA256(WebPhone:AdminSharedSecret, bucketName + ''|'' + Host)). Many admin endpoints accept EITHER bearer OR HMAC.'
  contact:
    name: Aloaha Limited
    url: https://www.aloaha.com/contact.html
  license:
    name: Proprietary — Aloaha Limited
    url: https://www.aloaha.com/legal.html
  termsOfService: https://www.aloaha.com/legal.html
servers:
- url: https://phone.aloaha.com
  description: Primary production tenant
- url: https://phone.codeb.io
  description: Development / conformance tenant
- url: https://{tenant}
  description: Any tenant domain — replace {tenant} with your provisioned host
  variables:
    tenant:
      default: phone.aloaha.com
security: []
tags:
- name: Chat
  description: Chat platform — DM, groups, file transfers, invitations
paths:
  /chat.ashx?op=me:
    get:
      tags:
      - Chat
      operationId: chatMe
      summary: Return the OIDC-clamped identity of the calling chat user
      security:
      - oidcBearer: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
  /chat.ashx?op=list-threads:
    get:
      tags:
      - Chat
      operationId: chatListThreads
      security:
      - oidcBearer: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
      summary: Chat list threads
      x-summary-source: derived
  /chat.ashx?op=send:
    post:
      tags:
      - Chat
      operationId: chatSend
      security:
      - oidcBearer: []
      parameters:
      - name: with
        in: query
        schema:
          type: string
          description: peer login (DM) OR
      - name: groupId
        in: query
        schema:
          type: string
          description: group id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - text
              properties:
                text:
                  type: string
      responses:
        '200':
          description: OK
      summary: Chat send
      x-summary-source: derived
  /chat.ashx?op=upload:
    post:
      tags:
      - Chat
      operationId: chatUpload
      summary: File transfer (multipart/form-data)
      security:
      - oidcBearer: []
      parameters:
      - name: with
        in: query
        schema:
          type: string
      - name: groupId
        in: query
        schema:
          type: string
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
      responses:
        '200':
          description: OK
  /chat.ashx?op=download:
    get:
      tags:
      - Chat
      operationId: chatDownload
      security:
      - oidcBearer: []
      parameters:
      - name: sha
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
      summary: Chat download
      x-summary-source: derived
  /chat-ws.ashx?ticket=<nonce>:
    get:
      tags:
      - Chat
      operationId: chatWsUpgrade
      summary: WebSocket upgrade — realtime chat push.
      responses:
        '101':
          description: Switching Protocols (WebSocket)
  /chat-invite.ashx?op=create:
    post:
      tags:
      - Chat
      operationId: inviteCreate
      security:
      - oidcBearer: []
      - hmacAdmin: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
      summary: Invite create
      x-summary-source: derived
  /chat-invite.ashx?op=verify:
    get:
      tags:
      - Chat
      operationId: inviteVerify
      summary: Public verification of a chat invite token (single-use, expiry-clamped)
      parameters:
      - name: t
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
components:
  securitySchemes:
    cscServiceToken:
      type: http
      scheme: bearer
      bearerFormat: opaque
      description: CSC v2 service access token (scope=service) from POST /csc/rqes/oauth2/token. Valid 1 hour. Lists and describes the signed-in user's signing credential.
    cscCredentialToken:
      type: http
      scheme: bearer
      bearerFormat: opaque
      description: CSC v2 credential access token (scope=credential) from POST /csc/rqes/oauth2/token. Bound to one credentialID and to exactly the document hashes the user confirmed; valid 5 minutes and for numSignatures signatures in total. Replaces the SAD on signatures/signHash.
    cscClientBasic:
      type: http
      scheme: basic
      description: OAuth client authentication (client_secret_basic). client_secret_post (client_id + client_secret form fields) is accepted as well. Clients are registered per tenant by the operator.
    oidcBearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: OIDC access token minted by /oauth2/v1/token. Tenant-scoped by Host header. Also accepts ak_-prefixed personal API keys on the v1 REST surface.
    hmacAdmin:
      type: apiKey
      in: header
      name: X-CodeB-Admin-Signature
      description: Hex(HMAC-SHA256(WebPhone:AdminSharedSecret, bucketName + '|' + Host)). Bucket name is documented per-endpoint. This scheme is designed for machine-to-machine admin automation (CI, cron, back-office scripts) where OIDC bearer flow isn't practical.
    credentialAccessToken:
      type: http
      scheme: bearer
      bearerFormat: opaque
      description: OAuth 2.0 access token minted by /vci.ashx?token via pre-authorized_code grant. Used only on POST /vci.ashx?credential.