API tokens for scripts
A script or another program cannot type a password. VahiWise gives each user an API token instead. The token stands for that user: it works with that user's role and nothing more. Only the owner makes tokens.
Applies to VahiWise 0.2.0Last updated 23-11-2026Chartered accountantabout 10 minutes
Before you start
- You are signed in as the owner. The Users & sign-in tab is shown to owners only.
- Treat a token like a password. Anyone who holds it acts as that user. It goes in the script's own settings, never in a message or a shared sheet.
Steps
1. Add a user for the script
Open Company & Data, then Users & sign-in. Under Add a user, type Report script in Name (marked 1), choose Viewer in Access (marked 2) and type a password of 8 characters or more (marked 3). Press Add user (marked 4). The message reads "Report script added (Viewer)." Choose the lowest access that does the job.

2. Make the token
In the Users table, find the row of Report script. Press New API token (marked 1). The message reads "API token for Report script", says it is shown once and asks you to copy it now, and then prints the token. Copy it into the script's settings before you leave the screen: VahiWise keeps no readable copy.

3. Send it with each request
The script sends the token in a header: Authorization: Bearer followed by the token. A request for /api/me on the app's address answers with the user's name and role, here "Report script" and "viewer".
4. Replace it when needed
Press New API token on the same row again to make another. The button's hint says the old token stops working. Do this when someone who should not have the token has seen it. Switch off on the row stops the user altogether.
Check it worked
- The user is listed with Password "set" and Access "Viewer".
- A request with the header answers with the user's name and role.
If something looks wrong
The tab is missing
You are signed in as an accountant, data entry or viewer. Sign in as the owner.
I lost the token
It is shown once. Press New API token again and use the new one.
Beside Tally
An API token is a way into VahiWise's books only. It has nothing to do with the link to Tally.
Could not verify
- A write through a token was not tried, and the role limits are as the app describes them.
- The old token being refused was read from the button's hint, not tried.
- The request was sent to the capture copy's own API address. The address on a real PC was not checked.
Notices
Tally and TallyPrime are trademarks of Tally Solutions Private Limited. VahiWise is an independent product and is not affiliated with, endorsed by or sponsored by Tally Solutions.
Questions about this guide: write to us from the contact page. What the notices mean: notices.