Server Management
Sign License
Authentication
Connections
AWS
Guard Rails
Server Management
Jira
Organization Management
Reports
User Management
Sessions
Server Management
Sign License
Sign a new license for a customer. This route is for internal use only
POST
/
orgs
/
license
/
sign
curl --request POST \
--url https://use.hoop.dev/api/orgs/license/sign
{
"key_id": "743420a8aee6f063d50e6203b588c06381020c84fea3543ff10f8470873779bc",
"payload": {
"allowed_hosts": [
"johnwick.org",
"homolog.jhonwick.org",
"*.system.johnwick.org"
],
"description": "John Wick's Bad Organization",
"expire_at": 1722997969,
"issued_at": 1721997969,
"type": "enterprise"
},
"signature": "pA4POB1vB1yBfE+HcPD4FSPT8yY="
}
Response
200
application/json
OK
A sha256 identifier of the public key
Example:
"743420a8aee6f063d50e6203b588c06381020c84fea3543ff10f8470873779bc"
The payload information of the license
The domains that are allowed to use this license.
johhwick.org
- Issue a license that is valid only for the domainjohnwick.org
*.johhwick.org
- Issue a license that is valid for all subdomains, example:<anydomain>.johnwick.org
*.johhwick.org
,*.johnwick2.org
- Issue a license that is valid for multiple wildcard subdomains*
- Issue a license that is valid for all domains (not recommeded)
Example:
[
"johnwick.org",
"homolog.jhonwick.org",
"*.system.johnwick.org"
]
The description containing information about the license
Example:
"John Wick's Bad Organization"
The time in timestamp the license expires
Example:
1722997969
The time in timestamp the license was issued
Example:
1721997969
Type of the license
- oss - Open Source License
- enterprise - Enterprise License
Available options:
oss
, enterprise
Example:
"enterprise"
The payload signature
Example:
"pA4POB1vB1yBfE+HcPD4FSPT8yY="
curl --request POST \
--url https://use.hoop.dev/api/orgs/license/sign
{
"key_id": "743420a8aee6f063d50e6203b588c06381020c84fea3543ff10f8470873779bc",
"payload": {
"allowed_hosts": [
"johnwick.org",
"homolog.jhonwick.org",
"*.system.johnwick.org"
],
"description": "John Wick's Bad Organization",
"expire_at": 1722997969,
"issued_at": 1721997969,
"type": "enterprise"
},
"signature": "pA4POB1vB1yBfE+HcPD4FSPT8yY="
}