ProjectFlow Pre-launch

Authentication

The API expects a bearer token in every request. Which token fits depends on who makes the request.

On this page
  1. Bearer tokens
  2. Credential types
  3. Managing tokens
  4. Tracing requests

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.
Authenticated request
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

TypeStarts withMade forReach
Workspace tokenpfat_Scripts and serversAll resources, limited by scopes
OAuth and personal tokensAI clients through MCPResources of their permissions; never external:write or webhooks:manage
Feedback keypff_Your own appsOnly 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.com only.

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.

↑↓ to select, Enter to open, Esc to close