Changelog¶
Versioning¶
The version is in the path: /api/v1. Changes within v1 are additive, so code written against v1 keeps working:
- new endpoints;
- new optional fields in requests, and new fields in responses;
- new values in enumerations, such as a new action type, order status or error code.
Write clients that ignore fields they don't know, and treat an unknown value by what they can tell from the rest: an unknown error code by its HTTP status, for example.
A breaking change, such as removing or renaming a field or changing what one means, comes as a new version at /api/v2/, announced here.
1.0.0¶
The first version of the HostHatch API, at https://console.hosthatch.com/api/v1.
- API keys sent as Bearer tokens, with names, expiry, read-only keys and revocation on a password change, and
GET /me/. - Projects: list and read the projects you belong to, with your role in each, member, admin or owner.
- Servers: list, detail, rename, reverse DNS, cancellation and withdrawing it, moving servers between your projects, and adding servers in no project.
- Actions for power, reboot, reinstall, root password reset, IPv6 and private networking, with one exclusive action per server and
Idempotency-Keyon every start. - Orders for new servers, upgrades, extra bandwidth and IP address changes, from the catalogue of images, locations, plans and promo codes, paid from account credit or in the console, and invoices to list and pay with credit or a saved card.
- Snapshots and ISOs: take, restore and delete snapshots, upload a custom ISO, and mount ISOs on servers.
- Firewalls: groups, rules, and attaching groups to servers.
- SSH keys, with fingerprints and duplicate detection.
- Problem details errors with stable codes, rate limits per key, and paginated lists.