Desktop / integration / v1

Developers / API

A small, read-only JSON API for the boopi_mod desktop client. UTF-8, versioned and cacheable.

Player and modder documentation →

https://boopi.site/api/v1
HTTPEndpointDescription
GET/gamesGames
GET/categoriesCategories
GET/mods?game=fallout4&q=&category=&tag=&sort=trending&page=1&per_page=24&adult=0&official=0Browse mods
GET/mods/{slug}Description
GET/mods/{slug}/versionsVersion archive
GET/updates?since=2026-01-01T00:00:00Z&page=1Recently updated
POST/files/{id}/downloadedDownloads
GET/meProfile
GET / POST/me/trackedTracked mods
GET/official/index.jsonOfficial
GET/official/index.sigSHA-256

Browse mods

{"items":[{"id":1,"slug":"example","title":"Example","summary":"…","author":"creator","game":"fallout4","category":"animations","tags":[],"adult":false,"official":false,"version":"1.0.0","icon_url":"https://boopi.site/files/images/…webp","header_url":"https://boopi.site/files/images/…webp","updated_at":"2026-01-01T00:00:00Z","downloads":0,"endorsements":0}],"total":1,"page":1,"per_page":24}

Respect ETag / If-None-Match and retry after HTTP 429. Default public budget: 240 requests per minute per IP. Files are static and support Range requests on the production server.

sort=trending|newest|updated|downloaded|endorsed; per_page=1…100; adult=0|1; official=0|1

/api/v1/games: poster_url, mod_count · /api/v1/categories?game=fallout4: name_ru, mod_count

Author website / original page: homepage_url · Optional HTTPS link, up to 500 characters; no credentials in the URL.

Personal API tokens

Adult cards require an adult-confirmed session or personal token. Bearer tokens are created in Settings. read allows profile and tracked lists; track allows changes to tracked mods.

Authorization: Bearer <64-character-token>
POST /api/v1/me/tracked
Content-Type: application/json
{"slug":"example","enabled":true}

Download

After a completed download, report it once using the counter endpoint. Native clients send X-Boopi-Client: boopi_mod; browsers additionally send their CSRF token.

POST /api/v1/files/1/downloaded
X-Boopi-Client: boopi_mod
X-CSRF-Token: <browser-session-token>

401 / 403 / 404 / 409 / 422 / 429; {"error":{"code":"not_found","message":"…"}}

This card comes from the owner’s signed static catalog. The desktop app verifies its signature before installing.

Official packs catalog (JSON for the app)

Desktop sign-in (boopi_mod)

The app never asks for a site password. Sign in and approve access in your browser.

  1. POST /api/v1/auth/device with {"client":"boopi_mod","client_version":"1.0"} (10/minute/IP). Response includes a 256-bit device_code, user_code formatted XXXX-XXXX, verification_uri, verification_uri_complete, expires_in:900 and interval:5.
  2. Open https://boopi.site/activate?code=XXXX-XXXX. Login preserves the code. Check the displayed client/version and read/publish permissions, then Allow or Deny. Approval requires a signed-in, unbanned user and CSRF.
  3. Poll POST /api/v1/auth/token with {"device_code":"…"} every five seconds. HTTP 428 returns {"error":"authorization_pending"}, slow_down, access_denied or expired_token. Each slow_down adds five seconds to the interval, up to 60. Success returns the shape below. Each device code issues one token.
{"access_token":"64 hex characters","token_type":"Bearer","scope":"read track publish","user":{"username":"creator","role":"user"}}

The token expires in one year and appears in settings as boopi_mod on YYYY-MM-DD. Store it in the desktop OS credential store. Revoke in settings or call POST /api/v1/auth/revoke with Bearer authorization. Never put a token in a URL.

Publishing from the app

Every endpoint below requires a Bearer token with publish scope. Cookies are ignored; CSRF is unnecessary. Responses are private/no-store. Errors use {"error":{"code":"…","message":"…"}} with HTTP 401/403/404/409/413/422/429/507. User publishing limit: 120 requests/minute; image/upload budgets also apply.

MethodEndpointBody and response
GET/api/v1/me/modsOwn metadata, status/reason and versions with status/reason/files.
POST/api/v1/me/mods{title,summary,description,format,game,category,tags:[],adult,requirements,credits,links,homepage_url}. format is markdown or bbcode; game/category accept active slugs or IDs; links accepts an array or newline string. Creates pending metadata and a unique generated slug.
PATCH/api/v1/me/mods/{slug}Supply changed metadata fields; omitted fields/images stay attached. Author edits return to review and revoke published archives.
POST/api/v1/me/mods/{slug}/images?role=icon|header|galleryRaw JPEG/PNG/WebP, ≤2 MiB, re-encoded as WebP. Returns {id,url,role}. Icons square ≥256px; headers ≥1280px at 16:9 or 2:1; at most 20 gallery images.
POST/api/v1/me/uploads{name,size,sha256,kind:"main"|"optional"|"patch"} → {upload_id,chunk_bytes,offset,size,status}.
PUT/api/v1/me/uploads/{id}?offset=NRaw application/octet-stream chunk ≤chunk_bytes. Offset must match server state; response returns the new offset.
GET/api/v1/me/uploads/{id}Read current offset/state before resuming or retrying an uncertain request.
POST/api/v1/me/uploads/{id}/finishVerify size, SHA-256 and archive magic. Invalid assembled data is deleted and the upload becomes failed. Incomplete transfers can resume.
POST/api/v1/me/mods/{slug}/versions{version,changelog,format,min_app_version,files:[{upload_id,kind}]} → {id,version,status,reason}. Exactly one main file; at most 12 files. Requires completed uploads owned by this user.

App archives may use .zip, .7z, .rar or .ogmod. .ogmod is boopi_mod's ZIP container and requires ZIP magic. Web validation, quotas and moderation apply: free space ≥max(5 GiB, 3×size), global archive cap 40 GiB by default, 300 MiB/day for authors without an approved mod. Images can follow draft creation; approval requires an icon, header and a valid pending or approved release; joint moderation approves pending releases automatically. Trusted authors autoapprove new versions only for their already approved mods. New mods remain reviewed.

GET /api/v1/updates has default/maximum per_page=20 and cached sanitized descriptions/changelogs. Public cacheable API responses never set cookies. Official signed JSON/signature responses preserve the publisher's exact bytes for clients; website cards omit adult official packs until age confirmation.