openapi: 3.1.0
info:
title: Svix Application Sink API
description: 'Welcome to the Svix API documentation!
Useful links: [Homepage](https://www.svix.com) | [Support email](mailto:support+docs@svix.com) | [Blog](https://www.svix.com/blog/) | [Slack Community](https://www.svix.com/slack/)
# Introduction
This is the reference documentation and schemas for the [Svix webhook service](https://www.svix.com) API. For tutorials and other documentation please refer to [the documentation](https://docs.svix.com).
## Main concepts
In Svix you have four important entities you will be interacting with:
- `messages`: these are the webhooks being sent. They can have contents and a few other properties.
- `application`: this is where `messages` are sent to. Usually you want to create one application for each user on your platform.
- `endpoint`: endpoints are the URLs messages will be sent to. Each application can have multiple `endpoints` and each message sent to that application will be sent to all of them (unless they are not subscribed to the sent event type).
- `event-type`: event types are identifiers denoting the type of the message being sent. Event types are primarily used to decide which events are sent to which endpoint.
## Authentication
Get your authentication token (`AUTH_TOKEN`) from the [Svix dashboard](https://dashboard.svix.com) and use it as part of the `Authorization` header as such: `Authorization: Bearer ${AUTH_TOKEN}`. For more information on authentication, please refer to the [authentication token docs](https://docs.svix.com/api-keys).
<SecurityDefinitions />
## Code samples
The code samples assume you already have the respective libraries installed and you know how to use them. For the latest information on how to do that, please refer to [the documentation](https://docs.svix.com/).
## Idempotency
Svix supports [idempotency](https://en.wikipedia.org/wiki/Idempotence) for safely retrying requests without accidentally performing the same operation twice. This is useful when an API call is disrupted in transit and you do not receive a response.
To perform an idempotent request, pass the idempotency key in the `Idempotency-Key` header to the request. The idempotency key should be a unique value generated by the client. You can create the key in however way you like, though we suggest using UUID v4, or any other string with enough entropy to avoid collisions. Your idempotency key should not begin with the string `auto_`, which is reserved for internal use by the client libraries.
Svix''s idempotency works by saving the resulting status code and body of the first request made for any given idempotency key for any successful request. Subsequent requests with the same key return the same result for a period of up to 12 hours.
Please note that idempotency is only supported for `POST` requests.
## Cross-Origin Resource Sharing
This API features Cross-Origin Resource Sharing (CORS) implemented in compliance with [W3C spec](https://www.w3.org/TR/cors/). And that allows cross-domain communication from the browser. All responses have a wildcard same-origin which makes them completely public and accessible to everyone, including any code on any site.
'
version: 1.84.0
x-logo:
altText: Svix Logo
url: https://www.svix.com/static/img/brand-padded.svg
servers:
- url: https://api.eu.svix.com/
description: The Svix EU region
- url: https://api.us.svix.com/
description: The Svix US region
- url: https://api.ca.svix.com/
description: The Svix Canada region
- url: https://api.au.svix.com/
description: The Svix Australia region
- url: https://api.in.svix.com/
description: The Svix India region
tags:
- name: Sink
paths:
/api/v1/stream/{stream_id}/sink:
get:
tags:
- Sink
summary: List Sinks
description: List of all the stream's sinks.
operationId: v1.streaming.sink.list
parameters:
- in: path
name: stream_id
description: The Stream's ID or UID.
required: true
schema:
description: The Stream's ID or UID.
type: string
maxLength: 60
minLength: 1
example: unique-identifier
style: simple
- in: query
name: limit
description: Limit the number of returned items
schema:
description: Limit the number of returned items
type: integer
format: uint64
maximum: 250.0
minimum: 1.0
style: form
- in: query
name: iterator
description: The iterator returned from a prior invocation
schema:
description: The iterator returned from a prior invocation
type: string
maxLength: 27
minLength: 26
pattern: ^sink_[A-Za-z0-9]{21,22}$
nullable: true
example: sink_2yZwUhtgs5Ai8T9yRQJXA
style: form
- in: query
name: order
description: The sorting order of the returned items
schema:
description: The sorting order of the returned items
$ref: '#/components/schemas/Ordering'
nullable: true
style: form
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/ListResponse_StreamSinkOut_'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/HttpErrorOut'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/HttpErrorOut'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/HttpErrorOut'
'404':
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/HttpErrorOut'
'409':
description: Conflict
content:
application/json:
schema:
$ref: '#/components/schemas/HttpErrorOut'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
'429':
description: Too Many Requests
content:
application/json:
schema:
$ref: '#/components/schemas/HttpErrorOut'
security:
- HTTPBearer: []
x-codeSamples:
- label: JavaScript
lang: TypeScript
source: const response = await svix.streaming.sink.list("strm_31Dc0DD72P5AddYUguyBd");
- label: TypeScript
lang: TypeScript
source: const response = await svix.streaming.sink.list("strm_31Dc0DD72P5AddYUguyBd");
- label: Python
lang: Python
source: "response = svix.streaming.sink.list(\n \"strm_31Dc0DD72P5AddYUguyBd\",\n)"
- label: Python (Async)
lang: Python
source: "response = await svix.streaming.sink.list(\n \"strm_31Dc0DD72P5AddYUguyBd\",\n)"
- label: Go
lang: Go
source: response, err := svix.Streaming.Sink.List(ctx, "strm_31Dc0DD72P5AddYUguyBd", nil)
- label: Kotlin
lang: Kotlin
source: val response = svix.streaming.sink.list("strm_31Dc0DD72P5AddYUguyBd")
- label: Java
lang: Java
source: var response = svix.getStreaming().getSink().list("strm_31Dc0DD72P5AddYUguyBd");
- label: Ruby
lang: Ruby
source: response = svix.streaming.sink.list("strm_31Dc0DD72P5AddYUguyBd")
- label: Rust
lang: Rust
source: "let response = svix\n .streaming()\n .sink()\n .list(\"strm_31Dc0DD72P5AddYUguyBd\".to_string(), None)\n .await?;"
- label: C#
lang: C#
source: var response = svix.Streaming.Sink.List("strm_31Dc0DD72P5AddYUguyBd");
- label: PHP
lang: PHP
source: "$response = $svix->streaming->sink->list(\n \"strm_31Dc0DD72P5AddYUguyBd\"\n);"
- label: CLI
lang: Shell
source: svix streaming sink list "strm_31Dc0DD72P5AddYUguyBd"
- label: cURL
lang: Shell
source: "curl -X 'GET' \\\n 'https://api.eu.svix.com/api/v1/stream/strm_31Dc0DD72P5AddYUguyBd/sink' \\\n -H 'Authorization: Bearer AUTH_TOKEN' \\\n -H 'Accept: application/json'"
post:
tags:
- Sink
summary: Create Sink
description: Creates a new sink.
operationId: v1.streaming.sink.create
parameters:
- in: path
name: stream_id
description: The Stream's ID or UID.
required: true
schema:
description: The Stream's ID or UID.
type: string
maxLength: 60
minLength: 1
example: unique-identifier
style: simple
- in: header
name: idempotency-key
description: The request's idempotency key
schema:
type: string
style: simple
- in: header
name: idempotency-key
description: The request's idempotency key
schema:
type: string
style: simple
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/StreamSinkIn'
required: true
responses:
'201':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/StreamSinkOut'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/HttpErrorOut'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/HttpErrorOut'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/HttpErrorOut'
'404':
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/HttpErrorOut'
'409':
description: Conflict
content:
application/json:
schema:
$ref: '#/components/schemas/HttpErrorOut'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
'429':
description: Too Many Requests
content:
application/json:
schema:
$ref: '#/components/schemas/HttpErrorOut'
security:
- HTTPBearer: []
x-codeSamples:
- label: JavaScript
lang: TypeScript
source: "const response = await svix.streaming.sink.create(\"strm_31Dc0DD72P5AddYUguyBd\", {\n batchSize: 100,\n eventTypes: [],\n maxWaitSecs: 1,\n metadata: {},\n status: SinkStatusIn.Enabled,\n uid: \"unique-identifier\",\n type: \"azureBlobStorage\",\n config: {\n accessKey: \"sample string\",\n account: \"sample string\",\n container: \"sample string\",\n },\n});"
- label: TypeScript
lang: TypeScript
source: "const response = await svix.streaming.sink.create(\"strm_31Dc0DD72P5AddYUguyBd\", {\n batchSize: 100,\n eventTypes: [],\n maxWaitSecs: 1,\n metadata: {},\n status: SinkStatusIn.Enabled,\n uid: \"unique-identifier\",\n type: \"azureBlobStorage\",\n config: {\n accessKey: \"sample string\",\n account: \"sample string\",\n container: \"sample string\",\n },\n});"
- label: Python
lang: Python
source: "response = svix.streaming.sink.create(\n \"strm_31Dc0DD72P5AddYUguyBd\",\n StreamSinkIn(\n batch_size=100,\n event_types=[],\n max_wait_secs=1,\n metadata={},\n status=SinkStatusIn.ENABLED,\n uid=\"unique-identifier\",\n type=\"azureBlobStorage\",\n config=AzureBlobStorageConfig(\n access_key=\"sample string\",\n account=\"sample string\",\n container=\"sample string\",\n ),\n ),\n)"
- label: Python (Async)
lang: Python
source: "response = await svix.streaming.sink.create(\n \"strm_31Dc0DD72P5AddYUguyBd\",\n StreamSinkIn(\n batch_size=100,\n event_types=[],\n max_wait_secs=1,\n metadata={},\n status=SinkStatusIn.ENABLED,\n uid=\"unique-identifier\",\n type=\"azureBlobStorage\",\n config=AzureBlobStorageConfig(\n access_key=\"sample string\",\n account=\"sample string\",\n container=\"sample string\",\n ),\n ),\n)"
- label: Go
lang: Go
source: "response, err := svix.Streaming.Sink.Create(\n\tctx,\n\t\"strm_31Dc0DD72P5AddYUguyBd\",\n\tStreamSinkIn{\n\t\tBatchSize: new(uint16(100)),\n\t\tEventTypes: []string{},\n\t\tMaxWaitSecs: new(uint16(1)),\n\t\tMetadata: nil,\n\t\tStatus: new(SINKSTATUSIN_ENABLED),\n\t\tUid: new(\"unique-identifier\"),\n\t\tConfig: (AzureBlobStorageConfig{AccessKey: \"sample string\", Account: \"sample string\", Container: \"sample string\"}),\n\t\tType: \"azureBlobStorage\",\n\t},\n\tnil,\n)"
- label: Kotlin
lang: Kotlin
source: "val response =\n svix.streaming.sink.create(\n \"strm_31Dc0DD72P5AddYUguyBd\",\n StreamSinkIn(\n batchSize = 100u,\n eventTypes = listOf(),\n maxWaitSecs = 1u,\n metadata = mapOf(),\n status = SinkStatusIn.ENABLED,\n uid = \"unique-identifier\",\n config =\n StreamSinkInConfig.AzureBlobStorage(\n AzureBlobStorageConfig(\n accessKey = \"sample string\",\n account = \"sample string\",\n container = \"sample string\",\n )\n ),\n ),\n )"
- label: Java
lang: Java
source: "var response = svix.getStreaming()\n .getSink()\n .create(\n \"strm_31Dc0DD72P5AddYUguyBd\",\n new StreamSinkIn()\n .batchSize(100L)\n .eventTypes(List.of())\n .maxWaitSecs(1L)\n .metadata(Map.of())\n .status(SinkStatusIn.ENABLED)\n .uid(\"unique-identifier\")\n .config(new StreamSinkInConfig.AzureBlobStorage(new AzureBlobStorageConfig()\n .accessKey(\"sample string\")\n .account(\"sample string\")\n .container(\"sample string\"))));"
- label: Ruby
lang: Ruby
source: "response = svix\n .streaming\n .sink\n .create(\n \"strm_31Dc0DD72P5AddYUguyBd\",\n {\n batchSize: 100,\n eventTypes: [],\n maxWaitSecs: 1,\n metadata: {},\n status: SinkStatusIn::ENABLED,\n uid: \"unique-identifier\",\n config: {accessKey: \"sample string\", account: \"sample string\", container: \"sample string\"},\n type: \"azureBlobStorage\"\n }\n )"
- label: Rust
lang: Rust
source: "let response = svix\n .streaming()\n .sink()\n .create(\n \"strm_31Dc0DD72P5AddYUguyBd\".to_string(),\n StreamSinkIn {\n batch_size: Some(100),\n event_types: Some(vec![]),\n max_wait_secs: Some(1),\n metadata: Some(HashMap::new()),\n status: Some(SinkStatusIn::Enabled),\n uid: Some(\"unique-identifier\".to_string()),\n config: StreamSinkInConfig::AzureBlobStorage(AzureBlobStorageConfig {\n access_key: \"sample string\".to_string(),\n account: \"sample string\".to_string(),\n container: \"sample string\".to_string(),\n }),\n },\n None,\n )\n .await?;"
- label: C#
lang: C#
source: "var response = svix.Streaming.Sink.Create(\n \"strm_31Dc0DD72P5AddYUguyBd\",\n new StreamSinkIn\n {\n BatchSize = 100,\n EventTypes = [],\n MaxWaitSecs = 1,\n Metadata = [],\n Status = SinkStatusIn.Enabled,\n Uid = \"unique-identifier\",\n Config = StreamSinkInConfig.AzureBlobStorage(\n (\n new AzureBlobStorageConfig\n {\n AccessKey = \"sample string\",\n Account = \"sample string\",\n Container = \"sample string\",\n }\n )\n ),\n }\n);"
- label: PHP
lang: PHP
source: "$response = $svix->streaming->sink->create(\n \"strm_31Dc0DD72P5AddYUguyBd\",\n StreamSinkIn::create()\n ->withBatchSize(100)\n ->withEventTypes([])\n ->withMaxWaitSecs(1)\n ->withMetadata([])\n ->withStatus(SinkStatusIn::ENABLED)\n ->withUid(\"unique-identifier\")\n);"
- label: CLI
lang: Shell
source: "svix streaming sink create \"strm_31Dc0DD72P5AddYUguyBd\" '{\n \"batchSize\": 100,\n \"config\": {\n \"accessKey\": \"sample string\",\n \"account\": \"sample string\",\n \"container\": \"sample string\"\n },\n \"eventTypes\": [],\n \"maxWaitSecs\": 1,\n \"metadata\": {},\n \"status\": \"enabled\",\n \"type\": \"azureBlobStorage\",\n \"uid\": \"unique-identifier\"\n }'"
- label: cURL
lang: Shell
source: "curl -X 'POST' \\\n 'https://api.eu.svix.com/api/v1/stream/strm_31Dc0DD72P5AddYUguyBd/sink' \\\n -H 'Authorization: Bearer AUTH_TOKEN' \\\n -H 'Accept: application/json' \\\n -H 'Content-Type: application/json' \\\n -d '{\n \"batchSize\": 100,\n \"config\": {\n \"accessKey\": \"sample string\",\n \"account\": \"sample string\",\n \"container\": \"sample string\"\n },\n \"eventTypes\": [],\n \"maxWaitSecs\": 1,\n \"metadata\": {},\n \"status\": \"enabled\",\n \"type\": \"azureBlobStorage\",\n \"uid\": \"unique-identifier\"\n }'"
/api/v1/stream/{stream_id}/sink/{sink_id}:
get:
tags:
- Sink
summary: Get Sink
description: Get a sink by id or uid.
operationId: v1.streaming.sink.get
parameters:
- in: path
name: stream_id
description: The Stream's ID or UID.
required: true
schema:
description: The Stream's ID or UID.
type: string
maxLength: 60
minLength: 1
example: unique-identifier
style: simple
- in: path
name: sink_id
description: The StreamSink's ID or UID.
required: true
schema:
description: The StreamSink's ID or UID.
type: string
maxLength: 60
minLength: 1
example: unique-identifier
style: simple
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/StreamSinkOut'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/HttpErrorOut'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/HttpErrorOut'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/HttpErrorOut'
'404':
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/HttpErrorOut'
'409':
description: Conflict
content:
application/json:
schema:
$ref: '#/components/schemas/HttpErrorOut'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
'429':
description: Too Many Requests
content:
application/json:
schema:
$ref: '#/components/schemas/HttpErrorOut'
security:
- HTTPBearer: []
x-codeSamples:
- label: JavaScript
lang: TypeScript
source: "const response = await svix.streaming.sink.get(\n \"strm_31Dc0DD72P5AddYUguyBd\",\n \"sink_31Dc11sPYY9aLDkwPuGMa\"\n);"
- label: TypeScript
lang: TypeScript
source: "const response = await svix.streaming.sink.get(\n \"strm_31Dc0DD72P5AddYUguyBd\",\n \"sink_31Dc11sPYY9aLDkwPuGMa\"\n);"
- label: Python
lang: Python
source: "response = svix.streaming.sink.get(\n \"strm_31Dc0DD72P5AddYUguyBd\",\n \"sink_31Dc11sPYY9aLDkwPuGMa\",\n)"
- label: Python (Async)
lang: Python
source: "response = await svix.streaming.sink.get(\n \"strm_31Dc0DD72P5AddYUguyBd\",\n \"sink_31Dc11sPYY9aLDkwPuGMa\",\n)"
- label: Go
lang: Go
source: "response, err := svix.Streaming.Sink.Get(\n\tctx,\n\t\"strm_31Dc0DD72P5AddYUguyBd\",\n\t\"sink_31Dc11sPYY9aLDkwPuGMa\",\n)"
- label: Kotlin
lang: Kotlin
source: val response = svix.streaming.sink.get("strm_31Dc0DD72P5AddYUguyBd", "sink_31Dc11sPYY9aLDkwPuGMa")
- label: Java
lang: Java
source: "var response = svix.getStreaming()\n .getSink()\n .get(\"strm_31Dc0DD72P5AddYUguyBd\", \"sink_31Dc11sPYY9aLDkwPuGMa\");"
- label: Ruby
lang: Ruby
source: response = svix.streaming.sink.get("strm_31Dc0DD72P5AddYUguyBd", "sink_31Dc11sPYY9aLDkwPuGMa")
- label: Rust
lang: Rust
source: "let response = svix\n .streaming()\n .sink()\n .get(\n \"strm_31Dc0DD72P5AddYUguyBd\".to_string(),\n \"sink_31Dc11sPYY9aLDkwPuGMa\".to_string(),\n )\n .await?;"
- label: C#
lang: C#
source: var response = svix.Streaming.Sink.Get("strm_31Dc0DD72P5AddYUguyBd", "sink_31Dc11sPYY9aLDkwPuGMa");
- label: PHP
lang: PHP
source: "$response = $svix->streaming->sink->get(\n \"strm_31Dc0DD72P5AddYUguyBd\",\n \"sink_31Dc11sPYY9aLDkwPuGMa\"\n);"
- label: CLI
lang: Shell
source: svix streaming sink get "strm_31Dc0DD72P5AddYUguyBd" "sink_31Dc11sPYY9aLDkwPuGMa"
- label: cURL
lang: Shell
source: "curl -X 'GET' \\\n 'https://api.eu.svix.com/api/v1/stream/strm_31Dc0DD72P5AddYUguyBd/sink/sink_31Dc11sPYY9aLDkwPuGMa' \\\n -H 'Authorization: Bearer AUTH_TOKEN' \\\n -H 'Accept: application/json'"
put:
tags:
- Sink
summary: Update Sink
description: Update a sink.
operationId: v1.streaming.sink.update
parameters:
- in: path
name: stream_id
description: The Stream's ID or UID.
required: true
schema:
description: The Stream's ID or UID.
type: string
maxLength: 60
minLength: 1
example: unique-identifier
style: simple
- in: path
name: sink_id
description: The StreamSink's ID or UID.
required: true
schema:
description: The StreamSink's ID or UID.
type: string
maxLength: 60
minLength: 1
example: unique-identifier
style: simple
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/StreamSinkIn'
required: true
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/StreamSinkOut'
'201':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/StreamSinkOut'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/HttpErrorOut'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/HttpErrorOut'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/HttpErrorOut'
'404':
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/HttpErrorOut'
'409':
description: Conflict
content:
application/json:
schema:
$ref: '#/components/schemas/HttpErrorOut'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
'429':
description: Too Many Requests
content:
application/json:
schema:
$ref: '#/components/schemas/HttpErrorOut'
security:
- HTTPBearer: []
x-codeSamples:
- label: JavaScript
lang: TypeScript
source: "const response = await svix.streaming.sink.update(\n \"strm_31Dc0DD72P5AddYUguyBd\",\n \"sink_31Dc11sPYY9aLDkwPuGMa\",\n {\n batchSize: 100,\n eventTypes: [],\n maxWaitSecs: 1,\n metadata: {},\n status: SinkStatusIn.Enabled,\n uid: \"unique-identifier\",\n type: \"azureBlobStorage\",\n config: {\n accessKey: \"sample string\",\n account: \"sample string\",\n container: \"sample string\",\n },\n }\n);"
- label: TypeScript
lang: TypeScript
source: "const response = await svix.streaming.sink.update(\n \"strm_31Dc0DD72P5AddYUguyBd\",\n \"sink_31Dc11sPYY9aLDkwPuGMa\",\n {\n batchSize: 100,\n eventTypes: [],\n maxWaitSecs: 1,\n metadata: {},\n status: SinkStatusIn.Enabled,\n uid: \"unique-identifier\",\n type: \"azureBlobStorage\",\n config: {\n accessKey: \"sample string\",\n account: \"sample string\",\n container: \"sample string\",\n },\n }\n);"
- label: Python
lang: Python
source: "response = svix.streaming.sink.update(\n \"strm_31Dc0DD72P5AddYUguyBd\",\n \"sink_31Dc11sPYY9aLDkwPuGMa\",\n StreamSinkIn(\n batch_size=100,\n event_types=[],\n max_wait_secs=1,\n metadata={},\n status=SinkStatusIn.ENABLED,\n uid=\"unique-identifier\",\n type=\"azureBlobStorage\",\n config=AzureBlobStorageConfig(\n access_key=\"sample string\",\n account=\"sample string\",\n container=\"sample string\",\n ),\n ),\n)"
- label: Python (Async)
lang: Python
source: "response = await svix.streaming.sink.update(\n \"strm_31Dc0DD72P5AddYUguyBd\",\n \"sink_31Dc11sPYY9aLDkwPuGMa\",\n StreamSinkIn(\n batch_size=100,\n event_types=[],\n max_wait_secs=1,\n metadata={},\n status=SinkStatusIn.ENABLED,\n uid=\"unique-identifier\",\n type=\"azureBlobStorage\",\n config=AzureBlobStorageConfig(\n access_key=\"sample string\",\n account=\"sample string\",\n container=\"sample string\",\n ),\n ),\n)"
- label: Go
lang: Go
source: "response, err := svix.Streaming.Sink.Update(\n\tctx,\n\t\"strm_31Dc0DD72P5AddYUguyBd\",\n\t\"sink_31Dc11sPYY9aLDkwPuGMa\",\n\tStreamSinkIn{\n\t\tBatchSize: new(uint16(100)),\n\t\tEventTypes: []string{},\n\t\tMaxWaitSecs: new(uint16(1)),\n\t\tMetadata: nil,\n\t\tStatus: new(SINKSTATUSIN_ENABLED),\n\t\tUid: new(\"unique-identifier\"),\n\t\tConfig: (AzureBlobStorageConfig{AccessKey: \"sample string\", Account: \"sample string\", Container: \"sample string\"}),\n\t\tType: \"azureBlobStorage\",\n\t},\n)"
- label: Kotlin
lang: Kotlin
source: "val response =\n svix.streaming.sink.update(\n \"strm_31Dc0DD72P5AddYUguyBd\",\n \"sink_31Dc11sPYY9aLDkwPuGMa\",\n StreamSinkIn(\n batchSize = 100u,\n eventTypes = listOf(),\n maxWaitSecs = 1u,\n metadata = mapOf(),\n status = SinkStatusIn.ENABLED,\n uid = \"unique-identifier\",\n config =\n StreamSinkInConfig.AzureBlobStorage(\n AzureBlobStorageConfig(\n accessKey = \"sample string\",\n account = \"sample string\",\n container = \"sample string\",\n )\n ),\n ),\n )"
- label: Java
lang: Java
source: "var response = svix.getStreaming()\n .getSink()\n .update(\n \"strm_31Dc0DD72P5AddYUguyBd\",\n \"sink_31Dc11sPYY9aLDkwPuGMa\",\n new StreamSinkIn()\n .batchSize(100L)\n .eventTypes(List.of())\n .maxWaitSecs(1L)\n .metadata(Map.of())\n .status(SinkStatusIn.ENABLED)\n .uid(\"unique-identifier\")\n .config(new StreamSinkInConfig.AzureBlobStorage(new AzureBlobStorageConfig()\n .accessKey(\"sample string\")\n .account(\"sample string\")\n .container(\"sample string\"))));"
- label: Ruby
lang: Ruby
source: "response = svix\n .streaming\n .sink\n .update(\n \"strm_31Dc0DD72P5AddYUguyBd\",\n \"sink_31Dc11sPYY9aLDkwPuGMa\",\n {\n batchSize: 100,\n eventTypes: [],\n maxWaitSecs: 1,\n metadata: {},\n status: SinkStatusIn::ENABLED,\n uid: \"unique-identifier\",\n config: {accessKey: \"sample string\", account: \"sample string\", container: \"sample string\"},\n type: \"azureBlobStorage\"\n }\n )"
- label: Rust
lang: Rust
source: "let response = svix\n .streaming()\n .sink()\n .update(\n \"strm_31Dc0DD72P5AddYUguyBd\".to_string(),\n \"sink_31Dc11sPYY9aLDkwPuGMa\".to_string(),\n StreamSinkIn {\n batch_size: Some(100),\n event_types: Some(vec![]),\n max_wait_secs: Some(1),\n metadata: Some(HashMap::new()),\n status: Some(SinkStatusIn::Enabled),\n uid: Some(\"unique-identifier\".to_string()),\n config: StreamSinkInConfig::AzureBlobStorage(AzureBlobStorageConfig {\n access_key: \"sample string\".to_string(),\n account: \"sample string\".to_string(),\n container: \"sample string\".to_string(),\n }),\n },\n )\n .await?;"
- label: C#
lang: C#
source: "var response = svix.Streaming.Sink.Update(\n \"strm_31Dc0DD72P5AddYUguyBd\",\n \"sink_31Dc11sPYY9aLDkwPuGMa\",\n new StreamSinkIn\n {\n BatchSize = 100,\n EventTypes = [],\n MaxWaitSecs = 1,\n Metadata = [],\n Status = SinkStatusIn.Enabled,\n Uid = \"unique-identifier\",\n Config = StreamSinkInConfig.AzureBlobStorage(\n (\n new AzureBlobStorageConfig\n {\n AccessKey = \"sample string\",\n Account = \"sample string\",\n Container = \"sample string\",\n }\n )\n ),\n }\n);"
- label: PHP
lang: PHP
source: "$response = $svix->streaming->sink->update(\n \"strm_31Dc0DD72P5AddYUguyBd\",\n \"sink_31Dc11sPYY9aLDkwPuGMa\",\n StreamSinkIn::create()\n ->withBatchSize(100)\n ->withEventTypes([])\n ->withMaxWaitSecs(1)\n ->withMetadata([])\n ->withStatus(SinkStatusIn::ENABLED)\n ->withUid(\"unique-identifier\")\n);"
- label: CLI
lang: Shell
source: "svix streaming sink update \"strm_31Dc0DD72P
# --- truncated at 32 KB (140 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/svix/refs/heads/main/openapi/svix-sink-api-openapi.yml