Im here trying to get the API to work and can’t get passed a 400/403 error in postman.
Interestingly if I try the token in /web_interface/astpp/application/config/api.php I get a 400, all other times its a 403. (line 19 in the file)
Im trying to understand the docs but there is no mention what the x-auth-key is? The PRIVATE_KEY in astpp-config.conf ?
And whats the variables for authorization as I see that in the examples but not in the intro.
--header 'authorization: {{authorization}}'
Im assuming "token":"{{token}}", is just user passed on tokens/data correct?
Thanks and any feedback here would be super appreciated.
Edit: OK progress, using Chatgpt and the info for V5 here I was able to get 200 OK for https://example.com//api/login/ endpoint and returns a “token”. So it looks like x-auth-token is OK as well as “token” variables.
So Im assuming I reuse this “token” in the header for other requests? Im still not 100% on what the “authorization” header is.
Edit 2: Ok All done, once I entered the {{token}} in the body , taken from the token field after logging in via the api I was able to access other endpoints.