---
title: "Archive post"
method: POST
path: "/posts/{id}/archive"
tags: ["Posts"]
---

# Archive post

`POST /posts/{id}/archive`

Archive a post by ID. The post is moved to Trash and will be permanently deleted after 30 days. Use the unarchive endpoint to restore it.

## Path parameters

- `id` string, uuid, required

## Response `200`

Post archived successfully

- object
  - `id` string, uuid, required — Post ID
  - `workspaceId` string, uuid, required — Workspace ID
  - `archivedAt` string, date-time, nullable, required — When the post was archived

## Other responses

- `401` — Unauthorized - Missing or invalid API key
- `404` — Not Found - Resource does not exist

---

[API](https://skmtc.net/tryordinal/apis/ordinal-api.md) · [All operations](https://skmtc.net/tryordinal/apis/ordinal-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tryordinal/ordinal-api/versions/1d0792ff454f/schema)
