POST /v2/streaming/data/databases/{databaseName}/schemas/{schemaName}/pipes/{pipeName}/channels/{channelName}/rows

restnot supportedData loading & unloading

docs.snowflake.com ↗

Snowpipe Streaming

The Append Rows operation inserts a batch of rows to the given channel. Send this request to the ingest hostname returned by Get Hostname, not to your Snowflake account hostname. Set the continuationToken query parameter to the next_continuation_token value returned by the Open Channel request for the first request, and to the next_continuation_token value returned by the previous Append Rows response for each later request.

Syntax

POST /v2/streaming/data/databases/{databaseName}/schemas/{schemaName}/pipes/{pipeName}/channels/{channelName}/rows

Parameters

NameInRequiredDescription
databaseNamepathrequiredDatabase name, case-insensitive.
schemaNamepathrequiredSchema name, case-insensitive.
pipeNamepathrequiredPipe, case-insensitive.
channelNamepathrequiredChannel name, case-insensitive.
continuationTokenqueryrequiredContinuation token from Snowflake. It encapsulates both client and row sequencers. Use next_continuation_token from the latest successful open or append response. See Named Channel append workflow.
offsetTokenqueryoptionalUser-defined source offset for this request. Set offsetToken on each append so a later open-channel response can return it as last_committed_offset_token. For how this token differs from continuationToken, see Roles of offsetToken and continuationToken.
startOffsetTokenqueryoptionalOffset token for the first row in the batch.
endOffsetTokenqueryoptionalOffset token for the last row in the batch.
rowsbodyrequiredThe actual data payload to be ingested in NDJSON format. The maximum allowed size for this attribute is 4 MB.
requestIdqueryoptionalA UUID used to track requests through the system.
AuthorizationheaderrequiredAuthentication token
X-Snowflake-Authorization-Token-TypeheaderoptionalJWT/OAuth
Content-Type (required when the request has a body)headerrequiredMedia type of the request body. Use application/x-ndjson for append-rows requests. Use application/json for open-channel, drop-channel, and bulk channel-status bodies. Use application/x-www-form-urlencoded for the scoped-token exchange.
Content-EncodingheaderoptionalSpecifies the compression format of the payload. Supported: gzip, zstd.
User-AgentheaderoptionalIdentifies the client application. Recommended format: SnowpipeStreamingSDK/{version} ({platform}) {LANGUAGE}/{language_version} (app={partner-name}). Example: SnowpipeStreamingSDK/1.0.0 (Linux amd64) PYTHON/3.11.0 (app=MyPartnerApp).

Usage notes

Response

{ "next_continuation_token": "string" } next_continuation_token (string): The next continuation token from Snowflake, which encapsulates both client and row sequencers. It should be used for inserting the next batch.