---
type: api
title: Get enrollment tokens
description: Retrieves a list of active enrollment tokens.
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/cloud-enterprise/v4/operation/operation-get-enrollment-tokens
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/cloud-enterprise/v4/operation/operation-get-enrollment-tokens
products:
  - Elastic Cloud Enterprise
---

# Get enrollment tokens

## Paths

- `GET` `/platform/configuration/security/enrollment-tokens`

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

## Description

Retrieves a list of active enrollment tokens.

## Response

A token has been generated that can be used to start new servers with the requested roles

`application/octet-stream`

- `tokens` ([] ListEnrollmentTokenElement)
  The list of currently active enrollment tokens
  - `token_id` (string)
    An identifier for the token
  - `roles` ([] string)
    The services for which this enrollment token applies
## Code Examples

#### Console

```console
GET /platform/configuration/security/enrollment-tokens
```

#### curl

```curl
curl -X GET "/platform/configuration/security/enrollment-tokens"
```

