Get gtt by pml id not working

What’s wrong here?

curl -i “” -H ‘x-jwt-token: ’

HTTP/2 401
content-type: application/json
content-length: 46
x-amzn-trace-id: Root=<>
x-api-name: /gtt/v1/gtt
x-start-time: 1676811815280
expires: Sun, 19 Feb 2023 13:03:35 GMT
cache-control: max-age=0, no-cache, no-store
pragma: no-cache
date: Sun, 19 Feb 2023 13:03:35 GMT


Hi @codeofnode
401 is sent from our side in case of an invalid jwt. Please make sure that you are sending a correct jwt.
Also, Please note that the “Get GTT By Status and User” can only be accessed using {access_token}.

For more details check out the API docs:

Why don’t server send 403 then? or at least a meaningful error code.

@codeofnode we are currently sending 401 UNAUTHORIZED error codes as the response in cases where the jwt is invalid or unauthorized.

401 response status code indicates that the client request has not been completed because it lacks valid authentication credentials for the requested resource.