---
title: "Export profiles from an import data JSON link, a list of profile IDs or a company into a CSV file."
method: POST
path: "/api/v1/profile/export/csv"
tags: ["Profile"]
---

# Export profiles from an import data JSON link, a list of profile IDs or a company into a CSV file.

`POST /api/v1/profile/export/csv`

## Request

- Base URL: `https://api.intheloop.io`
- URL: `https://api.intheloop.io/api/v1/profile/export/csv`
- Auth: API key in header `Authorization`

## Headers

- `Authorization` string
- `X-Impersonate-User` string

## Request body

- ProfileExportRequest: Request body for the profile export-to-CSV endpoint. Exactly one of ImportDataUrlLink, ProfileIds or CompanyId must be set.
  - `importDataUrlLink` string: URL link to the JSON import document to export, e.g. ProfileImportTaskResult.ImportDataUrlLink.
  - `profileIds` string[]: Profile IDs to export. All profiles must belong to the same workspace and the list size is capped at MaxPageSize.
  - `companyId` string: Company ID whose linked profiles are exported.

## Response `200`

OK

## Other responses

- `400`: Bad request. Check fields message and error code from response body for additional information.
- `401`: Unauthorized request. Check fields message and error code from response body for additional information.
- `429`: Too many requests. Check response header Retry-After indicating how long to wait before making a new request.
- `451`: Unavailable because account is not verified.

---

[API](https://skmtc.dev/intheloop/apis/loop-api.md) - [All operations](https://skmtc.dev/intheloop/apis/loop-api/llms.txt) - [OpenAPI document](https://skmtc.dev/intheloop/apis/loop-api/revisions/0892c5ba0787?raw)
