Import a CSV
Upload a spreadsheet from your browser or agent, review its column mapping, and check the imported members.
CSV imports accept spreadsheets of people or activity, such as event registrations and customer exports. Datum suggests a column mapping. You review the mapping. Then you upload the rows directly from your browser. Hosted workspaces need no terminal access.
When you choose a file, your browser reads its headers on your computer. Import rows sends the data in batches, and Datum processes them in the background. A workspace owner can import files up to 50 MB from the browser.
CSV values never count as verified evidence. Automatic links require an exact email match to an address that a source verified.
Choose your filePreview the columns in your browser
- Press Import CSV on Members.
- Press Choose a CSV.
- Select the file.
The browser reads the header row and suggests a mapping. Each column must have a unique header. If two headers are the same, rename one before you select the file.
Done whenThe page shows the file name, column count, and suggested mappingCheck the column mapReview how Datum will read each column
Datum compares your headers with its catalogue of CSV mappings. It shows the closest mapping and its confidence. For example, it can show “Suggested mapping: commonroom-export / contacts · 78% confidence”. The catalogue has the Common Room export, the Common Room upload template and the Discourse user export. A sign-up sheet from a different tool usually matches only part of one of these. Thus, check each column.
Select Catalogue mapping and stream to choose a different mapping.
Each column shows its target field, matching method, and confidence. Use the menu beside a column to change its target. Datum marks your change as Operator edit.
To keep a column as a custom field, choose Unmapped (custom value).
The mapping needs a stable identifier, such as a user ID or a personal email address. Activity files also need a timestamp. Two columns cannot have the same target field.
Confidence measures how similar the headers are. It does not make the values more trusted.
Done whenEach column has a mapping or custom value, and the required key has a mappingAccept the mappingReview every column before importing
Press Use suggested mapping. If you edited a column, press Use this mapping. This step does not import rows yet. The server path is only for terminal imports.
Done whenThe page shows Import into DatumImport the rowsUpload into a new or existing CSV source
- Under Import into, choose A new CSV source. If the menu shows an existing upload source, you can choose it instead.
- Press Import rows.
- Wait until all batches are sent.
- Select View the source.
- Check Runs for the import result.
- Check Members for the people that the import created.
Use the same source again for later files about the same people. Accepted column assignments do not change. If a header changes, you must review and accept a new plan.
Or import at a terminal gives commands for a self-hosted server. These commands need a file on that server. Before the final import, check the verification and dry-run reports. Add to segment after terminal import adds commands to that terminal procedure.
Done whenThe page confirms how many rows were sentCheck what it linkedReview matches from the import
A CSV row links automatically only when its email exactly matches an address that a source verified. Other possible matches go to Review & merge.
Review the matches from the import. To undo all merges from an incorrect file:
- Run the bulk undo with
--dry-run. - Check the reported selection.
- Run the command without
--dry-run.
ocmgr merge bulk-undo --connection CONNECTION_ID --reason "Wrong file" --dry-run --json ocmgr merge bulk-undo --connection CONNECTION_ID --reason "Wrong file" --jsonSee History and undo to restore these merges.
Done whenThe review queue has no unresolved pairs, and the import's links identify the correct people- Run the bulk undo with
From your agent
Before you upload, ask your agent to propose a mapping. The read tool returns the same suggestion as the browser, with its confidence. It also returns all available mappings, streams and fields. Sample rows are optional. Suggestions use the headers, and Datum does not save the samples.
ocmgr csv propose --file signups.csv --headers '["email","name","company"]' --json
ocmgr csv import CONNECTION_ID --file ./signups.csv --jsonBefore you import, create the browser-upload connection with the reviewed plan.
{"name":"propose_csv_mapping","arguments":{"file":"signups.csv","headers":["email","name","company"],"rows":[["[email protected]","Ada","Example"]]}}Review the returned columns. Copy that array into create_connection with kind: "csv" and config: {"browserUpload": true, "columns": [...]}. To change an existing source, use update_connection with the same config.columns shape.
Each plan has file, mapping, stream and assignments. Each assignment has header, field (a listed field or null), how (exact, synonym, fuzzy or unmapped) and score from 0 to 1. Set edited: true for a reviewed change.
Call verify_connection. Then call import_csv_batch with the connection id, file, headers, rows, observedAt and batchId. Send at most 1,000 rows and less than 768 KiB in each batch. Use one observation time for the full file. Use a stable SHA-256 batch ID, so that retries do not duplicate rows.The receipt repeats the applied columns. list_connection_runs reports the processing. A receipt means that Datum accepted the batch, not that it imported it.
POST /v1/csv/propose accepts file, headers and optional sample rows. Save the returned columns through POST /v1/connections or PATCH /v1/connections/{id}. Send batches to POST /v1/connections/{id}/csv-upload.
Shared mailboxes
Addresses such as info@, support@, sales@ and team@ identify functions, not people. Datum keeps them as unverified values, but it never uses them to identify a person.
Shared mailboxes cannot link people or identify rows. If a row has only a shared mailbox, Datum calculates an identifier from the full row. Thus, different people with the same mailbox stay separate.
The row still creates a member. If the mailbox has a corporate domain, the member counts toward that organization, although the address cannot link people.
If that row changes, its calculated identifier changes too. Thus, a later import creates a new account. For recurring imports, include a stable ID column, such as the user ID from the original system.
A personal address with a plus tag, such as [email protected], does not count as a shared mailbox.
FAQ
Is my file uploaded when I choose it?
When you choose it, your browser reads the headers on your computer. When you press Import rows, the browser uploads the data for processing.
Why didn't a row merge with a Slack member who has the same address?
Automatic linking needs an address that Slack verified and that is not a shared mailbox. A spreadsheet does not prove who owns an address. Thus, other possible matches need review.
Can I import from the web app alone?
Yes. A workspace owner can review the mapping and press Import rows, including on hosted workspaces. An agent can use the same upload path with import_csv_batch.
My file is a Common Room upload template.
Datum recognizes the Email or Identifier (Required) column and selects the commonroom-upload mapping. For complete Common Room history, use migration.
From your terminal
- Run
ocmgr csv propose --file members.csv --jsonto read the headers and see a columns plan. - Review the returned
columns. - Save the
columnsin the configuration of the source. - Run
ocmgr csv import <connectionId> --file members.csv --dry-run --jsonto preview the import. This does not save rows. - Run the command again without
--dry-runto add the rows to the queue. - Run
ocmgr inbound list --connection <connectionId> --jsonto check the import.
Rows in the queue need a running worker. They usually finish in less than a minute.
A dedicated identifier column has priority over email. For recurring imports, keep the accepted plan and stable IDs, also when addresses change.
Existing accounts that use email as their key keep their IDs. If you change those imports to a dedicated identifier, the import can create a second account. Review the matches after that import.
Validate an upload without storing it
For an existing browser-upload CSV source, the import screen has Validate rows with saved source mapping. This checks the file against the current column mapping of that source. It does not change the configuration or store deliveries. A usual import applies the mapping that the screen shows.
REST POST /v1/connections/{id}/csv-upload and the MCP tool import_csv_batch accept dry_run: true with the usual batch fields. The response reports the mapped rows and accounts, with dryRun: true and no inbound_event_id. Datum adds nothing to the queue. At a terminal, use ocmgr csv import --dry-run with the usual file and mapping options.