...
Suppose your login API returns the authentication token as part of response headers (Response header `x-auth-token`) on submitting valid credentials. Then you may extract this token via Variable Extractor sub-tab of login test case with the help of a built-in utility method `extractHeaderValue`, as shown in the below snapshot:
here "x-auth-token" is the name of the response header which carries the authentication token.