Skip to content
Get Help

API Reference

The Branch APIs let you query and export data, create Branch Links, generate custom Branch QR codes, and more.

Data APIs ​

APIPurposeType of dataTimingExport window
Daily ExportsExport all device-level data in batches on a daily basis.LogDelayed and batchedRolling 7 days
Custom ExportsExport select device-level data using your own filters.LogDelayed and batchedRolling 120 days
Scheduled Log ExportsSet up a recurring export of select device-level data.LogDelayed and batched (hourly or daily)—
Cross-Events ExportQuery and compare large pools of data across multiple sources.AggregateDelayed and batchedRolling 2 years
AggregatePull aggregate Branch data filtered for limited-access users.AggregateDelayed and batchedRolling 2 years
CohortPull cohort data to understand user behavior and performance over time.AggregateDelayed and batchedRolling 2 years
QueryExport select campaign-level data.AggregateReal timeRolling 2 years

Functional APIs ​

APIPurpose
Deep LinkingCreate, read, update, and delete Branch Links.
Quick LinksProgrammatically create, update, and bulk-manage Branch Quick Links.
QR CodeProgrammatically generate and customize Branch-powered QR codes.
EventsTrack events and conversions for your app.
AttributionAttribute app sessions to your active campaigns.
AppView and update an existing Branch app configuration.
Data Subject RequestGDPR and CCPA workflows for accessing and erasing user or device data from Branch.

Access ​

Availability varies by Branch plan. See Branch pricing.

Authentication ​

All Branch APIs authenticate with your Branch Key. Most endpoints accept the key in the JSON request body as branch_key; export and data APIs accept an Access Token.

Retrieve your Branch Key ​

In the New Branch experience:

  1. Navigate to Configuration > Security & Access > Credentials.
  2. Use the copy icon to copy your Branch Key.

In the legacy Branch experience:

  1. Navigate to Account > Settings > Profile.
  2. Use the copy icon to copy your Branch Key.

See the Credentials guide for managing Access Tokens, organization IDs, and additional credentials.

Conventions ​

  • Base URL: https://api2.branch.io
  • Versioning: included in the path (/v1/, /v2/, /v3/)
  • Content type: application/json unless otherwise noted
  • Errors: every endpoint returns a JSON error body of { "error": { "message": string, "code": integer } }
  • Rate limits: documented per API in the operation reference