Integrations overview
How other applications, such as Sonarr, Radarr, scripts, Prometheus and the browser extension, connect to DownloadPulse, and what they may do.
- Desktop
- Server
On this page
An integration is another program that sends downloads to DownloadPulse or reads from it: Sonarr, Radarr, a script, a monitoring tool or the browser extension. Each one connects with a credential of its own and acts as a requester. It asks for downloads and follows them, and DownloadPulse decides everything else. This page explains the model. The pages after it give the exact steps for each kind of integration.
What an integration is
Link to this section: What an integration isMost integrations connect through an Integration account. That is an account for an external application, not for a person.
- It cannot sign in to the DownloadPulse interface. It never uses a browser session.
- It authenticates with API tokens (
dp_…) that an Admin issues for it. A token is shown once, when it is issued. - Each token is its own client. It sees only the jobs submitted with it, so two tokens never see each other’s jobs, even on the same account.
- Every download it submits is recorded as a request owned by that account and that token. In a download’s details, Requested By shows it as
Integration · token "<label>".
The browser extension is the exception. It does not use an Integration account. It connects to a person’s account with a browser token of its own, approved by that person. See Connected browsers.
What an integration can do
Link to this section: What an integration can doWith its tokens, an Integration account can:
- submit jobs into a Delivery Profile category it is allowed to use, follow them and withdraw them;
- add downloads through the API;
- ask to pause or resume its own jobs. DownloadPulse may decline, for example when another account also needs the transfer or processing is paused globally;
- read the Prometheus metrics at
/api/metrics; - read the aggregate statistics at
/api/stats(for example for a dashboard such as Homepage).
What it cannot do
Link to this section: What it cannot doAn integration cannot:
- pause, delete, reorder, prioritize, retry or redirect transfers directly;
- choose a service, engine, queue position or destination folder;
- change Settings, or see the Dashboard, Downloads, statistics pages, diagnostics or other accounts’ requests;
- see other clients’ jobs.
Removing a job in the application withdraws that application’s request, or acknowledges the delivery once it is complete. The transfer itself stops only if nobody else still needs it. Completed files are never deleted for an integration.
The integrations
Link to this section: The integrations| Integration | How it connects | Page |
|---|---|---|
| Browser extension | Pairs with a person’s own account and receives a browser token | Browser extension, Connected browsers |
| Scripts and your own tools | The native external-client API (/api/external/v1) and the request API, with an Integration token |
API and tokens |
| Sonarr and Radarr | As a SABnzbd or qBittorrent download client, with an Integration token as the API key and a Delivery Profile for its category | Sonarr and Radarr |
| Prometheus | Scrapes /api/metrics, with an Integration token when sign-in is on |
Prometheus |
| Discord and other webhooks | DownloadPulse sends messages to a webhook. No token is involved | Notifications |
Where you manage integrations
Link to this section: Where you manage integrationsAn Admin manages integrations in Settings › Users & Access. On a Standalone installation, including every desktop app, the same tab is called Settings › Access & Integrations.
Desktop: the desktop app is always Standalone. It has no User Accounts card, because only the built-in Administrator signs in. Integration Accounts and Integration Delivery Profiles are there and work exactly as on a server.
The tab holds two cards for integrations.
Integration Accounts
Link to this section: Integration AccountsThis card lists every Integration account, with its tokens beneath it. Its subtitle reads “Automation that submits downloads through the API. A token is shown once, when it is issued.”
- Add Integration Account creates an account. Give it a Name, for example the application it stands for.
- Issue Token creates a new token for an enabled account. You name it with a Token Label, and its secret is shown once.
- Each token row shows Token (its label), Issued, Status (Active) and Revoke.
- Disable stops all of the account’s tokens and withdraws its outstanding requests. Enable turns the account back on.
- Delete also revokes its tokens permanently.
- Click an account’s name for its Account details.
A default Integration account called Automation always exists. It holds no token until you issue one, and it cannot be deleted.
The same card also lists every person’s Connected browsers. See Connected browsers.
Integration Delivery Profiles
Link to this section: Integration Delivery ProfilesThis card appears beneath Integration Accounts. Its subtitle reads “Configure how external applications access completed downloads.” A Delivery Profile tells an application such as Sonarr or Radarr:
- which categories it may submit to;
- which kinds of source it may send (Source Types);
- which tokens may use the profile (Authorized API Tokens);
- where it will find the finished files (DP Download Path in DownloadPulse’s Download Folder, and External Import Path, the same folder as the application sees it);
- how long a completed download is offered to it (Retention).
A profile never changes where DownloadPulse downloads, which service is used or the queue order. Files are shared in place: nothing is copied, moved or deleted for the application.
Note: the Sonarr and Radarr connections (the SABnzbd and qBittorrent interfaces) stay unavailable, answering
404 Not Found, until a profile has a category, accepts a Source Type that interface uses, and authorizes an active API token. See Sonarr and Radarr for every field.
Where applications reach DownloadPulse
Link to this section: Where applications reach DownloadPulseServer: applications use the address and port where they reach the DownloadPulse container. The container listens on port
8095. The Docker port mapping sets the published port, not the application.
Desktop: applications reach the desktop app at its Local Port,
http://127.0.0.1:8095unless changed. You find it in Settings › Access & Integrations › Deployment & Language. It listens on this computer’s loopback address only, so the applications must run on the same computer. A change applies at once. If an application connected through the old port in the past week, DownloadPulse names it and asks first. The port must be a whole number from 1024 to 65535.
Tokens, sign-in and open installations
Link to this section: Tokens, sign-in and open installationsIntegration tokens are added on top of sign-in. They do not create a token-only mode, and they do not protect an installation that runs without sign-in.
- An invalid or revoked token is refused in every mode, including on an installation without sign-in.
- The Sonarr and Radarr connections always need a token, even when the installation has no sign-in.
- When sign-in is on,
/api/metricsand the rest of the API need a credential too.
Related pages
Link to this section: Related pages- Connected browsers: browsers connected to people’s accounts.
- API and tokens: tokens, revocation and the external-client API.
- Sonarr and Radarr: step-by-step setup for both download-client types.
- Prometheus: scraping metrics.
- Users and roles: the four roles, including Integration.