AviatoAviato
DeveloperAPI ReferenceLicenseActivate

/api/license/activate

POST
/api/license/activate

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/api/license/activate" \  -H "Content-Type: application/json" \  -d '{    "licenseKey": "string"  }'
{
  "ok": true,
  "license": {
    "status": "unlicensed",
    "tier": "string",
    "limits": {
      "property1": 0,
      "property2": 0
    },
    "expiresAt": "string",
    "lastValidatedAt": "string",
    "maskedKey": "string"
  }
}
{
  "ok": false,
  "code": "string",
  "message": "string"
}
{
  "ok": false,
  "conflict": true,
  "current": 0,
  "max": 1,
  "message": "string"
}