Dev endpoints
Create a license
Dev endpoints
Create a license
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
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Body
application/json
Available options:
NEVER
, DATE
, DURATION
Required range:
x > 1
Available options:
CREATION
, ACTIVATION
Required range:
x > 0
Required range:
x > 1
Response
200
application/json
License created successfully
Available options:
NEVER
, DATE
, DURATION
Available options:
CREATION
, ACTIVATION
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
}
}