API Reference
OpenAPI, Postman and pagination
Copy page
The Hostino API's OpenAPI spec, importing it into Postman, and paginating lists
OpenAPI spec
The full API spec (OpenAPI 3.1) is always up to date at:
https://api.hostino.ai/openapi.jsonIt covers every public endpoint with parameters, request bodies and the required scope (x-required-scope), with two authentication methods: OAuth 2.1 and API tokens (hst_pat_…).
Postman and Insomnia
- In Postman: Import → Link → paste the URL above (or download the file and import it).
- In the collection → Authorization, choose Bearer Token and paste an API token. Create one in the panel → API / MCP → “API tokens”.
- Requests act on your real account; start with read-only (
GET) endpoints.
Insomnia and most API clients import the same URL. You can generate SDKs with tools such as openapi-generator.
Pagination
GET /v1/services, GET /v1/domains and GET /v1/invoices accept optional page and per_page (max 100) parameters and always return a meta object:
curl -s "https://api.hostino.ai/v1/domains?page=2&per_page=25" -H "Authorization: Bearer $TOKEN"{ "count": 25, "domains": [ … ], "meta": { "page": 2, "per_page": 25, "total": 61, "total_pages": 3 } }Without these parameters the full list is returned, as before.
Headers on every response
| Header | Meaning |
|---|---|
X-Request-Id | Request id; errors repeat it as request_id (errors) |
RateLimit-* and X-RateLimit-* | Limit and remaining requests (rate limits) |