---
title: "POST /v1/{+tokenAuthUser}:addAuthToken"
method: POST
path: "/v1/{+tokenAuthUser}:addAuthToken"
tags: ["projects"]
---

# POST /v1/{+tokenAuthUser}:addAuthToken

`POST /v1/{+tokenAuthUser}:addAuthToken`

Adds a auth token for a user of a token based auth enabled cluster.

## Path parameters

- `tokenAuthUser` string, required

## Request body

- AddAuthTokenRequest — Request message for AddAuthToken.
  - `authToken` AuthToken — Auth token for the cluster.
    - `name` string — Identifier. Name of the auth token. Format: projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token}
    - `token` string — Output only. The service generated authentication token used to connect to the Redis cluster.
    - `createTime` string, google-datetime — Output only. Create time of the auth token.
    - `state` 'STATE_UNSPECIFIED' | 'ACTIVE' | 'CREATING' | 'DELETING' — Output only. State of the auth token.

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/redis.md) · [All operations](https://skmtc.dev/google/apis/redis/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/redis/revisions/001438d863e7/schema)
