Pathway uses Personal Access Tokens for API authentication. A PAT belongs to one user inside one organization and begins with pat_.
Create a token
- Open the Pathway app.
- Click your organization name in the lower-left corner.
- Open Settings and select Account.
- Scroll to API Access Tokens and click New Token.
- Name the token and choose whether it should be read-only.
- Copy it before closing the dialog.
The raw token is displayed once. Pathway stores its SHA-256 hash and cannot show the original value again.
Choose the access level
Submitting documents requires a read-write token.
Send the token
Include the token in the Authorization header on every request.
Verify the token
GET /auth/me returns the identity attached to the credential.
The token always acts inside the organization shown here. You do not need to send X-Org-Id with PAT requests. If you send it anyway, it must match the token’s organization.
Store it safely
Keep the token on your server. Do not place it in browser code, mobile application bundles, public repositories, logs, or screenshots.
For deployed applications, read it from a secret manager or environment variable:
Revoke a token
Return to Settings → Account → API Access Tokens, find the token by name or prefix, and click the delete icon. Revocation takes effect immediately.
PATs do not expire on a timer. They remain valid until revoked, the user is removed, or the organization is deleted.
Authentication responses
Give each integration its own named token. Usage remains easier to identify and one integration can be revoked without interrupting the others.