---
title: "ManagementToken"
description: "ManagementToken"
url: "https://www.contentstack.com/docs/developers/sdks/content-management-sdk/java/reference/managementtoken"
product: "Contentstack"
doc_type: "guide"
audience:
  - developers
  - admins
version: "current"
last_updated: "2026-09-20"
---

# ManagementToken

## ManagementToken

To authenticate Content Management API (CMA) requests over your stack content, you can use Management Tokens.

## update

The "Update management token" request lets you update the details of a management token. You can change the name and description of the token, update the stack-level permissions assigned to the token, and change the expiry date of the token (if set).

```
import contentstack;
Contentstack contentstack = new Contentstack.Builder().build();
ManagementToken managementToken = contentstack.stack().managementToken();
Call<ResponseBody> response = managementToken.update(requestBody).execute();
if (response.isSuccessful) {
    System.out.println("Response" + response);
}
```

The request body.

## find

The "Get all management tokens" request returns the details of all the management tokens generated in a stack and NOT the actual management tokens.

```
import contentstack;
Contentstack contentstack = new Contentstack.Builder().build();
ManagementToken managementToken = contentstack.stack().managementToken();
Call<ResponseBody> response = managementToken.find().execute();
if (response.isSuccessful) {
    System.out.println("Response" + response);
}
```

## fetch

The "Get a single management token" request returns the details of a specific management token generated in a stack and NOT the actual management token.

```
import contentstack;
Contentstack contentstack = new Contentstack.Builder().build();
ManagementToken managementToken = contentstack.stack().managementToken();
Call<ResponseBody> response = managementToken.fetch().execute();
if (response.isSuccessful) {
    System.out.println("Response" + response);
}
```

## delete

The Delete management token request deletes a specific management token

```
import contentstack;
Contentstack contentstack = new Contentstack.Builder().build();
ManagementToken managementToken = contentstack.stack().managementToken();
Call<ResponseBody> response = folder.delete().execute();
if (response.isSuccessful) {
    System.out.println("Response" + response);
}
```

## create

The "Create management token" request creates a management token in a stack. This token provides you with read-write access to the content of your stack.

```
import contentstack;
Contentstack contentstack = new Contentstack.Builder().build();
ManagementToken managementToken = contentstack.stack().managementToken();
Call<ResponseBody> response = managementToken.create(body).execute();
if (response.isSuccessful) {
    System.out.println("Response" + response);
}
```

Details of the management token.

## addParam

Sets header for the request.

```
import contentstack;
Contentstack contentstack = new Contentstack.Builder().build();
ManagementToken managementToken = contentstack.stack().managementToken();
managementToken.addParam("key", value);
```

Query parameter key for the request.

Query parameter value for the request.

## addHeader

Sets header for the request.

```
import contentstack;
Contentstack contentstack = new Contentstack.Builder().build();
ManagementToken managementToken = contentstack.stack().managementToken();
managementToken.addHeader("key", value);
```

Header key for the request.

Header value for the request.

## ManagementToken | Java Management SDK | Contentstack

ManagementToken provides credentials to authenticate Content Management API requests over your stack content in the Java Management SDK.