ackDB
Declare a custom source
Declares a new custom source definition at runtime. A source declared here is INDISTINGUISHABLE from a shipped pack: it flows through the same DB tables, so ingest, discovery, agent guidance, contact extraction, and embedding all treat it identically.
eventTypeField is REQUIRED (no static single-event sources) and identityLinkTypes MUST include domain so the source can resolve to or create entities. Default trait keys MUST be namespaced as <sourceType>_*. Use ?dryRun=true to validate the payload without persisting anything.
post/api/v1/ackdb/schemas/sources
Request
- Base URLhttp://localhost:3009
- AuthHTTP bearer
Query parameters
dryRunboolean
Validate without persisting. Returns 200 with { valid: true, dryRun: true, ... }.
Request body
Example request
{
"sourceType": "app_usage",
"displayName": "App Usage",
"identityLinkTypes": [
"domain",
"app_account_id"
],
"eventTypeField": "event_type",
"eventTypePrefix": "app_usage_",
"defaultTraits": [
{
"traitKey": "app_usage_dau",
"valueType": "number"
}
]
}Response
Dry-run validation succeeded (nothing persisted)
Changes
No recorded changes to this operation across all 1 revision of this API.