PentesysDocs Sign in

Personal API keys

One key, created in the portal, for both the Pentesys API and the MCP connector. A key acts as you and can never do more than your role allows.

Applies to
Enterprise portal, API, MCP connector
For
Developers, integrators, anyone using an AI assistant
Permissions
none to create your own · users.manage to manage others'
Reading time
2 min
Last updated
26 November 2026

Creating a key#

  1. In the Enterprise portal open the account menu and choose API keys.
  2. Name: something you will recognise later, up to 80 characters, for example "SIEM export" or "Claude Code on laptop".
  3. Access: Read only (the default, recommended) or Read and write. A read-only key cannot change anything, whatever your role.
  4. Expires after: 30 days, 90 days (default) or 1 year.
  5. Select Create key and copy it straight away from "Your new key: copy it now". It is shown only once.

A key looks like pts_ followed by 40 letters and digits. Afterwards it is shown only by a hint such as pts_7Gk2…Q9xT. Pentesys stores only a one-way fingerprint and cannot show or recover a key.

Treat a key like a password. Keep it in a password manager or your platform's secret store. Never put it in source code, a shared document, a ticket or a chat, and never send it to Pentesys support.

Using a key#

Send it as a bearer token in the Authorization header:

Authorization: Bearer pts_YOUR_KEY

The same key works for the API (https://api.pentesys.io/v1) and the MCP connector (https://api.pentesys.io/mcp). See Authentication for storing it safely in scripts and CI.

What a key can do#

  • It belongs to you and to the organisation you were working in when you created it.
  • Every request is checked at that moment: the key exists and has not expired or been revoked; your organisation allows API keys; your membership is Active and you are still in the organisation; and your current role allows the action. Change your role and the key changes with it.
  • A read-only key can only read. A read and write key can change only what your role permits.
  • If you are limited to asset groups, the key is too.

Managing keys#

ColumnMeaning
KeyName and hint.
AccessRead only, or Read and write.
StateActive, Revoked or Expired.
CreatedWhen, and when it expires.
Last usedDate, time and IP address of the last request, or "Never".
  • Revoke stops a key immediately. Revoked and expired keys stay listed for reference.
  • You can have up to 10 active keys. Revoke one you no longer use to make room.
  • Members with users.manage also see Other members' keys and can revoke any of them.
  • Suspending a member revokes all their keys; removing a member stops them working.
  • Administrators can turn keys off for the whole organisation in Settings → Security & access; existing keys stop working at once.
  • The audit history records API key created (name, access, expiry) and API key revoked (by its owner, by an administrator, or because the membership was suspended).

Good practice#

  • One key per script, integration or AI client, named after it, so you can revoke one without affecting the others.
  • Read only unless the job really changes data.
  • The shortest expiry that works; put the renewal date in your calendar.
  • If a key may have leaked, revoke it immediately and create a new one. Check Last used for activity you do not recognise.