API reference / Devices, signing & primitives / zstd compress
zstd compress
Compress a payload with zstd.
- Upstream
local · zstd codec- Access
- Every plan
- Runs on
- Primitive
- Billing
- Failed calls are free
Authorization
x-api-keyheader · stringrequired
Your API key. Create one in API keys.
Body
Send JSON with content-type: application/json.
data_base64stringrequired
The payload, base64. For example eyJoZWxsbyI6InRpa3VsdHJhIn0=.
Response
A 200 returns JSON with stable field names. Every response carries x-credits-cost, x-credits-tier and x-credits-remaining.
Errors
Errors return a JSON body with a stable code and cost 0 credits. See Errors and retries.