AckdbTraitDefinition
Trait definition. Like Salesforce custom fields - defines what computed fields exist. AI agents discover fields by listing these at runtime.
Properties
traitKeystringrequiredUnique within org. Convention: prefix with source name.
sourcestringrequiredWhich source system this trait comes from.
descriptionstring | nullrequiredHuman/AI-readable description. AI agents use this to understand the trait.
allowedValuesarray | nullrequiredOptional enum constraint. Write API rejects values not in this list.
scopestringTrait grain: entity (company) or contact. Defaults to "entity".
"entity""contact"createdAtstring <date-time>requiredExample
AckdbTraitDefinition example
{
"traitKey": "stripe_plan",
"valueType": "number",
"source": "stripe",
"description": "Monthly recurring revenue in cents from Stripe",
"allowedValues": null,
"scope": "entity",
"createdAt": "1970-01-01T00:00:00.000Z"
}