Bearer Token
What Is a Bearer Token?
A bearer token is an access credential that lets whoever presents it call a protected API or service. It is commonly an access token, but “bearer” describes how it is used: possession grants access.
How Bearer Token Authentication Works
The server issues and checks the credential.
- A user or app authenticates with an authorization server.
- The server returns a token with allowed permissions.
- The app sends it with an API request.
- The API validates it, then allows or rejects the request.
Bearer Token Authorization Header Format
The standard format defined by RFC 6750 is Authorization: Bearer <token>. Do not put tokens in URLs, which may be logged, shared, or bookmarked.
Bearer Token vs JWT vs API Key
| Credential | What it describes |
|---|---|
| Bearer token | A credential accepted from its holder. |
| JWT | A structured token format, which can be used as a bearer token. |
| API key | An app identifier that may act as a bearer credential if the API accepts it that way. |
Benefits of Bearer Tokens
Well-designed authorization systems can limit access precisely.
- Support delegated access and narrow permission scopes.
- Can expire, rotate, or be revoked by the issuing system.
Practical Limits and Security Risks
A stolen bearer token can usually be replayed until it expires or is revoked.
- Logs, source control, browser storage, and query strings can expose tokens.
- A token alone does not prove its original user is currently present.
Safe Bearer Token Practices
Treat a token like a password.
- Use HTTPS, short lifetimes, least-privilege scopes, and secure storage.
- Redact tokens from logs and use refresh tokens only when needed.
Bearer Tokens in Apps Built With Emergent
Emergent can help teams build API integrations that keep secrets in environment variables, make authenticated backend requests, and test protected endpoints before release. Build secure API integrations with Emergent.
on Emergent today

