---
title: "Fetch packed slabs for upload"
method: POST
path: "/bus/slabbuffer/fetch"
tags: ["bus"]
---

# Fetch packed slabs for upload

`POST /bus/slabbuffer/fetch`

Returns packed slabs that are ready to be uploaded.

## Request body

- object
  - `lockingDuration` integer — Duration in milliseconds to lock the slabs
  - `minShards` integer — The number of data shards a piece of an object gets erasure-coded into
  - `totalShards` integer — The number of total data shards a piece of an object gets erasure-coded into
  - `limit` integer — Maximum number of packed slabs to return

## Response `200`

Successfully retrieved packed slabs

- PackedSlab[]
  - `bufferID` integer — ID of the buffer containing the slab
  - `data` string, binary — The slab data
  - `encryptionKey` string — A key used to encrypt and decrypt data. The key is either a regular key (key) or a salted key (skey). The latter requires a seed to be used for encryption and decryption.

## Other responses

- `500` — Internal server error

---

[API](https://skmtc.net/siafoundation/apis/renterd-api.md) · [All operations](https://skmtc.net/siafoundation/apis/renterd-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/siafoundation/renterd-api/versions/184a3d5207da/schema)
