The Custom Exports API exports log-level records, such as clicks, installs, and events, from your servers or scripts. To export on a schedule, use the Scheduled Log Exports API. To read aggregated numbers, use the Aggregate API. Every request and response field is in the API reference.
What you can do
Before you begin
All three operations use your Access Token and the ID of your app. Creating an export and getting its status also accept the ID of your organization.
| Operation | Credential | Where to send it |
|---|---|---|
| Create an export | Access Token, and your app or organization ID | The token in the Access-Token header. The ID in the query string as app_id or organization_id, not both. |
| Get an export's status | Access Token, and your app or organization ID | The same as create. Use the token that created the export. |
| Check data readiness | Access Token and your app's ID | The token in the Access-Token header and the ID in the request body as app_id. |
To find your Access Token, see Credentials. The token must belong to the app or organization you send. A mismatch returns Authentication failed !.
The owner of the Access Token needs Sensitive Data and Export access for each app you export. Some data needs more:
- Blocked report types and fraud fields: you also need access to Fraud Reporting.
- Revenue fields: you also need access to revenue data. Without it, a request for a revenue field returns an HTTP 400 error, and so does
["all"]. - Agency-tagged data: if the app limits a user to agency-tagged data, the export has only the rows tagged with the user's agency. A user who isn't on an agency team gets an HTTP 401 error.
Your app also needs Data Feeds access. Without it, the response is an HTTP 401 error that says the app hasn't signed up for data feed. If your plan includes only Touch Point Analytics, you can export only eo_click. If a permission is missing, the response is an HTTP 401 error. A missing revenue permission returns HTTP 400 instead.
Give an agency access
An export follows the permissions of the Access Token's owner. Don't give a third party the permission to view API keys, because anyone who has an Access Token can export the data its owner can see. To give an agency team member access to Custom Exports:
- In the left-hand navigation, under Account, select Settings.
- On the Settings page, select the Agencies tab.
- Expand the agency, find the team member, hover over the button in the Actions column, and select Edit.
- In the Edit Agency Team Member modal, under Access Level, select Custom, then check the Export box. Under Permissions, check the Sensitive Data box.
- (Optional) Under Data Filters, toggle on the filters you need. Exported data is filtered accordingly.
- Select Save.

