---
title: "Archive bookmarks"
method: POST
path: "/v1/bookmarks/archive"
tags: ["Bookmarks"]
---

# Archive bookmarks

`POST /v1/bookmarks/archive`

## Request

- Base URL: `https://stashr.me`
- URL: `https://stashr.me/v1/bookmarks/archive`
- Auth: HTTP bearer

Reversibly archive bookmarks (soft delete). Takes 1 to 200 ids and returns the ids that actually changed. Requires the write scope; restoreBookmarks undoes it. Archived bookmarks are purged, with their stored media, 30 days later.

## Request body

- object
  - `ids` string[], required

## Response `200`

Ids that were archived

- object
  - `data` object, required: Ids whose state actually changed
    - `ids` string[], required

## Other responses

- `400`: Malformed request (error.code bad_request or invalid_json)
- `401`: Missing, invalid, or expired credentials (error.code unauthorized)
- `402`: A Pro plan or active trial is required (error.code payment_required)
- `403`: The credential lacks the required scope (error.code forbidden)
- `404`: The resource does not exist or belongs to another account (error.code not_found)
- `422`: Validation failed; error.details.issues lists the fields (error.code validation_error)
- `429`: Too many requests (error.code rate_limited); wait Retry-After seconds, also given as error.retryAfterMs
- `500`: Something failed on Stashr's side (error.code internal_error); retryable

---

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