Get Org Snippet
GET /snippet
Get the tracking snippet for the authenticated organization.
Returns the write key and pre-built snippets without requiring a
connected repository. Pass stream_id to choose the stream; otherwise the
org’s main stream is used (its only stream, or the one whose domain matches
the org’s website). If that is ambiguous the first stream is used as before
and the response sets action_required with available_streams to pick from.
Authorizations
Parameters
Query Parameters
Header Parameters
Responses
200
Successful Response
object
object
True when the organization has several streams and none could be identified as its main website. The write key is the first stream’s (unchanged legacy default); pick the right one from available_streams and call again with stream_id.
The organization’s streams to choose from. Filled only when action_required is true.
object
Domains associated with this stream
Whether the stream lists allowed domains. False means its public write key is accepted from any website (see warning).
Stream ID used to select this stream
True for the stream GET /snippet uses when no stream_id is given: the only stream, or the one whose domain matches the organization’s website. False on every stream when that choice is ambiguous; pass stream_id explicitly then.
User-friendly stream name (e.g. ‘graph8.com’, ‘heyreach-graph8’)
Full configuration object for gtm/config.json
object
Ready-to-use React component import for @graph8/nextjs
Vanilla JS script tag for non-React apps
object
Whether there are more pages
Items per page
Current page number (1-indexed)
Total number of items
422
Validation Error