---
title: "Fetch JWT token"
method: POST
path: "/auth/jwt/token"
tags: ["Auth"]
---

# Fetch JWT token

`POST /auth/jwt/token`

Returns JWT `accessToken` and `refreshToken`.

## Request body

- UserCredentials
  - `email` string, required — User email
  - `password` string, required — User password
  - `server` string, required — Name of the broker server, also used during web login.

## Response `201`

Created

- JWTTokensResponse
  - `accessToken` string, required — Access token for accessing /trade APIs.
  - `refreshToken` string, required — Refresh token for refreshing JWT tokens.
  - `expireDate` string, required — Access token expire date.

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/tradelocker/apis/trading-api.md) · [All operations](https://skmtc.net/tradelocker/apis/trading-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tradelocker/trading-api/revisions/5b184d9b617c/schema)
