For the complete documentation index, see llms.txt. This page is also available as Markdown.

getStream

HTTP Request

GET /readStreams/:streamId

Path parameters

Parameter

streamId

The id of the stream to consume, as returned in the ReadSession.post response.

Query parameters

Parameter

offset

Optional. Used for resuming interrupted streams.

If specified, will start reading the stream at the provided numeric offset. Note that you cannot provide an offset beyond what has already been read from the stream.

This endpoint extends the general API structure.

Authorization

By default, only the user who created the stream's read session can consume its streams. If the data in the stream is not public, your access token must have one of the following scopes:

  • data.data

  • data.edit

However, if the stream's readSession was created with the allowAnonymousAccess option, no authorization is required.

Request body

The request body must be empty.

Response body

The response body contains the streams data, in the format specified by the ReadSession.post request:

The response is returned in the JSON Lines format, with each row represented as an object of key:value pairs.

Please note the following regarding response data formats:

  • Date variables are formatted as YYYY-MM-DD

  • DateTime variables are formatted at YYYY-MM-DD HH:MM:SS[.DDDDDD]

  • Time variables are formatted as HH:MM:SS[.DDDDDD]

  • Geography variables are formatted as well-known text (WKT)

The response is returned as a comma-separated file.

Please note the following regarding response data formats:

  • Date variables are formatted as YYYY-MM-DD

  • DateTime variables are formatted at YYYY-MM-DD HH:MM:SS[.DDDDDD]

  • Time variables are formatted as HH:MM:SS[.DDDDDD]

  • Geography variables are formatted as well-known text (WKT)

Was this helpful?