---
title: "Upload a file to Public or Private IPFS"
method: POST
path: "/pin/{network}"
---

# Upload a file to Public or Private IPFS

`POST /pin/{network}`

Uploads a file to Pinata's public IPFS network

## Path parameters

- `network` 'public' | 'private', required

## Request body

- object
  - `fileSize` integer, required — Size of the file to be uploaded in bytes

## Response `200`

Successful operation

- object
  - `url` string — The signed URL for file upload

## Other responses

- `400` — Bad request

---

[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/versions/734684efd9c4/schema)
