Huawei Developers
Published in

Huawei Developers

A Case Study of Resolving 403 Error During PMS API Call

Recently, a developer needed to access HUAWEI AppGallery Connect API and create a product through the PMS API (server API). However, when Postman was used for basic service interconnection tests, the error message “403 client token authorization fail” was displayed.

They checked the error code description and found that the error was caused by an authentication failure.

2.The official document suggested that the project associated with the API client be selected as N/A. They created an API client and associated it with a project. An app ID in this project was 100xxx591. However, the app ID in the Postman service request was 101xxx531, which might have caused the authentication failure.

3.To verify the assumption, they created an API client and selected N/A (indicating that all projects are supported) and used the client to request a token. The process then went well.

To draw a conclusion, If Huawei’s 403 authentication failure occurs, you can verify the permission first, and then check the associated projects.


For details about the PMS API, please refer to:



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store