Skip to main content
Question

401 Unauthorized invalid subscription key on POST v1_0/apiuser (sandbox)

  • September 27, 2026
  • 1 reply
  • 34 views

Hello, I'm registered on the MoMo Developer sandbox portal. When I try to create a sandbox API user (POST /v1_0/apiuser) using my Subscription Key from the Collection/Get Paid product, I get the error "401 - Access denied due to invalid subscription key". I confirmed I am subscribed to the product and I am using the Primary Key from my profile. Could you help me understand why this key is not being accepted?

1 reply

Selorm
  • New Member
  • September 29, 2026

When creating the apiuser, use the header key “Ocp-Apim-Subscription-Key” with your collection primary key as the value. 

Don’t forget to add your callback host in the body: {"providerCallbackHost": "example.com"}