CodeB V1 Rest API

v1 REST — outbound AI, numbers, transcripts, routes, webhooks

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 14

GET /api.ashx/v1 v1 REST self-describe (endpoints, build, auth notes) #
POST /api.ashx/v1/calls Place an outbound AI call #
GET /api.ashx/v1/calls V1 list calls #
GET /api.ashx/v1/calls/{id} V1 get call #
POST /api.ashx/v1/calls/{id}/hangup V1 hangup call #
GET /api.ashx/v1/numbers V1 list numbers #
GET /api.ashx/v1/transcripts V1 list transcripts #
GET /api.ashx/v1/transcripts/{callId} V1 get transcript #
GET /api.ashx/v1/inbound-routes V1 list inbound routes #
POST /api.ashx/v1/inbound-routes V1 create inbound route #
GET /api.ashx/v1/outbound-routes V1 list outbound routes #
POST /api.ashx/v1/outbound-routes V1 create outbound route #
GET /api.ashx/v1/webhooks V1 list webhooks #
GET /api.ashx/v1/auditlog V1 audit log #

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-v1-rest-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-v1-rest-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: CodeB Sovereign Communications — Public V1 Rest 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: v1-rest
  description: v1 REST — outbound AI, numbers, transcripts, routes, webhooks
paths:
  /api.ashx/v1:
    get:
      tags:
      - v1-rest
      operationId: v1Root
      summary: v1 REST self-describe (endpoints, build, auth notes)
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
  /api.ashx/v1/calls:
    post:
      tags:
      - v1-rest
      operationId: v1CreateCall
      summary: Place an outbound AI call
      security:
      - oidcBearer: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - phone
              properties:
                phone:
                  type: string
                email:
                  type: string
                systemPrompt:
                  type: string
                apiKey:
                  type: string
                voice:
                  type: string
                language:
                  type: string
                maxSeconds:
                  type: integer
                retries:
                  type: integer
                scheduleAtUtc:
                  type: string
                  format: date-time
      responses:
        '200':
          description: Call queued
          content:
            application/json:
              schema:
                type: object
    get:
      tags:
      - v1-rest
      operationId: v1ListCalls
      security:
      - oidcBearer: []
      parameters:
      - name: limit
        in: query
        schema:
          type: integer
      - name: offset
        in: query
        schema:
          type: integer
      - name: status
        in: query
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
      summary: V1 list calls
      x-summary-source: derived
  /api.ashx/v1/calls/{id}:
    get:
      tags:
      - v1-rest
      operationId: v1GetCall
      security:
      - oidcBearer: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
      summary: V1 get call
      x-summary-source: derived
  /api.ashx/v1/calls/{id}/hangup:
    post:
      tags:
      - v1-rest
      operationId: v1HangupCall
      security:
      - oidcBearer: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
      summary: V1 hangup call
      x-summary-source: derived
  /api.ashx/v1/numbers:
    get:
      tags:
      - v1-rest
      operationId: v1ListNumbers
      security:
      - oidcBearer: []
      responses:
        '200':
          description: OK
      summary: V1 list numbers
      x-summary-source: derived
  /api.ashx/v1/transcripts:
    get:
      tags:
      - v1-rest
      operationId: v1ListTranscripts
      security:
      - oidcBearer: []
      parameters:
      - name: limit
        in: query
        schema:
          type: integer
      - name: offset
        in: query
        schema:
          type: integer
      - name: source
        in: query
        schema:
          type: string
      - name: q
        in: query
        schema:
          type: string
      - name: since
        in: query
        schema:
          type: string
          format: date-time
      responses:
        '200':
          description: OK
      summary: V1 list transcripts
      x-summary-source: derived
  /api.ashx/v1/transcripts/{callId}:
    get:
      tags:
      - v1-rest
      operationId: v1GetTranscript
      security:
      - oidcBearer: []
      parameters:
      - name: callId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
      summary: V1 get transcript
      x-summary-source: derived
  /api.ashx/v1/inbound-routes:
    get:
      tags:
      - v1-rest
      operationId: v1ListInboundRoutes
      security:
      - oidcBearer: []
      responses:
        '200':
          description: OK
      summary: V1 list inbound routes
      x-summary-source: derived
    post:
      tags:
      - v1-rest
      operationId: v1CreateInboundRoute
      security:
      - oidcBearer: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - Did
              - User
              properties:
                Did:
                  type: string
                FromNumber:
                  type: string
                User:
                  type: string
      responses:
        '201':
          description: Created
      summary: V1 create inbound route
      x-summary-source: derived
  /api.ashx/v1/outbound-routes:
    get:
      tags:
      - v1-rest
      operationId: v1ListOutboundRoutes
      security:
      - oidcBearer: []
      responses:
        '200':
          description: OK
      summary: V1 list outbound routes
      x-summary-source: derived
    post:
      tags:
      - v1-rest
      operationId: v1CreateOutboundRoute
      security:
      - oidcBearer: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - match
              - trunkIds
              properties:
                match:
                  type: string
                trunkIds:
                  type: array
                  items:
                    type: string
      responses:
        '200':
          description: OK
      summary: V1 create outbound route
      x-summary-source: derived
  /api.ashx/v1/webhooks:
    get:
      tags:
      - v1-rest
      operationId: v1ListWebhooks
      security:
      - oidcBearer: []
      responses:
        '200':
          description: OK (secrets stripped)
      summary: V1 list webhooks
      x-summary-source: derived
  /api.ashx/v1/auditlog:
    get:
      tags:
      - v1-rest
      operationId: v1AuditLog
      security:
      - oidcBearer: []
      parameters:
      - name: event
        in: query
        schema:
          type: string
      - name: user
        in: query
        schema:
          type: string
      - name: since
        in: query
        schema:
          type: string
          format: date-time
      - name: limit
        in: query
        schema:
          type: integer
      - name: offset
        in: query
        schema:
          type: integer
      responses:
        '200':
          description: OK
      summary: V1 audit log
      x-summary-source: derived
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.