Skip to content

Auth with webpage using API key/token #19252

Closed

Description

@AdamKearn

We’re using Snipe-IT and it’s working really well for our environment.

I’m looking to automate printing asset labels using a script that controls a headless browser. Ideally, I’d like to authenticate the browser session using an API key or another long-lived token, rather than relying on a user login.

The goal is to authenticate programmatically, then navigate directly to the label page and trigger printing:

https://snipe.company.local/hardware/XXXX/label

Is there a supported way to authenticate web requests using an API key (for example, via an HTTP header or bearer token) so the browser session is considered authenticated?

I’d prefer not to rely on session cookies, as they eventually expire, and our instance uses SAML authentication, which makes automated login more complicated.

Activity

  1. locked and limited conversation to collaborators on Jul 3, 2026
  2. converted this issue into a discussion #19263 on Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions