---
title: "receive the token after user has authenticated on redirect URL."
method: GET
path: "/auth/get-token/mailboxes/{mailbox}"
tags: ["auth", "experimental"]
---

# receive the token after user has authenticated on redirect URL.

`GET /auth/get-token/mailboxes/{mailbox}`

## Response `200`

user successfully logged in

- AuthenticationToken
  - `token` string, required — a JWT token that could be used to authenticate requests
  - `token_expiration` integer — Unix Epoch in seconds

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Resource Not Found
- `429` — too many requests
- `501` — Not Implemented
- `default` — Internal Server Error

## Changes

- **2025-11-24** `add5a8870f32` — 1 info
  - added the non-success response with the status `400`
- **2025-11-23** `55a2775ca878` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/treeverse/apis/lakefs-api/changes/auth/get-token/mailboxes/:mailbox/get.md)

---

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