---
title: "Get object"
method: GET
path: "/bus/object/{key}"
tags: ["bus"]
---

# Get object

`GET /bus/object/{key}`

Returns an object's metadata or full object data.

## Path parameters

- `key` string, required

## Query parameters

- `bucket` string, required — The name of the bucket.
- `onlymetadata` boolean — If true, only returns object metadata without data

## Response `200`

Successfully retrieved object

- Object
  - `metadata` ObjectUserMetadata — User-defined metadata about an object provided through X-Sia-Meta- headers
  - `bucket` string — The name of the bucket.
  - `etag` string — The ETag of the object
  - `health` number, float — The health of the object
  - `modTime` string, date-time — When the object was last modified
  - `key` string — The key of the object
  - `size` integer — The size of the object in bytes
  - `mimeType` string — The MIME type of the object
  - `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.
  - `slabs` SlabSlice[]
    - `slab` Slab — A slab of data to migrate
      - `health` number, float
      - `encryptionKey` string — The encryption key used to encrypt the slab's shards
      - `minShards` integer — The number of data shards the slab is split into
    - `offset` integer
    - `limit` integer

## Other responses

- `404` — Object not found
- `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)
