GUIDE 05 · AUTHENTICATION
Configure API request authorization
Choose how a request supplies credentials, check where they will be sent, and keep reusable values out of hard-coded request text.
Choose an authorization mode
-
No Auth
API Studio adds no generated authorization credentials. Any Authorization or API-key headers you entered manually remain part of the request.
-
Bearer Token
API Studio generates an Authorization header in this form:
Authorization: Bearer <token>Use the token exactly as issued by the API. Do not add the word
Bearerto the token field; the prefix is added for you. -
Basic Auth
Enter a username and password. API Studio joins them as
username:password, encodes the UTF-8 bytes with Base64 and generates:Authorization: Basic <base64-credentials>Base64 is encoding, not encryption. It does not protect the username or password. Send credentials only to an endpoint you trust, preferably over HTTPS.
-
API Key in a header
Set the header name (for example
X-API-Key) and its value. API Studio adds that header to the outgoing request. -
API Key in a query parameter
Set the parameter name (for example
api_key) and value. API Studio adds it to the request URL. Query-string credentials can appear in URLs, server and proxy logs, monitoring systems, copied links and browser history. Prefer a header when the API supports one.
Use an environment variable
Instead of typing a reusable credential into every request, create a variable in Manage beside the Environment selector. For example, name it accessToken and reference it in the authorization value as {{accessToken}}. Keep separate values in your development and staging environments.
Mark a variable as Secret to mask it in the editor and omit it from the safe backup export. Secret marking is a display and export safeguard, not encryption: workspace values are stored in this browser's localStorage for this website origin and are not encrypted at rest. Anyone with access to the same browser profile may be able to inspect them. Unmarked credentials in free-form text may remain in an export.
Check the destination before sending
The Generated destination preview shows the header or query parameter API Studio will add, with credential values masked. Use Show value only when you need to inspect a value on screen, then hide it again.
If a manual header or query parameter already uses the same name, API Studio does not overwrite it silently. Choose Use auth value for this send or Keep manual field. The original manual field remains saved either way; the choice controls how the current send is assembled.
Changing authorization settings saves the request configuration but does not send it. API Studio sends credentials only after you explicitly choose Send or Run. Review the destination, URL, headers and body first.
Understand common authorization errors
- 401 Unauthorized: the server or gateway did not accept the authentication credentials, or credentials were missing. Check the token, username/password, API-key name and environment selected.
- 403 Forbidden: the server understood the request but is refusing the operation. The identity may lack a required role, scope, subscription or resource permission. A valid credential does not guarantee access.
Exact behavior depends on the API. Check its authentication documentation and response body without sharing credentials in screenshots or support messages.
Current limits
API Studio currently supports No Auth, Bearer Token, Basic Auth, API Key in Header and API Key in Query on an individual request. It does not acquire or refresh OAuth 2.0 tokens, sign JWTs, configure client certificates, or inherit authorization from a collection or folder. Configure supported credentials on each request that needs them.
Credentials are saved in this browser's localStorage and are not encrypted at rest. Requests pass through the first-party API relay. Do not send secrets to an endpoint unless you trust that endpoint and understand its data-handling policy.
← All guides Open API Studio workspace →