REST authentication
REST authentication is configured at the connection level and selected at the query level.
Supported auth types in Connections
- Basic: username/password
- Bearer: token-based header
- OAuth2 (Client Credentials): machine-to-machine token flow
Configure authentication on a connection
- Open Settings > Connections > APIs
- Open your connection
- Go to Authentication
- Click Add authentication
- Select auth type
- Fill required fields
- Click Save
You can store multiple auth configs on one connection.
Select auth in a query
- Open connection in API Editor
- Open/create a query
- Select auth config for the query
- Click Send
- Save query
Auth configuration guidance
- Create separate auth entries per environment when needed.
- Use clear names (
Prod Bearer,Staging OAuth2). - Re-test all affected queries after editing a shared auth config.
Using SSO token bindings
If SSO is configured, you can bind the current user token in request fields.
{{ Current User.OAuthToken }}Common usage:
- Authorization header values
- Request body fields for delegated APIs
- Request params in legacy endpoints
Troubleshooting matrix
| Symptom | Likely cause | Fix |
|---|---|---|
401 Unauthorized | Missing/wrong credentials | Verify auth values and query auth selection |
403 Forbidden | Valid auth, insufficient scope/role | Check provider scopes/permissions |
| Works in one query but not another | Query using different auth config | Compare auth selection per query |
| Token expires quickly | Provider token policy | Use OAuth2 flow and retest token lifecycle |
Related guides
Updated 12 days ago