Adds an account (checked right away)
POST
/accountsRequires: Cookie fret_session / Bearer
Request body
application/jsonobjectrequired
pluginstringrequiredlabelstringloginstringUser name, for services whose credentials are login_password or login_key
apiKeystringrequiredAPI key, token, premium key or password
Responses
201AccountAccount
idintegerkindstringpluginstringlabelstringenabledbooleanstatusstringpremiumbooleanusernamestringdetailstringerrorstringexpiresAtstring (date-time) | nullcheckedAtstring (date-time) | nullkeyHintstringLast 4 characters of the key (not for passwords)
loginstringUser name, for services that take one
400Errorobject
errorobjectFields · 2
codestringmessagestring
Request
curl -X POST "http://localhost:8080/api/v1/accounts" \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{ "plugin": "alldebrid", "label": "string", "login": "string"}'const response = await fetch('http://localhost:8080/api/v1/accounts', { method: 'POST', headers: { Authorization: 'Bearer <TOKEN>', 'Content-Type': 'application/json', }, body: JSON.stringify({ "plugin": "alldebrid", "label": "string", "login": "string" }),});const data = await response.json();import requests
response = requests.post( "http://localhost:8080/api/v1/accounts", headers={ "Authorization": "Bearer <TOKEN>", }, json={ "plugin": "alldebrid", "label": "string", "login": "string", },)response.raise_for_status()print(response.json())Response
{ "id": 0, "kind": "hoster", "plugin": "string", "label": "string", "enabled": true, "status": "unknown", "premium": true, "username": "string", "detail": "string", "error": "string", "expiresAt": "2026-01-01T12:00:00Z", "checkedAt": "2026-01-01T12:00:00Z", "keyHint": "string", "login": "string"}{ "error": { "code": "not_found", "message": "string" }}