---
title: "Create agent token"
method: PUT
path: "/users/{login_name}/agent_tokens"
tags: ["agent_token"]
---

# Create agent token

`PUT /users/{login_name}/agent_tokens`

Create agent token

## Path parameters

- `login_name` string, required

## Request body

- AgentToken
  - `cluster_id` string
  - `cluster_name` string
  - `token` string — Token is the token used by agent to register managed cluster

## Response `200`

agent:e50886f3-caa6-449f-9fa8-7849c6ba2e08:f51c4f21508f4139bab9e12ea5d01994

- AgentToken
  - `cluster_id` string
  - `cluster_name` string
  - `token` string — Token is the token used by agent to register managed cluster

---

[API](https://skmtc.dev/modelz/apis/modelz-api.md) · [All operations](https://skmtc.dev/modelz/apis/modelz-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/modelz/modelz-api/revisions/b68d575c96e8/schema)
