---
seo:
  description: >-
    piecemeal's native API. The web UI uses it, and so can anything else:
    authenticate with a session cookie (send X-Requested-With: piecemeal on
    unsafe requests)…
sidebar:
  label: Overview
title: piecemeal API
---
piecemeal's native API. The web UI uses it, and so can anything else: authenticate with a session cookie (send `X-Requested-With: piecemeal` on unsafe requests) or an API key as a Bearer token.

Version v1

Base URL: `https://piecemeal.example.com/api/piecemeal/v1`

## Admin

- [`GET /admin/backup`](/reference/admin/get-backup) — Download a backup of the database.

## Access

- [`GET /api-keys`](/reference/access/list-api-keys) — List API keys.
- [`POST /api-keys`](/reference/access/create-api-key) — Create an API key.
- [`DELETE /api-keys/{id}`](/reference/access/delete-api-key) — Delete an API key.
- [`GET /audit`](/reference/access/list-audit) — List audit log entries, newest first.
- [`GET /sessions`](/reference/access/list-sessions) — List sessions.
- [`DELETE /sessions/{id}`](/reference/access/delete-session) — End a session.
- [`GET /users`](/reference/access/list-users) — List users.
- [`DELETE /users/{id}`](/reference/access/delete-user) — Remove a user with their sessions and API keys.

## Auth

- [`GET /auth/config`](/reference/auth/get-auth-config) — Get the sign-in methods.
- [`POST /auth/login`](/reference/auth/login) — Sign in with a password.
- [`POST /auth/logout`](/reference/auth/logout) — Sign out.
- [`GET /auth/me`](/reference/auth/get-me) — Get who is signed in.

## Categories and tags

- [`GET /categories`](/reference/categories-and-tags/list-categories) — List categories.
- [`DELETE /categories/{name}`](/reference/categories-and-tags/delete-category) — Delete a category.
- [`PUT /categories/{name}`](/reference/categories-and-tags/put-category) — Create or change a category.
- [`GET /tags`](/reference/categories-and-tags/list-tags) — List tags.
- [`DELETE /tags/{name}`](/reference/categories-and-tags/delete-tag) — Delete a tag.
- [`PUT /tags/{name}`](/reference/categories-and-tags/create-tag) — Create a tag.

## Events

- [`GET /events`](/reference/events/stream-events) — Stream live changes.

## System

- [`GET /log`](/reference/system/get-log) — Get recent log entries.
- [`GET /settings`](/reference/system/get-settings) — Get settings.
- [`PATCH /settings`](/reference/system/update-settings) — Change settings.
- [`GET /system`](/reference/system/get-system) — Get version and network status.
- [`GET /transfer`](/reference/system/get-transfer) — Get transfer rates and totals.
- [`PATCH /transfer`](/reference/system/update-transfer) — Change the speed limits.

## RSS

- [`GET /rss`](/reference/rss/get-rss) — List RSS folders and feeds.
- [`POST /rss/feeds`](/reference/rss/add-rss-feed) — Add an RSS feed.
- [`GET /rss/feeds/{uid}`](/reference/rss/get-rss-feed) — Get an RSS feed with its articles.
- [`PATCH /rss/feeds/{uid}`](/reference/rss/update-rss-feed) — Change an RSS feed.
- [`POST /rss/folders`](/reference/rss/add-rss-folder) — Add an RSS folder.
- [`DELETE /rss/items`](/reference/rss/remove-rss-item) — Remove an RSS feed, or a folder with everything in it.
- [`POST /rss/read`](/reference/rss/mark-rss-read) — Mark RSS articles read.
- [`POST /rss/refresh`](/reference/rss/refresh-rss) — Fetch RSS feeds now.
- [`GET /rss/rules`](/reference/rss/list-rss-rules) — List RSS download rules.
- [`DELETE /rss/rules/{name}`](/reference/rss/remove-rss-rule) — Remove an RSS download rule.
- [`PUT /rss/rules/{name}`](/reference/rss/put-rss-rule) — Create or replace an RSS download rule.
- [`GET /rss/rules/{name}/matches`](/reference/rss/list-rss-rule-matches) — List the articles an RSS rule accepts.
- [`POST /rss/rules/{name}/rename`](/reference/rss/rename-rss-rule) — Rename an RSS download rule.

## Torrents

- [`GET /torrents`](/reference/torrents/list-torrents) — List torrents.
- [`POST /torrents`](/reference/torrents/add-torrent) — Add a torrent.
- [`POST /torrents/actions`](/reference/torrents/bulk-torrent-action) — Act on several torrents.
- [`DELETE /torrents/{hash}`](/reference/torrents/delete-torrent) — Remove a torrent.
- [`GET /torrents/{hash}`](/reference/torrents/get-torrent) — Get a torrent.
- [`PATCH /torrents/{hash}`](/reference/torrents/update-torrent) — Change a torrent.
- [`GET /torrents/{hash}/files`](/reference/torrents/list-torrent-files) — List a torrent's files.
- [`PATCH /torrents/{hash}/files`](/reference/torrents/set-torrent-file-priority) — Set file priorities.
- [`POST /torrents/{hash}/files/rename`](/reference/torrents/rename-torrent-path) — Rename a file or folder.
- [`GET /torrents/{hash}/peers`](/reference/torrents/list-torrent-peers) — List a torrent's connected peers.
- [`POST /torrents/{hash}/peers`](/reference/torrents/add-torrent-peers) — Connect a torrent to peers.
- [`GET /torrents/{hash}/pieces`](/reference/torrents/get-torrent-pieces) — Get a torrent's piece states.
- [`POST /torrents/{hash}/reannounce`](/reference/torrents/reannounce-torrent) — Announce to a torrent's trackers now.
- [`POST /torrents/{hash}/recheck`](/reference/torrents/recheck-torrent) — Verify a torrent's data.
- [`POST /torrents/{hash}/start`](/reference/torrents/start-torrent) — Start a torrent.
- [`POST /torrents/{hash}/stop`](/reference/torrents/stop-torrent) — Stop a torrent.
- [`GET /torrents/{hash}/torrent-file`](/reference/torrents/get-torrent-file) — Download a torrent's .torrent file.
- [`GET /torrents/{hash}/trackers`](/reference/torrents/list-torrent-trackers) — List a torrent's trackers.
- [`PUT /torrents/{hash}/trackers`](/reference/torrents/set-torrent-trackers) — Replace a torrent's trackers.
- [`GET /torrents/{hash}/web-seeds`](/reference/torrents/list-torrent-web-seeds) — List a torrent's web seeds.
- [`PUT /torrents/{hash}/web-seeds`](/reference/torrents/set-torrent-web-seeds) — Replace a torrent's web seeds.
