Skip to main content
GET
/
api
/
v3
/
auth
/
api-key
/
secure
Generate API Key.
curl --request GET \
  --url https://sandbox-api.kotanipay.com/api/v3/auth/api-key/secure \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "Api-key generated successfully",
  "data": {
    "key": "5f9b2c7b9c9d6b0017b4e6b1"
  }
}
Generate an API key that can be used to authorize transactions and other API operations.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

success
boolean
Example:

true

message
string
Example:

"Api-key generated successfully"

data
object