# Get the latest export file for a given type.

Returns metadata and a presigned download URL for the most recent export file of the specified type within the caller's program.Valid type names: users, campaigns, activities.Pass export_type=historical to read the files generated for a historical data request instead of the recurring exports.

Endpoint: GET /v2/data_exports/type/{type_name}/latest
Version: 2026-05-01
Security: oauth2_as_a_server, oauth2_as_a_user

## Security:

  - `oauth2_as_a_server` (unknown)
    oauth2 scopes: data_exports.read

  - `oauth2_as_a_user` (unknown)
    oauth2 scopes: data_exports.read

## Path parameters:

  - `type_name` (string, required)
    The export type. One of: users, campaigns, activities.

## Query parameters:

  - `export_type` (string)
    Which set of exports to read. Omit for the recurring exports, which is the default and what this endpoint has always returned.

## Response 200:

  - `200` (unknown)
    Success

## Response 200 fields (application/json):

  - `data` (array)

  - `data.presigned_url` (string)
    A temporary presigned URL to download the file.

  - `data.presigned_url_ttl_seconds` (integer)
    The number of seconds until the presigned URL expires.
    Example: 900

  - `data.file_name` (string)
    The name of the file.
    Example: part-00000-abc123.csv.gz

  - `data.size_bytes` (integer)
    File size in bytes.

  - `data.checksum_function` (string)
    The checksum algorithm used (e.g. SHA256, CRC32, CRC64NVME).

  - `data.checksum` (string)
    The checksum value.

  - `data.generated_at` (string)
    Timestamp of when the export was generated (YYYY-MM-DD-HH).
    Example: 2025-01-15-06

## Response 400:

  - `400` (unknown)
    Bad Request

## Response 400 fields (application/json):

  - `error` (object, required)

  - `error.code` (integer, required)

  - `error.title` (string, required)

  - `error.detail` (string, required)

  - `error.validations` (array)

  - `error.validations.rule` (string, required)

  - `error.validations.parameter` (string)

  - `error.validations.message` (string)

## Response 401:

  - `401` (unknown)
    Unauthenticated

## Response 401 fields (application/json):

  - `error` (object, required)

  - `error.code` (integer, required)

  - `error.title` (string, required)

  - `error.detail` (string, required)

  - `error.validations` (array)

  - `error.validations.rule` (string, required)

  - `error.validations.parameter` (string)

  - `error.validations.message` (string)

## Response 404:

  - `404` (unknown)
    Not Found — no export files exist for this type and program.

## Response 404 fields (application/json):

  - `error` (object, required)

  - `error.code` (integer, required)

  - `error.title` (string, required)

  - `error.detail` (string, required)

  - `error.validations` (array)

  - `error.validations.rule` (string, required)

  - `error.validations.parameter` (string)

  - `error.validations.message` (string)

