# API docs

Hiroship has two APIs. The website API is public today: developers and AI agents find the right plan and price without reading the website, with no key. The app API, for stores that use Hiroship, is coming.

## Two APIs: the website API and the app API

The website API is what this page describes: plans, prices and the shipping estimate. It is public and open today.

The app API is for stores that use Hiroship, so you can work with your shipments from your own systems. It is in development and will use the same versioning as the website API. Want to try it early? Write to support@hiroship.no.

## Website API: in short

The API is public, free and read-only. It needs no key and no login. Every response is JSON, and every error follows RFC 9457 (application/problem+json).

Every call has the version in its path: /api/2026-10/… (see Versioning). The specification is at /openapi.json. The API catalog is at /.well-known/api-catalog.

## Find the right plan: GET /api/2026-10/quote

Send the shipments per month (shipments) and optionally the number of locations (locations). The answer is the cheapest plan that covers both, with the price in USD and approximate NOK.

```bash
curl -s "https://hiroship.no/api/2026-10/quote?shipments=120&locations=1"
```

```json
{
  "plan": "growth",
  "planName": "Growth",
  "priceUsd": 49,
  "priceNokApprox": 540,
  "shipmentsIncluded": 500,
  "locationsIncluded": 5,
  "usdPerShipment": 0.41,
  "placeholderPrices": false
}
```

## Every plan: GET /api/2026-10/plans

Lists every plan with its price and limits. Every plan has every feature; they differ only in shipments per month and locations.

```bash
curl -s https://hiroship.no/api/2026-10/plans
```

## Shipping estimate: POST /api/2026-10/savings

Send the totals per Bring product (parcels and NOK over a number of months). The answer is a yearly range for what a pooled Bring agreement could save. It is an estimate: the agreement with Bring is not signed.

## MCP server: /mcp

An MCP server (Streamable HTTP, stateless) with the tools quote_price and list_plans. Both are read-only and answer as the latest stable version. The server card is at /.well-known/mcp/server-card.json.

```json
{
  "mcpServers": {
    "hiroship": { "type": "http", "url": "https://hiroship.no/mcp" }
  }
}
```

```bash
curl -s https://hiroship.no/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"quote_price","arguments":{"shipments":120}}}'
```

## Markdown for agents

Every page exists as markdown. Ask for text/markdown in the Accept header, or add .md to the address (for example /en/pricing.md). /llms.txt gives an overview.

```bash
curl -s https://hiroship.no/en/pricing -H "Accept: text/markdown"
```

## Errors

Errors carry a stable code, a detail that says what is wrong, and a hint that says how to fix it.

```http
HTTP/1.1 400 Bad Request
Content-Type: application/problem+json

{
  "type": "https://hiroship.no/en/docs#errors",
  "title": "Missing parameter",
  "status": 400,
  "code": "missing_parameter",
  "detail": "The query parameter shipments is required.",
  "hint": "Call /api/2026-10/quote?shipments=120 (shipments per month), optionally with &locations=2."
}
```

## Limits

60 requests a minute per client on /api and /mcp. Every response carries RateLimit-Policy and RateLimit (IETF draft) and X-RateLimit-*. Over the limit you get 429 with Retry-After.

## Versioning

We version like Shopify. Each version is named after the month it belongs to, and a new stable version comes every quarter: in January, April, July and October. The version is in the path, and every answer names its version in the Hiroship-Api-Version header.

The latest stable version is 2026-10. A stable version never changes in a way that breaks you, and it is supported for at least 12 months, so you have at least nine months to move to the next one.

About a month before a new stable version, we publish it as a release candidate so you can test against it. unstable changes as we go and without notice. It is for trying what's coming, never for production.

When a version's support ends, it answers with the Deprecation header and a Link to the version that replaces it. GET /api/versions lists the versions and how long each is supported.

```bash
curl -s https://hiroship.no/api/versions
{
  "latest": "2026-10",
  "versions": [
    { "name": "2026-10", "status": "stable", "releasedOn": "2026-12-03", "supportedUntil": "2027-10-01" },
    { "name": "unstable", "status": "unstable" }
  ]
}
```

---

Norsk versjon: https://hiroship.no/docs

HTML: https://hiroship.no/en/docs · llms.txt: https://hiroship.no/llms.txt · OpenAPI: https://hiroship.no/openapi.json · MCP: https://hiroship.no/mcp