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

# Get license

## Paths

- `GET` `/platform/license`

- [Basic auth](/elastic/docs-builder/docs/4371/api/doc/cloud-enterprise/authentication#basicauth)
- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/cloud-enterprise/authentication#apikey)

## Description

Retrieves the license.

## Responses

#### `200`

The information for the license.

`application/json`

- `license` ({} LicenseInfo)
  Information about a license.
  - `version` (integer)
    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)
    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)
    Initial validity of the license, in milliseconds since the Unix epoch
  - `expiry_date_in_millis` (integer)
    When the license expires, in milliseconds since the Unix epoch
  - `max_allocators` (integer)
    Maximum number of allocators. Empty for version >= 3
  - `max_ram_per_allocator_mb` (integer)
    Maximum RAM per allocator in MB. Empty for version >= 3
  - `max_instances` (integer)
    Maximum number of instances. Only present for version 3
  - `max_resource_units` (integer)
    Maximum number of resource units, where each unit is 64GB. Only present for version > 3
  - `operation_mode` (string)
    Operation mode
  - `cluster_licenses` ([] ClusterLicenseInfo)
    List of cluster licenses
    - `license` (object)
      Object containing the cluster license data
- `usage_stats` ({} UsageStats)
  Information about the current usage.
  - `total_connected_memory_total` (integer)
    The total amount of memory available to your system
#### `404`

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

`application/json`

- `errors` ([] BasicFailedReplyElement)
  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

#### Console

```console
GET /platform/license
```

#### curl

```curl
curl -X GET "/platform/license"
```

