Skip to content

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.json

It 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

  1. In Postman: Import → Link → paste the URL above (or download the file and import it).
  2. In the collection → Authorization, choose Bearer Token and paste an API token. Create one in the panel → API / MCP → “API tokens”.
  3. 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:

Terminal window
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

HeaderMeaning
X-Request-IdRequest id; errors repeat it as request_id (errors)
RateLimit-* and X-RateLimit-*Limit and remaining requests (rate limits)