---
title: "Create JWT Token"
method: POST
path: "/gartan/api/token"
tags: ["Authentication"]
---

# Create JWT Token

`POST /gartan/api/token`

## Request

- Base URL: `https://api.creditbenchmark.com`
- URL: `https://api.creditbenchmark.com/gartan/api/token`
- Auth: none required
- TypeScript: <https://skmtc.dev/creditbenchmark/apis/credit-benchmark-api/docs/gartan/api/token/post.ts> (a function with typed inputs; its response is checked against the schema)

Create a JWT bearer token.

## Request body `application/x-www-form-urlencoded`

- object
  - `Username` string, required: Your Credit Benchmark username
  - `Password` string, password, required: Your Credit Benchmark password
  - `grant_type` 'password', required: Grant type for authentication

## Response `200`

JWT token generated successfully

- object
  - `access_token` string: JWT access token valid for 24 hours
  - `token_type` string: Token type (always "Bearer")
  - `expires_in` integer: Token expiration time in seconds (86400 = 24 hours)

## Other responses

- `400`: Bad request - invalid parameters
- `401`: Unauthorized - invalid or missing JWT token

---

[API](https://skmtc.dev/creditbenchmark/apis/credit-benchmark-api.md) - [All operations](https://skmtc.dev/creditbenchmark/apis/credit-benchmark-api/llms.txt) - [OpenAPI document](https://skmtc.dev/creditbenchmark/apis/credit-benchmark-api/revisions/b357bbdb41e6?raw)
