Authentication
Configure authentication for your API requests using Bearer tokens, Basic Auth, or API Keys.
The Auth tab lets you configure authentication for your request. Select the type from the dropdown and fill in the required fields.
Bearer Token
Used for token-based authentication. The token is sent as an Authorization: Bearer <token> header.
- Select Bearer Token from the Auth Type dropdown
- Paste your token in the input field
- The
Authorizationheader is automatically added when sending
curl
curl -X GET "https://api.github.com/user" \
-H "Authorization: Bearer ghp_xxxxxxxxxxxx"
javascript
fetch("https://api.github.com/user", {
headers: { "Authorization": "Bearer ghp_xxxxxxxxxxxx" }
}) Basic Auth
Used for username and password authentication. The credentials are base64-encoded and sent as an Authorization header.
- Select Basic Auth from the Auth Type dropdown
- Enter your username and password
- The header is automatically generated
API Key
Send a key-value pair as either a header or a query parameter.
- Select API Key from the Auth Type dropdown
- Enter the key name (e.g.,
X-API-Key) and its value - Choose Header or Query Parameter as the location
Using Environment Variables
Store your tokens and credentials as environment variables instead of typing them directly:
- Define a variable like
tokenin your environment - Use
{{token}}in the auth field - The value is resolved when the request is sent
This is a safer practice — credentials are stored in one place and can be switched between environments.
Learn more
- Environments — manage variables
- HTTP Authentication — MDN
On this page
Racoon