Unable to create api with the Tyk Gateway API

Hi, I am following documentation and trying to add new api. even after providing secret which is available in tyk.standalone.conf file i am getting follwing error message:
“status”: “error”,
“message”: “Attempted administrative access with invalid or missing key!”

I have added header x-tyk-authorization with the secret value

@sheetal_warbhuvan Welcome to the community :partying_face:

You may want to check the following:

  • the header key name x-tyk-authorization is not misspelt
  • the gateway secret is correct and is not being overridden via environment variables.
  • domain and port are for the correct gateway

If you haven’t changed or overridden the value, then you should get the warning displaying a change of the secret is needed

level=warning msg="Default secret should be changed for production." config.secret=352d20ee67be67f6340b4c0605b044b7 prefix=checkup

If you are on Kubernetes or using operator then this topic may be useful.

Hope this helps.