Agency-tagged data
If you don't turn on the Only show agency-tagged data filter, the team member can export sensitive data for all of your campaigns, not only the ones they run.
How it works
Each section covers a behavior to know before you build.
Exports run in the background
Creating an export returns a handle. Request the status with that handle until the status is complete or fail. The statuses are pending, running, complete, and fail. Branch retries a failed export several times before it reports fail.
When the status is complete, response_url holds a temporary link to the files. When an export has several files, response_url holds all their links in one string, separated by commas. Use the same Access Token for the status request that you used to create the export.
Check data readiness first
The readiness check tells you whether one hour of one report type is ready. It covers all of Branch's data for that hour, not only your app's. Create the export only when data_ready is true, because an export of an hour that isn't ready can come back with missing or no rows. Hours older than about 5 days always return true.
Identical requests return the same export
If you send an identical create request within about an hour of the last one, Branch returns the existing handle instead of starting a new export. Requests are identical when they have the same report type, dates, app or organization, fields, filter, and allow_multiple_files. The limit, response_format, response_format_compression, timezone, and Access Token aren't compared, so a repeat with a different format returns the original export. The repeat still counts against your export allowance. If another Access Token sends an identical request, it gets the same handle but can't read its status.
Dates and time zones
Send start_date and end_date as ISO 8601 date and time values. The range between them can be at most 60 days. Branch keeps event data for 365 days, blocked event data for 60 days, and webhook2 data for 7 days. An export includes rows only for dates that Branch still keeps. A date without an offset uses the timezone you send. If you leave timezone out, Branch uses your organization's time zone, then your app's, then UTC.
Rows, files, and formats
limit caps the number of rows. It's required unless you set allow_multiple_files to true. The maximum is 2,000,000 rows for most organizations, and Branch can set a different maximum for yours. To export more, set allow_multiple_files to true and choose gz or snappy in response_format_compression. Branch then ignores limit and splits the export into several files.
The response_format is csv by default, or json, or parquet. A json file has one JSON object on each line, and a csv file has a header row.
Fields
fields lists the columns to include. Every field name is in the reference. Names combine a prefix and a key, with ~ written as tilde, $ as dollar, and + as plus. For example:
| Field | Meaning |
|---|---|
install_activity_touch_data_tilde_campaign | The campaign name (~campaign) specified for the install activity. |
install_activity_touch_data_tilde_channel | The channel (~channel) specified for the install activity. |
install_activity_touch_data_tilde_feature | The feature (~feature) specified for the install activity. |
last_attributed_touch_data_tilde_campaign | The campaign name (~campaign) specified for the last attributed touch. |
last_attributed_touch_data_dollar_3p | The advertising partner short code ($3p) specified for the last attributed touch. |
last_cta_view_data_tilde_campaign | The campaign name (~campaign) specified for the last Branch call-to-action view. |
To include every available field, send ["all"] on its own. New fields appear in your export as Branch adds them, so make sure your systems can handle new columns. Fields that don't apply to a report type come back empty.
Partner data is removed
Before Branch writes an export, it removes data that some ad partners don't allow in exports. For example, it removes or empties restricted fields on touches from Amazon, Meta, TikTok, X, Roku, Pinterest, Snap, and Reddit, and it leaves TikTok rows out of eo_impression. Those fields come back empty, or as a date with no time.
Report types
The report_type is the kind of event to export, such as eo_install or eo_click. Types that end in _blocked hold events that Branch blocked as fraud, and they need access to Fraud Reporting. The reference lists every type.
Filters
A filter is one condition in an array that starts with an operator, such as ["eq", "name", "PURCHASE"]. The operators are eq, gt, gte, lt, lte, like, between, in, array_contains, and, or, and not. like matches values that contain your text, ignoring case. To combine conditions, nest them inside and, or, or not, as in ["and", ["eq", "name", "PURCHASE"], ["gt", "event_data_revenue", 10]]. Comparison operators don't work on array fields, so use array_contains for those. To filter on an object field, name a key inside it, such as custom_data.color. You can't filter on the whole custom_data field.
Errors
Errors from the gateway look like {"error": {"code": 400, "message": "Authentication failed !"}}. Errors from the export service look like {"errors": [{"message": "...", "error_code": 7}]}. The service lists every invalid field in one response, so fix them together. A 404 and a gateway 429 aren't JSON. See Errors.
Limits
Request limits: Branch counts requests for each Access Token and operation. A request over a limit returns HTTP 429. See Rate limits for how Branch counts requests.
Operation Max requests per second Max requests per minute Max requests per hour Create an export 50 50 150 Get an export's status 25 50 10,000 Check data readiness 25 50 10,000 Export allowance: each app or organization can export 100 days of data per hour. Each create request uses its range in hours, or 24 hours if the range is shorter. A 60-day export uses 1,440 of the 2,400 hours. When you go over, the response is an HTTP 429 error with a JSON
errorslist that says how many seconds to wait.Date range: at most 60 days for each export.
Data retention: the readiness check accepts dates up to 365 days back for
EVENT, or 730 days forAGGREGATE.Rows: 2,000,000 for most organizations, unless you set
allow_multiple_filestotrue.
Examples
These examples show a full export, from start to finish.
Check that data is ready
Check whether the 1:00 hour of November 1 is ready for installs. See Check data readiness in the reference.
curl -X POST 'https://api2.branch.io/v2/data/ready' \
-H 'Content-Type: application/json' \
-H 'Access-Token: YOUR_ACCESS_TOKEN' \
-d '{"date": "2026-11-01 01:00:00", "warehouse_meta_type": "EVENT", "topic": "eo_install", "app_id": "123456700098765432"}'{ "data_ready": true, "date": "2026-11-01 01:00:00" }Create an export
Export the time, name, and platform of every install on November 1. See Create an export in the reference.
curl -X POST 'https://api2.branch.io/v2/logs?app_id=123456700098765432' \
-H 'Content-Type: application/json' \
-H 'Access-Token: YOUR_ACCESS_TOKEN' \
-d '{"report_type": "eo_install", "fields": ["timestamp", "name", "user_data_platform"], "start_date": "2026-11-01T00:00:00Z", "end_date": "2026-11-01T23:59:59Z", "limit": 1000}'{
"handle": "1612dbb3-85ef-49f8-b1c5-5818c163600c",
"export_job_status_url": "https://api2.branch.io/v2/logs/1612dbb3-85ef-49f8-b1c5-5818c163600c?app_id=123456700098765432"
}Get the export's files
Request the status with the handle, and download the files from response_url when the status is complete. See Get an export's status in the reference.
curl 'https://api2.branch.io/v2/logs/1612dbb3-85ef-49f8-b1c5-5818c163600c?app_id=123456700098765432' \
-H 'Access-Token: YOUR_ACCESS_TOKEN'{
"code": 200,
"status": "complete",
"lines_exported": 1000,
"response_url": "https://example.com/exports/a1b2c3d4/unique-file-name.csv?X-Amz-Signature=signature"
}