Skip to content

API reference

Download an export file with a link

GET
/v1/export-links/{token}

Streams the file the link was issued for. There is no API key on this route: the token in the path is the whole credential. The token is checked against the control plane on every request, together with the issuing key and the export, so a link stops working within one request of its expiry, its revocation, its key’s revocation, the export’s erasure, or the deletion of the export’s connection (for Shopify and Google Ads, also its disconnection, and for Shopify the app’s uninstall or its revoked access).

An unknown, expired, revoked or foreign token is one and the same 404 link_not_found, and so is a link whose key was revoked or expired, whose workspace was deleted, whose export was erased, or whose export’s connection was deleted (for Shopify and Google Ads, also disconnected), is a Shopify store whose app was uninstalled or whose access was revoked, or, for a connection set up in SignalBraid, is paused or being set up again, or is a GA4 connection that is paused, or whose account is paused or cancelled (for as long as that lasts). The token is never accepted in a query string: a URL with a query delimiter is that same 404. The response is never cached or sniffed. Downloads through a link count against the issuing key’s download allowance.

token
required
string
/^[A-Za-z0-9_-]{43}$/

The 43-character secret of the link, as returned in url.

The file.

string format: binary
Content-Disposition
required
string
/^attachment; filename="[A-Za-z0-9._-]{1,128}"$/

attachment with a filename the server builds (export-{exportId}.csv, or export-youtube-{exportId}.csv for a YouTube export; .parquet for a Parquet export).

SignalBraid-Source
string
Allowed value: YouTube

Present on the file of a YouTube export only (the source the export status names as sourceAttribution.label). The CSV body is unchanged.

SignalBraid-Source-Notice
string
Allowed value: Data from YouTube. Values exactly as the YouTube Analytics API returned them.

Present on the file of a YouTube export only, with SignalBraid-Source.

SignalBraid-Source-Link
string
/^https://www\.youtube\.com/channel/UC[A-Za-z0-9_-]{22}$/

Present on the file of a YouTube export only, with SignalBraid-Source; the channel’s public YouTube page.

Cache-Control
required
string
Allowed value: no-store
X-Content-Type-Options
required
string
Allowed value: nosniff
Referrer-Policy
required
string
Allowed value: no-referrer

link_not_found — no live link has this token.

object
error
required
object
code
required
string
message
required
string
error
object
code
Allowed value: link_not_found

method_not_allowed — Allow names the method this route accepts.

object
error
required
object
code
required
string
message
required
string
error
object
code
Allowed value: method_not_allowed
Allow
required
string
Allowed value: GET

export_expired — the file is gone: removed after its 7 days (state expired), or removed because a field it carries was switched off for output (state erased), or not served because its connection was changed: for good once the connection is deleted (for Shopify and Google Ads, also once it is disconnected), for a Shopify store whose app was uninstalled or whose access was revoked until the app is installed again, for a connection set up in SignalBraid, for as long as it is paused or being set up again, and for as long as a GA4 connection is paused or the account the export reads is paused or cancelled; an unfinished export of such a connection is this 410 too, not 409 export_not_ready. On the link download an erased export is the same 404 link_not_found as an unknown link, and so is a file past its 7 days, because a link never outlives its file; the 410 listed on the link download is reserved and this version does not return it.

object
error
required
object
code
required
string
message
required
string
error
object
code
Allowed value: export_expired

rate_limited — the key’s or its workspace’s per-plan request allowance for this route’s class is used up. It is answered after authentication, on every API-key operation in this document and on MCP, and never on /health. A download link is limited the same way, after its lookup, by the key that issued it and the export’s workspace. Retry-After is the window in seconds and RateLimit-Limit is the limit of the bucket that refused. No remaining count is returned. The limits themselves are not published here.

object
error
required
object
code
required
string
message
required
string
error
object
code
Allowed value: rate_limited
Retry-After
required
string
/^[1-9][0-9]*$/
RateLimit-Limit
required
string
/^[1-9][0-9]*$/

export_unavailable — the export store could not be reached. Retry with backoff.

object
error
required
object
code
required
string
message
required
string
error
object
code
Allowed value: export_unavailable