---
title: "Generate Token"
method: POST
path: "/api/generateToken"
tags: ["Authentication"]
---

# Generate Token

`POST /api/generateToken`

## Request

- Base URL: `https://jiof.trxns.in`
- URL: `https://jiof.trxns.in/api/generateToken`
- Auth: none required

Issues the bearer token used for all subsequent authenticated calls.

## Request body

- GenerateTokenRequest
  - `client_id` string, required: Client credential.
  - `client_secret` string, required: Client secret credential.

## Response `200`

Success

- GenerateTokenResponse
  - `statusCode` integer
  - `statusDesc` string
  - `data` object
    - `id` integer
    - `name` string
    - `email` string
    - `token` string: JWT bearer token used for all subsequent authenticated calls.

---

[API](https://skmtc.dev/jiopay/apis/virtual-accounts.md) - [All operations](https://skmtc.dev/jiopay/apis/virtual-accounts/llms.txt) - [OpenAPI document](https://skmtc.dev/jiopay/apis/virtual-accounts/revisions/069638c81b20?raw)
