Word Is Bond Testing API

Run and score voice-agent tests.

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 9

GET /api/demo/cases The storefront demo transcripts (public, no auth, no LLM cost) #
POST /api/demo/judge The production judge's verdict on one showcase transcript (public, rate-limited) #
GET /api/demo/canary-status Judge-canary freshness (public, no auth, no LLM cost) #
POST /api/tests/demo Run the hosted demo agent and get a scored result (~60s, zero carrier cost) #
POST /api/tests/run Run a test: score a captured transcript (offline) or run a live synthetic call #
POST /api/tests/{id}/score (Re)score a run's transcript with the judge #
POST /api/tests/canary Trigger the hosted self-test now and publish a public report #
GET /api/tests List the most recent runs for the tenant (up to 100) #
GET /api/tests/{id} Fetch one run (poll here for the terminal scored state) #

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/wordis-bond-com:wordis-bond-com-testing-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

wordis-bond-com-testing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Word Is Bond — Voice Agent Testing API
  version: 0.1.0
  summary: Metered, self-serve testing for voice agents you run.
  description: 'Point a synthetic caller at a voice agent you run — on any SIP / WebRTC or PSTN endpoint — and get back a scored transcript, pass/fail verdict, and per-turn latency / word-error-rate / barge-in metrics. Score a captured transcript offline, run a live synthetic call, put a suite on a schedule to catch behaviour drift, or read regression trends. You only ever test systems you control — there is no outbound-to-strangers surface. Plans and quotas are served live by GET /api/billing/plans (the single source of truth for pricing — never hard-coded). Agent-readable overview: https://wordis-bond.com/llms.txt'
  contact:
    name: Word Is Bond
    url: https://wordis-bond.com
  license:
    name: Proprietary
    url: https://wordis-bond.com/terms
servers:
- url: https://api.wordis-bond.com
  description: Production
security:
- apiKey: []
tags:
- name: Testing
  description: Run and score voice-agent tests.
