ProjectFlow Pre-launch

Quickstart

Three steps from zero to the first task your code created.

On this page
  1. 1. Create a token
  2. 2. Send your first request
  3. 3. Create a task
  4. Where to go next

1Create a token

  1. Open ProjectFlow and go to Workspace settings › API & MCP. Only the workspace owner can do this.
  2. Create a token and pick the scopes you need. For this quickstart, read and tasks:write are enough.
  3. 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.

Environment variableBash
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.

List projects
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.

Create a task
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

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