OAuth & API

Manage API request filtering, personal access tokens, OAuth clients, and authorized applications.

Open Admin > OAuth & API as a superuser.

TabWhat you can do
Request FilteringBlock 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 ClientsUse 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 ApplicationsReview apps with existing authorizations. Removing an entry revokes the associated access tokens for that client.

Filter API requests by User-Agent

  1. In Request Filtering, select Block API requests by User-Agent.
  2. Enter one prefix per line under Blocked API User-Agent patterns. Snipe-IT compares the start of the header without regard to case.
  3. 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.
  4. 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.


Did this page help you?