Skip to main content

How to Generate an Access Token

Nosa O avatar
Written by Nosa O
Updated this week

To start an API session, you must obtain a unique access token. Your token is crucial for authenticating your API requests and ensuring that only authorised users can interact with the system.
​

API Endpoint

POST http://kuda-openapi-uat.kudabank.com/v2.1/Account/GetToken


Request Parameters

Parameter

Type

Description

email

string

The user's registered Kuda Business account email.

apiKey

string

The Business API key generated from the Kuda Business account

Sample Request

bash

curl \

-H 'Content-Type: application/JSON' \

-d '{

"email": "[email protected]",

"apiKey": "abcd1234keyexample" // generated key copied from the Kuda business API page

}' \

-X POST http://kuda-openapi-uat.kudabank.com/v2.1/Account/GetToken


​

Sample Response

ey.JefilwuhDFLKJHG8Y9IFLKJDSNF98879YJKFB8FKKJHHSdasfdnslfkjnIlnlKFJ&47kellCFKljfkdjbndksjds

Authentication Flow

  1. Obtain API Key - First, get your API key from the business dashboard

  2. Generate Access Token - Use this endpoint with your email and API key

  3. Use Bearer Token - Include the access token in all API requests
    ​

Common Issues

Request Errors

  • Invalid email - Ensure you're using your registered business account email

  • Invalid API key - Verify your API key is correct and active

  • Content-Type - Make sure to include the JSON content type header
    ​

Response Issues

  • Empty response - Check your credentials and try again

  • Token format - The response is a plain text token, not JSON

Did this answer your question?