Skip to main content
POST
/
key
curl --request POST \
--url https://api.keymint.dev/key \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"productId": "4898d6707ffa56ed9b0eea",
"maxActivations": "5",
"newCustomer": {
"name": "John Doe",
"email": "john.doe@example.com"
}
}'
{
"code": 0,
"key": "T8XTR-AI21B-2990H-85SB5"
}

Authorizations

Authorization
string
header
required

Access token for API authentication

Body

application/json
productId
string
required

The product ID for which to create the license key

maxActivations
string

Maximum number of activations allowed for this license key

customerId
string

Optional: ID of an existing customer to assign the license key to. Cannot be used together with newCustomer.

newCustomer
object

Optional: Details for creating a new customer and assigning the license key to them. Cannot be used together with customerId.

Response

License key created successfully

code
integer
key
string
I