---
title: "Retrieve private file"
method: GET
path: "/retrieve/private/{cid}"
---

# Retrieve private file

`GET /retrieve/private/{cid}`

Retrieves a private file from IPFS by its CID

## Path parameters

- `cid` string, required

## Response `200`

Successful operation

- object
  - `url` string — URL to access the private file

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `500` — Server error

---

[API](https://skmtc.net/pinata/apis/pinata-v3-api.md) · [All operations](https://skmtc.net/pinata/apis/pinata-v3-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pinata/pinata-v3-api/revisions/734684efd9c4/schema)
