ThanklyLifecycle
Lifecycle marketing: signals in, engagement decisions out, outcomes back.
A server-side surface. Every call authenticates with the org credential on X-Authorization, and the customer data it carries makes it unsuitable for an untrusted client regardless.
Functions
Link copied to clipboard
suspend fun awaitDecision(externalCustomerId: String, playbookId: String, journeyDay: Int? = null, postalCode: String? = null, overrides: JsonObject? = null): EngagementDecision
Run a playbook and wait for the decision and its enrichment.
Link copied to clipboard
Read the active brand configuration.
Link copied to clipboard
List every version of the brand configuration.
Link copied to clipboard
Read a customer's derived profile.
Link copied to clipboard
Delete a playbook.
Link copied to clipboard
Poll one decision's scoped widget set.
Link copied to clipboard
Ingest behavioural events.
Link copied to clipboard
suspend fun reportOutcome(decisionId: String, channel: String? = null, sent: Boolean? = null, delivered: Boolean? = null, opened: Boolean? = null, clicked: Boolean? = null, converted: Boolean? = null, revenue: Double? = null, conversionEvent: String? = null): JsonObject
Report a delivery outcome. Stages latch monotonically and replays are no-ops.
Link copied to clipboard
Roll the brand configuration back to an earlier version.
Link copied to clipboard
Replace the org's brand configuration.
Link copied to clipboard
Create or replace a playbook.