From "what is an API" to actually managing a server's lifecycle, snapshots, and configuration through code — no dashboard clicking required.
An API (Application Programming Interface) is a defined way for two pieces of software to exchange requests and data — without either one needing to know how the other works internally.
These are two different things, and mixing them up causes confusion. Most websites consume APIs. Far fewer expose one of their own.
These get confused because both are often used for "automation." But one is about who's asking, the other is about when it runs.
| Dimension | API | Cron Job |
|---|---|---|
| Trigger | An external request, on demand | The clock, on a fixed schedule |
| Needs a caller? | Yes — no request, no action | No — runs regardless |
| Typical use | "Create a snapshot right now" | "Create a snapshot every night at 2am" |
| Response expected? | Usually yes, immediately | No caller waiting on a reply |
Every API action boils down to one of these methods. Here's what each one looks like when it's your VPS on the other end.
| Method | Purpose | Changes data? | VPS API example |
|---|---|---|---|
| GET | Retrieve information | No | List your VPS instances, check server status |
| POST | Create something new | Yes | Create a new snapshot, provision a new VPS |
| PUT | Update existing data | Yes | Set a new hostname, update firewall rule |
| DELETE | Remove data | Yes | Delete an existing snapshot |
This is a REST API — regular HTTPS URLs, JSON responses — that lets you control your VPS the same way hPanel does, but from a script.
The snapshot endpoints let you capture your VPS's exact state before you risk breaking it — then roll back with a single call if needed.
| Feature | Manual Snapshot (API) | Automated Backup |
|---|---|---|
| Trigger | On-demand, via API/hPanel | Scheduled — weekly (daily optional) |
| Storage slots | Only 1 at a time — creating a new one overwrites the old | Up to 4 retained |
| Lifespan | Expires after 1 day; also deleted on OS reinstall or restore | Rolling retention |
| Best for | A quick checkpoint right before a risky change | Ongoing, long-term protection |
Here's how the pieces from this deck combine into something you'd actually run, plus the habits worth locking in before you touch DELETE.