Skip to main content

🔑 How to create an API key for reporting tools

Create, store and revoke a read-only API key so reporting tools can use your Papertrail data.

Written by Michael Butler

An API key lets reporting tools, such as Google Sheets, Power BI or Excel, read your Papertrail data and keep a report up to date. The key can only read data. It can't change anything. This guide walks you through creating, storing and revoking a key.

API keys are an add-on. They aren't switched on by default, and only account admins can use them. If you can't see Integrations in the Menu, API keys may not be enabled on your account yet. To add them, contact your Account Manager or our Support Team. See How to activate new features and functionality.


Step 1: Open API Keys

  • Sign in to Papertrail and open the Menu.

  • Go to Integrations and choose API keys.


Step 2: Create Your Key

  • Click Create API key.

  • Name: say what the key is for, such as 'Power BI – monthly register report'.

  • Expiry: the default is 90 days and the longest is one year.

  • Click Create key.


Step 3: Copy Your Key

  • Click Copy key and paste it straight into your reporting tool, or into a password manager.

  • Click Done.

You won't be able to see the key again. If you lose it, revoke it and create a new one.


Keep Your Key Safe

  • Treat the key like a password. Anyone who has it can read the same data you can.

  • Use one key per report, so you can revoke one without breaking the others.

  • When a key expires, your report stops refreshing. Create a new key and paste it in place of the old one.


Revoke a Key

  • Go to Menu → Integrations → API keys.

  • Find the key and click Revoke.

  • Click Revoke again to confirm. Anything using the key stops working straight away, and this can't be undone.

Revoke a key at once if you think someone else has seen it.


What the Key Can See

The key sees what you see. It reads the same Papertrail data you can access when you sign in, in accounts where you're an admin and API keys are turned on, including records partners have shared with those accounts.

Data

What you get

Subscriptions and accounts

Your subscriptions and the accounts they group. No billing or plan details.

Asset register

Records with their folders, tags and states, as a list or one record at a time.

Checklists

Legacy and new checklists, with their sections, questions and answer options.

Schedules and frequencies

Inspection schedules, and how often each frequency repeats.

Inspections

For each record, its completed inspections with their answers, and any inspections still in progress.

Members

The people on each account, with their name, email and role.

  • Read-only: it can't create, edit or delete anything.

  • Admins only: it only works on accounts where you're an admin and API keys are turned on.

  • Your own access: it never sees more than you do, and never sees other customers' data.

If you need something your key can't read yet, contact our Support Team so we can prioritise it.


Usage Limits

Every request a key makes counts towards one shared limit, whatever it reads:

Limit

Allowance

Per minute

60 requests per key

Per day

20,000 requests per key, reset at midnight UTC

A typical report refresh uses only a few dozen requests, and our recipes slow down automatically if they reach the limit.

If a report refreshes many times a day, give it its own key so it doesn't use up another report's daily allowance.

These limits are part of our Terms and Conditions.


Read the API Documentation

The API documentation lists everything your key can read, what each part is for and how to ask for it. Open it from Menu → Integrations → API documentation, or click API documentation on the API keys page.

You can also try requests there: paste your key into the page and send a request to see the real response. The page doesn't save your key.


Next Steps

Our guides walk you through an example report:

Want to build something different? Start with the API documentation, or contact our Support Team and we'll help you get started.


Related Articles

Still can't find the answer you need? We'd love to help!

Contact our Customer Support Team via the chat button in the lower right corner of the screen, on +44 (0)1248 719270 or at support@papertrail.io.

Did this answer your question?