---
title: "Authorizes a user in API/ApprovalStudio. When sucessully authorized returns an authorization token which must be supplied to every API call as \"Bearer XXXXXXXXXXXXXXXXXXXXXXX\"."
method: POST
path: "/api/v1/token/login"
tags: ["Token"]
---

# Authorizes a user in API/ApprovalStudio. When sucessully authorized returns an authorization token which must be supplied to every API call as "Bearer XXXXXXXXXXXXXXXXXXXXXXX".

`POST /api/v1/token/login`

## Request

- Base URL: `https://api.approval.studio` (the document declares no server; this is the origin it was published from)
- URL: `https://api.approval.studio/api/v1/token/login`
- Auth: API key in header `Authorization`

## Request body

- AuthTokenRequest
  - `userName` string, nullable
  - `password` string, nullable
  - `keepAliveTime` integer, nullable

## Response `200`

OK

- AuthTokenResponseApiResponse
  - `version` string, nullable
  - `statusCode` integer
  - `message` string, nullable
  - `isError` boolean, nullable
  - `responseException` unknown
  - `result` AuthTokenResponse
    - `token` string, nullable
    - `expirationDate` string, date-time, nullable
    - `status` 0 | 1 | 2 | 3
    - `user` User
      - `userUID` string, nullable
      - `fullName` string, nullable
      - `email` string, nullable
      - `role` 0 | 1
      - `profileImageURL` string, nullable

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `412`: Precondition Failed
- `500`: Internal Server Error

---

[API](https://skmtc.dev/approval/apis/public-api.md) · [All operations](https://skmtc.dev/approval/apis/public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/approval/apis/public-api/revisions/acf217b75f2a?raw)
