---
title: "Generate user authentication tokens"
method: POST
path: "/api/user/tokens"
tags: ["user"]
---

# Generate user authentication tokens

`POST /api/user/tokens`

Generates authentication tokens for a user. Creates a new user if one doesn't exist with the provided email. This feature is disabled by default and can be enabled by contacting Fonbnk support.

## Request body

- object
  - `email` string, required — Email of a user
  - `countryIsoCode` string, required — Country code

## Response `200`

Successfully generated user tokens

- object
  - `accessToken` string — JWT access token for user authentication
  - `refreshToken` string — JWT refresh token for token renewal

---

[API](https://skmtc.dev/fonbnk/apis/fonbnk-on-ramp-api.md) · [All operations](https://skmtc.dev/fonbnk/apis/fonbnk-on-ramp-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/fonbnk/fonbnk-on-ramp-api/revisions/bae5de6fca88/schema)
