🔑Licenses

Endpoint to manipulate licenses.

GET - License Information

Retrieves information about a specific license key.

Parameter
Type

key

string

curl -X GET "https://cursedcurtain.site/api/licenses/?key=LICENSE" \
     -H "Authorization: Bearer YOUR_API_KEY"

Upon success, this will return as JSON a License DataType object

DELETE - Delete License

Deletes a specific license key.

Parameter
Type

key

string

curl -X DELETE "https://cursedcurtain.site/api/licenses/?key=LICENSE" \
     -H "Authorization: Bearer YOUR_API_KEY"

POST - Create License

Creates a new license.

{
    "product": "premium",
    "duration": 7776000
}
curl -X POST "https://cursedcurtain.site/api/licenses/" \
     -H "Authorization: Bearer YOUR_API_KEY" \
     -H "Content-Type: application/json" \
     -d '{
           "product": "premium",
           "duration": 7776000
         }'

Last updated