---
title: "Generate a JWT token"
method: POST
path: "/authenticate/session"
---

# Generate a JWT token

`POST /authenticate/session`

## Request

- Base URL: `https://gateway.pmnts-sandbox.io/v1.0`
- URL: `https://gateway.pmnts-sandbox.io/v1.0/authenticate/session`
- Auth: HTTP basic

This API generates a JWT token to initiate the SCA/3DS2 process.

## Headers

- `Content-Type` string

## Request body

- object
  - `amount` integer: A positive integer representing how much to charge, in the smallest currency unit (eg., 100 to charge $1.00, or 100 to Charge ¥100, a zero decimal currency)
  - `currency` string: Three letter [ISO currency code](https://pmnts.readme.io/docs/iso-currency-codes), in UPPERCASE

## Response `200`

200

- union
  - object
    - `successful` boolean
    - `response` object
      - `jwt` string
    - `errors` unknown[]
      - unknown
    - `test` boolean
  - object
    - `successful` boolean
    - `response` object
    - `errors` string[]
    - `test` boolean
  - object
    - `successful` boolean
    - `response` object
    - `errors` string[]
    - `test` boolean

## Changes

- **2026-11-03** `a62ddbae3800`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/fatzebra/apis/gateway/changes/authenticate/session/post.md)

---

[API](https://skmtc.dev/fatzebra/apis/gateway.md) - [All operations](https://skmtc.dev/fatzebra/apis/gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/fatzebra/apis/gateway/revisions/a62ddbae3800?raw)
