Skip to main content
Required scopes: segments_read Store must have one of: EMAIL_SMS

Arguments

String
A key you choose, 1 to 400 characters, that makes a retry safe. It never expires: repeating the start with the same key returns the export it started instead of starting another, even once that export has FAILED; start again with a new key. When an export with a key couldn’t start, the start throws TRY_AGAIN (503) and keeps the export; repeat it with the same key to start that export. The same key with another request, such as another segment or a tracker export, throws IDEMPOTENCY_KEY_REUSED (422).
ID!
required
The segment’s id, or its legacyId from an earlier version of the Redo API.

Returns

A CSV of a segment’s contacts, one row per contact, written in the background with the columns the app’s segment export writes. The file is available for 7 days after the export starts; after that the export reads FAILED with RESULT_EXPIRED.

Errors

Besides the errors any request can return, this operation fails with these codes in extensions.code.

Example