Feedback ingest
Feedback from your own apps with an optional screenshot. Every report becomes a task in exactly one project.
Why a separate key
A pfat_ token doesn't belong in an app: it can be extracted from the binary and would have write access to the whole workspace. A feedback key (pff_…) can do exactly one thing: create feedback tasks in its one project. If it leaks, you revoke it with one click.
Create a key
- Open Workspace settings › API & MCP › App feedback keys (owner or admin) and create a key.
- Give it a name and pick the target project. It stays fixed for the key's life. Optional: default assignee, extra labels, notifying the project lead.
- Copy the key. It is only shown once.
- Put it in your app's build config, not in source control.
Send app feedback with an optional screenshot
POST/feedback
Feedback key (pff_…)
Creates a task labelled Feedback + the category in the key's target project, with a structured context block, the reporter and the screenshot as task attachment (EXIF/metadata removed). Authenticates with an app feedback key (pff_...), never a workspace token. Not part of the token-scope model; errors use { error, message, details? }. Limits: 60 reports/min and 1000/day per key, 10/min and 100/day per installId, 30/min per IP.
Headers
-
Idempotency-KeystringClient-generated id (a UUID; 8-128 chars of
[A-Za-z0-9_-]), kept 24 h. A retry with the same key and the same report returns the original ticket (Idempotent-Replay: true); the same key with another report is 422. -
X-App-AtteststringApp Attest assertion. Stored with the ticket, not verified yet.
Request body multipart/form-data
-
reportFeedbackReportrequiredShow 5 attributes
-
titlestringrequired -
descriptionstring -
categorystringrequiredAllowed values:
bugideaquestionother -
reporterobjectrequiredShow 3 attributes
-
namestring -
emailstring (email) -
installIdstringrequired
-
-
contextobjectrequiredShow 11 attributes
-
appstringrequired -
appVersionstringrequired -
buildstringrequired -
platformstringrequired -
osVersionstringrequired -
devicestringrequired -
localestringrequired -
countrystringrequired -
routestringrequired -
timestampstring (date-time)required -
extraobjectShow 1 attribute
-
<key>string
-
-
-
-
screenshotstring (binary)One JPEG or PNG, at most 5 MB. The type is detected from the bytes, not the part's Content-Type.
Response 201
Ticket created (or the original ticket on an idempotent replay).
-
ticketIdstringrequired -
taskIdstringrequired -
urlstring (uri)required
Errors
- 400Validation failed (
invalid_reportwithdetails,invalid_screenshot,invalid_request). - 401Missing, unknown or revoked feedback key (
unauthorized). - 403Workspace suspended (
workspace_suspended) or API access disabled by the plan (plan_api_disabled). - 409A request with this Idempotency-Key is still running (
in_progress,Retry-After). - 410The key's target project no longer exists (
project_unavailable). - 413Screenshot over 5 MB or report part over 64 KB (
too_large). - 422Idempotency-Key reused for a different report (
idempotency_key_reused). - 429Rate limit hit (
rate_limited); waitRetry-Afterseconds.
curl -X POST "https://api.getprojectflow.com/v1/feedback" \
-H "Authorization: Bearer pff_YOUR_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-F 'report={
"title": "Prepare kickoff",
"category": "bug",
"reporter": {
"installId": "A1B2C3D4",
"name": "Website relaunch",
"email": "ada@example.com"
},
"context": {
"app": "MyApp",
"appVersion": "1.4.0",
"build": "212",
"platform": "iOS",
"osVersion": "26.1",
"device": "iPhone",
"locale": "de-DE",
"country": "DE",
"route": "settings/profile",
"timestamp": "2026-11-02T09:00:00.000Z",
"extra": {}
},
"description": "Short description"
};type=application/json' \
-F "screenshot=@screenshot.jpg;type=image/jpeg"const form = new FormData();
form.append('report', new Blob([JSON.stringify({
title: 'Prepare kickoff',
category: 'bug',
reporter: {
installId: 'A1B2C3D4',
name: 'Website relaunch',
email: 'ada@example.com'
},
context: {
app: 'MyApp',
appVersion: '1.4.0',
build: '212',
platform: 'iOS',
osVersion: '26.1',
device: 'iPhone',
locale: 'de-DE',
country: 'DE',
route: 'settings/profile',
timestamp: '2026-11-02T09:00:00.000Z',
extra: {}
},
description: 'Short description'
})], { type: 'application/json' }));
form.append('screenshot', screenshotBlob, 'screenshot.jpg'); // optional
const res = await fetch('https://api.getprojectflow.com/v1/feedback', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.PROJECTFLOW_FEEDBACK_KEY}`,
'Idempotency-Key': crypto.randomUUID(),
},
body: form,
});
const data = await res.json();import json
import uuid
import os
import requests
res = requests.post(
"https://api.getprojectflow.com/v1/feedback",
headers={
"Authorization": f"Bearer {os.environ['PROJECTFLOW_FEEDBACK_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
files={
"report": (None, json.dumps({
"title": "Prepare kickoff",
"category": "bug",
"reporter": {
"installId": "A1B2C3D4",
"name": "Website relaunch",
"email": "ada@example.com"
},
"context": {
"app": "MyApp",
"appVersion": "1.4.0",
"build": "212",
"platform": "iOS",
"osVersion": "26.1",
"device": "iPhone",
"locale": "de-DE",
"country": "DE",
"route": "settings/profile",
"timestamp": "2026-11-02T09:00:00.000Z",
"extra": {}
},
"description": "Short description"
}), "application/json"),
"screenshot": ("screenshot.jpg", open("screenshot.jpg", "rb"), "image/jpeg"),
},
)
data = res.json()var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/feedback")!)
request.httpMethod = "POST"
request.setValue("Bearer \(feedbackKey)", forHTTPHeaderField: "Authorization")
request.setValue(UUID().uuidString, forHTTPHeaderField: "Idempotency-Key")
// Multipart body with the parts "report" (JSON) and "screenshot" (JPEG), see the client below.
let (data, response) = try await URLSession.shared.data(for: request)
{
"ticketId": "ticket_1",
"taskId": "task_1",
"url": "https://app.getprojectflow.com/project/proj_1"
}
Limits
| Per | Limit |
|---|---|
| Key | 60 per minute, 1,000 per day |
installId | 10 per minute, 100 per day |
| IP address | 30 per minute |
A report can be 64 KB, a screenshot (JPEG or PNG) 5 MB. Metadata such as EXIF and GPS is removed before storing.
Retrying
Retry 409, 429 and 5xx with the same Idempotency-Key. Don't retry 400, 401, 410, 413 or 422. 429 comes with Retry-After: 60, 409 with Retry-After: 5.
For an offline queue, persist { idempotencyKey, report, screenshot } before the first attempt. Delete the entry on 201 or a permanent error, keep it otherwise.
struct FeedbackClient {
let key: String // pff_… from the build config, never in source control
let endpoint = URL(string: "https://api.getprojectflow.com/v1/feedback")!
/// One attempt. idempotencyKey is generated once per report and reused for every retry.
func send(report: Data, screenshotJPEG: Data?, idempotencyKey: UUID) async throws -> (status: Int, body: Data) {
let boundary = "pf-\(UUID().uuidString)"
var request = URLRequest(url: endpoint)
request.httpMethod = "POST"
request.setValue("Bearer \(key)", forHTTPHeaderField: "Authorization")
request.setValue(idempotencyKey.uuidString, forHTTPHeaderField: "Idempotency-Key")
request.setValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "Content-Type")
var body = Data()
func part(_ name: String, filename: String?, type: String, data: Data) {
body.append("--\(boundary)\r\n".data(using: .utf8)!)
let file = filename.map { "; filename=\"\($0)\"" } ?? ""
body.append("Content-Disposition: form-data; name=\"\(name)\"\(file)\r\n".data(using: .utf8)!)
body.append("Content-Type: \(type)\r\n\r\n".data(using: .utf8)!)
body.append(data)
body.append("\r\n".data(using: .utf8)!)
}
part("report", filename: nil, type: "application/json", data: report)
if let jpeg = screenshotJPEG { part("screenshot", filename: "screenshot.jpg", type: "image/jpeg", data: jpeg) }
body.append("--\(boundary)--\r\n".data(using: .utf8)!)
let (data, response) = try await URLSession.shared.upload(for: request, from: body)
return ((response as? HTTPURLResponse)?.statusCode ?? 0, data)
}
}
What it becomes
Every report becomes a task with the labels Feedback and the category, the report's text and a context block. The screenshot is attached to the task. If the workspace storage is full, the task is created without it and the description says so.