Google Apps Scripts
Build your own Google Sheets integration with the Snipe-IT API.
Google Apps Script lets you connect a Google Sheet to the Snipe-IT API. You can write a script to pull inventory into a sheet, build a custom report, or send updates from spreadsheet rows. Your Snipe-IT instance needs to be reachable from Google's servers over HTTPS.
Build your own integration
- Open your spreadsheet and choose Extensions > Apps Script to create a script attached to that sheet. Google's Sheets guide
- Choose the API endpoint for your task. For a first test, use
GET https://assets.example.com/api/v1/hardware?limit=5with your own instance URL. This fetches a small batch of assets. Snipe-IT API reference - Make the request with
UrlFetchApp.fetch(). Send theAccept: application/jsonheader and anAuthorizationheader containingBearerfollowed by a Snipe-IT API token. Use an account with the permissions the script needs. Keep the token out of spreadsheet cells and shared script source. Google's URL Fetch reference · Generate a Snipe-IT API token - Parse the JSON response and write the fields you need to the sheet. For the asset list, the records are in
rows. Use pagination to fetch larger lists. API overview - Select your function and click Run in the Apps Script editor. Google may ask you to authorize the script. If your script writes to Snipe-IT, start with a few records and check the results before processing the full sheet. Back up Snipe-IT before running bulk updates.
Start from an example
If you'd like a starting point, we publish example scripts you can use or adapt. Each script's README explains its inputs and setup. Google Apps Scripts for Snipe-IT on GitHub
Updated 2 days ago
Did this page help you?
