ProjectFlow Pre-launch

Files

Metadata of the files of a workspace, read-only.

List files

GET/files

Scope readPermission files:read

Listed, non-chat files, newest first. Guests must pass a project they belong to. Storage paths and provider handles are stripped; there is no download URL yet.

Query parameters

  • projectIdstring

    Only files of this project.

  • limitinteger1 to 200 · Default: 100

    Page size.

  • cursorstring

    Opaque cursor from the previous response's nextCursor.

Response 200

Success.

  • filesarray of File
    Show 6 attributes
    • idstringrequired
    • namestring
    • projectIdstring
    • mimeTypestring
    • sizeinteger
    • createdAtstring (date-time)
  • nextCursorstring | null
  • totalinteger

Errors

  • 400invalid_request: malformed body, missing field, invalid cursor.
  • 401unauthorized: missing, invalid or revoked token.
  • 403forbidden or a plan code (plan-api-read-only, plan-api-disabled, plan-webhooks): missing scope or permission, or the plan does not allow it.
  • 404not_found.
  • 429rate_limited or daily_write_limit.

All error codes

Request
curl "https://api.getprojectflow.com/v1/files?limit=50" \
  -H "Authorization: Bearer pfat_YOUR_TOKEN"
const res = await fetch('https://api.getprojectflow.com/v1/files?limit=50', {
  headers: {
    Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
  },
});
const data = await res.json();
import os
import requests

res = requests.get(
    "https://api.getprojectflow.com/v1/files?limit=50",
    headers={
        "Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
    },
)
data = res.json()
var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/files?limit=50")!)
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")

let (data, response) = try await URLSession.shared.data(for: request)
Response · 200JSON
{
  "success": true,
  "files": [
    {
      "id": "file_1",
      "name": "Website relaunch",
      "projectId": "project_1",
      "mimeType": "mimeType",
      "size": 1,
      "createdAt": "2026-11-02T09:00:00.000Z"
    }
  ],
  "nextCursor": null,
  "total": 1,
  "requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}

Get file metadata

GET/files/{fileId}

Scope readPermission files:read

Path parameters

  • fileIdstringrequired

Response 200

Success.

  • fileFile

    File metadata. Storage paths and provider handles are stripped. The stored document may carry more fields than listed.

    Show 6 attributes
    • idstringrequired
    • namestring
    • projectIdstring
    • mimeTypestring
    • sizeinteger
    • createdAtstring (date-time)

Errors

  • 400invalid_request: malformed body, missing field, invalid cursor.
  • 401unauthorized: missing, invalid or revoked token.
  • 403forbidden or a plan code (plan-api-read-only, plan-api-disabled, plan-webhooks): missing scope or permission, or the plan does not allow it.
  • 404not_found.
  • 429rate_limited or daily_write_limit.

All error codes

Request
curl "https://api.getprojectflow.com/v1/files/FILE_ID" \
  -H "Authorization: Bearer pfat_YOUR_TOKEN"
const res = await fetch('https://api.getprojectflow.com/v1/files/FILE_ID', {
  headers: {
    Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
  },
});
const data = await res.json();
import os
import requests

res = requests.get(
    "https://api.getprojectflow.com/v1/files/FILE_ID",
    headers={
        "Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
    },
)
data = res.json()
var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/files/FILE_ID")!)
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")

let (data, response) = try await URLSession.shared.data(for: request)
Response · 200JSON
{
  "success": true,
  "file": {
    "id": "file_1",
    "name": "Website relaunch",
    "projectId": "project_1",
    "mimeType": "mimeType",
    "size": 1,
    "createdAt": "2026-11-02T09:00:00.000Z"
  },
  "requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}

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