公開 API
釋出身份
GET /api/releases/publish —— 不寫庫。不要求 releases:publish。
GET
header
授權Bearer <token>字幕组 API Key。Authorization: Bearer <KEY>。与 X-API-Key 二选一,Bearer 优先。
Key scope:releases:publish、releases:delete、releases:sync:read,至少选一个。
当前 Key 的发布身份
application/json- response
ok*true值於
trueresult*curl -X GET 'https://anibt.net/api/releases/publish'{ "ok": true, "result": { "groupId": "org_example", "groupName": "Example Group", "groupSlug": "example", "apiKeyId": "sgak_example", "apiKeySuffix": "abcd1234", "scopes": [ "releases:publish", "releases:delete", "releases:sync:read" ], "kind": "anime" }}個人訂閱 RSS GET
GET /rss/subscriptions.xml —— 前端「我的訂閱」合併成一份私人 RSS。
釋出番劇資源 POST
POST /api/releases/publish —— 字幕組用 API Key 釋出種子。Idempotency-Key 自首次受理起綁定完整請求。同鍵變更參數回傳 409 CONFLICT;缺少綁定的舊未完成上傳請求回傳 legacy_request_binding_missing,兩者均須使用新鍵。本組已有的同一版本再次釋出回傳 409 CONFLICT,error.reason 為 RELEASE_VERSION_EXISTS。torrentStorageId 指向的種子已被其他資源或他人未逾期的預覽使用時回傳 409 CONFLICT,error.reason 為 TORRENT_IN_USE。回放與 503 重試規則見「介面約定與鑑權」。
