Skip to content

List Streams

GET
/repos/{repo_id}/streams

List available tracking streams (sites) for this organization.

Returns each stream’s ID, user-friendly name (domain or label), associated domains, and write key. The caller should select one and pass its id to the snippet endpoint.

Streams belong to the organization, not to the repository: every stream of the org is listed, and repo_id on each one names the connected repository already using it (null when none does). The repository must exist in the caller’s organization (404 otherwise). The org-level equivalent that needs no repository is GET /streams.

Authorizations

Parameters

Path Parameters

repo_id
required

Repository ID

string

Repository ID

Query Parameters

page
Any of:
integer
>= 1

Page number (1-indexed). Omit page and limit to get every stream.

limit
Any of:
integer
>= 1 <= 200

Streams per page (max 200). Omit page and limit to get every stream.

Header Parameters

X-Target-Org-Id
Any of:
string

Responses

200

Successful Response

object
data
required
Array<object>
object
domains

Domains associated with this stream

Array<string>
domains_restricted

Whether the stream lists allowed domains. False means its public write key is accepted from any website (see warning).

boolean
id
required

Stream ID used to select this stream

string
is_default

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.

boolean
name
required

User-friendly stream name (e.g. ‘graph8.com’, ‘heyreach-graph8’)

string
repo_id
Any of:
string
warning
Any of:
string
write_key
Any of:
string
pagination
Any of:
object
has_next
required

Whether there are more pages

boolean
limit
required

Items per page

integer
next_cursor
Any of:
string
notes
Any of:
Array<string>
page
required

Current page number (1-indexed)

integer
total
required

Total number of items

integer
total_available
Any of:
integer
total_is_lower_bound
Any of:
boolean

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string