Admin panel

Branding and API

What this does: the Branding and API group puts your own name, logo, look and languages on the panels and the store, adds signed add-ons, and lets other programs talk to your server. It is also where you find your freePanel Licence (the last tool of the group).

When you need it: when you set up your business on the server, when you connect a billing system or a script, and when you renew or move your licence.

To open a tool of this group, sign in to the admin panel, click Branding and API in the menu on the left, then click the tool's name. Two words come up on several pages:

Branding

What this does: shows your own name, help link and logo on every panel and sign-in page instead of freePanel's.

When you need it: when you set up your hosting business, so your customers see your brand.

Where: Branding and API > Branding

  1. Open Branding and API > Branding.
  2. In Name, type your business name, for example Example Hosting. Leave it empty to show freePanel.
  3. In Help link, type where the panels' Help link should go: a web address that starts with https://, such as https://help.example.com, or mailto: followed by one email address, such as mailto:help@example.com.
  4. Click Save. The page says "Saved. Every panel shows it from the next page it opens."
Name and help link: Example Hosting in Name (2), https://help.example.com in Help link (3), and the Save button (4)
  1. Make your logo a PNG or JPEG picture of at most 256 KB and at most 1024 pixels on each side. A wide logo about 40 pixels high fits best.
  2. In Logo, click Choose File under Logo file (it reads New logo file when you have a logo already) and choose the picture on your computer.
  3. Click Upload logo. The page says "The new logo is on every panel now." and shows it under The logo the panels show now.
Logo: the logo the panels show now (a blue bar), the New logo file box with its Choose File button (2), the Upload logo button (3) and the Remove logo button

To go back to showing your name, click Remove logo, then confirm.

If something goes wrong

Resellers can set their own branding for their customers in Resellers > Reseller branding, if you allow it.

Themes

What this does: changes the look of your storefront and client area (the pages where your customers buy hosting and pay their bills). A theme is a package of page designs. You upload one as a zip file, preview it, and then make it the one visitors see.

When you need it: when you want your store to look like the rest of your website.

Where: Branding and API > Themes

What visitors see at the top says which theme is live now, and which one was live before it.

What visitors see: the site is shown with Aurora 1.2.0, before it Aurora 1.1.0, with Download the live theme and Roll back buttons

To upload a theme

  1. Open Branding and API > Themes and go to Upload a theme.
  2. Click the Theme zip box and choose the theme's zip file on your computer, for example harbour-1.0.0.zip. It can be at most 16 MiB.
  3. Click Upload and check. The theme is checked before anything is installed. When it passes, the page says it is installed.
Upload a theme: harbour-1.0.0.zip chosen in Theme zip (2) and the Upload and check button (3)

To preview a theme and make it live

  1. In Installed themes, find the theme, for example Harbour 1.0.0, the one you just uploaded.
  2. Click Preview. The theme opens in a new browser tab so you can look at it. Visitors don't see it yet.
  3. Click Activate, then Yes, activate. Visitors see the new theme at once.
Installed themes: the built-in Default 1, Aurora 1.2.0 (active), Harbour 1.0.0 with its Preview (2) and Activate (3) buttons, and Midnight 0.9.0, which fails its check because it asks for scripts that are not enabled

To go back to the theme that was live before, click Roll back in What visitors see, then Yes, roll back. Rolling back again undoes it.

To make your own theme, click Download the theme kit in Make your own theme. It is the built-in theme as a zip, with a guide. Unzip it and change it. Then open the file theme.json in the theme's folder and change two lines: "id" (a short name of your own in small letters, such as "harbour") and "version" (such as "1.0.0"). Zip the folder again and upload it. To upload a newer version later, raise the version number in theme.json.

If something goes wrong

Store themes

What this does: lets a reseller change the look of its own store, and the colour of the hosting panel its customers sign in to. A reseller is a customer of yours who sells hosting to customers of their own.

When you need it: you don't use this tool yourself. It is for your resellers: they see it in their own panel. (The Themes tool above is the one for your own store.) This section helps you answer their questions.

