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

# Get enrollment tokens

## Paths

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

## Description

Retrieves a list of active enrollment tokens.

## Authentication

- Basic: `Authorization: Basic <credentials>`
- Api key: `Authorization: <value>`

## Response

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

`application/octet-stream`

- `tokens` (object[])
  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

#### curl

```curl
curl -X GET "${API_URL}/platform/configuration/security/enrollment-tokens" \
  -u "${USERNAME}:${PASSWORD}"
```

