Where to Find API Tokens
API tokens live in your personal settings inside the NMS application.- Open Palpabl NMS (see the quickstart if you need help getting into the app).
- Click your user avatar and go to Settings.
- Select the API tokens tab.
Tokens are personal. The list shows only the tokens you created, and each token carries a snapshot of the permissions you held when it was created.
pnms_pat_a1b2c3d4…f9g0) so you can tell your tokens apart.
Creating a Token
- On the API tokens tab, click Create token.
- Choose the permissions the token should have. You can grant any subset of the permissions you currently hold — use Select all to grant everything, or pick individual scopes. A token can never be granted a permission you don’t have yourself.
- Set an expiry date. Tokens default to 90 days and can be set to a maximum of one year from today. We recommend the shortest window that fits your use case.
- Click Create token.
Using a Token
Send the token in theAuthorization header of your request to the NMS API as a bearer token:
curl:
This is the same token format used to set up collectors. Drop the token into your collector’s configuration wherever an API token or bearer token is requested.
Updating a Token
You can change a token’s permissions or expiry date without re-issuing it — the token value stays the same, so services using it keep working.- On the API tokens tab, click the pencil (edit) icon next to the token.
- Adjust the selected permissions and/or the expiry date.
- Save your changes.
Permission and expiry changes take effect within a few minutes as the change propagates.
Deleting a Token
Deleting a token immediately and permanently revokes it.- On the API tokens tab, click the trash (delete) icon next to the token.
- Confirm the deletion.
Best Practices
Treat tokens like passwords
Never commit a token to source control, paste it into a ticket, or share it in chat. Store it in a secrets manager or a protected configuration file.
Grant the least access needed
Only select the permissions a service actually requires. A read-only collector doesn’t need write scopes.
Use one token per service
Give each collector, script, or integration its own token. If one is compromised, you can revoke it without disrupting the others.
Set short expirations and rotate
Prefer shorter expiry windows and replace tokens before they lapse. Rotating regularly limits the damage a leaked token can do.
Delete unused tokens
Remove tokens for retired services or one-off tasks. Fewer live tokens means a smaller attack surface.
Rotate immediately if exposed
If a token is ever leaked, delete it right away and issue a replacement. Don’t wait for it to expire.
Troubleshooting
I lost my token right after creating it
I lost my token right after creating it
The full token can’t be recovered. Delete the token from the API tokens tab and create a new one, then update wherever it was being used.
My requests are being rejected as unauthorized
My requests are being rejected as unauthorized
A service stopped working unexpectedly
A service stopped working unexpectedly
Check whether the token expired or was deleted, and whether your own permissions changed. Editing a token can only assign scopes you currently hold, so a change to your access can affect tokens you update.