F4 Panel πŸ“– User manual ΰΉ„ΰΈ—ΰΈ’EN Sign in β†’

← All chapters

πŸ”Œ API & integrations

Create tokens, scope them, lock them to an IP, and drive the panel from your billing system or scripts

Create a token

1
Open API, scroll to the create form and give the token a name you will recognise.
2
Tick the narrowest scopes that do the job, or β€œFull access” only if you really need it.
3
Optionally restrict to allowed IPs (CIDR supported). Blank means any IP.
4
Create it and copy the token β€” treat it exactly like a password.
GroupScopes it contains
🌐 Websites
sites:*
sites:read β€” List sites, read details and bandwidth
sites:write β€” Create new websites
sites:delete β€” Delete websites (including ?purge=1, which drops files and databases)
sites:php β€” Switch a site PHP version
sites:wordpress β€” Install WordPress on a site
sites:suspend β€” Suspend / unsuspend a site
πŸ“ Files
files:*
files:write β€” Upload files into a site and extract .zip archives
files:link β€” Mint a one-time link into the file manager
πŸ—„ Databases
db:*
db:read β€” List a site databases (never passwords)
db:write β€” Create a database for a site
db:import β€” Import a dump over a database
db:link β€” Mint a one-time link into phpMyAdmin
πŸ‘₯ Members
members:*
members:read β€” List members, read their details and usage
members:write β€” Create member accounts
members:password β€” Set a member panel password
members:plan β€” Move a member to another plan
members:suspend β€” Suspend / unsuspend a member account
members:ssh β€” Grant or revoke a member shell access
members:delete β€” Delete a member (including ?purge=1, which deletes all their sites)
πŸ”‘ Login links & provisioning
access:*
sso β€” Mint a one-time login link as a user (120s TTL)
provision β€” Provision in one call: member + site + WordPress + DNS zone + login link
πŸ“¦ Plans
plans:*
plans:read β€” List the plans you may sell
plans:write β€” Create and edit plans
plans:delete β€” Delete a plan
πŸ“Š Server & cron
monitor:*
server:read β€” Read server statistics
cron:read β€” Read the cron job list
πŸ’‘ A scope is one action on one group β€” sites:read only reads, while sites:* is the whole group. Older tokens using the names sites, members, plans, server and cron keep working unchanged and need no reissuing.

Making a call

Every request carries the token in an Authorization: Bearer … header. The base URL is https://host-th-sv1.f4host.com/api/v1.

curl -H "Authorization: Bearer f4_xxxxxxxx" \ https://host-th-sv1.f4host.com/api/v1/sites # ΰΈ—ΰΈ”ΰΈͺΰΈ­ΰΈšΰΉ„ΰΈ”ΰΉ‰ΰΉ‚ΰΈ”ΰΈ’ΰΉ„ΰΈ‘ΰΉˆΰΉ€ΰΈ›ΰΈ₯ΰΈ΅ΰΉˆΰΈ’ΰΈ™ΰΈ­ΰΈ°ΰΉ„ΰΈ£ΰΈˆΰΈ£ΰΈ΄ΰΈ‡ β€” sandbox / dry-run: curl -H "Authorization: Bearer f4_xxxxxxxx" \ https://host-th-sv1.f4host.com/api/sandbox/v1/sites
πŸ’‘ The /api/sandbox/v1/… prefix authenticates and validates exactly like production but changes nothing β€” ideal while you build.

One-time login links (SSO)

Your billing system calls POST /api/v1/sso to mint a single-use login link for a customer. They click it on your site and land in the panel with no second password to remember β€” and you can attach a destination, e.g. straight into a site's file manager.

← Previous⏰ Cron jobs β€” scheduled work Next β†’πŸ‘€ Your account & security
Every chapter
πŸš€ Getting started🌐 Creating & managing websitesπŸ›° Pointing DNS at this serverπŸ”’ SSL / HTTPS certificates🌿 Subdomains & extra domainsπŸ“ File manager & code editorπŸ“‘ FTP / FTPSπŸ–₯ SSH / SFTP and the web terminalπŸ™ Deploying from GitπŸ—„ Databases🧩 The app installer⏰ Cron jobs β€” scheduled workπŸ”Œ API & integrationsπŸ‘€ Your account & security🧯 Common problems
F4 Panel Β· hosting control panel Β· developed by F4 Code