---
title: "POST /api/v1/users/{user}/accessTokens"
method: POST
path: "/api/v1/users/{user}/accessTokens"
tags: ["UserService"]
---

# POST /api/v1/users/{user}/accessTokens

`POST /api/v1/users/{user}/accessTokens`

CreateUserAccessToken creates a new access token for a user.

## Path parameters

- `user` string, required

## Query parameters

- `accessTokenId` string

## Request body

- UserAccessToken — User access token message
  - `name` string — The resource name of the access token. Format: users/{user}/accessTokens/{access_token}
  - `accessToken` string — Output only. The access token value.
  - `description` string — The description of the access token.
  - `issuedAt` string, date-time — Output only. The issued timestamp.
  - `expiresAt` string, date-time — Optional. The expiration timestamp.

## Response `200`

OK

- UserAccessToken — User access token message
  - `name` string — The resource name of the access token. Format: users/{user}/accessTokens/{access_token}
  - `accessToken` string — Output only. The access token value.
  - `description` string — The description of the access token.
  - `issuedAt` string, date-time — Output only. The issued timestamp.
  - `expiresAt` string, date-time — Optional. The expiration timestamp.

## Other responses

- `default` — Default error response

## Changes

- **2025-12-15** `d740073f088f` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/usememos/apis/untitled-api/changes/api/v1/users/:user/accessTokens/post.md)

---

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