Skip to content

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.

  1. Open a request and select the Auth tab.
  2. Select Bearer Token from the Type dropdown.
  3. 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.

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.

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:

Terminal window
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.