---
title: "GET /cas/{hash}"
method: GET
path: "/cas/{hash}"
tags: ["Content Addressed Storage"]
---

# GET /cas/{hash}

`GET /cas/{hash}`

## Path parameters

- `hash` string, required

## Query parameters

- `max-size` string, required

## Response `200`

Success

## Other responses

- `400` — Bad Request * `content_exceeds_maximum_allowed_size` - Content exceeds maximum allowed size * `content_not_a_file` - Content not a file * `content_hash_invalid` - Content hash is invalid
- `401` — Unauthorized
- `404` — Not Found
- `500` — Server Error

## Changes

- **2021-03-02** `004f984e33e2` — 1 warning, 1 info
  - added the new `anchor_time_out_of_range` enum value to the `code` response property for the response status `400`
  - removed the `blockchain_time_out_of_range` enum value from the `code` response property for the response status `400`
- **2020-07-05** `92900873f664` — 2 info
  - added the media type `application/json` for the response with the status `400`
  - added the media type `application/octet-stream` for the response with the status `200`
- **2020-05-13** `487c5566021b` — 2 breaking
  - removed the media type `application/json` for the response with the status `400`
  - removed the media type `application/octet-stream` for the response with the status `200`

[Change history](https://skmtc.dev/decentralized-identity/apis/sidetree-rest-api/changes/cas/:hash/get.md)

---

[API](https://skmtc.dev/decentralized-identity/apis/sidetree-rest-api.md) · [All operations](https://skmtc.dev/decentralized-identity/apis/sidetree-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/decentralized-identity/sidetree-rest-api/revisions/9a32549ab92a/schema)
