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

restnot supportedData loading & unloading

docs.snowflake.com ↗

Snowpipe Streaming

Elastic Channels don’t require a separate open-channel operation. Send a batch of NDJSON rows directly to a table or to the implicit ELASTIC channel of a pipe:

Syntax

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

Parameters

NameInRequiredDescription
databaseNamepathrequiredDatabase name, case-insensitive.
schemaNamepathrequiredSchema name, case-insensitive.
pipeNamepathrequiredThe target table for the default pipe, or the custom pipe name.
rowsbodyrequiredNDJSON rows. The maximum Elastic request payload is 4 MB (the payload size sent over the network, after compression if used).
requestIdqueryoptionalA UUID that tracks the request. Use the same value on every retry of the same rowset (batch of rows), and generate a new UUID for each distinct rowset.
retryCountqueryoptionalThe retry attempt number, starting at 0. Increment it for each retry. A value greater than 0 signals that duplicate rows are possible; it doesn’t prove that a duplicate occurred.
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

A successful HTTP 200 response is the durable acknowledgement: Snowflake has durably buffered the request payload. It doesn’t mean that rows are immediately queryable in the target table. Row-level processing errors are persisted to the error table when error logging is enabled. { "message": "OK" } Elastic Channels provide at-least-once delivery without an ordering guarantee. Retrying after an ambiguous response can produce duplicate rows. Include a stable event identifier in the row payload and reconcile or deduplicate downstream when duplicates matter.