POST
/
streams
/
{stream}
/
records
curl --request POST \
  --url https://{basin}.b.aws.s2.dev/v1/streams/{stream}/records \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "fencing_token": "<string>",
  "match_seq_num": null,
  "records": [
    {
      "body": "<string>",
      "headers": [
        [
          "<string>"
        ]
      ],
      "timestamp": null
    }
  ]
}'
{
  "end": {
    "seq_num": 1,
    "timestamp": 1
  },
  "start": {
    "seq_num": 1,
    "timestamp": 1
  },
  "tail": {
    "seq_num": 1,
    "timestamp": 1
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

s2-format
enum<string>

Define treatment of blob fields when exchanging records as JSON. The default is raw.

Available options:
raw,
base64

Path Parameters

stream
string
required

Stream name.

Body

application/json

Payload of an Append request message.

Response

200
application/json

Success response message to an Append request.