Skip to main content
POST
Creates a new sink consumer.

Request fields

string
required
The name of the sink consumer
string
required
The initial status of the sink consumer (active, disabled, paused)
object
required
The source configuration for the sink consumer
array
Additional configuration for individual tables.To configure which tables are consumed, see the source field.
array
required
The database actions to include in the sink (insert, update, delete)
object
required
The destination configuration for the sink consumer. The shape varies by destination type.
string
required
The source database for the sink consumer
string
The enrichment function for the sink consumer
string
The filter function for the sink consumer
string
The transform function for the sink consumer
string
The routing function for the sink consumer
boolean
Whether message grouping is enabled for ordering purposes. When true (default), messages are grouped by primary key. When false, grouping is disabled for higher throughput batching.
integer
Number of records to batch together (1-1000)
integer
The maximum number of times a message will be retried if delivery fails. Once this limit is reached, the message will be discarded. Defaults to null, meaning messages are retried indefinitely.
string
Determines how Sequin handles overload when sink consumers can’t keep up with incoming messages. Options are:
  • pause_on_full (default) — pauses replication until the buffer has room again
  • discard_on_full — drops messages for overloaded consumers to avoid pausing replication
For more details, see load shedding policy.
string
The format of the timestamp in the source data. Possible values include iso8601 and unix_microsecond.
object
Additional metadata you can attach to this sink consumer. Annotations can be any JSON object.

Response fields

string
The unique identifier of the sink consumer
string
The name of the sink consumer
string
The current status of the sink consumer (active, disabled, paused)
string
The source database for the sink consumer
object
The source configuration for the sink consumer. This determines which tables are consumed.
array
Additional configuration for individual tables.To configure which tables are consumed, see the source field.
array
The database actions to include in the sink (insert, update, delete)
object
The destination configuration for the sink consumer. The shape varies by destination type.
string
The filter function for the sink consumer
string
The transform function for the sink consumer
string
The routing function for the sink consumer
string
The enrichment function for the sink consumer
boolean
Whether message grouping is enabled for delivery orderingSee message grouping and ordering for more details.
integer
The maximum number of times a message will be retried if delivery fails
object
User-defined annotations for the sink consumer
array
Array of active backfill IDs
integer
Number of records to batch together (1-1000)
string
Determines how Sequin handles overload when sink consumers can’t keep up with incoming messages
string
The format of the timestamp in the source data
object
Health status information for the sink consumer