---
title: "Unpin post"
method: POST
path: "/v1/posts/{postId}/unpin"
tags: ["Posts"]
---

# Unpin post

`POST /v1/posts/{postId}/unpin`

## Request

- Base URL: `https://zernio.com/api`
- URL: `https://zernio.com/api/v1/posts/{postId}/unpin`
- Auth: HTTP bearer

Unpins a published Facebook Page post from the top of its Page. Only Facebook posts can be unpinned; any other platform answers 400 `platform_not_supported`.

## Path parameters

- `postId` string, required

## Request body

- PinPostRequest
  - `platform` string, required: Must be `facebook`. Any other value answers 400 `platform_not_supported`.
  - `accountId` string: Which Facebook account's copy to change when the post was published to several Facebook accounts. Required in that case.

## Response `200`

Unpin applied on Facebook

- PinPostResponse
  - `success` boolean
  - `pinned` boolean: Whether the post is now pinned to the top of the Page.
  - `platformPostId` string: The Facebook post ID that was changed.
  - `message` string

## Other responses

- `400`: Invalid request: invalid postId or accountId, the post or the chosen account is not on Facebook (`platform_not_supported`), the Facebook entry is not published or has no platform post ID, no access token, or Facebook rejected the change.
- `401`: Missing or invalid API key. `code` is `missing_credentials` when no Authorization header was sent and `invalid_credentials` when the key is unknown, revoked or expired.
- `403`: Forbidden
- `404`: Resource not found
- `409`: The post was published to several Facebook accounts and no accountId was sent (ambiguous_account).
- `500`: Facebook API call failed

## Changes

- **2026-10-24** `1c09b081b6bc`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/zernio/apis/zernio-api/changes/v1/posts/:postId/unpin/post.md)

---

[API](https://skmtc.dev/zernio/apis/zernio-api.md) - [All operations](https://skmtc.dev/zernio/apis/zernio-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zernio/apis/zernio-api/revisions/870c96025f19?raw)
