---
title: "POST /account/jwt/create/"
method: POST
path: "/account/jwt/create/"
tags: ["account"]
---

# POST /account/jwt/create/

`POST /account/jwt/create/`

Takes a set of user credentials and returns an access and refresh JSON web     token pair to prove the authentication of those credentials.
     Add access token to requests' header as Bearer Token for authentication.

## Request body

- object
  - `username` string, required
  - `password` string, required

## Response `200`

access and refresh tokens

- object
  - `refresh` string
  - `access` string
  - `pk` integer
  - `uuid` string, uuid
  - `expire_duration` integer
  - `expires_at` string, date-time

## Other responses

- `401` — Invalid username or password

---

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