Frequently Asked Questions
Answers to the most common questions about CDP integration, administration, and operations.
Jump to: Integration · Administration · Data & Platform
Integration
How do I create an API key?
In the admin panel, go to Ingestion > Data Sources and open the raw table the key should write to. Under How data flows through this table, click Add a source > Public API, then Create a new API key. This turns on the Public API for that table (a key can only write to tables where it is on). It then opens the API Keys page with the Create API Key dialog, and that table already selected under Allowed Source Tables. Enter a Name and click Create.
You can also open the API Keys page directly at the /data-sources/api-keys path of the admin
panel and click Create API Key. If you leave Allowed Source Tables empty there, the key
can write to every table that is open to the Public API.
The API Key Created dialog shows the API Key and Secret Key only
once. Copy them, or click Download JSON (the file stores them as api_key and
secret_key), then click I've saved these - Done. They cannot be retrieved again.
See the Integration Guide for full usage instructions, including how
to base64-encode the credentials for the Authorization: Basic header.
What's the difference between revoking and deleting an API key?
Revoking disables a key immediately - any request using it gets 401 -
but keeps it in the list with a "Revoked" badge, so you still have a record of it for audit purposes.
Deleting permanently removes the key from the list. It works on active or revoked keys - you don't need to revoke a key before deleting it. Deletion cannot be undone from the admin UI.
Both actions are in the "⋯" menu on each row of the API Keys page. To get there, click an
API key node under Data comes in from on a table's page in
Ingestion > Data Sources, or open the /data-sources/api-keys path of the admin panel.
The same menu has Edit Scope, which changes which tables the key may write to without issuing a
new secret. A revoked key shows Revoked in the Status column and offers only
Delete. To replace a key without downtime, see
How do I rotate an API key?
How do I rotate an API key?
Create a new key with the same Allowed Source Tables, deploy it to your integration, then
Revoke the old key. Revoking takes effect on the next request, which gets
401 (Invalid write key.).
CDP does not show when a key was last used, so switch every caller to the new key before revoking the old one. A lost secret cannot be shown again; create a new key instead.
How do I stop a table from accepting new rows?
The admin panel cannot switch a table's Public API or File imports input back off once it is on. Instead:
- To stop API writes, revoke the API keys that write to the table, or use Edit Scope on the API Keys page to remove the table from each key. A key set to Allow all source tables can still write to it.
- To stop file imports, pause the table's import sources on the Data Imports screen. Pausing stops new imports, but an import that is already running finishes. Files already queued start when you resume the source, unless you cancel them first (Cancel run, while the run is Pending) or delete the source, which cancels its queued runs.
Deleting the table stops everything, but it also drops its data.
Can I load a CSV or JSONL file without writing code?
Yes, with File Import. It is the third way to get rows into a raw table, alongside the Public API and Airbyte (or another ELT tool), and does not replace either. Under Ingestion > Data Sources, open the target table and choose Add a source > File imports > Create a new import source. In New Import Source:
- Mode - Upload (you upload files yourself), Scheduled scan (CDP watches a folder in your S3-compatible bucket on a schedule) or Manual scan (it scans only when you click Scan now). The scan modes need a File location created for imports on the File Locations tab of Data Imports. Its folder prefix is the folder that is watched.
- File format - CSV or JSONL. It cannot be changed later. Then click Create Source.
File rules: CSV must be comma-separated with a header row, in UTF-8 or CP932 (Shift_JIS). JSONL is one
JSON object per line (.jsonl / .ndjson), UTF-8 only. Columns are matched by exact
name (case-sensitive); use Column mapping for headers that differ. A file can be up to 3 GB.
For an Upload source, choose the file, click Check file to validate a sample before anything is uploaded, then click Upload & import. Track progress on the Runs tab of Data Imports. Imported rows land in the raw table. If the table has an event source mapping, they become events at its next transform. See the Integration Guide for the full walkthrough.
Why was my file import Rejected or Partially imported?
An import stops at the first invalid row: that row and everything after it are skipped, and the run offers
a report of every problem found. Download it from the run's details on the Runs tab. It is
rejects.csv for a CSV source and rejects.jsonl for a JSONL one, with each bad
line's number and reason.
- Rejected - nothing was imported (bad rows before anything was written, an unreadable header, the wrong format, a file over 3 GB). Fix the file and import it again; in a watched folder a corrected file is picked up as a new file.
- Partially imported - some rows were already written before the first bad row and cannot be rolled back. Remove them before importing the file again.
- Failed - CDP could not read the file or write to the table, and nothing was written. A watched folder retries it on the next scan; an upload must be re-run with Re-run once the cause is fixed.
Only one import runs per table at a time; others wait as Pending.
Why aren't my events appearing in the admin panel?
Check in order:
-
HTTP response - Is your request returning
201 Created?401means the credentials are wrong, revoked or deleted.400means the body or a row does not match the table (send the same body to/api/public/v1/raw-data/verifyto see every problem at once).403 Forbiddenmeans the key's Allowed Source Tables does not include this table: use Edit Scope on the API Keys page.404 SourceTableNotRegisteredmeans the table is not open to the Public API: open it under Ingestion > Data Sources, choose Add a source > Public API, then click Allow next to your key (or Create a new API key). - Column mapping - Rows you send are stored in the table's raw data in ClickHouse. They do not become events until the table has a saved column mapping. Go to Ingestion > Events, click Add event source and pick your table. You can also click Add event source under Data goes out to on the table's page in Data Sources. Choose the Data Source, Event Type and Event Timestamp, select the columns and mark at least one identity column, then click Save.
- Transform - Events are created by the transform, not when rows arrive. If Auto Transform is on in the mapping (it is off by default), the transform runs every hour. Otherwise use Transform from the row menu on Events, or the Transform button on the event source's page. Check the Latest Transform column for Running or Failed. Rows that arrived in the last ~15 seconds are picked up by the next run.
- Profiles - Source and unified profiles are built separately: first by a source merge policy (every hour at about :05 UTC, or on demand with Build), then by a unified merge policy (every hour at about :10 UTC, or on demand with Build). If you see events but no profiles, check those policies.
Events are listed per table: open the event source under Ingestion > Events and see the Events card (filter with Filter by Event ID… or the Event timestamp range). The Overview card shows Total events and Last transform.
How do identity fields work in the raw-data model?
In the raw-data model, you send raw table rows with columns defined by your raw_data table
schema. You do not include an identity_info field directly - instead, you designate which of
your table's columns are identity fields in the column mapping editor. Open it from
Ingestion > Events with Add event source for a new table, or
Configure in an existing source's row menu. Turn on the Identity switch for each
identity column and choose its kind: Email, Phone or Other.
Common identity column names you might configure:
email- user's email addressuser_id- your application's internal user ID-
phone- phone number. Store it in one consistent format everywhere, ideally E.164 (e.g.+819012345678), which SMS campaigns also require. line_uid- LINE User ID (starts withU)device_id- anonymous device or cookie ID
See How are identity values normalized?
Use the same identity name (the Target Name in the column mapping) and the same kind for each
identifier across all your tables. The raw column names can differ - for example, map
mail_addr on one table and email on another to the Target Name
email as Email. The shared identity name is what lets identity resolution cluster the
same person across data sources.
How are identity values normalized (Email, Phone, Other)?
Before profiles are matched, CDP normalizes each identity value once, at transform time, by the kind chosen for that column in the mapping:
- Email - Trim + lowercase
-
Phone - Trim + remove spaces - . ( ), so
090-123-4567and0901234567become the same value - Other - Trim only
Normalization never adds a + or country code and never repairs data, so
0901234567 and +84901234567 stay different and will not merge. It applies only to
identity values. Event properties (and so user properties and campaign recipients) only have surrounding
spaces trimmed.
An identity name has one kind across all mappings: saving email as Email on one
table and as Other on another is refused. Choose the kind carefully before the first transform.
Once the table has been transformed, the kind is locked in the mapping editor, as are identity target
names and dedup keys.
How do I prevent duplicate events?
Deduplication in CDP works at the cdp.events level. Each event carries a
dedup_key field that the transform pipeline (transform-raw-to-events) always
computes - it is never a literal pass-through of one column's value:
- If you check one or more columns as Dedup Key in the column mapping, CDP hashes
event_source+source_table+ those columns' values into thededup_key. - If no column is marked, CDP falls back to hashing every mapped column for that row - so retried rows whose properties differ even slightly won't be deduplicated.
For transactional events like purchases or sign-ups, include a stable unique value in your raw data (such as an order ID or transaction ID) and mark just that column as the Dedup Key in the column mapping.
Choose dedup keys before the first transform: after the first run, dedup keys and identity target names are locked in the mapping editor. Keep the Target Name of a Dedup Key column the same as its column name. Duplicates with the same dedup key are collapsed in the background, so a duplicate may be visible briefly. If you change the dedup keys and then use Re-transform all, the new events get different keys and sit alongside the ones already transformed (see Can I replay historical events?).
Can I send events from a browser (JavaScript)?
Not recommended. The secret_key must stay private on the server side. Sending events
directly from browser JavaScript exposes your secret to all end users via network inspection or
view-source.
Instead, send events from your server-side code. For client-side tracking, collect events in the browser and proxy them through your own backend before forwarding to the CDP Public API. This also lets you enrich events with server-side context (user session, geo, etc.) before they reach CDP.
What languages and SDKs are supported?
Any language that can make HTTP requests. The Public API uses standard HTTP Basic authentication and JSON request bodies - there are no proprietary SDK requirements.
The Integration Guide has ready-to-run examples for JavaScript (Node.js), Python, and cURL. Adapting to other languages - Go, Ruby, PHP, Java, C# - requires only a standard HTTP client library in that language.
An interactive reference for every public endpoint is served at
https://<your-cdp-api-host>/docs/public. Before going live, send your payload to
POST /api/public/v1/raw-data/verify: it runs the same checks as ingest, writes nothing, and
lists every row problem. GET /api/public/v1/tables/<source_table>/schema returns the
writable columns and a ready-to-send example body.
Administration
What is the difference between a Source Profile and a Unified Profile?
A Source Profile is an identity cluster built within a single data source. For example,
all events from your website that share the same email address are grouped into one Source Profile.
Source Profiles are built by the build-source-profiles job for each active source merge
policy. It runs every hour at about :05 (UTC), or on demand with Build. Inactive policies do not
build. You can browse a policy's profiles on its page under Source profiles.
A Unified Profile merges Source Profiles from multiple data sources into one
customer identity, using a Union-Find algorithm to resolve that the same real person appeared under
different identifiers across sources (e.g. website vs. mobile app vs. CRM). Unified Profiles are created
by the build-unified-profiles job, which runs every hour at about :10 (UTC) for the active
unified merge policy, or on demand with Build. Inactive policies do not build.
The Unified Profiles dashboard shows the active policy's profiles.
How do I set up identity resolution across two data sources?
-
Map each source table under Ingestion > Events with Add event source. Use the
same identity name and kind (e.g.
emailas Email) on both tables, then run Transform. - Under Unification > Source Profiles, click Create Merge Policy once per data source. Pick the Data source, define the Merge Conditions, and click Save and build. Later builds run automatically every hour; use Build on the policy to run one now.
-
Under Unification > Unified Profiles, click Manage Policies > New Policy. Add one
source policy per data source under Applicable source rules, add a merge condition on the shared
identity (e.g.
email), switch Engagement on if you will use segments, user properties or campaigns, and click Save. The new policy is saved as active. If another policy was already active, use Deactivate on it, because only one policy should be active. - Click Build, either on the policy page or from the Actions menu on the Unified Profiles dashboard. Unified builds also run hourly.
After the build completes, customers who appear in both sources with a matching email value
will be merged into a single Unified Profile.
Can I undo a merge or change a merge condition?
You can add new condition sets to an inactive policy. They apply to existing profiles on the next build, so more profiles may merge. Saved condition sets cannot be edited or removed, and profiles that were merged are never split again.
To start over, deactivate and delete the policy (this deletes its profiles), then create a new one with the right conditions; it builds from all events. A source policy cannot be deleted while a unified policy uses it, and a unified policy cannot be deleted while it has segments, active or paused, so remove those first. A unified policy's user properties, active or paused, do not block the delete: they are deleted with the policy, together with their computed values.
A new policy starts building as soon as it is saved, so check the conditions carefully before you save, especially broad keys such as a shared phone number.
Why are Edit and Delete greyed out?
To protect data that is being built, most items must be stopped before you change or delete them: source merge policies (use Deactivate), and user properties, segments, file import sources and scheduled exports (use Pause). Hover over the disabled button to see the reason.
On Unified Profiles, only one merge policy is active at a time. Use Manage Policies to see the Active slot (1 of 1 allowed) and your inactive policies. Choose Deactivate to stop the active policy so you can edit it, and Activate on an inactive one to switch the active policy (the current one is deactivated first). Existing merge conditions cannot be edited, but you can add new ones.
Where do I manage user properties?
User properties belong to a unified merge policy. Open Unification > Unified Profiles and use the User Properties section below the active policy's profile list. Click Add User Property to create one. Each property is either a Raw value (the latest value of an event field) or Duration since (the time elapsed since an event date).
Values are computed only while the policy's Engagement is on. They appear in each profile's Computed Properties and as columns in the unified profile list.
Why is my segment size 0?
Common reasons:
- Build not completed - Check Last built on the active policy card on the Unified Profiles dashboard, or the Pipeline cards on Home.
- Conditions too restrictive - Pause the segment, click Edit, remove or loosen one condition at a time, and save. Then Resume the segment: a paused segment is not recomputed. After that, the next compute cycle (about a minute) recalculates it. Watch the Members count on the segment's Overview tab. For a User properties segment, open a few profiles under Unified Profiles and check their Computed Properties to confirm the values you are filtering on exist.
- Compute not running - Segment membership is recomputed about every minute, but only while the policy's Engagement switch is on. To turn it on, open Actions on the policy card under Unified Profiles, choose Deactivate, then Edit, switch Engagement on, click Save changes, and choose Activate. Make sure the segment is Active; a paused segment stops updating. Use Force recompute on the segment to recompute it now. Only currently active unified profiles are counted.
What happens when I delete an event source?
In Ingestion > Events, choose Delete from the event source's row menu (or on the event source's page). This deactivates the mapping and permanently deletes every event it produced for that table. Other tables that share the same data source name are not touched. The raw rows, and the profiles and segment membership already built, are kept.
The delete is blocked while the data source is still used by an active unified policy or an active segment; the dialog lists them.
Can I delete a customer's data (GDPR right to erasure)?
Not by customer identity today. CDP's clean-data workflow deletes ClickHouse and
PostgreSQL data for an entire rule - an inactive source merge policy, an inactive
unified merge policy, a paused segment, or a paused user property definition - not for a single customer's
email or user ID. If your erasure obligation requires removing everything tied to one specific
person, that cross-cutting deletion isn't a built-in workflow yet; talk to your platform team about a
custom deletion path across raw_data, cdp.events, and the profile tables.
clean-data is the right tool for retiring an entire data source, unified merge policy,
segment, or user property once it's paused. Running clean-data on a source merge policy does
not delete that source's events. To remove a table's events too, delete its event source (see
What happens when I delete an event source?).
Trigger it from the admin panel when you delete one of those resources, or via the Workflows API with
jobType: "clean-data" and
{ "mode": "delete", "resource_type": "SOURCE_RULE", "resource_id": "<rule-id>" }
(resource_type also accepts UNIFIED_RULE, SEGMENT, or
USER_PROPERTY). It refuses while something still depends on the resource: a source policy
still used by a unified policy, a unified policy that still has segments (its user properties do not
block it and are deleted with it), or a user property still used by a segment. Remove a segment or user
property from any campaign that uses it before deleting it.
If a delete stops part-way, you can run it again safely and it finishes the remaining steps. After a delete has completed, the resource no longer exists, so a second run ends Failed with a "not found" message.
See Use Case 3: Retire a Deprecated Data Source for a full walkthrough including a sample API call.
How do I monitor running workflows?
Most jobs show their status in the admin panel: Latest Transform on Events; Last build on each source merge policy under Source Profiles; Last built on the active policy card under Unified Profiles; the Runs tab of Data Imports for file imports; View detail & history (Run history) for scheduled exports under Data Destinations; and the Runs and Send Logs tabs on a campaign's detail page.
Operators can also open the Temporal Web UI at http://localhost:8233 (or your Temporal
deployment URL) to see all running, completed, and failed workflows and inspect their activity history.
In production, use the Temporal Cloud UI or your self-hosted Temporal cluster's web interface.
What campaign schedule types are supported?
Three schedule types are available under When to send:
- Send now (shown as Immediate in the campaign list) - sends once when you activate.
- Scheduled (One-time) - sends once at a date and time, in the timezone you choose.
- Repeating (Recurring) - Daily, Weekly (pick weekdays) or Monthly (pick the day), at a set time and timezone. Under Stop sending choose Never stop, On a specific date or After a number of sends.
For Repeating campaigns, Who receives this campaign on each send? offers:
snapshot_each_run("Full audience, every send") - sends to every current segment member on each run.delta_only("New members only") - sends only to members who were not included in any earlier run of this campaign, even if they left the segment and joined again.once_per_profile("One message per person, ever") - sends to a profile at most once, ever, across all runs of this campaign.
Under Safety checks you can skip a send when the audience is smaller than N people, and, for Repeating + Daily only, send on business days (Mon-Fri) only. To skip a single date of a recurring campaign, use Skip next fire on the active campaign.
Can I test a campaign, and what do the send log statuses mean?
Yes, even while it is a draft. Open the campaign and click Test Send to send to up to 5 recipients, typing the recipient and variable values yourself.
In the Send Logs tab:
- Sent - the provider accepted the message (delivery is not tracked yet).
- Failed - a permanent problem, such as a phone number not in E.164 format or an invalid email address. It is not retried.
- Error - a temporary or configuration problem. It is retried while the run is in progress.
- Skipped - the profile has no value for the Send to property.
- Pending - not processed yet.
Click an error to see what to fix.
Why did my SMS fail with "Invalid phone number"?
The Send to user property must hold the number in E.164 form (+, country code, number, digits
only), for example +819012345678. CDP sends the value as stored and does not reformat it.
Marking a column as Phone in the event mapping only cleans the value for profile matching and
never adds a + or country code (see
How are identity values normalized?). User properties read the
event property, which only has surrounding spaces trimmed.
Fix the number in the source data, or create the user property from a column that already holds E.164 values. Store phone numbers in a text column so a leading 0 or + is not lost.
Data & Platform
Where is my data stored?
CDP stores everything on infrastructure you run. Data leaves it only when you configure it to: campaign messages (with the recipient address and any personal data in the message) are handed to the provider you added under Channels, and scheduled exports write files to the S3 bucket you added under Data Destinations.
- ClickHouse - raw data tables, events, source and unified profiles, computed user property values, and segment memberships.
- PostgreSQL - configuration: event mappings, merge policies, user property and segment definitions, campaigns, templates, channel providers, API keys, file import sources and run history, users, roles and audit logs.
- S3 / Blob storage - files uploaded for File Import, rejects reports, export files, email attachments and uploaded template images.
Which timezone do schedules and timestamps use?
Campaigns use the Timezone you pick in the Schedule step (default Asia/Ho_Chi_Minh).
Everything else is UTC:
- the Cron expression (UTC) of a scheduled export;
- the Daily and Weekly times of a scheduled import source;
- the hourly pipeline (transform hourly, source builds at about :05, unified builds at about :10).
Raw timestamps sent without a Z or +HH:MM offset are stored as UTC, so send an
explicit offset if your system clock is not UTC.
Can I replay historical events?
Yes. A normal Transform only picks up rows added since the last run. To reprocess everything in a
table, use Re-transform all from the event source's menu on Events. As long as
the mapping and dedup keys have not changed, re-transformed events get the same dedup_key and
collapse into the existing ones. If you changed them, the new events sit alongside the old ones.
For backfilling, load historical rows into the raw table through any of the three channels (the Public API, Airbyte (or another ELT tool), or File Import with a CSV / JSONL file), transform them, then let the hourly builds (or Build) update profiles and segments. Events keep the time from the mapping's Event Timestamp column.
What are the request size limits for the Public API?
- Request body: at most 4 MB total. Larger bodies are rejected, so split them into smaller batches.
source_table: 1-255 characters, must match^[A-Za-z_][A-Za-z0-9_]*$.rows: 1-1000 items per request. Send multiple batches for larger datasets.- Keys per row: at most 500 column keys per row object.
A request is all or nothing: if any row fails validation, no row is written.
Individual column values have no hard size limit at the API level, but very large values may affect ClickHouse storage efficiency and ingestion throughput.
Are large numbers stored exactly?
Yes, for integer and Decimal columns. CDP reads the digits you send, so
18446744073709551615 into a UInt64 column is stored exactly. JavaScript clients
usually round such numbers before sending, so send very large integers as digit strings.
Inside a JSON column, an integer outside the 64-bit range or a decimal with more than 15
significant digits is rejected with a 400 that names its path; send that value as a JSON
string to keep it exactly. File Import JSONL files follow the same rules.
How do I export profiles and how long are files kept?
- One-off: open a segment, go to Members Profiles and click Export profiles. The CSV is listed under Recent Exports and kept for 7 days. Only one export per segment runs at a time.
- Recurring: Integrations > Data Destinations > Scheduled Exports writes Customer Profiles or Customer Activity as CSV (up to 1,000,000 rows per file) to an S3 destination you add on the Destinations tab. The files stay in your bucket; CDP does not keep its own copy. View detail & history (Run history) offers download links for each run for 30 days.
Download links expire, so close and reopen Download files to get fresh ones. Exports include only currently active unified profiles.
How do I back up CDP data?
The CDP application containers are stateless. Back up PostgreSQL, ClickHouse, the CDP S3 / blob storage bucket (import uploads, rejects reports, exports, template images), and the database behind your Temporal server, which stores the automatic transform, build and compute schedules.
-
PostgreSQL - Use standard
pg_dumpfor logical backups, or configure continuous WAL archiving for point-in-time recovery. -
ClickHouse - Use
clickhouse-backupor nativeBACKUP TABLE/BACKUP DATABASEcommands. For production, use a dedicated backup solution likeclickhouse-backupwith S3 as the target.
For disaster recovery, ensure backups are stored off the same host and tested for restore regularly.