---
type: api
title: Get license
description: Retrieves the license.
url: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/cloud-enterprise/operation/operation-get-license
resource: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/cloud-enterprise/operation/operation-get-license
products:
  - Elastic Cloud Enterprise
---

# Get license

Authentication: required

## Paths

- `GET` `/platform/license`

## Description

Retrieves the license.

## Responses

#### `200`

The information for the license.

`application/json`

- `license` (object)
  Information about a license.
  - `version` (integer · format: int32)
    Version of the license
  - `uid` (string)
    Unique identifier of the license
  - `issuer` (string)
    Issuer of the license
  - `issued_to` (string)
    Entity the license was issued to
  - `issue_date_in_millis` (integer · format: int64)
    When the license was issued, in milliseconds since the Unix epoch
  - `type` (string)
    Type of the license
  - `subscription_type` (string)
    Type of the license subscription
  - `signature` (string)
    Digital signature
  - `start_date_in_millis` (integer · format: int64)
    Initial validity of the license, in milliseconds since the Unix epoch
  - `expiry_date_in_millis` (integer · format: int64)
    When the license expires, in milliseconds since the Unix epoch
  - `max_allocators` (integer · format: int32)
    Maximum number of allocators. Empty for version >= 3
  - `max_ram_per_allocator_mb` (integer · format: int32)
    Maximum RAM per allocator in MB. Empty for version >= 3
  - `max_instances` (integer · format: int32)
    Maximum number of instances. Only present for version 3
  - `max_resource_units` (integer · format: int32)
    Maximum number of resource units, where each unit is 64GB. Only present for version > 3
  - `operation_mode` (string)
    Operation mode
  - `cluster_licenses` (object[])
    List of cluster licenses
    - `license` (object)
      Object containing the cluster license data
- `usage_stats` (object)
  Information about the current usage.
  - `total_connected_memory_total` (integer · format: int32)
    The total amount of memory available to your system
#### `404`

The license cannot be found. (code: `license.license_not_found`)

`application/json`

- `errors` (object[])
  A list of errors that occurred in the failing request
  - `code` (string)
    A structured code representing the error type that occurred
  - `message` (string)
    A human readable message describing the error that occurred
  - `fields` (string[])
    If the error can be tied to a specific field or fields in the user request, this lists those fields
##### Response headers

- `x-cloud-error-codes` (enum)
  The error codes associated with the response

## Code examples

#### curl

```curl
curl -X GET "${API_URL}/platform/license" \
  -u "${USERNAME}:${PASSWORD}"
```

## Response examples

#### 200

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "license": {
    "version": 0,
    "uid": "string",
    "issuer": "string",
    "issued_to": "string",
    "issue_date_in_millis": 0,
    "type": "string",
    "subscription_type": "string",
    "signature": "string",
    "start_date_in_millis": 0,
    "expiry_date_in_millis": 0,
    "max_allocators": 0,
    "max_ram_per_allocator_mb": 0,
    "max_instances": 0,
    "max_resource_units": 0,
    "operation_mode": "string",
    "cluster_licenses": [
      {
        "license": {}
      }
    ]
  },
  "usage_stats": {
    "total_connected_memory_total": 0
  }
}
```

#### 404

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "errors": [
    {
      "code": "string",
      "message": "string",
      "fields": [
        "string"
      ]
    }
  ]
}
```

