What are Data Exports?
Data Exports let you export your Northbeam data to your own cloud storage (GCS or S3) via the API. Data Exports is the parent surface — the same as the Data Exports tab in the app — and it can run several different report types. Every report shares the same setup (authentication, destinations, and result polling); each report type then has its own creation endpoint and options.Report types
The rest of this page covers the setup that is common to all report types.
Authentication
Every request needs an API key and your client id, sent as headers. Generate a key by following the Authentication guide. The examples in each report’s guide show how to pass theAuthorization and Data-Client-ID headers.
Destinations
Exports are written to a cloud storage bucket you own. Provide the destination in the create request of whichever report you’re running:- GCS — pass
bucket_name. See Exporting to GCS for how to grant Northbeam write access. - S3 — pass
bucket_nameplusaws_role(an IAM role ARN with write access) andregion. See Exporting to S3.
Fetching your export results
Creating any export returns anid. Exports run asynchronously, so poll the shared results endpoint with that id until it finishes — this endpoint is the same for every report type.
status field has three possible values:
While processing (
PENDING):
SUCCESS):
Important: exports can take anywhere from a few seconds to several minutes, and a200 OKdoes not mean the export is ready. Keep polling only whilestatusis"PENDING"; on"SUCCESS"download the file from the link inresult(the link is only valid for a limited time, so re-request it if it expires); on"ERROR"stop polling and submit a new export. The only supported format today is CSV.