Skip to main content
Question

How to generate api key

  • September 10, 2026
  • 1 reply
  • 5 views

How to get my api key

1 reply

  • New Member
  • September 11, 2026

@IT Shadow , Use the user provisioning APIs below to create the api user and api key on sandbox

Create API user: https://sandbox.momodeveloper.mtn.com/v1_0/apiuser. The ‘X-Reference-Id’ as the one below becomes the API user when the API response HTTP code is 201 Created. 

IMPORTANT: X-Reference-Id is UUID v4

--header 'X-Reference-Id: 3e0f9b1c-7a24-4c56-b381-2d6a5f9e7c78' 

Next, parse the X-Reference-Id to the API key generation API as shown below. An HTTP response code of 201 Created means the API user’s corresponding API key has been created and can therefore be used to generate tokens for subsequent requests.

 https://sandbox.momodeveloper.mtn.com/v1_0/apiuser/3e0f9b1c-7a24-4c56-b381-2d6a5f9e7c78/apikey

API Response for success

{
"apiKey": "187728e7cd33449db86d1f32140920a8"
}