All Masterdata APIs Returning “Invalid Authorization” – Token Works for Other APIs

Hi Community,

I’ve created a Masterdata with 3 columns and downloaded the Swagger file. I’m using a token generated from the Sandbox Reels Token section to authenticate.

However, whenever I try to access any Masterdata API (including the filter API), and I pass the required values like:

  • entityId
  • masterdataId
  • datasetId

I consistently receive this error response:

{
  "message": "Invalid authorization."
}

The same token works perfectly with other Reels-based APIs. The issue seems to be specific only to the Masterdata APIs.

  • Is there any special configuration or permission required for accessing Masterdata APIs?
  • Does Masterdata expect a different token or additional headers?
4 Likes

add the generated token in the Token section

or test using postman using below curl

curl -X ‘POST’
https://sandbox.neutrinos-apps.com/integration/api/records/filter/1e85dca6-a371-49e9-8383-398d356035a0/7b6fdf63-9074-4357-9304-66fe1d88f453/d1f037a4-91f4-4f0b-a461-4a485244bcbb
-H ‘accept: application/json’
-H ‘token: putyourtokenhere’
-H ‘Content-Type: application/json’
-d ‘{
“pageNumber”: 0,
“pageSize”: 0,
“multiplicity”: “string”,
“filter”: {
“additionalProp1”: 0,
“additionalProp2”: 0,
“additionalProp3”: 0
},
“select”: [
“string”
],
“distinct”: [
“string”
]
}’

5 Likes

@sonu.suresh Thank you so much for your help! Your solution worked perfectly, and I’m now able to access the Masterdata APIs without any issues.

4 Likes