> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/infrastructure-as-code-management/iacm-api-reference/usage/show-licence.md).

# Show licence

Check whether the account is currently licenced

```json
{"openapi":"3.0.3","info":{"title":"Infrastructure as Code Management","version":"0.1.0"},"tags":[{"name":"usage","description":"Usage service handles licencing"}],"servers":[{"url":"http://localhost:80"}],"paths":{"/api/usage/check-licence":{"get":{"tags":["usage"],"summary":"Show licence","description":"Check whether the account is currently licenced","operationId":"usage#checkLicence","parameters":[{"name":"Harness-Account","in":"header","description":"Account identifier","allowEmptyValue":true,"required":true,"schema":{"type":"string","description":"Account identifier"}}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowLicenceResponse"}}}},"400":{"description":"BadRequestError: Bad Request response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"UnauthorizedError: Unauthorized response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"ForbiddenError: Forbidden response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"NotFoundError: Not Found response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"408":{"description":"TimeoutError: Request Timeout response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"ConflictError: Conflict response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"LockedError: Locked response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"499":{"description":"ContextCancelledError:  response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"InternalServerError: Internal Server Error response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"BadGatewayError: Bad Gateway response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"ShowLicenceResponse":{"type":"object","properties":{"account":{"type":"string","description":"Account identifier","minLength":1,"maxLength":128},"ansible":{"$ref":"#/components/schemas/AnsibleLicenceData"},"isLicenced":{"type":"boolean","description":"True when this account is currently licenced to execute apply operations"},"isPaid":{"type":"boolean","description":"True when this account is a paid account"},"reason":{"type":"string","description":"If the account is not licenced, this is the reason why"},"startTime":{"type":"integer","description":"The unix timestamp of the current period over which usage was calculated","format":"int64"},"total":{"type":"integer","description":"The total number of successful apply operations this account is licenced to perform","format":"int64"},"used":{"type":"integer","description":"The count of successful apply operations already performed","format":"int64"}},"required":["account","used","total","startTime","isPaid","isLicenced"]},"AnsibleLicenceData":{"type":"object","properties":{"total":{"type":"integer","description":"Total ansible hosts allowed by license","format":"int64"},"used":{"type":"integer","description":"Unique hosts with runs in last 30 days","format":"int64"}},"required":["used","total"]},"Error":{"type":"object","properties":{"fault":{"type":"boolean","description":"Is the error a server-side fault?"},"id":{"type":"string","description":"ID is a unique identifier for this particular occurrence of the problem."},"message":{"type":"string","description":"Message is a human-readable explanation specific to this occurrence of the problem."},"name":{"type":"string","description":"Name is the name of this class of errors."},"temporary":{"type":"boolean","description":"Is the error temporary?"},"timeout":{"type":"boolean","description":"Is the error a timeout?"}},"required":["name","id","message","temporary","timeout","fault"]}}}}
```
