# Export objects or relationships via CSV

Export data about objects and relationships to CSV files.

## Export a single object and its relationships[](#export-a-single-object-and-its-relationships)

You can export data for a single [objectAn object is a non-person entity that you can associate with one or more people—like a company, account, or online course.](/journeys/objects/) from an object’s detail page or the [object list page](/journeys/objects-export-many/).

1.  Select an object type from the left hand navigation.
2.  Click the name of the object you want to export.
3.  Click **Options** in the top right then choose “Export Object data.”
    
    [![On the left hand navigation, the object type Companies is selected. You see a detail page for an object called Acme Corp. In the top right, the Options dropdown shows Export Acme Corp data.](https://docs.customer.io/images/object-export-single-2.png)](#4485086c4088a73b9a7623c5880b3044-lightbox)
    
4.  Confirm your action.

You will receive an email to download the export. You can also go to *Data & Integrations > Exports* to download the files.

The export will include two JSON files - one with the object’s attributes and the other with relationships to the object:

*   `attributes.json` contains all current attribute values for the object.
*   `relationships.json` contains all people related to the object. People data includes identifiers like `cio_id`, `email`, and `id`. The object is identified by its `cio_object_id`.

Both contain `cio_object_id` so you can reconcile the files.

## Export many objects and relationships[](#export-many-objects-and-relationships)

You can export [objectsAn object is a non-person entity that you can associate with one or more people—like a company, account, or online course.](/journeys/objects/) for one object type at a time. For example, you can export your Online Classes or Schools, but you can’t generate a single export with both Online Classes and Schools.

1.  Select an object type from the left hand navigation.
2.  Click **Export to CSV** in the top right then choose what you want to export:
    
    [![On the left hand navigation, the object type Companies is selected. You see the object list view for Companies with a single object named Acme Corp. In the top right, the Export to CSV dropdown shows options for exporting attributes.](https://docs.customer.io/images/object-export-multi-1.png)](#2d6a2655225f20721ccb19b34ddf8a69-lightbox)
    
    *   **All attributes** exports all object attribute data.
    *   **Displayed attributes** exports the attributes displayed on the table. By default, this option exports `object_id`, `created_at`, and `name`. If you change the displayed attributes through *Edit Display Attributes*, it will export those.
    *   **Choose attributes** exports only the attributes you select.
3.  (Optional) Check the box if you would like to export relationship data for each object.
    
    [![The box, labeled: Yes, export a separate CSV of relationships, is checked.](https://docs.customer.io/images/object-export-multi-2.png)](#9cd388383cb4c5c9bd5500bc04868d90-lightbox)
    
4.  Confirm your action.

You will receive an email to download the export. You can also go to *Data & Integrations > Exports* to download the files. You cannot export more than 2 million relationships. If you attempt to, the export will fail. In this case, you can select fewer objects to export and try again.

The export will be a CSV file. If you chose to export relationships, you’ll receive a separate CSV. You can reconcile the files with `cio_object_id`.

### Export objects that meet filter conditions[](#filter-conditions)

You can also narrow down the objects you want to export by filtering by an object attribute.

[![At the top of the object list page, you can click filter by object attribute.](https://docs.customer.io/images/object-export-multi-3.png)](#124640d3b0485452cb432f5935ba50b9-lightbox)

You can pair this with exporting all attributes for each object, displayed attributes on the table, or a set of attributes after selecting **Export to CSV**.

## Expiry[](#expiry)

After 60 days, the export expires, and we delete it from your workspace. If you need the export again, you can always generate a new one!