---
title: "Get an Authentication Token (API V2 only)"
method: POST
path: "/token"
tags: ["Authentication"]
---

# Get an Authentication Token (API V2 only)

`POST /token`

Retrieves the access token, token type and the refresh token.

## Headers

- `Pricefx-Key` string, required

## Request body

- object
  - `username` string, required
  - `partition` string, required
  - `password` string, required — A clear-text password.

## Response `200`

Login was successful. The response contains the access token, token type and the refresh token.

- object
  - `access-token` string, required
  - `refresh-token` string, required
  - `token-type` string, required
  - `expires-in` number, required

## Other responses

- `400` — The request was malformed.
- `401` — Unauthorized - the login credentials were incorrect.
- `403` — Forbidden - The request did not contain a valid Pricefx-Key, the provided credentials in `body` were incorrect, the user was banned or not found or device registration required.

---

[API](https://skmtc.net/pricefx/apis/the-pricefx-backend-api.md) · [All operations](https://skmtc.net/pricefx/apis/the-pricefx-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pricefx/the-pricefx-backend-api/versions/0850b5d6be73/schema)