paths:
  /api/demo/cases:
    get:
      operationId: listStorefrontDemoCases
      tags:
      - Testing
      summary: The storefront demo transcripts (public, no auth, no LLM cost)
      description: Three transcripts from the committed golden corpus — the same cases the judge-calibration gate certifies. Powers the "run the judge yourself" widget on wordis-bond.com.
      responses:
        '200':
          description: Showcase cases with transcripts, judge version, and tolerance.
  /api/demo/judge:
    post:
      operationId: judgeStorefrontDemoCase
      tags:
      - Testing
      summary: The production judge's verdict on one showcase transcript (public, rate-limited)
      description: 'Returns the temperature-0 judge''s scorecard for a golden-corpus transcript beside the committed calibration baseline for the serving tier. By default it serves the latest verdict from the daily calibration run (judged within the last 26 hours; `source: ''daily-canary''`, with `judgedAt`) and makes no judge call; with `?live=1` — or when no usable verdict from the last 26 hours exists (none was judged, it came from a different judge version, or the lookup failed) — the judge scores it now (`source: ''live''`). Run it live twice and watch the verdict repeat. Only allowlisted caseIds are accepted; visitor text never reaches the judge. Rate-limited per IP; live judge calls also share a global ceiling.'
      parameters:
      - name: live
        in: query
        required: false
        description: '`1` to judge the transcript now instead of serving the latest calibration verdict.'
        schema:
          type: string
          enum:
          - '1'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - caseId
              properties:
                caseId:
                  type: string
                  enum:
                  - clear-pass-booking
                  - polite-but-wrong
                  - caller-frustrated-but-resolved
      responses:
        '200':
          description: Scorecard with judge provenance, plus baseline, tolerance, `source` ('daily-canary' | 'live') and `judgedAt` (when the judge produced this verdict).
        '400':
          description: Unknown caseId or malformed body.
        '429':
          description: Per-IP demo limit, or the global live-judging ceiling, reached.
        '503':
          description: No LLM tier reachable — never a fabricated verdict.
  /api/demo/canary-status:
    get:
      operationId: getStorefrontDemoCanaryStatus
      tags:
      - Testing
      summary: Judge-canary freshness (public, no auth, no LLM cost)
      description: 'The newest judge-drift verdict on the canary account, with no age window, so a synthetic can tell "stale" from "missing". Returns `judgedAt`, `passed`, `score`, judge `tier` and `judgeVersion` only: no scorecard, no transcript, no model call. Cached for 60 seconds.'
      responses:
        '200':
          description: '`{ found: false }`, or `{ found: true, judgedAt, passed, score, tier, judgeVersion }`.'
        '503':
          description: The canary lookup failed (`canary_status_unavailable`).
  /api/tests/demo:
    post:
      operationId: runDemo
      tags:
      - Testing
      summary: Run the hosted demo agent and get a scored result (~60s, zero carrier cost)
      description: Runs the canonical demo scenario against the hosted demo agent (a dental front desk) and returns a completed, fully-scored run — so you get a real scorecard without owning an agent yet. Direct transport only; not metered against call minutes. The response also includes a shareable public report URL.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                persona:
                  type: object
                  properties:
                    description:
                      type: string
                  description: Override the synthetic caller persona.
                goal:
                  type: string
                  description: Override what the caller is trying to accomplish.
                language:
                  type: string
                  default: en
                expected:
                  type: array
                  items:
                    type: string
                  description: Expected agent lines to pin for word-error-rate scoring.
                bargeIn:
                  type: boolean
                  description: Inject one caller-initiated barge-in.
      responses:
        '201':
          description: Completed, scored demo run
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    allOf:
                    - $ref: '#/components/schemas/TestRun'
                    - type: object
                      properties:
                        peerId:
                          type: string
                          examples:
                          - wb-demo-dental
                        reportUrl:
                          type: string
                          format: uri
                  error:
                    type:
                    - object
                    - string
                    - 'null'
                required:
                - data
                - error
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          description: 'DEMO_LIMIT: the account used its demo runs for the rolling 24 h (3 unverified, 20 verified email). `Retry-After` is the seconds until the oldest counted run is 24 h old. Unverified accounts also get `nextAction: "verify_email"` and `resendPath`. A per-minute RATE_LIMITED 429 is also possible.'
        '503':
          description: 'DEMO_PAUSED: the operator has paused the hosted demo for a while. `Retry-After` is in seconds. GET /health shows `demo: "paused"` while it lasts.'
  /api/tests/run:
    post:
      operationId: runTest
      tags:
      - Testing
      summary: 'Run a test: score a captured transcript (offline) or run a live synthetic call'
      description: 'Three modes, selected by the body:


        • **Saved suite** — send only `{ "suiteId": "…" }`. The suite runs as saved: its target, its language, and every scenario (each with its own persona, expected lines and barge-in), one run per scenario, at most 25 scenarios per request. A suite the account does not own returns `404 SUITE_NOT_FOUND`. This is the body to use from CI.


        • **Offline scoring** — supply `transcript` (or `turns`) plus a `scenarioGoal`; the judge scores it synchronously and the completed run is returned. Works on every plan; not metered against call minutes. Up to 4,000 characters. On the free plan each score counts toward the demo allowance: 3 in any 24 hours, or 20 once you confirm your email.


        • **Live synthetic call** — supply `targetAgent` and `goal`. For the hosted demo target (`{transport:"direct", peerId:"wb-demo-dental"}`) the run completes synchronously. For a `direct` (SIP/WebRTC) target the response returns a tokenized `mediaWebSocketUrl` per run for your agent-side harness to dial. For a `sip` target the SIP URI goes in `sipUri` (or in `peerId` as a `sip:` URI). For a `pstn` target a real carrier call is originated (pro+ plans only — starter returns 402).


        **Response shape (every live mode).** `data` is the FIRST run the request created — so `data.id`, `data.status` and `data.passed` are always present — and `data.runs` lists every run the request created (one per scenario for a saved suite, `concurrency` for an ad-hoc run). A run that is not yet terminal is `queued`/`running`: poll `GET /api/tests/{id}` for each id in `data.runs` until its status is `completed` or `failed`, and gate on `passed`.


        **PSTN destinations must be verified.** A `pstn` run is only placed to a number the account has proven it controls (or a Word Is Bond DID). An unproven destination returns `403 NUMBER_NOT_VERIFIED` and no call is placed. Prove control once with `POST /api/numbers/verify/start` → `POST /api/numbers/verify/confirm`.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              oneOf:
              - $ref: '#/components/schemas/ScoreTranscriptRequest'
              - $ref: '#/components/schemas/SuiteRunRequest'
              - $ref: '#/components/schemas/LiveRunRequest'
      responses:
        '201':
          description: Offline → the completed run in `data`. Every live mode → `data` is the first run created (`id`, `status`, `passed`, …) plus `runs` (every run the request created; a direct run carries `mediaWebSocketUrl`), `suite` for a saved-suite run, and `concurrency`/`transport` for ad-hoc runs.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    oneOf:
                    - $ref: '#/components/schemas/TestRun'
                    - allOf:
                      - $ref: '#/components/schemas/TestRun'
                      - type: object
                        properties:
                          runs:
                            type: array
                            items:
                              $ref: '#/components/schemas/TestRun'
                          suite:
                            type: object
                            description: Present on a saved-suite run.
                            properties:
                              id:
                                type: string
                                format: uuid
                              name:
                                type: string
                              scenarios:
                                type: integer
                          concurrency:
                            type: integer
                          transport:
                            type: string
                        required:
                        - runs
                  error:
                    type:
                    - object
                    - string
                    - 'null'
                required:
                - data
                - error
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '403':
          $ref: '#/components/responses/NumberNotVerified'
        '422':
          $ref: '#/components/responses/ValidationError'
        '429':
          $ref: '#/components/responses/RateLimited'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
  /api/tests/{id}/score:
    post:
      operationId: rescoreRun
      tags:
      - Testing
      summary: (Re)score a run's transcript with the judge
      parameters:
      - $ref: '#/components/parameters/IdPath'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                scenarioGoal:
                  type: string
                assertions:
                  type: array
                  items:
                    type: string
                transcript:
                  type: string
                  description: Overrides the run's stored transcript when supplied.
      responses:
        '200':
          description: Rescored run
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/TestRun'
                  error:
                    type:
                    - object
                    - string
                    - 'null'
                required:
                - data
                - error
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/ValidationError'
  /api/tests/canary:
    post:
      operationId: runCanary
      tags:
      - Testing
      summary: Trigger the hosted self-test now and publish a public report
      description: Runs the demo suite against the hosted demo agent under the fixed canary account and publishes a dated, tokenized public report — the reproducible proof the landing page links.
      responses:
        '201':
          description: Canary run summary
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      runId:
                        type: string
                        format: uuid
                      score:
                        type:
                        - integer
                        - 'null'
                      passed:
                        type:
                        - boolean
                        - 'null'
                      reportUrl:
                        type: string
                        format: uri
                  error:
                    type:
                    - object
                    - string
                    - 'null'
                required:
                - data
                - error
        '401':
          $ref: '#/components/responses/Unauthorized'
  /api/tests:
    get:
      operationId: listRuns
      tags:
      - Testing
      summary: List the most recent runs for the tenant (up to 100)
      responses:
        '200':
          description: Runs
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/TestRun'
                  error:
                    type:
                    - object
                    - string
                    - 'null'
                required:
                - data
                - error
        '401':
          $ref: '#/components/responses/Unauthorized'
  /api/tests/{id}:
    get:
      operationId: getRun
      tags:
      - Testing
      summary: Fetch one run (poll here for the terminal scored state)
      parameters:
      - $ref: '#/components/parameters/IdPath'
      responses:
        '200':
          description: Run
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/TestRun'
                  error:
                    type:
                    - object
                    - string
                    - 'null'
                required:
                - data
                - error
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    Scorecard:
      type: object
      description: The judged result. `score` is the 0–100 overall; `layers` carry per-dimension detail.
      properties:
        score:
          type: number
          minimum: 0
          maximum: 100
        passed:
          type: boolean
        summary:
          type: string
        sentiment:
          type: number
          minimum: -1
          maximum: 1
        taskCompletion:
          type: number
          minimum: 0
          maximum: 1
        layers:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
              score:
                type: number
                minimum: 0
                maximum: 100
              passed:
                type: boolean
              rationale:
                type: string
              assertions:
                type: array
                items:
                  type: object
      required:
      - score
      - passed
    ErrorEnvelope:
      type: object
      properties:
        data:
          type: 'null'
        error:
          oneOf:
          - type: string
          - type: object
            properties:
              code:
                type: string
              message:
                type: string
            required:
            - message
      required:
      - data
      - error
    RunMetrics:
      type: object
      properties:
        latencyMs:
          type: object
          properties:
            p50:
              type: number
            p95:
              type: number
            max:
              type: number
        wer:
          type:
          - number
          - 'null'
          minimum: 0
          maximum: 1
          description: Script-adherence error across pinned scenario wording, or null if nothing was pinned. This is not transcription word-error rate unless a caller supplies an STT reference transcript.
        bargeInCount:
          type: integer
        turnCount:
          type: integer
        taskCompletion:
          type: number
          minimum: 0
          maximum: 1
        sentiment:
          type: number
          minimum: -1
          maximum: 1
    TestRun:
      type: object
      properties:
        id:
          type: string
          format: uuid
        accountId:
          type: string
          format: uuid
        suiteId:
          type:
          - string
          - 'null'
          format: uuid
        status:
          type: string
          enum:
          - queued
          - running
          - completed
          - failed
        transport:
          type: string
        language:
          type: string
        persona:
          type:
          - object
          - 'null'
        targetAgent:
          oneOf:
          - $ref: '#/components/schemas/TargetAgent'
          - type: 'null'
        score:
          type:
          - integer
          - 'null'
          minimum: 0
          maximum: 100
        passed:
          type:
          - boolean
          - 'null'
        scorecard:
          oneOf:
          - $ref: '#/components/schemas/Scorecard'
          - type: 'null'
        metrics:
          oneOf:
          - $ref: '#/components/schemas/RunMetrics'
          - type: 'null'
        transcript:
          type:
          - string
          - 'null'
        recordingUrl:
          type:
          - string
          - 'null'
          description: 'BYOS recording pointer — a URL into YOUR OWN storage when the run recorded (never wordis-bond storage). Null unless the run opted in with `record: true`. See metrics.recording for the tee state (stored/truncated/failed).'
        mediaWebSocketUrl:
          type: string
          description: Only on a live `direct` run — the tokenized WS your agent-side harness dials.
        startedAt:
          type:
          - string
          - 'null'
          format: date-time
        endedAt:
          type:
          - string
          - 'null'
          format: date-time
        createdAt:
          type: string
          format: date-time
      required:
      - id
      - status
    ScoreTranscriptRequest:
      type: object
      title: Offline scoring
      description: Score a captured transcript with the judge. Provide `transcript` OR `turns`.
      properties:
        transcript:
          type: string
        turns:
          type: array
          description: Per-turn capture; formatted into a transcript when `transcript` is omitted.
          items:
            type: object
            properties:
              role:
                type: string
                enum:
                - agent
                - caller
              text:
                type: string
        scenarioGoal:
          type: string
          description: What the conversation was meant to accomplish.
        goal:
          type: string
          description: Alias for scenarioGoal.
        assertions:
          type: array
          items:
            type: string
        suiteId:
          type:
          - string
          - 'null'
          format: uuid
        language:
          type: string
          default: en
        transport:
          type: string
          enum:
          - pstn
          - webrtc
          default: webrtc
    SuiteRunRequest:
      type: object
      title: Run a saved suite
      description: Run one of your saved suites exactly as saved — every scenario, against the suite target. Send ONLY `suiteId` (plus optional `language` / `record`); adding a `targetAgent` or `goal` makes it an ad-hoc run linked to the suite instead.
      properties:
        suiteId:
          type: string
          format: uuid
        language:
          type: string
          description: Override the suite language for this run.
        record:
          type: boolean
          default: false
        recordTargetId:
          type: string
          format: uuid
      required:
      - suiteId
    TargetAgent:
      type: object
      description: The voice agent under test (a system YOU control). `direct` = SIP/WebRTC (near-zero cost, all plans); `pstn` = a real carrier call (pro+). The hosted demo target is `{transport:"direct", peerId:"wb-demo-dental"}`.
      properties:
        transport:
          type: string
          enum:
          - pstn
          - webrtc
          - direct
          - sip
        toNumber:
          type: string
          description: E.164 number to dial (required for a pstn target).
        peerId:
          type: string
          description: Hosted-agent id (e.g. "wb-demo-dental"), a direct peer label, or — for a `sip` target — the SIP URI.
        sipUri:
          type: string
          description: 'For a `sip` target: the agent SIP URI (`sip:` / `sips:`).'
      required:
      - transport
    LiveRunRequest:
      type: object
      title: Live synthetic call
      description: Drive a live synthetic caller against a target agent you run.
      properties:
        targetAgent:
          $ref: '#/components/schemas/TargetAgent'
        goal:
          type: string
          description: What the synthetic caller is trying to accomplish.
        persona:
          type: object
          properties:
            name:
              type: string
            description:
              type: string
          required:
          - description
        suiteId:
          type:
          - string
          - 'null'
          format: uuid
        transport:
          type: string
          enum:
          - pstn
          - webrtc
        language:
          type: string
          default: en
        concurrency:
          type: integer
          minimum: 1
          maximum: 25
          default: 1
        expected:
          type: array
          items:
            type: string
        bargeIn:
          type: boolean
        record:
          type: boolean
          default: false
          description: Opt this run into BYOS recording to your own storage (default off). Requires the byosRecording capability (pro/enterprise) and an enabled recording target. The customer-owned pointer comes back in the run’s recording_url and the report.
        recordTargetId:
          type: string
          format: uuid
          description: Record to THIS target (else the most-recent enabled one).
      required:
      - targetAgent
  responses:
    NumberNotVerified:
      description: '`NUMBER_NOT_VERIFIED` — a PSTN test call was requested to a number this account has not proven it controls. No call was placed and nothing was charged. Word Is Bond only tests systems you control. The error body carries a `hint` pointing at POST /api/numbers/verify/start.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    RateLimited:
      description: 'Too many requests, or a concurrency/spend ceiling was hit (e.g. CONCURRENCY_LIMIT: the plan''s simultaneous-call allowance is in use). Retry later.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    ServiceUnavailable:
      description: A dependency (e.g. the carrier for a PSTN run) is not configured or is unavailable.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    NotFound:
      description: The resource does not exist or is not owned by the tenant.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    Unauthorized:
      description: Missing, invalid, or revoked credentials.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    PaymentRequired:
      description: The plan does not permit this action, or the monthly quota is spent with no overage (e.g. a starter plan attempting a PSTN run). Body carries an upgrade hint; see GET /api/billing/plans.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    ValidationError:
      description: The request body failed validation.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
  parameters:
    IdPath:
      name: id
      in: path
      required: true
      schema:
        type: string
        format: uuid
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: wb_live_*
      description: 'Send your API key as a bearer token on every request: `Authorization: Bearer wb_live_…`. Create one at POST /api/api-keys (the raw token is shown once). Only a SHA-256 hash is stored.'
externalDocs:
  description: Agent-readable overview (llms.txt) and quickstart
  url: https://wordis-bond.com/llms.txt