# License Controller

## POST /api/license/deactivate

>

OpenAPI:

```json
{"openapi":"3.0.1","info":{"title":"inSCADA API","version":"20250703-6"},"servers":[{"url":"https://inscada.cloud","description":"Generated server url"}],"security":[{"accessTokenCookie":[],"spaceHeader":[]}],"components":{"securitySchemes":{"accessTokenCookie":{"type":"apiKey","description":"Access token provided as a cookie named 'ins_access_token'. This token is obtained after successful login and is valid for x minutes. It can be refreshed using the `ins_refresh_token` cookie at the /refresh endpoint.","name":"ins_access_token","in":"cookie"}}},"paths":{"/api/license/deactivate":{"post":{"tags":["license-controller"],"operationId":"deactivateLicense","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","properties":{"userLimit":{"type":"integer","format":"int32"},"expiryDate":{"type":"string","format":"date-time"},"maintenanceExpiryDate":{"type":"string","format":"date-time"},"currentIo":{"type":"integer","format":"int32"},"currentUser":{"type":"integer","format":"int32"},"company":{"type":"string"},"type":{"type":"string","enum":["Limited","Key","Usb"]},"issueDate":{"type":"string","format":"date-time"},"email":{"type":"string"},"ioLimit":{"type":"integer","format":"int32"},"appVersion":{"type":"string"},"fullName":{"type":"string"}}}}}},"400":{"description":"Bad Request","content":{"*/*":{"schema":{"type":"object"}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"type":"object"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"type":"object"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"type":"object"}}}},"500":{"description":"Internal Server Error","content":{"*/*":{"schema":{"type":"object"}}}}}}}}}
```

## POST /api/license/activate

>

OpenAPI:

```json
{"openapi":"3.0.1","info":{"title":"inSCADA API","version":"20250703-6"},"servers":[{"url":"https://inscada.cloud","description":"Generated server url"}],"security":[{"accessTokenCookie":[],"spaceHeader":[]}],"components":{"securitySchemes":{"accessTokenCookie":{"type":"apiKey","description":"Access token provided as a cookie named 'ins_access_token'. This token is obtained after successful login and is valid for x minutes. It can be refreshed using the `ins_refresh_token` cookie at the /refresh endpoint.","name":"ins_access_token","in":"cookie"}}},"paths":{"/api/license/activate":{"post":{"tags":["license-controller"],"operationId":"activateLicense","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"object","allOf":[{"required":["type"],"type":"object","properties":{"type":{"type":"string"}},"discriminator":{"propertyName":"type"}},{"type":"object","properties":{"licenseKey":{"type":"string"}}}]},{"type":"object","allOf":[{"required":["type"],"type":"object","properties":{"$ref":"#/paths/~1api~1license~1activate/post/requestBody/content/application~1json/schema/oneOf/0/allOf/0/properties"},"discriminator":{"$ref":"#/paths/~1api~1license~1activate/post/requestBody/content/application~1json/schema/oneOf/0/allOf/0/discriminator"}}]}]}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","properties":{"userLimit":{"type":"integer","format":"int32"},"expiryDate":{"type":"string","format":"date-time"},"maintenanceExpiryDate":{"type":"string","format":"date-time"},"currentIo":{"type":"integer","format":"int32"},"currentUser":{"type":"integer","format":"int32"},"company":{"type":"string"},"type":{"type":"string","enum":["Limited","Key","Usb"]},"issueDate":{"type":"string","format":"date-time"},"email":{"type":"string"},"ioLimit":{"type":"integer","format":"int32"},"appVersion":{"type":"string"},"fullName":{"type":"string"}}}}}},"400":{"description":"Bad Request","content":{"*/*":{"schema":{"type":"object"}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"type":"object"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"type":"object"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"type":"object"}}}},"500":{"description":"Internal Server Error","content":{"*/*":{"schema":{"type":"object"}}}}}}}}}
```

## GET /api/license

>

OpenAPI:

```json
{"openapi":"3.0.1","info":{"title":"inSCADA API","version":"20250703-6"},"servers":[{"url":"https://inscada.cloud","description":"Generated server url"}],"security":[{"accessTokenCookie":[],"spaceHeader":[]}],"components":{"securitySchemes":{"accessTokenCookie":{"type":"apiKey","description":"Access token provided as a cookie named 'ins_access_token'. This token is obtained after successful login and is valid for x minutes. It can be refreshed using the `ins_refresh_token` cookie at the /refresh endpoint.","name":"ins_access_token","in":"cookie"}}},"paths":{"/api/license":{"get":{"tags":["license-controller"],"operationId":"getLicense","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","properties":{"userLimit":{"type":"integer","format":"int32"},"expiryDate":{"type":"string","format":"date-time"},"maintenanceExpiryDate":{"type":"string","format":"date-time"},"currentIo":{"type":"integer","format":"int32"},"currentUser":{"type":"integer","format":"int32"},"company":{"type":"string"},"type":{"type":"string","enum":["Limited","Key","Usb"]},"issueDate":{"type":"string","format":"date-time"},"email":{"type":"string"},"ioLimit":{"type":"integer","format":"int32"},"appVersion":{"type":"string"},"fullName":{"type":"string"}}}}}},"400":{"description":"Bad Request","content":{"*/*":{"schema":{"type":"object"}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"type":"object"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"type":"object"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"type":"object"}}}},"500":{"description":"Internal Server Error","content":{"*/*":{"schema":{"type":"object"}}}}}}}}}
```
