Bearer token
Bearer token authentication sends a token in the Authorization header with the Bearer scheme. Use it for JWTs, personal access tokens, and other tokens your API issues outside of an OAuth 2.0 flow.
Set up a Bearer token
Section titled “Set up a Bearer token”- Open a request and select the Auth tab.
- Select Bearer Token from the Type dropdown.
- Paste the token into the Token field.
When you send the request, Nouto adds the header:
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...Nouto sends the token exactly as you enter it, after resolving any variables. Don’t type the Bearer prefix into the field.
Use a variable for the token
Section titled “Use a variable for the token”The Token field resolves {{variable}} references at send time:
{{ACCESS_TOKEN}}When the token changes, update the variable in your environment. Every request that references {{ACCESS_TOKEN}} uses the new value on its next send. Store long-lived tokens, such as GitHub personal access tokens, in a secret variable.
If your token comes from an OAuth 2.0 provider, use the OAuth 2.0 auth type instead. It fetches the token and refreshes it before it expires.
Copy as cURL
Section titled “Copy as cURL”To get a cURL command, right-click a saved request in the sidebar and select Copy as cURL. Nouto writes the token as a header:
curl \ https://api.example.com/resource \ -H \ 'Authorization: Bearer eyJhbGci...'Nouto resolves variables in the copied command, so the command can contain the real token.
