Skip to main content
Brand Integrity lets you simulate conversations with a Genie and score the results against expected behaviour. Audits run asynchronously; progress is broadcast over the brand-tests Supabase Realtime channel. Workspace members share access to their owner’s test runs.

Actions

all

Returns all completed test runs for a specific Genie, each with its results array embedded. Parameters Response

get

Returns a single test run by ID with its full results array. Parameters Response

list

Paginated list of test runs across one or more Genies, optionally filtered by status. Parameters Response

list-results

Returns all individual test results for a specific run. Parameters Response

list-scenarios

Returns all custom (non-predefined) test scenarios belonging to the authenticated user or workspace. Parameters — none Response

create-scenario

Creates a custom test scenario. Parameters Response201

delete-scenario

Deletes a custom scenario. Only the owner (or an admin) can delete. Parameters Response

get-audit-scenarios

Returns AI-generated scenarios that were created for a specific audit run. Parameters Response

save-manual-test

Saves a manually recorded conversation as a completed test run. Useful for logging quick-test sessions from the UI. Parameters Response201

run-full-audit

Kicks off a full automated Brand Integrity audit for a Genie. Creates a test run in generating state, then asynchronously generates scenarios and executes them. Returns immediately with the testRunId — subscribe to the brand-tests Realtime channel for progress updates. The Genie must have a voice configured (elevenlabs_id). Parameters Response201

run-custom-audit

Runs a custom audit using a specific selection of categories, AI-suggested tests, and/or saved custom scenario IDs. Returns immediately with testRunId; execution is asynchronous. Parameters Response201

Error codes