PATs are self-service: any org member can create their own, no administrator involvement required.
Personal Access Tokens vs. OAuth Applications
If you’re connecting your own tooling and want it to see exactly what you can see, use a PAT. If you’re building something other people in the org will authorize separately, use an OAuth Application.
Creating a Personal Access Token
Step 1: Open Personal Access Tokens
- Sign in to your PipesHub account
- Navigate to Workspace-settings
- Select Personal Access Tokens under the Developer Settings section
Step 2: Create a New Token
Click New token and fill in:Step 3: Copy the Token
PipesHub generates the token and shows it to you exactly once, along with a ready-to-paste block for connecting an MCP client:PIPESHUB_MCP_TOKEN is the same value you’ll pass as --bearer-auth or in an Authorization: Bearer header below — the paste block just saves you from copying it twice.
This block is for MCP clients and the local stdio server. QM expects different names: the bare token as
PIPESHUB_TOKEN, and the origin with no /mcp path as PIPESHUB_BASE_URL, on two personal keychain entries. Pasting this block into QM’s keychain fails in a way that looks like a missing environment variable rather than a wrong one.Using a Personal Access Token
Send it as a standard bearer token on any authenticated PipesHub API request, including the MCP endpoint:YOUR_BEARER_TOKEN:
Managing Your Tokens
The Personal Access Tokens page lists every active token you’ve created, with its name, scopes, creation date, expiry (Never shown as-is, not a literal date), and last-used time.
Revoking a Token
Click the revoke icon next to a token and confirm. Revocation takes effect immediately — any request using that token (including one already in flight) is rejected on its next verification.Admin Visibility and Revocation
Because a PAT can live for months or years, an org admin needs a way to see and revoke tokens they didn’t create themselves — for example, when someone leaves the org or a laptop is compromised. This is available today via the API (no dedicated admin UI page yet):400 for non-admins. The list is paginated (page, limit, up to 100 per page) and includes each token’s owner — including tokens whose owner has since been removed from the org, which still appear so they can be cleaned up.
Response shape: the admin list is not the same shape as your own token list. It’s wrapped in Your own
data/pagination, and each item carries owner fields the self-service list doesn’t:GET /api/v1/personal-access-tokens returns { "tokens": [...] } instead — a flat array with no userId/owner fields, since it’s implicitly scoped to you. ownerDeleted: true means the token’s owner has been removed from the org; ownerEmail/ownerFullName still reflect their last-known values in that case, for auditing.A deleted user’s own personal access tokens stop authenticating automatically — this admin flow is for auditing and proactive cleanup, not something you need to remember to do on every offboarding.
API Endpoints Reference
Request Bodies
POST /api/v1/personal-access-tokens
DELETE /api/v1/personal-access-tokens/{tokenId} and DELETE .../admin/{tokenId}
Both accept an optional body:
reason is stored alongside the revocation for auditing — it’s not required.
Security Notes
One-time display
The raw token is shown only at creation time. Only its hash is stored — PipesHub can’t show it to you again if you lose it.
Scanner-friendly prefix
The
phpat_ prefix makes tokens easy to grep for in logs and files, and to catch with secret-scanning tools before they’re committed somewhere they shouldn’t be.Short default expiry
New tokens default to 30 days. Choose
Never deliberately, not by default.Immediate revocation
Revoking a token — by you or an admin — takes effect on the token’s next use, not after some delay.
FAQ
What scopes can a personal access token have?
What scopes can a personal access token have?
By default, a PAT gets your instance’s full configured
MCP_SCOPES set — the same scopes exposed to MCP clients (see Customizing Default Scopes). You can select a narrower set at creation time via the scope picker.How is this different from a session token?
How is this different from a session token?
A session token is issued when you log in and expires after a short, fixed window (24 hours) — it’s meant for browser sessions, not long-running integrations. A PAT is created deliberately, can live far longer, and can be revoked independently without logging you out everywhere else.
Can I see other users' personal access tokens?
Can I see other users' personal access tokens?
No, unless you’re an org admin. Regular users can only see and revoke tokens they created themselves. Admins can list and revoke any user’s token via the admin API for incident response.
What happens to my tokens if I'm removed from the org?
What happens to my tokens if I'm removed from the org?
They stop authenticating immediately — PipesHub rejects a personal access token whose owning user has been deleted, the same way it would reject an expired one.
Is there a limit on how many tokens I can create?
Is there a limit on how many tokens I can create?
There’s no fixed limit on creation, but the list view shows up to 100 of your most recent active tokens.