Login to your Formstack Administration account by visiting https://admin.formstack.com/
On the left locate Personal Access Tokens page.
Select "Generate api key" to create a new key. Fill in the name, description and optionally specify an expiry time.
The token generated there will be used in the "Authorization: Bearer <your_token_here>" header.