> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Amplitude Export API

> Stage and decode one hour of Amplitude Export events.

Follow the [REST app guide](https://docs.bijection.com/integrations/native-rest.md). Declare `amplitudeExportDownload` for your project's region. Use `https://amplitude.com` or `https://analytics.eu.amplitude.com`. Seal the Base64 value of the project API key and secret in `Authorization` header auth with prefix `Basic `. Bind the receiver as `amplitude_export`, with the same protected label as the app's `data`.

Call `reports.request({ key, profile: { kind: "amplitude", id: "20220201T05" } })` as a holder of the app's `operator` role. Both provider bounds are inclusive and set to this UTC server-upload hour. Use a historical hour after Amplitude's export delay. A missing archive leaves the run refused and can be requested again with a new key.

The receiver stages one complete ZIP response into sealed File parts. The parser checks ZIP member boundaries and checksums, expands gzip members and parses exact JSON values. It accepts up to 1 MiB of ZIP, 32 gzip members, 2 MiB compressed-content expansion, 512 events and 256 KiB of decoded parser output. The new parser requires a release-produced archive decoder.

The mount verifies event UUIDs, then publishes rows by staged byte position in pages of up to 32 rows and 24 KiB. Prior pages remain if a later page fails. Use `reports.get({ key })` for the outcome and `reports.records({ run, from: null })` for rows. Each run covers one hour and infers no deletions. Request the next hour explicitly.

[Amplitude Export API](https://amplitude.com/docs/apis/analytics/export)

## Cohorts and user profiles

Mount [REST](https://docs.bijection.com/integrations/native-rest.md#mount-and-bind) and bind
`receivers.provider` with `providerEndpoint` and the same protected label as `data`. Seal the Base64 project API key and
secret in `Authorization` header auth with prefix `Basic `.

| Mode | Origin and path | Terms and key |
| - | - | - |
| `amplitude.cohorts.observations` | `https://amplitude.com/api/3/cohorts` or `https://analytics.eu.amplitude.com/api/3/cohorts` | Project ID in `selection`. Keys are project and cohort ID. |
| `amplitude.profiles.by-id` | `https://profile-api.amplitude.com/v1/userprofile` | Exact user ID in `selection` and `limit: 1`. Key is the user ID. |

Cohorts reads discoverable metadata. The US Enterprise Profile API
provides profile properties and membership in cohorts synced to it.
Each poll reads one unpaged response up to 100 rows and 36 KiB.
Omitted results leave earlier observations in place.

[Behavioral Cohorts API](https://amplitude.com/docs/apis/analytics/behavioral-cohorts) · [User Profile API](https://amplitude.com/docs/apis/analytics/user-profile)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.