S2 v1
protocol for clients
http
endpoints, primarily with JSON bodies conforming to its OpenAPI spec. Data plane endpoints also support protobuf.
Bearer
access token to authenticate requests.
S2 SDKs take care of supplying it automatically. If you are using curl
, you can provide it with -H "Authorization: Bearer ${S2_ACCESS_TOKEN}"
.
zstd
preferredgzip
Content-Encoding
and Accept-Encoding
apply.
Accept-Encoding
is set to a supported algorithm. Clients must check the Content-Encoding
header on each response to determine whether the body is compressed and which encoding was used.