curl --request POST \
--url https://app.lukittu.com/api/v1/dev/teams/{teamId}/licenses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"expirationType": "NEVER",
"suspended": false,
"sendEmailDelivery": false,
"productIds": [
"012e3456-e89b-12d3-a456-426614174333"
],
"customerIds": [
"789e0123-e89b-12d3-a456-426614174222"
],
"metadata": []
}'
{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"licenseKey": "<string>",
"ipLimit": 1,
"hwidLimit": 2,
"expirationType": "NEVER",
"expirationStart": "CREATION",
"expirationDate": "2023-11-07T05:31:56Z",
"expirationDays": 2,
"suspended": true,
"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",
"lastActiveAt": "2023-11-07T05:31:56Z",
"seats": 123,
"customers": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "jsmith@example.com",
"fullName": "<string>",
"username": "<string>",
"metadata": [
{
"key": "<string>",
"value": "<string>",
"locked": true
}
],
"address": {
"street": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"postalCode": "<string>"
},
"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": {
"timestamp": "2023-11-07T05:31:56Z",
"valid": true,
"details": "<string>"
}
}
Create a new license with the specified configuration. The license will be automatically generated with a unique key.
curl --request POST \
--url https://app.lukittu.com/api/v1/dev/teams/{teamId}/licenses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"expirationType": "NEVER",
"suspended": false,
"sendEmailDelivery": false,
"productIds": [
"012e3456-e89b-12d3-a456-426614174333"
],
"customerIds": [
"789e0123-e89b-12d3-a456-426614174222"
],
"metadata": []
}'
{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"licenseKey": "<string>",
"ipLimit": 1,
"hwidLimit": 2,
"expirationType": "NEVER",
"expirationStart": "CREATION",
"expirationDate": "2023-11-07T05:31:56Z",
"expirationDays": 2,
"suspended": true,
"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",
"lastActiveAt": "2023-11-07T05:31:56Z",
"seats": 123,
"customers": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "jsmith@example.com",
"fullName": "<string>",
"username": "<string>",
"metadata": [
{
"key": "<string>",
"value": "<string>",
"locked": true
}
],
"address": {
"street": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"postalCode": "<string>"
},
"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": {
"timestamp": "2023-11-07T05:31:56Z",
"valid": true,
"details": "<string>"
}
}
API key authentication for development endpoints.
You can create API keys in your team's settings on the Lukittu dashboard.
Include the API key in the Authorization header as: Bearer YOUR_API_KEY
Example:
Authorization: Bearer lukittu_api_key_abc123def456...
Your team's UUID. You can find this value in your team's settings on the Lukittu dashboard.
License created successfully
The response is of type object
.