New shipment
POST
/packagesRequires: Cookie fret_session / Bearer
Request body
application/jsonobjectrequired
linksstring[]requiredhttp(s) links; an entry may hold several, separated by whitespace.
namestringEmpty: the file name for a single link; a shipment of several links stays unnamed
dirstringWarehouse subfolder (without "..")
priorityPrioritypasswordstringProtected links and archives
Responses
201CreatedPackage
idintegernamestringEmpty for an unnamed shipment of several parcels: the client words it ("Shipment of 3 parcels")
dirstringpriorityPrioritypositionintegerheldbooleanCollected, awaiting confirmation
sourcestringcreatedAtstring (date-time)storedAtstring (date-time) | nullStored in the warehouse; null while on the dock
filesFile[]Fields · 19
idintegernumberstringpackageIdintegerurlstringnamestringsubdirstringPlace in a consignment's folder tree, inside the shipment's warehouse folder; empty at its root
sizeinteger-1 when unknown
receivedintegerspeedintegerbytes/s
hosterstringdebridstringstatusStatusParcel status, see Statuses
errorstringattemptsintegerwaitUntilstring (date-time) | nullunpackedbooleanunpackErrorstringcreatedAtstring (date-time)updatedAtstring (date-time)
400Errorobject
errorobjectFields · 2
codestringmessagestring
Request
curl -X POST "http://localhost:8080/api/v1/packages" \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{ "links": [ "string" ], "name": "string", "dir": "string", "priority": "express", "password": "string"}'const response = await fetch('http://localhost:8080/api/v1/packages', { method: 'POST', headers: { Authorization: 'Bearer <TOKEN>', 'Content-Type': 'application/json', }, body: JSON.stringify({ "links": [ "string" ], "name": "string", "dir": "string", "priority": "express", "password": "string" }),});const data = await response.json();import requests
response = requests.post( "http://localhost:8080/api/v1/packages", headers={ "Authorization": "Bearer <TOKEN>", }, json={ "links": [ "string", ], "name": "string", "dir": "string", "priority": "express", "password": "string", },)response.raise_for_status()print(response.json())Response
{ "id": 0, "name": "string", "dir": "string", "priority": "express", "position": 0, "held": true, "source": "", "createdAt": "2026-01-01T12:00:00Z", "storedAt": "2026-01-01T12:00:00Z", "files": [ { "id": 0, "number": "FR-0042", "packageId": 0, "url": "string", "name": "string", "subdir": "string", "size": 0, "received": 0, "speed": 0, "hoster": "string", "debrid": "string", "status": "queued", "error": "string", "attempts": 0, "waitUntil": "2026-01-01T12:00:00Z", "unpacked": true, "unpackError": "string", "createdAt": "2026-01-01T12:00:00Z", "updatedAt": "2026-01-01T12:00:00Z" } ]}{ "error": { "code": "not_found", "message": "string" }}