The problem
A script, add-on or old XML API integration fails with an application token error. Someone “fixes” it by unchecking Require Application Tokens on the app, quietly lowering its security.
How the two tokens actually work
- App tokens answer “is this caller allowed to make API calls to this app?” They’re an extra string you add to calls that authenticate with a ticket (
API_Authenticate) or username and password. - User tokens combine both jobs: they identify the user and grant API access. If a call authenticates with a user token, no app token is needed, even if the app requires one. Quickbase doesn’t even check it.
The setting lives in App settings → App properties → Advanced settings → Security options → Require Application Tokens, with a Manage Application Tokens link next to it.
The fix
- Find out how the failing call authenticates. If it uses a ticket or username/password, it needs a valid app token assigned to that app.
- Better: move it to a user token on a service account (see user tokens for integrations). Then the app-token requirement no longer applies.
- Leave Require Application Tokens on for apps with sensitive data. Quickbase recommends app tokens unless you authenticate with user tokens.
- For XML API calls, pass the user token with the
usertokenparameter (it works with any API that doesn’t post to adb/mainURL, plusAPI_GrantedDBs).
Gotchas
- Exact forms use the API but don’t support app tokens. If you use exact forms, application tokens must be disabled for that app.
- Each user can create up to 100 user tokens. Use one per integration, not one shared token, so you can revoke them individually.
- Assign user tokens to specific apps so a leaked token can’t reach the whole realm.
How to prevent it
Standardize on user tokens on service accounts for every integration, and treat “turn off app tokens” as a last resort, not a fix.