I'm testing an API, and at some point, one function creates a TOKEN, and I need that token on HEADER for the next function to work. I search and tried everything but without success.
Here, under the POST CREATE MODEL I have:
This is for the function Bearer
This is my HTTP manager, where I need a token.
Here is the big token, it's because have a lot of bytes?

If I put a token manually, work, but I need that automated. And I can't do that. Someone can help this poor QA intern?
Ty guys <3
You don't need the Beanshell PreProcessor (moreover since JMeter 3.1 it's recommended to use JSR223 Test Elements and Groovy language for scripting), just HTTP Header Manager will be sufficient assuming that your EXTRACTOR Token really extracts the token, check your ${auth_token} variable value using Debug Sampler and View Results Tree listener combination
Just in case here's how I would use JSON Extractor: