Two credential types
Both carry the same access and the same entitlement checks. A token is not a reduced credential, so give each consumer its own and revoke individually. See Personal API tokens.
Status codes you will see
A
401 after a deployment usually means AUTH_SECRET was rotated, which invalidates sessions. Personal API tokens survive a rotation, because they are stored as hashes rather than signed. See Rotate secrets.
Keep the token out of your history
Read it from an environment variable rather than typing it into a shell.Related
Error responses
The envelope every failure returns.
Authentication and accounts
Sessions, guards and entitlements.