---
title: List Licence Usage
slug: single-connect-api-3-0-3/list-licence-usage
description: Learn how to retrieve license usage information for a specific tenant using the GET method with this helpful curl code example. This step-by-step guide will show you how to use the required headers and data in the curl command to make a successful request
docTags: 
createdAt: 2022-11-10T14:21:49.000Z
---

{
  "id": "MXxADFJN30Q5k_6P1jL2T",
  "data": {
    "url": "{{url}}/aioc-rest-web/rest/Multitenancy/getLicenceUsage/{{tenantId}}",
    "method": "GET",
    "request": {
      "pathParameters": [],
      "queryParameters": [],
      "headerParameters": [
        {
          "name": "X-XSRF-TOKEN",
          "type": "string",
          "example": "{{csrftoken}}",
          "description": ""
        }
      ],
      "bodyDataParameters": [
        {
          "name": "body",
          "type": "string",
          "example": "",
          "description": ""
        }
      ],
      "formDataParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "",
        "jsonExample": ""
      }
    ],
    "contentType": "application/json",
    "description": "Licence usage of a specific tenant can be seen through this API.",
    "examples": {
      "languages": [
        {
          "id": "zJcQ1vAheC08aepuNUDvq",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url {{url}}/aioc-rest-web/rest/Multitenancy/getLicenceUsage/{{tenantId}} \\\n     --header 'accept: application/json'"
        },
        {
          "id": "gIwjg60qr3gxXmWY6C7qI",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"{{url}}/aioc-rest-web/rest/Multitenancy/getLicenceUsage/{{tenantId}}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "Lm761SRQ_tZqa0CsEB_TA",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/Multitenancy/getLicenceUsage/{{tenantId}}\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "JYXCCWAUuIGkrVatJ80tJ",
          "language": "python",
          "label": "Python",
          "code": "import requests\n\nurl = \"{{url}}/aioc-rest-web/rest/Multitenancy/getLicenceUsage/{{tenantId}}\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "zJcQ1vAheC08aepuNUDvq"
    },
    "results": {
      "languages": [
        {
          "id": "OIb5ZoOthGgzUruiJjp3K",
          "language": "200",
          "code": ""
        }
      ],
      "selectedLanguageId": "OIb5ZoOthGgzUruiJjp3K"
    }
  },
  "type": "api-oas-v2",
  "children": [
    {
      "text": ""
    }
  ]
}