Skip to content

API Overview

Friendarr exposes a REST API at http://localhost:5056/api/v1.

Authentication

All API endpoints (except /health) require a Bearer token in the Authorization header:

Authorization: Bearer <api-key>

Two Levels of Access

LevelKeyAccess
API keyMaster key or generated API keyDownload endpoints, status tracking
Master keyThe API_KEY env varEverything above + queue management, settings, API key CRUD, logs, webhooks

The master API key also works as a regular API key for download endpoints.

Response Format

StatusMeaning
200Success
201Created (API keys)
202Accepted (download queued)
204No content (deleted)
400Bad request — missing or invalid body
401Missing or malformed Authorization header
403Invalid API key or insufficient permissions
404Resource not found
502Upstream error (webhook test failure)

Error responses have the shape:

json
{
  "error": "Human-readable error message"
}

Health Check

GET /health

No authentication required. Returns:

json
{
  "status": "ok"
}

Also available at /api/v1/health with additional info:

json
{
  "status": "ok",
  "activeDownloads": 0
}

API Key Verification

GET /api/v1/verify
Authorization: Bearer <api-key>

Returns {"status":"ok"} if the API key is valid. Useful for testing connectivity.

Released under the MIT License.