ProjectFlow Pre-Launch

Feedback-Eingang

Feedback aus deinen eigenen Apps mit optionalem Screenshot. Jeder Bericht wird zu einer Aufgabe in genau einem Projekt.

Die Referenz wird aus der englischen OpenAPI-Spezifikation erzeugt und ist deshalb auf Englisch.

Warum ein eigener Schlüssel

Ein pfat_-Token gehört nicht in eine App: Es lässt sich aus der Binärdatei auslesen und hätte Schreibzugriff auf den ganzen Workspace. Ein Feedback-Schlüssel (pff_…) kann genau eine Sache: Feedback-Aufgaben in seinem einen Projekt anlegen. Gerät er in falsche Hände, lässt er sich mit einem Klick widerrufen.

Schlüssel anlegen

  1. Öffne Workspace-Einstellungen › API & MCP › App-Feedback-Schlüssel (Owner oder Admin) und lege einen Schlüssel an.
  2. Vergib einen Namen und wähle das Zielprojekt. Es bleibt für die Lebensdauer des Schlüssels fest. Optional: Standard-Zuständige, zusätzliche Labels, Benachrichtigung der Projektleitung.
  3. Kopiere den Schlüssel. Er wird nur einmal angezeigt.
  4. Lege ihn in der Build-Konfiguration deiner App ab, nicht in der Versionsverwaltung.

Send app feedback with an optional screenshot

POST/feedback

Feedback-Schlüssel (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.

Header

  • Idempotency-Keystring

    Client-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-Atteststring

    App Attest assertion. Stored with the ticket, not verified yet.

Request-Body multipart/form-data

  • reportFeedbackReportPflicht
    5 Attribute anzeigen
    • titlestringPflichtmax 120 characters
    • descriptionstringmax 5000 characters
    • categorystringPflicht

      Erlaubte Werte: bug idea question other

    • reporterobjectPflicht
      3 Attribute anzeigen
      • namestringmax 100 characters
      • emailstring (email)
      • installIdstringPflichtpattern ^[A-Za-z0-9._:-]{4,100}$
    • contextobjectPflicht
      11 Attribute anzeigen
      • appstringPflichtmax 60 characters
      • appVersionstringPflichtmax 40 characters
      • buildstringPflichtmax 40 characters
      • platformstringPflichtmax 40 characters
      • osVersionstringPflichtmax 40 characters
      • devicestringPflichtmax 80 characters
      • localestringPflichtmax 35 characters
      • countrystringPflichtmax 10 characters
      • routestringPflichtmax 300 characters
      • timestampstring (date-time)Pflicht
      • extraobjectmax 20 keys
        1 Attribut anzeigen
        • <key>stringmax 300 characters
  • screenshotstring (binary)

    One JPEG or PNG, at most 5 MB. The type is detected from the bytes, not the part's Content-Type.

Antwort 201

Ticket created (or the original ticket on an idempotent replay).

  • ticketIdstringPflicht
  • taskIdstringPflicht
  • urlstring (uri)Pflicht

Fehler

  • 400Validation failed (invalid_report with details, 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); wait Retry-After seconds.

Alle Fehlercodes

Anfrage
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)
Antwort · 201JSON
{
  "ticketId": "ticket_1",
  "taskId": "task_1",
  "url": "https://app.getprojectflow.com/project/proj_1"
}

Limits

ProLimit
Schlüssel60 pro Minute, 1.000 pro Tag
installId10 pro Minute, 100 pro Tag
IP-Adresse30 pro Minute

Der Bericht darf 64 KB groß sein, ein Screenshot (JPEG oder PNG) 5 MB. Metadaten wie EXIF und GPS werden vor dem Speichern entfernt.

Wiederholen

Wiederhole 409, 429 und 5xx mit demselben Idempotency-Key. Wiederhole 400, 401, 410, 413 und 422 nicht. Bei 429 kommt Retry-After: 60, bei 409 Retry-After: 5.

Für eine Offline-Warteschlange speicherst du { idempotencyKey, report, screenshot } vor dem ersten Versuch. Lösche den Eintrag bei 201 oder einem endgültigen Fehler und behalte ihn sonst.

Swift-ClientSwift
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)
    }
}

Was daraus wird

Jeder Bericht wird zu einer Aufgabe mit den Labels Feedback und der Kategorie, dem Text des Berichts und einem Kontextblock. Der Screenshot hängt als Anhang an der Aufgabe. Ist der Speicher des Workspace voll, entsteht die Aufgabe ohne Screenshot und die Beschreibung sagt das.

↑↓ wählen, Enter öffnen, Esc schließen