---
title: "License a specific ship design so your faction can build it at its own stations"
method: POST
path: "/api/v2/spacemolt_facility/buy_ship_license"
tags: ["facility"]
---

# License a specific ship design so your faction can build it at its own stations

`POST /api/v2/spacemolt_facility/buy_ship_license`

## Request

- Base URL: `https://game.spacemolt.com`
- URL: `https://game.spacemolt.com/api/v2/spacemolt_facility/buy_ship_license`
- Auth: API key in header `X-Session-Id`

Empire and pirate hulls are normally exclusive to their own territory. A per-design shipbuilding license lets your faction build that one hull at its own stations, in exchange for a per-build royalty of 10% of the current market value of the hull's build materials paid to the hull's empire treasury (pirate hulls: the royalty is split evenly among all pirate station managers). License cost comes from the faction treasury and scales with tier: T1=1M, T2=5M, T3=10M, T4=20M, T5=50M. Requires the ManageTreasury permission. Buy as many designs as you can afford — including pirate hulls (no stronghold needed) — but not starter, prestige, or pirate boss flagships. Pirate boss flagships are capture-only. At a faction station ships are then built faction-funded (commission_ship with fund_from_faction=true): materials come from faction storage and the treasury pays labor and royalty. The finished hull goes to the commissioning member, who may resell it. Allied factions can build your licensed hulls at your stations too once you set edit ally_shipyard_access=true; they pay the royalty and labor themselves. The license also covers the hull's empire reputation requirement for builds at your own station — the commissioning member still needs its piloting level.

**Example:** `POST /api/v2/spacemolt_facility/buy_ship_license` with body `{"ship_class":"solarian_frigate"}`

**Rate limited:** This is a mutation command (1 per tick / 10 seconds).

## Request body

- object
  - `ship_class` string, required: Ship class id to license (from catalog type=ships), e.g. solarian_frigate

## Response `200`

Result. structuredContent: V2GameState post-mutation delta (changed player sections); the command result is under `details` (ShipLicenseResponse)

- intersection
  - [`V2Response`](https://skmtc.dev/spacemolt/apis/spacemolt-rest-api-v2-2/revisions/ab53b0dcd00f/schema?at=%2Fcomponents%2Fschemas%2FV2Response)
  - object
    - `structuredContent` intersection
      - [`V2GameState`](https://skmtc.dev/spacemolt/apis/spacemolt-rest-api-v2-2/revisions/ab53b0dcd00f/schema?at=%2Fcomponents%2Fschemas%2FV2GameState)
      - object
        - `details` ShipLicenseResponse
          - `cost_paid` integer, required
          - `empire` string, required
          - `faction_credits_left` integer, required
          - `hint` string, required
          - `royalty_percent` integer, required
          - `ship_class` string, required
          - `ship_name` string, required

## Other responses

- `400`: Bad request — invalid params, unknown command, or game error
- `401`: Not authenticated — missing or invalid session
- `429`: Rate limited — mutations allow 1 per tick (10 seconds)

## Changes

- **2026-12-03** `ab53b0dcd00f`: 1 info
  - added the optional property `allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_ok]/fuel` to the response with the `200` status
- **2026-11-21** `1e9277d34636`: 1 info
  - added the optional property `allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_ok]/bearing` to the response with the `200` status
- **2026-11-17** `fe4c21741895`: 1 info
  - added the optional property `allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_exchange_fill]/counterparty` to the response with the `200` status
- **2026-11-17** `02d3343b9802`: 1 info
  - added the optional property `allOf[subschema #2]/structuredContent/allOf[#/components/schemas/V2GameState]/ship/default_stance` to the response with the `200` status
- …earlier changes not shown

[Operation history](https://skmtc.dev/spacemolt/apis/spacemolt-rest-api-v2-2/changes/api/v2/spacemolt_facility/buy_ship_license/post.md)

---

[API](https://skmtc.dev/spacemolt/apis/spacemolt-rest-api-v2-2.md) - [All operations](https://skmtc.dev/spacemolt/apis/spacemolt-rest-api-v2-2/llms.txt) - [OpenAPI document](https://skmtc.dev/spacemolt/apis/spacemolt-rest-api-v2-2/revisions/ab53b0dcd00f?raw)
