Quickstart
Three steps from zero to the first task your code created.
1Create a token
- Open ProjectFlow and go to Workspace settings › API & MCP. Only the workspace owner can do this.
- Create a token and pick the scopes you need. For this quickstart,
readandtasks:writeare enough. - Copy the token. It starts with
pfat_and is only shown once.
Treat the token like a password: keep it in an environment variable or a secret store, never in an app or a repository. For your own apps, use feedback keys.
export PROJECTFLOW_TOKEN="pfat_YOUR_TOKEN"
2Send your first request
List the projects your token can see. Every request carries the token in the Authorization header.
Note the id of a project for the next step.
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)
3Create a task
Replace PROJECT_ID with the id from step 2 and create a task. Only title is required; every field is in the reference.
The response contains the new task with its id. It shows up in the app right away.
curl -X POST "https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks" \
-H "Authorization: Bearer pfat_YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"title": "Prepare kickoff",
"dueDate": "2026-11-02"
}'const res = await fetch('https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
title: 'Prepare kickoff',
dueDate: '2026-11-02'
}),
});
const data = await res.json();import os
import requests
res = requests.post(
"https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks",
headers={
"Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
},
json={
"title": "Prepare kickoff",
"dueDate": "2026-11-02"
},
)
data = res.json()var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks")!)
request.httpMethod = "POST"
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
let body: [String: Any] = [
"title": "Prepare kickoff",
"dueDate": "2026-11-02",
]
request.httpBody = try JSONSerialization.data(withJSONObject: body)
let (data, response) = try await URLSession.shared.data(for: request)
Where to go next
- Scopes & permissions: give every token only what it needs.
- Errors and rate limits: make your client robust from the start.
- Webhooks: get told about changes instead of polling.
- API reference: every endpoint with parameters and examples.