> For the complete documentation index, see [llms.txt](https://support.sayprimer.com/primer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.sayprimer.com/primer/primer-support-review/section-connections/datasets/uploading-via-s3.md).

# Uploading via S3

Drop people and company CSVs into your Primer S3 location for scheduled loading — folders, column headers, file names and what happens to each file.

> **Beta** — opened on request. Contact <support@sayprimer.com> to request access.

You can load people and companies into Primer by dropping CSV files into an S3 location Primer reads — useful for scheduled exports from a warehouse or pipeline. Support gives you the location and access when you're set up.

## Where files go

Put each record type in its own folder under the prefix support gives you:

* People — `{prefix}/datasets/people/`
* Companies — `{prefix}/datasets/companies/`

## Column headers

Each file is a CSV with a header row. Name the columns as in the list templates the [in-app import](https://support.sayprimer.com/primer/primer-support-review/section-connections/datasets/importing-a-csv.md) offers, adding **Country**, **State** and **City** if you have them:

* People — **First Name**, **Last Name**, **Email**, **Company Name**, **Company Domain**, **Person Linkedin Url**
* Companies — **Company Name**, **Company Domain**, **LinkedIn URL**

Case doesn't matter, and common variants such as `first_name`, `firstName`, `Work Email` or `Website` work too. Other columns are ignored. If your export uses different names, ask support to map them.

## File names

The file name identifies the dataset:

* **Same name every time** — each drop replaces that dataset completely. Records missing from the new file are dropped, so export the *whole* list each run, not just changes.
* **New name every time** — each drop creates a separate dataset that stays.

## What happens after you drop a file

Primer picks up files on a schedule, one file per folder at a time, oldest first. Once a file is loaded it moves into an `archived/` subfolder and the dataset appears under Connections → CSV Imports. A file that couldn't be loaded moves into `failed/` and shows as **Failed** with the reason — most often a column Primer expected is missing. Fix it and drop the file again.

## Exporting from your warehouse

Any tool that can write a CSV to an S3 prefix can feed this drop:

* **Snowflake** — `COPY INTO '@your_stage/...'` (or an external stage pointed at the prefix) to unload a query result as CSV.
* **Hightouch** — an **Amazon S3** destination targeting your prefix, synced on a schedule.
* **Fivetran** — an S3 destination or transformation that writes the CSV to the prefix.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://support.sayprimer.com/primer/primer-support-review/section-connections/datasets/uploading-via-s3.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
