Share via

[Hardware Dashboard API] 401 Unauthorized Error (“The parameter value is invalid”) When Calling GET /v2.0/my/hardware/products with Valid Token

Kelly Chen 5 Reputation points
2026-02-23T10:43:53.71+00:00

Hello Support Team,

We would like to automate CHID publish/check WU status/get ids through Hardware Dashboard API.

Since the API access is bound to the product owner tenant, could you please confirm if API access is enabled on your side?

  1. I created app in https://entra.microsoft.com, and obtain Taneant ID, Client ID, Client Secret successfully.
  2. when i login Hardware Dashboard with a Global admin/owner/Manager> Setting, I can not see API Access.

Please investigate and provide guidance on how to resolve this.

Thank you.

Microsoft Partner Center API
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Kelly Chen 5 Reputation points
    2026-03-17T06:52:27.43+00:00

    Issue resolved.

    thanks

    0 comments No comments

  2. Kelly Chen 5 Reputation points
    2026-02-23T11:07:41.4133333+00:00

    I found APP in user management>Add Microsoft Entra application. And problem resolved.

    0 comments No comments

  3. Q&A Assist
    2026-02-23T10:44:02.2166667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To resolve the 401 Unauthorized error when calling the Hardware Dashboard API, ensure the following:

    1. Valid Access Token: Confirm that you are using a valid Microsoft Entra ID access token. If you are receiving a 401 error, it may indicate that the token is invalid or expired. You can refresh the token if needed.
    2. API Access: Since you mentioned that you cannot see API Access in the Hardware Dashboard settings, ensure that your account has the necessary permissions. Only accounts that belong to the Hardware Partner Center program can use the Hardware Dashboard APIs. You may need to verify that your application is properly registered and that the service principal has been added to your publisher account.
    3. Service Principal: Make sure that the correct service principal is added to your publisher account in the Cloud Partner Portal. If you have not done so, follow the steps to add your service principal to the portal as outlined in the prerequisites documentation.
    4. Correct Object ID: When adding the service principal, ensure that you are using the correct Object ID. There are two Object IDs in the Microsoft Entra app registration page, and you must use the local Object ID associated with your application.

    If you have verified all of the above and still encounter issues, consider reaching out to Microsoft support for further assistance with your API access and permissions.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.