---
title: OpenAPI, Postman and pagination
description: The Hostino API's OpenAPI spec, importing it into Postman, and paginating lists
sidebar:
  order: 14
  badge:
    text: Alpha
    variant: success
---

## OpenAPI spec

The full API spec (OpenAPI 3.1) is always up to date at:

```text
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:

```bash
curl -s "https://api.hostino.ai/v1/domains?page=2&per_page=25" -H "Authorization: Bearer $TOKEN"
```

```json
{ "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](/en/api/errors/#request-id)) |
| `RateLimit-*` and `X-RateLimit-*` | Limit and remaining requests ([rate limits](/en/api/rate-limits/)) |
