---
title: "Retrieve a Temporary Access Token"
method: POST
path: "/auth/login"
tags: ["Authentication"]
---

# Retrieve a Temporary Access Token

`POST /auth/login`

Retrieve a Temporary Access Token

## Request body

- object
  - `email` string, required — Email address of the user you're retrieving the access token for.
  - `password` string, password, required — Password of the user.
  - `mode` 'json' | 'cookie' | 'session' — Whether to retrieve the refresh token in the JSON response, or in a httpOnly cookie.
  - `otp` string — The user's one-time-password (if MFA is enabled).

## Response `200`

Successful authentification

- object
  - `data` object
    - `access_token` string
    - `expires` integer
    - `refresh_token` string

---

[API](https://skmtc.dev/utomic-media/apis/dynamic-api-specification.md) · [All operations](https://skmtc.dev/utomic-media/apis/dynamic-api-specification/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/utomic-media/dynamic-api-specification/revisions/4a0ccd34700e/schema)
