---
title: "Get a new user access token"
method: GET
path: "/user/token"
tags: ["token"]
---

# Get a new user access token

`GET /user/token`

Returns an access token and its expiration

## Headers

- `X-SFTPGO-OTP` string

## Response `200`

successful operation

- Token
  - `access_token` string
  - `expires_at` string, date-time

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Server Error
- `default` — Unexpected Error

---

[API](https://skmtc.net/kanton-bern/apis/sftpgo.md) · [All operations](https://skmtc.net/kanton-bern/apis/sftpgo/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kanton-bern/sftpgo/revisions/d8d616a479b0/schema)
