User

User

Generate user authentication tokens

get

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.

Authorizations
Query parameters
emailstring · emailRequired

User email address

countryIsoCodestringRequired

Country ISO code (e.g., NG, KE)

Responses
200
Successfully generated user tokens
application/json
get
GET /api/user/tokens HTTP/1.1
Host: sandbox-api.fonbnk.com
x-client-id: YOUR_API_KEY
Accept: */*
200

Successfully generated user tokens

{
  "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}