# EnrollmentTokenInvalid

> An enrollment token works once, for 24 hours, for the pool it was created for.

Source: https://nodus-platform-site.pages.dev/docs/reference/errors/enrollment-token-invalid/
Build revision: 211ad9f836655b1c3a2668c4693e442471f28614

<!-- Code generated by tools/errgen. DO NOT EDIT. -->

**HTTP status:** 401 · **Retryable:** no

An enrollment token works once, for 24 hours, for the pool it was created for.

## Message

```text
the enrollment token is invalid, expired, revoked or already used
```

## What to do

create a new token with `nodus create enrollmenttoken --pool {pool}` and run the installer it prints

## On the wire

The response is a Kubernetes `Status` with `reason: EnrollmentTokenInvalid` and `code: 401`, plus `fix`, `docs` (this page) and `requestId`. `details.causes` lists the fields involved, when there are any. The CLI prints the fix and the request id; the Python SDK raises `nodus.errors.EnrollmentTokenInvalid`.
