v3

OpenAPI 3.1.02026-07-31350397683.8 KB
Customer Traits

Generate Trait Values Endpoint

Generate trait values for each scenario for a single trait.

Request: - scenarios: list of scenario descriptions (intents), one per scenario - traits: exactly one trait (name + data_type)

Response: - dict mapping scenario index -> list of trait dicts - each trait dict has: { "name": <trait_name>, # same as the input trait name "data_type": <data_type>, # normalized data type string "value": <generated_value>, # value for that scenario + trait }

Frontend mapping: - for scenario index i: const traitsForScenario = res[i]; // array of trait dicts const value = traitsForScenario.find(t => t.name === traitName)?.value;

post/v1/generate-trait-values

Headers

X-API-Keystring required

API key required to authenticate requests.

Request body

scenariosstring[] required

List of intents (one per scenario) to generate values for

agent_promptstring nullable

Optional agent description for context

knowledge_basestring nullable

Optional knowledge base text for context

Response

Successful Response

object required