Where: Branding and API > Store themes (in a reseller's panel)

To change the look of a reseller's store (done by the reseller)

  1. The reseller opens Branding and API > Store themes in their panel.
  2. In Your themes, they click Preview on a theme to look at it, then Activate and Yes, activate. (The active theme has no Activate button.) Use this under The server's theme goes back to your theme, under their own name and logo.
  3. To upload a theme of their own, they use Upload a theme, just as on Themes.
Your themes, as a reseller sees them: the server's theme with a Use this button, and Aurora 1.2.0, active and passing its check, with its Preview button marked 2 and the Settings and Download buttons

To set the colour of a reseller's customers' panel (done by the reseller)

  1. In Your customers' panel colour, the reseller clicks the colour box under Brand colour and picks a colour.
  2. They click Save colour. Their customers see the new colour at once.
  3. To go back to the panel's own colours, they click Use the panel's own. This button appears only once a colour is saved.
Your customers' panel colour, as a reseller sees it: the Brand colour box (1), the Save colour button (2) and the Use the panel's own button (3)

If something goes wrong

Theme scripts

What this does: chooses which outside scripts your themes may load. A script is a small program that runs in your visitors' browsers, such as a chat window or a payment widget. A theme can load a script only when it asks for it and you enable it here.

When you need it: when a theme you uploaded says it asks for scripts that are not enabled.

Where: Branding and API > Theme scripts

To enable a script a theme asks for

  1. Open Branding and API > Theme scripts. Scripts the themes ask for lists each script's address and which theme asks for it.
  2. Tick the script, but only if you trust whoever runs it: it will run in every visitor's browser.
  3. Click Save. The page says "Saved. The active theme was checked again."
Enabled scripts: https://cdn.example.com/widget/1.4.0/widget.js, asked for by midnight, with its box marked 2, the Enable another URL box, and the Save button (3)

To enable a script before you upload the theme that needs it, type its address in Enable another URL (it must start with https://) and click Save.

If something goes wrong

Languages

What this does: chooses which translations the panels offer, and the language people see until they choose their own.

When you need it: when most of your customers speak a language other than English.

Where: Branding and API > Languages

To offer a language and make it the default

  1. Open Branding and API > Languages.
  2. In Translations offered, tick each language your customers may choose, for example Español. English is always offered. Each line says how many texts are translated.
  3. In Default language, choose the language for everyone who has not chosen one, and for the sign-in page.
  4. Click Save. The page says "Saved."
Languages: English always offered, Español (214 texts translated) ticked (2), Português (Brasil), the Default language list (3) and the Save button (4)

A language you stop offering disappears from the list. People who chose it get it back if you offer it again.

If something goes wrong

Plugins

What this does: adds signed add-ons that put new pages in your admin panel. A plugin is a package made by someone else. It is signed: the author marks it with a key, so you can be sure who made it and that nobody changed it. You decide whose keys you trust, and you approve exactly what each plugin asks to do.

When you need it: when a company you work with gives you a freePanel plugin, for example to show their service's status in your panel.

Where: Branding and API > Plugins

Installing a plugin has four steps: trust the author's key, upload the package, approve what it asks for, and turn it on.

To trust a plugin author's key

  1. Get the author's public key from the author directly (for example from their website), not from the package. It is 44 characters long.
  2. Open Branding and API > Plugins and go to Trusted keys. In Name for this key, type a name you will recognise, for example Example Studio.
  3. In Public key, paste the key.
  4. Type your own password in Your password.
  5. Click Trust this key. The page says "You now trust the key "Example Studio"."
Trusted keys: Example Studio in Name for this key (2), the public key pasted (3), the password filled in, and the Trust this key button (5)

Only trust a key when you know whose it is. Its owner can sign plugins that you then read and approve.

Afterwards the panel names the key by a short code of 16 letters and digits, for example Signed by Example Studio, key b44efdc6bab6e171. That short code is an ID worked out from the key (its fingerprint), not the key itself, so it never matches the 44 characters you pasted. To compare, ask the author for the key's fingerprint.

To install a plugin

  1. Trust the author's key first (see above).
  2. In Install a plugin, click the Plugin package box and choose the plugin file (it ends in .fpplugin).
  3. Click Check and install. The server checks the signature before it reads anything from the package. The page then says the plugin is installed and asks you to approve its permissions.
Install a plugin: status-board-1.0.0.fpplugin chosen in Plugin package (2) and the Check and install button (3)

To approve a plugin and turn it on

  1. In Installed plugins, read each permission the plugin asks for. You approve exactly this list.
  2. Type your own password in Your password.
  3. Click Approve these 2 permissions (the button counts them). The page says the plugin is approved.
    Installed plugins: Status board 1.0.0, waiting for your approval, asks to show pages in the admin panel and to show the server's status; the password is filled in (2) and the Approve these 2 permissions button is marked 3
  4. Type your password again in Your password.
  5. Click Turn on. The page says the plugin is on, and its pages appear in the panel.
    Status board, approved and Off: the password filled in (4) and the Turn on button (5)

To stop a plugin, click Turn off. To remove it and its files, click Remove, then confirm.

If something goes wrong

To confirm a plugin on the server

Only a plugin that shows Confirm on the server needs this.

  1. In Installed plugins, find the plugin and its Confirm on the server box. It shows the exact commands for this plugin.
  2. Sign in to the server's terminal as root (see the box above).
  3. Copy each command from the page, paste it in the terminal and press Enter, one after the other.
  4. Go back to the panel and reload the page. The plugin's program can now run.

API reference

What this does: shows the full reference of the panel's API, as it is for the version running on your server: every route, what it takes and what it answers. A route is one address of the API, such as GET /server/status.

When you need it: when you or a developer write a script or connect a billing system to the panel.

Where: Branding and API > API reference

To find a route

  1. Open Branding and API > API reference.
  2. In Search the reference, type at least two characters, for example API tokens. The sections that hold the words are listed. Press Escape to clear it.
  3. Or choose a part of the reference in Section, then use Next section and Previous section to move through it.
Find a route or a word: API tokens typed in Search the reference (2) and the Section list

If something goes wrong

API shell

What this does: lets you try the API as yourself, in the browser: choose a route, send it and read the answer. It can also copy the request as a curl command. curl is a small program that sends web requests from a terminal (the text window where you type commands on a computer or server).

When you need it: before you write a script, to see what a route answers.

Where: Branding and API > API shell

To try a route

  1. Open Branding and API > API shell.
  2. In Route, choose a route, for example GET /server/status. To find one, type part of it in Find a route.
  3. Click Send.
    Request: GET /server/status chosen in Route (2), the Send button (3) and the Copy as curl button
  4. Read the Answer: the status (200 OK means it worked), the headers (extra lines of information sent with the answer), and the body. The body is in JSON, the plain-text format the API uses: names in quotes, each followed by its value.
    Answer: 200 OK for GET /api/v1/server/status, the headers, and the body with the hostname server.example.com, the load, memory, disk and accounts

    The answer names the full address, /api/v1/server/status. The route list leaves out the /api/v1 at the start, which every route has.

A request that changes something (anything but GET) asks first: click Send it to go ahead, or Don't send. It works exactly as if you made the change on its page.

To get the same request as a command, click Copy as curl. Put an API token in place of the token mark in the command; your sign-in is never copied.

If something goes wrong

API tokens

What this does: makes tokens that let a script or a billing system use the panel's API without signing in. Each token is yours, ends on a date, and can be limited to the addresses it may be used from.

When you need it: when you connect a billing system, a monitoring tool or your own script to the panel.

Where: Branding and API > API tokens

To make a token

  1. Open Branding and API > API tokens and go to Make a token.
  2. In Name, type what the token is for, for example Uptime monitor. Each name is used once.
  3. In What it may do, choose Read only unless the program must change things.
    • Read only can't change anything. But it can read a lot: the logs, the audit log, and the files and backups of every account. Keep it as private as a password.
    • Full may do what you can do in the panel, except what makes or protects a way in: sign-in, passwords, two-factor, API tokens, event hooks, root access, the licence, logins, resellers, team members and set-up. Everything else, such as making and removing accounts, it can do.
  4. In Valid for (days), type how long it works, for example 90. It is not renewed.
  5. In Addresses it may be used from, type the program's address or range, one per line, for example 203.0.113.0/24. Leave it empty for any address.
  6. Type your own password in Your password.
  7. Click Make token.
    Make a token: Uptime monitor in Name (2), Read only chosen (3), 90 days, 203.0.113.0/24 in the addresses, the password, and the Make token button (7)
  8. The token is shown this once. Click Copy the token and paste it where your program keeps its secrets.
  9. Click I have copied it.
    Your new token: Uptime monitor, shown once, with the Copy the token (8) and I have copied it (9) buttons

Using a token at the bottom of the page shows an example. Whoever sets up the program puts the token in its settings; see What a request looks like below.

What a request looks like

A program talks to the API by sending requests. Each request has three parts:

For example, this command (typed in a terminal) asks for the server's status with a token:

curl -H "Authorization: Bearer fpt_…" https://server.example.com:7443/api/v1/server/status

To revoke a token

  1. In Your tokens, find the token. Each shows what it may do, when it ends, when it was last used and from where.
  2. Click Revoke on the token, then confirm. Anything that uses it stops working at once.
Your tokens: Billing sync (read only, ends in 62 days, works only from 203.0.113.0/24) with its Revoke button marked 2, Deploy script (full) and Old report (ended)

A new password ends all your tokens: make new ones after you change it. If a token may have leaked, revoke it.

If something goes wrong

Event hooks

What this does: tells another system when something is done on this server, for example when an account is made. Each hook is a web address that gets one signed request for every action you chose. "Signed" means the request carries a code made with a secret, so the receiver knows it came from your server.

When you need it: when a billing system, a chat channel or your own tool should hear about changes at once, without asking the panel again and again.

The other side (the "receiver") is a web address run by that other system. Whoever runs it sets it up to accept the requests and check them with the secret; you only give them the address's details and the secret. If you don't run the receiving system yourself, ask its provider for the address to use.

Where: Branding and API > Event hooks

To make a hook

  1. Open Branding and API > Event hooks and go to Make a hook.
  2. In Name, type what the hook is for, for example Status page.
  3. In Address, type the https address that receives the requests, for example https://status.example.com/hooks/freepanel.
  4. In Actions, type one action per line, for example account.create. account.* means every account action, and * means everything. The names are the ones in the Audit log.
  5. Leave Send as soon as it is made ticked.
  6. Type your own password in Your password.
  7. Click Make hook.
    Make a hook: Status page in Name (2), https://status.example.com/hooks/freepanel in Address (3), account.create in Actions (4), the password, and the Make hook button (7)
  8. The signing secret is shown this once. Click Copy the secret and give it to whoever runs the receiving system (or paste it in its settings yourself).
  9. Click I have copied it.
    The signing secret of Status page, shown once, with the Copy the secret (8) and I have copied it (9) buttons

To check that a hook works

  1. Open Branding and API > Event hooks and find the hook in Your hooks.
  2. Click Send a test on the hook.
  3. Read the message. "The test was delivered: the address answered 204 in … ms." means it works. The number is the code the receiving address answered with: any code from 200 to 299 means "received" (204 is one of them). A code of 400 or more, such as 500, means the receiving system had a problem.
Your hooks: Billing system (On, account.* and backup.pass, last sent and delivered) with its Send a test button marked 2, and Chat alerts (Off, its last delivery failed: the address answered 500)

Deliveries shows what was sent recently. Turn off stops a hook without removing it; actions that happen while it is off are never sent. New secret replaces the secret; the old one stops working at once.

If something goes wrong

Licence

What this does: shows whether this server is licensed, checks again with freePanel's licence service, lets you enter a new licence key, and frees an old server that used the same licence.

When you need it: when you enter your licence key the first time, when you renew it, and when you move freePanel to a new server.

Where: Branding and API > Licence

To check the licence

  1. Open Branding and API > Licence. Licence status says Licensed when all is well, with who it is licensed to and until when. The Valid until date is always about a week ahead: the server checks its licence once a day by itself, and each check moves the date forward. It is not the date your licence ends.
  2. Click Check now to ask the licence service again. The page says "Checked." followed by the state.
Licence status: Licensed, licensed to Example Hosting, plan standard, valid until Nov 16, 2026, the last checks, and the Check now button (2)

To enter a new licence key

  1. Copy the whole key you received. It starts with FP1..
  2. In Change the licence key, paste it in Licence key. Spaces and line breaks don't matter.
  3. Click Save key. The key in use stays until the new one is accepted.
Change the licence key: the Licence key box (2) and the Save key button (3)

To move the licence to a new server

  1. Install freePanel on the new server (see the install guide in the Getting started part).
  2. On the new server, open Branding and API > Licence and paste the same licence key you use on the old server (see To enter a new licence key above). If the licence has no free place, the new server's panel says "The licence is in use on another server." and only the Licence page opens. That is expected: the next step frees the place.
  3. On the same page, go to Servers using this licence.
  4. Find the old server and click Free, then confirm. The new server takes its place at once and its panel opens.
Servers using this licence: 2 of 2 in use, server.example.com (this server) and old-server.example.com with its Free button marked 4

The old server's panel locks at its next check. Its websites and email keep running. A server that stays silent for 7 days frees its place by itself.

If something goes wrong