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.
string
required
Genie UUID to fetch runs for.
string
Filter by recency — e.g.
"7d", "30d". Omit or pass "all" for no filter.boolean
Admin only — bypass ownership filter.
string
Admin only — target a specific user’s data.
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.
string
Filter to a single Genie.
string[]
Filter to multiple Genies. Ignored when
agentId is set.string
Filter by recency — e.g.
"7d", "30d", "all".string
default:"all"
"all", "passed", or "failed".number
default:"1"
Page number.
number
default:"20"
Results per page. Maximum 100.
boolean
Admin only — bypass ownership filter.
string
Admin only — target a specific user’s data.
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.
string
required
Scenario name.
string[]
required
Non-empty array of user prompts to simulate in the test.
string
Optional description.
string
default:"custom"
Category label.
201
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.
string
required
Genie UUID.
array
required
Non-empty array of conversation turn objects.
string
Voice provider conversation ID for the recorded session.
number
Duration of the conversation in seconds.
201
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.
string
required
Genie UUID to audit.
boolean
Force regeneration of scenarios even if they already exist for this Genie.
201
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.
string
required
Genie UUID.
string
required
Voice provider agent ID for the Genie (available from the Genie’s voice settings).
string[]
Category IDs to include in the audit.
object[]
Tailored test objects to run. Each item should include
id, name, description, simulatedUserPrompt, and evaluationCriteria.string[]
Saved custom scenario UUIDs to include.
201

