---
title: "Download a cohort export"
method: GET
path: "/api/5/cohorts/request/{requestId}/file"
tags: ["Cohorts"]
---

# Download a cohort export

`GET /api/5/cohorts/request/{requestId}/file`

## Request

- Base URL: `https://amplitude.com`
- URL: `https://amplitude.com/api/5/cohorts/request/{requestId}/file`
- Auth: HTTP basic

Redirects to a short-lived download link. The request URL is valid for seven days; each generated link is valid for one minute.

## Path parameters

- `requestId` string, required

## Response `200`

Cohort membership file.

## Other responses

- `302`: Redirect to a pre-signed S3 download URL valid for one minute. Follow Location immediately; the original request URL remains valid for seven days.
- `400`: Invalid request. Check that JSON query parameters are well formed and that special characters are URL encoded.
- `401`: Missing or invalid credentials. Send HTTP Basic auth with the project API key as the username and the secret key as the password.
- `429`: Concurrent or hourly rate limit exceeded for the project. The response identifies which limit was hit. Up to 5 concurrent requests are allowed across Amplitude REST endpoints.

## Changes

- **2026-10-14** `e475ad97669a`: 1 breaking, 5 info
  - removed the media type `text/csv` for the response with the status `200`
  - added the media type `*/*` for the response with the status `200`
  - added the media type `*/*` for the response with the status `400`
  - added the media type `*/*` for the response with the status `401`
  - …2 more

[Operation history](https://skmtc.dev/amplitude/apis/amplitude-public-apis/changes/api/5/cohorts/request/:requestId/file/get.md)

---

[API](https://skmtc.dev/amplitude/apis/amplitude-public-apis.md) - [All operations](https://skmtc.dev/amplitude/apis/amplitude-public-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/amplitude/apis/amplitude-public-apis/revisions/e475ad97669a?raw)
