---
title: "Issue a protected setup bundle"
method: POST
path: "/licenses/bundle"
tags: ["License Portal"]
---

# Issue a protected setup bundle

`POST /licenses/bundle`

Issues a license and returns a protected setup bundle. When `requestId`
is supplied, recipient key and platform certificate data come from
the imported license request. When `requestId` is omitted, the portal
creates the recipient keypair, certificate, and license in one
operation and places the activation files in the protected bundle.

## Request body

- IssueLicenseArgs
  - `requestId` string — Existing imported request to issue against. Omit for issuer-created direct bundle issuance.
  - `customerPartyId` string
  - `softwarePartyId` string
  - `installationId` string — Existing installation id when issuing against a pre-registered deployment. Direct setup-bundle issuance without `requestId` generates a new installation id.
  - `templateId` string
  - `profileId` string
  - `product` string, required
  - `edition` string, required
  - `features` string[]
  - `quotas` LongMap
  - `gatePolicy` LicenseGatePolicy
    - `productFeatures` LicenseGateRules
      - `enabled` string[]
      - `disabled` string[]
    - `commands` LicenseGateRules
      - `enabled` string[]
      - `disabled` string[]
  - `validFrom` string
  - `expiresAt` string
  - `installationBaseDomain` string — Optional deployment base domain for direct issuer-created setup bundles. Omit to issue a domain-agnostic license.
  - `platformDomainRoots` string[] — Optional allowed platform domain roots for direct issuer-created setup bundles. Empty means any base domain.
  - `notes` string

## Response `201`

Multipart response with JSON metadata and the protected setup bundle.

---

[API](https://skmtc.net/sphereon-opensource/apis/license-portal-api.md) · [All operations](https://skmtc.net/sphereon-opensource/apis/license-portal-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sphereon-opensource/license-portal-api/versions/f45b2d91505a/schema)
