Personal Access Tokens
A Personal Access Token (PAT) is a credential you create and paste yourself. It is for the Waafir REST API and scripts, and for an AI assistant that cannot sign in: most assistants connect by pasting the Waafir URL and signing in, with no token at all. On Waafir's MCP servers every request carries either a connection made by signing in or a valid PAT. There is no anonymous access, and an ordinary logged-in browser session is not accepted on this surface (a session-authenticated request is rejected). A PAT acts as you, within your organization, bounded by the scope and data rooms you choose when you issue it.
Where to issue a token
Open Add-ons → Config → API tokens. The page has three parts: a form to issue a new token, the list of your existing tokens (with a revoke action), and a ready-to-use configuration snippet for connecting an assistant with a token.
To issue a token, fill in the form:
- Name — a human-readable label so you can recognize the token later (for example, "Claude Desktop – laptop"). Required.
- Scope — what the token is allowed to do. See below.
- Data room scope — leave All data rooms checked to let the token reach every data room you can access, or uncheck it and select specific data rooms to restrict the token to just those.
- Expiry — the date after which the token stops working. Optional to fill in, but not optional in effect: leave it blank and the token is issued with a 90-day expiry. See Expiry.
Scopes
A token carries one of three scopes, in increasing order of authority:
| Scope | Allows | Typical use |
|---|---|---|
read | Listing and reading — data rooms, folders, files, file metadata, search, download URLs, and viewing permissions; reading a document's extracted text; reading investor Q&A threads; checking the status of a redaction, translation or e-signature job. | A read-only assistant that answers questions about a data room. |
write | Everything read allows, plus mutations: creating, renaming, moving, deleting, and restoring folders; uploading, renaming, moving, deleting, and restoring files, including uploading a new version of a file and rolling one back; starting a document redaction or translation; and creating, sending, declining and voiding e-signature envelopes. Sending an envelope (or adding signers to one already sent) also needs Send to people outside your organization, and your assistant asks you to confirm before it sends. Signing (esign_sign) also needs Sign documents, and is likewise confirmed first. | An assistant that organizes or maintains a data room. |
admin | Everything write allows, plus the four permission-granting tools: granting or revoking a user's access to files and data rooms. Note that the three permission read tools need only read. | An assistant that manages who can see what. |
Scope is cumulative — a higher scope includes everything below it. The tool reference for each server states the minimum scope each tool requires.
Who can issue each scope
A token can never carry more authority than the person who issues it:
readandwritecan be issued by any active member of your organization.admincan only be issued by an organization owner or admin. If you are not an owner or admin, theadminoption does not appear in the scope selector.- Investors (and other non-deal-team roles) cannot issue tokens at all.
Beyond issuance, the admin permission tools apply a second ceiling at call
time: the token's owner must themselves be an admin or manager in the
organization for a permission grant to succeed. A token's scope is the
token's ceiling; the owner's role is the person's ceiling, and an admin
action has to clear both — exactly the rule the product UI applies. There is no
looser path through MCP than through the product.
Letting a token sign documents
Signing needs a token with Sign documents turned on. You choose it when you
create the token on Add-ons → Config, for a write or admin token, so
only an assistant you’ve trusted can sign for you. Creating a token already asks
for your two-factor code when you have two-factor turned on, so that check covers
every signature the token makes. The token list shows Can sign on each such
token.
Your assistant shows you the documents, the signer and the fields first, and
signs only when you confirm. A token without Sign documents is not shown
esign_sign in its tool list, and is refused if it calls it. Tokens created
before this option existed can’t sign: create a new one with Sign documents
turned on.
Letting a token read document content
Reading a document in full, or asking the AI about documents, needs a token with Read document content turned on. You choose it when you create the token on Add-ons → Config, at any scope. The token list shows Document content on each such token. It covers:
get_file_text, the full extracted text of a document;get_file_download_url, a link to download a file;esign_download_signed, a signed e-signature PDF;- the download link
translate_file_statusreturns for a finished translation; GET /api/v1/files/{fileId}/content, the document bytes over the REST API;POST /api/viewer/token,POST /api/viewer/artifact-accessandPOST /api/viewer/artifact-access/unlock, which mint the viewer token or cookie the in-product document viewer streams a document against;- the AI tools whose question or input you write, since an answer can repeat
what a document says:
dataroom_ask,dataroom_draft_answer,dataroom_compare_filesanddataroom_generate_update; POST /api/v1/chat, the same AI answer over the REST API;- the
quoteof each factGET /api/v1/factsreturns.
A token without it is refused those tools (GRANT_REQUIRED) and those REST
routes (PAT_GRANT_REQUIRED), and translate_file_status returns the status
with download_withheld_reason: content_grant_required instead of a link.
GET /api/v1/facts and dataroom_list_facts return each fact without its
quote, with value cut to 20 words and value_truncated set. The token can
still list and search, and read a document's summary with get_file_metadata
or dataroom_summarise_file. Tokens created before this option existed can’t
read document content: create a new one with Read document content turned
on. Service tokens are not affected.
Each token can get at most 10 download links a minute. Past that,
get_file_download_url is refused (RATE_LIMITED) and translate_file_status
returns the status with download_withheld_reason: rate_limited; ask again
after a minute.
Letting a token send to people outside your organization
Creating a share link, adding a snapshot viewer, inviting a team member or an
investor, and extending or reinstating an investor's access
(dataroom_extend_investor_access, dataroom_reinstate_investor_access) hand
access to someone outside your organization, so they need a token with Send
to people outside your organization turned on (the same grant that sends investor
updates, Q&A answers and e-signature requests). You choose it when you create a write
or admin token on Add-ons → Config. The token list shows Can send outside on
each such token.
Your assistant shows you who a new link admits, the NDA rule and the expiry first, and creates it only when you confirm. Revoking a link or a viewer needs no grant.
The grant also covers giving someone outside your deal team (owners, admins
and members) access, or more access, to a room or a document. "Outside" means
anyone who is not an active deal-team member of the room's organization:
investors, guests, people with a pending invitation, and members of another
organization. Without the grant, a token is refused (GRANT_REQUIRED on MCP)
for:
- a read or download grant to such a person:
set_file_permissions,dataroom_set_folder_permissions,dataroom_bulk_set_file_permissions; - removing such a person's deny, which restores their access:
revoke_file_permission,dataroom_revoke_folder_permission,dataroom_bulk_revoke_file_permissions; - room access for such a person, at any level:
invite_user_to_dataroom; - changing the role of a member whose current role is not deal team, which
promotes them:
dataroom_team_change_member_role; - an investor change that widens access:
dataroom_set_investor_permissionsfrom viewer to downloader, turning the NDA off, or turning monitoring or updates on.
Denies, ending a grant, and grants to your deal team need no grant. Content placed where a person already has access (uploading, moving, publishing) is not covered. Attaching a firm NDA the firm has signed needs no grant.
The same grant applies to these REST calls made with a personal access token:
POST /api/share-links(create a link) andPOST /api/snapshots/{id}/viewersare refused with403 PAT_GRANT_REQUIREDwithout it;POST /api/investors/invite(it creates a personal link and emails it) is refused the same way;PATCH /api/investors/{id}/extendandPATCH /api/investors/{id}/access(reinstating an investor or approving an access request) are refused the same way; revoking an investor (DELETE /api/investors/{id}/access) needs no grant;POST /api/team,POST /api/v1/teamandPOST /api/team/resend(a team invite emails a join link) are refused the same way;PATCH /api/share-links/{id}is refused for any edit to a link's access settings (switching it on, its mode, domains, expiry or NDA, whether the edit widens or tightens them); switching a link off is always allowed;GET /api/share-linksanswers without each link'surlandtoken, markedurlWithheld: true, with aurlWithheldReasonsaying why;POST /api/v1/grantsis refused for a read or download grant to someone outside the deal team;DELETE /api/v1/grants/{id}is refused when the grant is that person's deny;PATCH /api/v1/team/{id}is refused when the member's current role is not deal team.
These checks read the path the way the server routes it, so a trailing slash
or a percent-encoded character does not get past them. A path that cannot be
decoded, or that carries a ./.. segment or an encoded / inside a segment,
cannot be matched to any of the calls a grant covers. So a personal access
token that lacks any per-request grant, this one,
Read document content or
Read engagement analytics, has every
such path refused with 403 PAT_PATH_MALFORMED, whatever the call.
Tokens created before this grant existed do not hold it, so they lose these
calls until you create a new write or admin token with the option turned on.
A read token cannot hold the grant.
Letting a token read engagement analytics
Read engagement analytics lets a token read who viewed which documents, when and for how long: the engagement tools, and the engagement facts on the investor roster. Turn it on only for an assistant that should see that. Any scope can hold it.
The same grant applies to the REST activity reads: GET /api/v1/activity (the
organization's activity and audit feed), /api/v1/activity/rollups,
/api/v1/activity/engagement, /api/v1/activity/engagement/documents and
/api/v1/activity/engagement/document/pages. Without it a personal access
token is refused with 403 PAT_GRANT_REQUIRED. Service tokens and signed-in
sessions are not affected.
Tokens created before these options existed have neither: create a new one with the option turned on.
Restricting a token to specific data rooms
By default a token can reach every data room its owner can access. Unchecking All data rooms and selecting specific rooms restricts the token to that allow-list: any tool call referencing a data room outside the list is rejected, and a scoped token does not even see the names of data rooms it cannot open. Use this to hand an AI client access to one deal without exposing the rest of your portfolio.
Expiry
Every token expires. There is no perpetual PAT: a token that never expired was itself the security finding this behavior exists to close, because a forgotten credential stays valid forever. Setting an expiry date causes the token to stop working after that date — a request with an expired token is rejected exactly as a revoked one is, with HTTP 401.
- Leave the field blank and you get 90 days, counted from the moment the token is issued. Blank means use the default, not never expire.
- Set a date and it is honored exactly, up to a ceiling of 365 days from issue.
- Ask for more than 365 days and the request is refused, not quietly shortened — issuance never hands back a shorter-lived token than you asked for without telling you. A date in the past is refused the same way.
So if an integration is meant to keep running, set the expiry deliberately and put a reminder in your calendar to replace the token before it lapses — a blank field will silently stop that integration about three months after you set it up. There is no renewal or rotation action on an existing token and no warning before it expires: replacing one means issuing a new token, updating your client's configuration, and revoking the old one. Conversely, a short expiry is exactly right for a token you issue for a one-off task.
The token list on Add-ons → Config shows each token's expiry, so you can see what is due to lapse.
The one-time reveal
When you issue a token, the raw value — it begins with waafir_pat_ — is shown
exactly once, immediately after creation. Waafir never stores the raw token,
only a one-way hash of it, so it cannot be retrieved or shown again.
- Copy it now and paste it straight into your client's configuration. The reveal panel has a copy button.
- If you lose it, you cannot recover it — revoke that token and issue a new one.
- Treat it like a password: it grants its scope to anyone who holds it.
After the reveal, the token list only ever shows a short non-secret prefix
(for example waafir_pat_ab12…) so you can tell your tokens apart without the
secret being recoverable.
Revoking a token
In the token list on Add-ons → Config, use the Revoke action next to any token. Revocation is immediate — the next request that uses the token is rejected. Revoke a token the moment a device is lost, a contractor leaves, or you simply no longer need the access. Revoked tokens remain visible in the list (marked revoked) so the record of what existed is preserved; they can never be reactivated.
When a token ends on its own
A token acts through your membership of the organization, so it ends when that membership does. You don't need to revoke it yourself when:
- You leave the organization, or an admin removes you. Every token you hold in that organization is revoked at that moment. Tokens you hold in other organizations keep working.
- A Waafir administrator deletes your account. Your tokens in every organization are revoked.
- A Waafir administrator deletes the organization. Every token in it is revoked, including its service tokens.
These revocations are permanent. Being invited back, or having your account or the organization restored, does not bring a token back: issue a new one.
A service token belongs to the organization, not to the admin who created it, so it keeps working when that admin leaves. Only revoking it, or deleting the organization, ends it early.
The token history in the audit log
Every token issued or revoked writes a row to the organization's audit log: who did it, the token's name, scope, permissions and expiry, how many data rooms it is limited to, and why it was revoked (by its owner, because a membership ended, or because an account or organization was deleted). The token itself, its hash and its prefix are never recorded. The rows appear in the full activity trail, not in the dashboard digest.
If Waafir can't record a new token in the audit log, the token isn't issued and you see "The token wasn't created because we couldn't record it. Try again."
Next: set up your client with the token you just issued.
Connect AI Tools
Connect your own AI assistant — Claude, ChatGPT, Cursor, or any MCP-compatible tool — to Waafir over the Model Context Protocol. Paste one URL, sign in, and call Waafir's redaction, translation, data room, and e-signature tools.
Setup
Connect Claude, ChatGPT, Claude Code, Cursor, VS Code, Gemini CLI or Codex to Waafir by pasting one URL and signing in. Covers the consent screen, each client's add-server step, connecting with a token instead, and the connection errors you may hit.