Word Is Bond Outcome API
Post-call assertions: after a scored run, verify the business result actually landed.
Post-call assertions: after a scored run, verify the business result actually landed.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/wordis-bond-com:wordis-bond-com-outcome-api"
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.
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: 3.2.0
info:
title: Word Is Bond — Voice Agent Testing Outcome 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: Outcome
description: 'Post-call assertions: after a scored run, verify the business result actually landed.'
paths:
/api/outcome/secret:
get:
operationId: getOutcomeSecret
tags:
- Outcome
summary: Read the per-tenant assertion signing secret (minted on first read)
description: 'Word Is Bond signs every outbound assertion request with this secret. Verify it on your endpoint: recompute hex(HMAC-SHA256(secret, `${wb-timestamp}.${rawBody}`)), compare in constant time, and reject a timestamp more than 5 minutes old. Rotate with POST /api/outcome/secret/rotate.'
responses:
'200':
description: The signing secret + verification recipe
content:
application/json:
schema:
type: object
properties:
data:
type: object
properties:
secret:
type: string
examples:
- wbas_…
signatureHeader:
type: string
const: wb-signature
timestampHeader:
type: string
const: wb-timestamp
verify:
type: string
required:
- secret
error:
type:
- object
- string
- 'null'
required:
- data
- error
'401':
$ref: '#/components/responses/Unauthorized'
/api/outcome/secret/rotate:
post:
operationId: rotateOutcomeSecret
tags:
- Outcome
summary: Rotate the signing secret
description: Replaces the assertion signing secret. Old signatures stop verifying.
responses:
'200':
description: The new signing secret
content:
application/json:
schema:
type: object
properties:
data:
type: object
properties:
secret:
type: string
rotated:
type: boolean
error:
type:
- object
- string
- 'null'
required:
- data
- error
'401':
$ref: '#/components/responses/Unauthorized'
/api/outcome/assertions:
get:
operationId: listOutcomeAssertions
tags:
- Outcome
summary: List the outcome assertions this account has registered
responses:
'200':
description: Assertions
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/OutcomeAssertion'
error:
type:
- object
- string
- 'null'
required:
- data
- error
'401':
$ref: '#/components/responses/Unauthorized'
post:
operationId: createOutcomeAssertion
tags:
- Outcome
summary: Register a post-call assertion against a suite
description: After a scored run for `suiteId` (optionally narrowed to one scenario by `scenarioName`), Word Is Bond POSTs a signed request to `endpoint` and evaluates the matchers. The endpoint MUST be a public https URL; internal, loopback, link-local, and cloud-metadata hosts are rejected at registration. `expected.json_path` maps a JSONPath to an expected value (or the sentinels `$exists` / `$absent`); values may interpolate the scenario, e.g. `{{scenario.requested_date}}`. `priceCheck` compares the price the agent quoted against an uploaded price list. Method is POST and trigger is post_call in v0.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/OutcomeAssertionInput'
responses:
'201':
description: Created
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/OutcomeAssertion'
error:
type:
- object
- string
- 'null'
required:
- data
- error
'401':
$ref: '#/components/responses/Unauthorized'
'422':
$ref: '#/components/responses/ValidationError'
/api/outcome/assertions/{id}:
parameters:
- $ref: '#/components/parameters/IdPath'
get:
operationId: getOutcomeAssertion
tags:
- Outcome
summary: Get one assertion
responses:
'200':
description: Assertion
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/OutcomeAssertion'
error:
type:
- object
- string
- 'null'
required:
- data
- error
'404':
$ref: '#/components/responses/NotFound'
put:
operationId: updateOutcomeAssertion
tags:
- Outcome
summary: Update one assertion (partial)
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/OutcomeAssertionInput'
responses:
'200':
description: Updated
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/OutcomeAssertion'
error:
type:
- object
- string
- 'null'
required:
- data
- error
'404':
$ref: '#/components/responses/NotFound'
'422':
$ref: '#/components/responses/ValidationError'
delete:
operationId: deleteOutcomeAssertion
tags:
- Outcome
summary: Delete one assertion
responses:
'200':
description: Deleted
content:
application/json:
schema:
type: object
properties:
data:
type: object
properties:
deleted:
type: boolean
id:
type: string
error:
type:
- object
- string
- 'null'
required:
- data
- error
'404':
$ref: '#/components/responses/NotFound'
/api/outcome/price-lists:
get:
operationId: listPriceLists
tags:
- Outcome
summary: List uploaded price lists
responses:
'200':
description: Price lists
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/PriceList'
error:
type:
- object
- string
- 'null'
required:
- data
- error
'401':
$ref: '#/components/responses/Unauthorized'
post:
operationId: createPriceList
tags:
- Outcome
summary: Upload a price list the price matcher compares an agent quote against
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
currency:
type: string
examples:
- USD
entries:
type: array
items:
type: object
properties:
key:
type: string
price:
type: number
required:
- key
- price
required:
- name
- entries
responses:
'201':
description: Created
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/PriceList'
error:
type:
- object
- string
- 'null'
required:
- data
- error
'401':
$ref: '#/components/responses/Unauthorized'
'422':
$ref: '#/components/responses/ValidationError'
/api/outcome/runs/{runId}:
get:
operationId: getRunOutcomes
tags:
- Outcome
summary: The evaluated outcomes (pass / fail / inconclusive) for one of your runs
parameters:
- name: runId
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: Outcome results for the run
content:
application/json:
schema:
type: object
properties:
data:
type: object
properties:
runId:
type: string
format: uuid
results:
type: array
items:
$ref: '#/components/schemas/OutcomeResult'
totals:
type: object
properties:
total:
type: integer
pass:
type: integer
fail:
type: integer
inconclusive:
type: integer
error:
type:
- object
- string
- 'null'
required:
- data
- error
'404':
$ref: '#/components/responses/NotFound'
/api/outcome/price-lists/{id}:
parameters:
- $ref: '#/components/parameters/IdPath'
get:
operationId: getPriceList
tags:
- Outcome
summary: Get one price list
responses:
'200':
description: Price list
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/PriceList'
error:
type:
- object
- string
- 'null'
required:
- data
- error
'404':
$ref: '#/components/responses/NotFound'
put:
operationId: updatePriceList
tags:
- Outcome
summary: Update one price list (partial)
requestBody:
required: true
content:
application/json:
schema:
type: object
responses:
'200':
description: Updated
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/PriceList'
error:
type:
- object
- string
- 'null'
required:
- data
- error
'404':
$ref: '#/components/responses/NotFound'
'422':
$ref: '#/components/responses/ValidationError'
delete:
operationId: deletePriceList
tags:
- Outcome
summary: Delete one price list
responses:
'200':
description: Deleted
content:
application/json:
schema:
type: object
properties:
data:
type: object
properties:
deleted:
type: boolean
id:
type: string
error:
type:
- object
- string
- 'null'
required:
- data
- error
'404':
$ref: '#/components/responses/NotFound'
components:
schemas:
OutcomeAssertionInput:
type: object
description: Register/patch an outcome assertion. `endpoint` must be a public https URL.
properties:
suiteId:
type: string
format: uuid
description: The suite this assertion is attached to (required on create).
scenarioName:
type:
- string
- 'null'
description: Only run for this scenario (persona name). Null = every scenario.
name:
type: string
endpoint:
type: string
format: uri
examples:
- https://hooks.acme.com/wb-outcome
method:
type: string
enum:
- POST
expected:
type: object
description: status + JSONPath equality/existence checks. Values may interpolate {{scenario.*}}.
properties:
status:
type: integer
json_path:
type: object
additionalProperties: true
examples:
- $.booking.status: confirmed
$.booking.date: '{{scenario.requested_date}}'
priceCheck:
type:
- object
- 'null'
description: Compare the agent quote against a price list.
properties:
quoted_field:
type: string
description: JSONPath into the response for the recorded amount. Absent ⇒ extract from the transcript.
source:
type: string
examples:
- price_list_ref:<priceListId>
service_key:
type: string
description: Which list entry to expect. Default {{scenario.requested_service}}.
tolerance:
type: number
required:
- source
timeoutMs:
type: integer
description: Per-request timeout, capped at 10000.
retries:
type: integer
description: Retry attempts on an unreachable/5xx call, capped at 3.
enabled:
type: boolean
PriceList:
type: object
properties:
id:
type: string
format: uuid
name:
type: string
currency:
type: string
examples:
- USD
entries:
type: array
items:
type: object
properties:
key:
type: string
price:
type: number
required:
- id
- name
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
OutcomeResult:
type: object
description: One assertion evaluated against one run. Stores match RESULTS only — never the raw response body.
properties:
assertionId:
type: string
format: uuid
name:
type: string
status:
type: string
enum:
- pass
- fail
- inconclusive
- pending
reason:
type:
- string
- 'null'
checks:
type: array
items:
type: object
additionalProperties: true
required:
- assertionId
- status
OutcomeAssertion:
allOf:
- $ref: '#/components/schemas/OutcomeAssertionInput'
- type: object
properties:
id:
type: string
format: uuid
trigger:
type: string
const: post_call
createdAt:
type: string
format: date-time
required:
- id
parameters:
IdPath:
name: id
in: path
required: true
schema:
type: string
format: uuid
responses:
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'
ValidationError:
description: The request body failed validation.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
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