Cumulocity API calls resulting in Invalid credentials

What product/components do you use and which version/fix level?

Cumulocity IoT tenant Backend: 1013.0.143 UI: 1013.0.143

Are you using a free trial or a product with a customer license?

Partner tenant

What are trying to achieve? Please describe in detail.

Trying to create a device using Postman with c8y library imported.
Tried {{url}}/inventory/managedObjects with:
body : {
“name”: “testMeasurementDevice”,
“c8y_IsDevice”: {},
“c8y_SupportedMeasurements”: [

Checked and double checked my user id and password used in creating the OAuth to be correct and was able to use it to login to my tenant. But the Postman API call failed.
I do have the right roles as a Cumulocity user on my tenant.

Do you get any error messages? Please provide a full error message screenshot and log file.

“error”:“general/internalError”,“message”:"Invalid credentials! : The user agent is forbidden for Basic Authentication.

Have you installed latest fixes for the products

I think this is the latest release

Hi Eddie,
I see your error message is refering to the “user agent”. Within Cumulocity Administration it is possible to explicitely trust/forbid requests based on their “user-agent” header field, see more details here: Administration - Cumulocity IoT Guides

Thus, could you:

  • check in your tenant under Administration>Settings>Authentication if there’s according entries for trusted/allowed user-agents
  • share the header fields of your Postman request

Best, Korbinian

Thanks Korbinian.
Problem fixed per your suggestion.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.