NZB XML content as text or bytes.
Optional SAB add fields; defaults include category="*", script="Default",
priority=-100, and postProcess=-1.
The raw SAB add response containing status and optional nzo_ids.
Adds an NZB to the queue from a URL.
Calls SABnzbd mode=addurl.
Remote NZB URL.
Optional SAB add fields; defaults include category="*", script="Default",
priority=-100, and postProcess=-1.
The raw SAB add response containing status and optional nzo_ids.
Verifies configured credentials against the SABnzbd API.
Calls SABnzbd mode=auth.
The raw SABnzbd authentication response.
Cancels post-processing of a job.
Calls SABnzbd mode=cancel_pp.
SAB job identifier (nzo_id) currently in post-processing.
true when SABnzbd cancels post-processing.
Changes a queue job category.
Calls SABnzbd mode=change_cat.
SAB queue job identifier (nzo_id).
SAB category name.
true when SABnzbd accepts the category change.
Changes queue job post-processing options.
Calls SABnzbd mode=change_opts. SAB only accepts explicit modes here, so
UsenetPostProcess.default throws instead of being sent; there is no API to reset a job
back to its category default.
SAB queue job identifier (nzo_id).
Normalized post-processing mode to apply.
true when SABnzbd accepts the option change.
https://github.com/sabnzbd/sabnzbd/blob/develop/sabnzbd/api.py (_api_change_opts)
Changes queue job priority.
Calls SABnzbd mode=queue with name=priority.
SAB queue job identifier (nzo_id).
Shared normalized priority value.
The new queue position when reported by SABnzbd, otherwise undefined.
Changes a queue job post-processing script.
Calls SABnzbd mode=change_script.
SAB queue job identifier (nzo_id).
SAB configured script name.
true when SABnzbd accepts the script change.
Clears currently active warnings.
Calls SABnzbd mode=warnings with name=clear.
true when SABnzbd accepts the warning clear command.
Deletes a history job by its SAB nzo_id.
Calls SABnzbd mode=history with name=delete. SAB archives the job by default instead of
deleting it permanently, and del_files only removes the incomplete download folder of
failed jobs.
SAB history job identifier (nzo_id).
When true, also remove leftover files of failed jobs; defaults to false.
Optionalarchive: boolean
When false, permanently delete instead of archiving; defaults to SAB's setting.
true when SABnzbd accepts the delete command.
https://github.com/sabnzbd/sabnzbd/blob/develop/sabnzbd/api.py (_api_history_delete)
Deletes a queue job by its SAB nzo_id.
Calls SABnzbd mode=queue with name=delete.
SAB queue job identifier (nzo_id).
When true, also remove downloaded data files; defaults to false.
true when SABnzbd accepts the delete command.
Export the current state of the client. Can be restored with createFromState.
Triggers immediate RSS processing.
Calls SABnzbd mode=rss_now.
true when SABnzbd accepts the RSS trigger command.
Returns queue, history, categories, scripts, and status in normalized form.
Retrieves configured SABnzbd categories.
Calls SABnzbd mode=get_cats.
Categories normalized to shared Category objects.
Lists files for a queue job.
Calls SABnzbd mode=get_files.
SAB queue job identifier (nzo_id).
The raw file listing payload.
Loads full server and queue status details from SABnzbd.
Calls SABnzbd mode=fullstatus with skip_dashboard=1.
The full status payload.
Retrieves configured SABnzbd post-processing scripts.
Calls SABnzbd mode=get_scripts.
Scripts normalized to shared Script objects.
Retrieves per-server traffic totals from SABnzbd.
Calls SABnzbd mode=server_stats.
Aggregate and per-server transfer statistics.
Reads the SABnzbd version string.
Calls SABnzbd mode=version.
The SABnzbd version.
Retrieves the current SABnzbd warning list.
Calls SABnzbd mode=warnings.
All active warnings.
Lists history entries, optionally filtered and paged.
Calls SABnzbd mode=history.
Optionalquery: Omit<SabHistoryQuery, "lastHistoryUpdate">
Optional history filters, pagination, and archive controls.
The raw history payload including slots, or false when lastHistoryUpdate
matches SAB's current last_history_update and nothing changed.
Lists history entries, optionally filtered and paged.
Calls SABnzbd mode=history.
Optional history filters, pagination, and archive controls.
The raw history payload including slots, or false when lastHistoryUpdate
matches SAB's current last_history_update and nothing changed.
Lists queue entries, optionally filtered and paged.
Calls SABnzbd mode=queue.
Optional queue filters and pagination controls.
The raw queue payload including slots.
Moves a queue job to a target position.
Calls SABnzbd mode=switch.
SAB queue job identifier (nzo_id).
Target zero-based queue position.
true when SABnzbd accepts the move command.
Pauses a queue job by its SAB nzo_id.
Calls SABnzbd mode=queue with name=pause.
SAB queue job identifier (nzo_id).
true when SABnzbd accepts the job pause command.
Pauses post-processing tasks.
Calls SABnzbd mode=pause_pp.
true when SABnzbd accepts the post-processing pause command.
Pauses the global download queue.
Calls SABnzbd mode=pause.
true when SABnzbd accepts the pause command.
Pauses the queue and resumes it automatically after minutes.
Calls SABnzbd mode=config with name=set_pause.
Minutes to pause for.
true when SABnzbd accepts the timed pause.
Removes all queue jobs, optionally only those whose name contains search. Downloaded
files are deleted too.
Calls SABnzbd mode=queue with name=purge.
Optionalsearch: string
Optional case-insensitive name filter.
The removed queue ids.
Removes a job from the queue, falling back to history when the id is not queued.
Renames a queue job and optionally sets an archive password.
Calls SABnzbd mode=queue with name=rename.
SAB queue job identifier (nzo_id).
New queue job name.
Optionalpassword: string
Optional archive password; left unchanged when omitted.
true when SABnzbd accepts the rename command.
Resets SABnzbd quota counters.
Calls SABnzbd mode=reset_quota.
true when SABnzbd accepts the quota reset command.
Requests a standard SABnzbd restart.
Calls SABnzbd mode=restart.
true when SABnzbd accepts the restart command.
Requests SABnzbd restart with queue repair.
Calls SABnzbd mode=restart_repair.
true when SABnzbd accepts the repair restart command.
Resumes a queue job by its SAB nzo_id.
Calls SABnzbd mode=queue with name=resume.
SAB queue job identifier (nzo_id).
true when SABnzbd accepts the job resume command.
Resumes post-processing tasks.
Calls SABnzbd mode=resume_pp.
true when SABnzbd accepts the post-processing resume command.
Resumes the global download queue.
Calls SABnzbd mode=resume.
true when SABnzbd accepts the resume command.
Re-queues every retryable failed history job.
Calls SABnzbd mode=retry_all.
The new queue ids.
Re-queues a failed history job.
Calls SABnzbd mode=retry.
SAB history job identifier (nzo_id).
Optionalpassword: string
Optional archive password for the retried job.
The new queue id. SAB removes the history entry.
Triggers an immediate scan of the watched folder.
Calls SABnzbd mode=watched_now.
true when SABnzbd accepts the watched-folder scan command.
Sets the global download speed limit.
Calls SABnzbd mode=config with name=speedlimit.
Speed limit value passed directly to SABnzbd.
true when SABnzbd accepts the speed limit update.
Requests SABnzbd shutdown.
Calls SABnzbd mode=shutdown.
true when SABnzbd accepts the shutdown command.
Sorts the queue. SAB keeps priority ordering, sorting only within each priority.
Calls SABnzbd mode=queue with name=sort.
Field to sort by.
Sort direction; defaults to ascending.
true when SABnzbd accepts the sort command.
Staticcreate
Adds an NZB to the queue by file upload.
Calls SABnzbd
mode=addfile.