Getting 1401 Error while generating JWT token

Bronze Contributor
Bronze Contributor

While trying to get the JWT token using the post API, am getting following response.

{ "returnCode" : 1401 , "message" : "Authentication failed."}

I followed the same syntax in cURL

curl -X POST \ https://api.tealiumiq.com/v2/auth \ -H 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode 'username={email}' \
--data-urlencode 'key={api_key}'

 

Public