Browse the documentation

What the FreshPerf API is

The FreshPerf API does from your scripts and servers what you do in the dashboard: services, billing, orders, support.

The APIDetail
Base URLhttps://api.freshperf.fr/v1
FormatJSON in, JSON out
AuthenticationAuthorization: Bearer fpk_..., a key created under Account > API keys
Reachyour own account, or an account shared with you when its owner allows keys on it (see Authentication and API keys)
Full referencefreshperf.fr/api-reference

A key carries the permissions you tick, narrows to a list of services and a list of IP addresses, can expire, and revokes with effect on the next call. The dashboard counts every call of a key hour by hour for 30 days, and lists its writes, errors and refusals one by one.

What you can do

AreaOperationsArticle
Serviceslist, detail, live status, resource history, start / stop / restart, console, backups, reinstall, rename, resume and advance the renewal, add-onsManaging services
Game serversfiles, worlds, SFTP, databases, scheduled tasks, startup, server software, mods and plugins, game settingsGame servers
Service actionsfirewall and reverse DNS, through POST /services/{code}/actions/{action}Managing services
Billinginvoices and credit notes with their PDFs, prepaid balance and its ledger, stored payment methods, paying an invoiceInvoices, balance and payments
Orderscatalogue, placing an order, paying it, following itOrdering through the API
Support and accounttickets, SSH keys, notifications, delegated access, profileTickets, SSH keys and account

The firewall and reverse DNS have no dedicated route. They go through the service action gateway, with arguments specific to each type of service.

What stays in the dashboard

  • Stopping a renewal. PATCH /services/{code} with autoRenew: false answers 400 RENEWAL_CANCELLATION_NOT_AVAILABLE_VIA_API. Resuming it (autoRenew: true) does go through.
  • Managing API keys. No /v1 route creates, lists or revokes one.
  • Adding or removing a payment method. The API reads the list and charges it; it does not fill it.
  • The interactive console, file uploads, sub-users, referral withdrawals.

Where to find what

ResourceContents
This sectionkeys, permissions, conventions, and every route with its fields and errors
/api-referencethe reference generated from the code, with a try-it console. English
https://api.freshperf.fr/v1/openapi.jsonthe same content for machines. The only route of the API that takes no key
status.freshperf.frthe platform's state. Its own API, no key needed: see Status page API

Reading order

  1. Getting started in five minutes: create a key, make a first call.
  2. Authentication, Permissions, Securing your keys: what a key can do and how to bound it.
  3. Requests and responses, Rate limits and idempotency: the conventions every route follows.
  4. Managing services, Game servers, Invoices, balance and payments, Ordering through the API, Tickets, SSH keys and account: the contract of each route.
  5. Error reference and Tools, OpenAPI and code samples when you need them.