---
title: "Gets a blob."
method: GET
path: "/layers/{layerId}/keys/{key}"
tags: ["by-key"]
---

# Gets a blob.

`GET /layers/{layerId}/keys/{key}`

Retrieves a blob from storage.

## Path parameters

- `layerId` string, required
- `key` string, required

## Query parameters

- `accessType` string

## Headers

- `Range` string

## Response `200`

OK - response includes a blob.

## Other responses

- `206` — Partial Content - indicates response to the range query as per [RFC 7233](https://tools.ietf.org/html/rfc7233).
- `307` — Temporary redirect to retrieve blob content from an alternative location.
- `400` — User Error - Invalid input is provided
- `401` — Unauthorized - the request didn't provide correct authentication details
- `403` — Forbidden - the specific account doesn't have correct privileges to perform the operation
- `404` — Not Found - the specified resource was not found
- `416` — Range is not valid - indicates errors in the range parameter as per [RFC 7233](https://tools.ietf.org/html/rfc7233).
- `500` — Server unavailable or internal server error
- `502` — Server unavailable or internal server error
- `503` — Server unavailable or internal server error
- `504` — Server unavailable or internal server error

---

[API](https://skmtc.dev/here/apis/query-api-v1.md) · [All operations](https://skmtc.dev/here/apis/query-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/here/query-api-v1/revisions/30e5d2645407/schema)
