---
title: "Generate the tokens for the cluster agents so they can talk to the management plane. Once a cluster object has been registered in the management plane, this method can be used to generate the JWT tokens that need to be configured in the local cluster agents in order to let them talk to the management plane. These tokens contain the necessary permissions to allow the agents to download the configuration for their cluster and to push cluster status updates to the management plane."
method: POST
path: "/v2/organizations/{organization}/clusters/{cluster}:generateTokens"
tags: ["Clusters"]
---

# Generate the tokens for the cluster agents so they can talk to the management plane. Once a cluster object has been registered in the management plane, this method can be used to generate the JWT tokens that need to be configured in the local cluster agents in order to let them talk to the management plane. These tokens contain the necessary permissions to allow the agents to download the configuration for their cluster and to push cluster status updates to the management plane.

`POST /v2/organizations/{organization}/clusters/{cluster}:generateTokens`

## Request

- Base URL: `https://docs.tetrate.io` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.tetrate.io/v2/organizations/{organization}/clusters/{cluster}:generateTokens`
- Auth: none declared
- TypeScript: <https://skmtc.dev/tetrate/apis/tetrate-service-bridge-api/docs/v2/organizations/:organization/clusters/:cluster:generateTokens/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `organization` string, required
- `cluster` string, required

## Response `200`

A successful response.

- V2ClusterStatus: The status message for a cluster resource contains the set of join tokens that should be used by Service Bridge's agents on the cluster.
  - `tokens` object: Tokens for various agents.

## Other responses

- `default`: An unexpected error response.

---

[API](https://skmtc.dev/tetrate/apis/tetrate-service-bridge-api.md) - [All operations](https://skmtc.dev/tetrate/apis/tetrate-service-bridge-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tetrate/apis/tetrate-service-bridge-api/revisions/2f19c3a1ae57?raw)
