Authentication
The API expects a bearer token in every request. Which token fits depends on who makes the request.
Bearer tokens
Every call needs the header Authorization: Bearer pfat_…. A workspace token belongs to exactly one workspace and acts with the role of its creator. That role always limits what the token can do.
- A missing or revoked token gets
401 unauthorized. - A missing scope or permission gets
403 forbidden.
curl "https://api.getprojectflow.com/v1/projects" \
-H "Authorization: Bearer pfat_YOUR_TOKEN"const res = await fetch('https://api.getprojectflow.com/v1/projects', {
headers: {
Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
},
});
const data = await res.json();import os
import requests
res = requests.get(
"https://api.getprojectflow.com/v1/projects",
headers={
"Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
},
)
data = res.json()var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/projects")!)
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
let (data, response) = try await URLSession.shared.data(for: request)
Credential types
| Type | Starts with | Made for | Reach |
|---|---|---|---|
| Workspace token | pfat_ | Scripts and servers | All resources, limited by scopes |
| OAuth and personal tokens | AI clients through MCP | Resources of their permissions; never external:write or webhooks:manage | |
| Feedback key | pff_ | Your own apps | Only creating feedback in one project |
Managing tokens
Create tokens under Workspace settings › API & MCP. That is also where you see when a token was last used and revoke it. A token is only shown in plain text when it is created.
- Use one token per integration so you can revoke them one by one.
- Pick only the scopes the integration really needs.
- Send tokens over HTTPS to
api.getprojectflow.comonly.
Tracing requests
Every response contains requestId and the X-Request-Id header. If you send your own X-Request-Id header, it is echoed back. That helps you find requests in your logs, and helps us when debugging.