Braze Export User Data

Exports Braze user profiles.

Configuration

- braze_export_user_data:
    name: export_users
    operation: users_by_ids
    credentials_path: /etc/braze/credentials.json
    base_url: "{{env.BRAZE_REST_ENDPOINT}}"
    payload:
      from_event: true

Fields

FieldTypeDefaultDescription
namestringrequiredTask name.
operationstringrequiredSee the table below.
credentials_pathstringrequiredPath to the credentials file.
base_urlstringrequiredREST endpoint of the Braze instance, e.g. https://rest.iad-01.braze.com.
payloadobjectrequiredThe request body, or from_event: true. See Payload.
depends_onlistUpstream task names.
retryobjectRetry configuration.

Operations

OperationEndpointPayload
users_by_idsPOST /users/export/idsexternal_ids (up to 50), user_aliases, device_id, braze_id, email_address, or phone, and fields_to_export, which accounts created after 2024-08-22 must set.
users_by_segmentPOST /users/export/segmentsegment_id and fields_to_export, and optionally custom_attributes_to_export, user_last_updated_at, callback_endpoint, and output_format.
users_by_global_control_groupPOST /users/export/global_control_groupfields_to_export, which accounts created after April 2021 must set, and optionally callback_endpoint and output_format.

Output

The Braze response as JSON. users_by_ids returns the profiles in users and the IDs Braze didn’t find in invalid_user_ids. The segment and control group exports run in the background: the response holds the object_prefix of the files Braze writes, and a temporary download url when no storage bucket is set up, not the users themselves. Braze calls callback_endpoint when the files are ready.