POST
/
api
/
v1
/
dev
/
teams
/
{teamId}
/
licenses
curl --request POST \
  --url https://app.lukittu.com/api/v1/dev/teams/{teamId}/licenses \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "customerIds": [],
  "productIds": [],
  "expirationDate": "2023-11-07T05:31:56Z",
  "expirationDays": 2,
  "expirationStart": "CREATION",
  "expirationType": "NEVER",
  "ipLimit": 1,
  "metadata": [],
  "seats": 2,
  "suspended": false,
  "sendEmailDelivery": false
}'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "licenseKey": "<string>",
    "ipLimit": 123,
    "metadata": [
      {
        "key": "<string>",
        "value": "<string>",
        "locked": true
      }
    ],
    "expirationType": "NEVER",
    "expirationStart": "CREATION",
    "expirationDate": "2023-11-07T05:31:56Z",
    "expirationDays": 123,
    "seats": 123,
    "suspended": true,
    "teamId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "createdByUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "lastActiveAt": "2023-11-07T05:31:56Z",
    "customers": [
      {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "email": "jsmith@example.com",
        "fullName": "<string>",
        "metadata": [
          {
            "key": "<string>",
            "value": "<string>",
            "locked": true
          }
        ],
        "teamId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "createdByUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z"
      }
    ],
    "products": [
      {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "name": "<string>",
        "url": "<string>",
        "metadata": [
          {
            "key": "<string>",
            "value": "<string>",
            "locked": true
          }
        ],
        "teamId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "createdByUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z"
      }
    ]
  },
  "result": {
    "details": "<string>",
    "timestamp": "2023-11-07T05:31:56Z",
    "valid": true
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

teamId
string
required

Body

application/json
expirationType
enum<string>
required
Available options:
NEVER,
DATE,
DURATION
customerIds
string[]
productIds
string[]
expirationDate
string | null
expirationDays
integer | null
Required range: x > 1
expirationStart
enum<string> | null
Available options:
CREATION,
ACTIVATION
ipLimit
integer | null
Required range: x > 0
metadata
object[]
seats
integer | null
Required range: x > 1
suspended
boolean
default:
false
sendEmailDelivery
boolean
default:
false

Response

200
application/json
License created successfully
data
object
result
object