Skip to content

Security checks: REST API

Tokens for the REST API (/api/v1). Core tokens never expire and have full access.

From V8.3.0, these checks run in php artisan rconfig:security-check and in Security Center. Run only this group with:

Terminal window
cd /var/www/html/rconfig
php artisan rconfig:security-check --only=api

A failing check shows the fix for your server, with its real paths, on the page and in the command output. The fixes below use the default install folder, /var/www/html/rconfig.

Check Severity Checks that
api.tokens Medium REST API tokens are rotated

Check ID: api.tokens · Severity: Medium

Why it matters: REST API tokens never expire and give full access to the API. The longer a token lives, the more places it has been copied to, so old tokens should be replaced.

How to fix: Create a new token under Settings > REST API, move your scripts to it, then delete the old one.

References: NIST IA-5(1), NIST AC-2(3), OWASP ASVS V3.5


See Security hardening for the server settings behind these checks.