---
title: "Add and pin object"
method: POST
path: "/pinning/pins"
tags: ["pinning"]
---

# Add and pin object

`POST /pinning/pins`

This endpoint adds a pin to the IPFS daemon.

## Request body

- TypesIpfsPin
  - `cid` string
  - `meta` object
  - `name` string
  - `origins` string[]

## Response `202`

Accepted

- TypesIpfsPinStatusResponse
  - `created` string
  - `delegates` string[]
  - `info` object
  - `pin` TypesIpfsPin
    - `cid` string
    - `meta` object
    - `name` string
    - `origins` string[]
  - `requestid` string
  - `status` string

## Other responses

- `500` — Internal Server Error

## Changes

- **2022-11-08** `2ffb5fcaf998` — 1 breaking, 2 info
  - removed the success response with the status `200`
  - removed the non-success response with the status `400`
  - added the success response with the status `202`
- **2022-11-07** `c03ca04ba831` — 2 warning, 3 info
  - deleted the `path` request parameter `cid`
  - deleted the `path` request parameter `name`
  - added the non-success response with the status `400`
  - added the non-success response with the status `500`
  - …1 more
- **2022-11-07** `02272f8e48e5` — 3 breaking, 2 info
  - added the new path request parameter `cid`
  - added the new path request parameter `name`
  - removed the success response with the status `200`
  - removed the non-success response with the status `400`
  - …1 more
- **2022-11-03** `1f1ec6607867` — 2 warning, 3 info
  - deleted the `path` request parameter `cid`
  - deleted the `path` request parameter `name`
  - added the non-success response with the status `400`
  - added the non-success response with the status `500`
  - …1 more
- **2022-10-29** `3ca60f3cf6bb` — 3 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `500`
  - added the success response with the status `200`

[Full history](https://skmtc.dev/application-research/apis/estuary-api/changes/pinning/pins/post.md)

---

[API](https://skmtc.dev/application-research/apis/estuary-api.md) · [All operations](https://skmtc.dev/application-research/apis/estuary-api/llms.txt) · [OpenAPI document](https://skmtc.dev/application-research/apis/estuary-api/revisions/71170645aad7?raw)
