OAuth & API
Manage API request filtering, personal access tokens, OAuth clients, and authorized applications.
Open Admin > OAuth & API as a superuser.
| Tab | What you can do |
|---|---|
| Request Filtering | Block API requests by User-Agent. |
| User API Tokens (Personal Access Tokens) | Review each token's owner, status, scopes, and expiration. Use Revoke or Unrevoke on an individual token. Users create their own tokens under Manage API keys. Generating API Tokens |
| OAuth Clients | Use Create Client to register an application with a name and a Redirect URL. Review existing clients, their redirect URLs, and token counts. Use the row actions to manage a client. |
| Authorized Applications | Review apps with existing authorizations. Removing an entry revokes the associated access tokens for that client. |
Filter API requests by User-Agent
- In Request Filtering, select Block API requests by User-Agent.
- Enter one prefix per line under Blocked API User-Agent patterns. Snipe-IT compares the start of the header without regard to case.
- To also reject requests without a User-Agent, select Also reject API requests with a blank User-Agent. SCIM endpoints accept blank User-Agents so directory provisioning can continue.
- Save and test the integrations that use your instance. A request blocked by this filter receives HTTP
403 Forbidden.
For external identity-provider access tokens, see OIDC authentication for the API. For scripts that use a personal access token, see Authenticating with the API.
Updated about 5 hours ago
Did this page help you?
