ProjectFlow Pre-Launch

Coding-Sessions

Arbeit von Coding-Agents an einem Projekt nachverfolgen.

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

List coding-agent sessions

GET/projects/{projectId}/codex/sessions

Scope readBerechtigung tasks:read

Pfadparameter

  • projectIdstringPflicht

Query-Parameter

  • limitinteger1 to 200 · Standard: 100

    Page size.

  • cursorstring

    Opaque cursor from the previous response's nextCursor.

Antwort 200

Success.

  • sessionsarray of CodexSession
    9 Attribute anzeigen
    • idstringPflicht
    • titlestring
    • statusstring

      Erlaubte Werte: running completed blocked partial

    • externalKeystring
    • summarystring
    • repoPathstring
    • branchstring
    • createdAtstring (date-time)
    • updatedAtstring (date-time)
  • nextCursorstring | null
  • totalinteger

Fehler

  • 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.

Alle Fehlercodes

Anfrage
curl "https://api.getprojectflow.com/v1/projects/PROJECT_ID/codex/sessions?limit=50" \
  -H "Authorization: Bearer pfat_YOUR_TOKEN"
const res = await fetch('https://api.getprojectflow.com/v1/projects/PROJECT_ID/codex/sessions?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/projects/PROJECT_ID/codex/sessions?limit=50",
    headers={
        "Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
    },
)
data = res.json()
var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/projects/PROJECT_ID/codex/sessions?limit=50")!)
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")

let (data, response) = try await URLSession.shared.data(for: request)
Antwort · 200JSON
{
  "success": true,
  "sessions": [
    {
      "id": "codexsession_1",
      "title": "Prepare kickoff",
      "status": "running",
      "externalKey": "ticket-4711",
      "summary": "Short summary",
      "repoPath": "repoPath",
      "branch": "branch",
      "createdAt": "2026-11-02T09:00:00.000Z",
      "updatedAt": "2026-11-02T09:00:00.000Z"
    }
  ],
  "nextCursor": null,
  "total": 1,
  "requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}

Start (or resume) a session

POST/projects/{projectId}/codex/sessions/start

Scope tasks:writeBerechtigung tasks:write

Creates a session and links it to a task or initiative. 201 when created, 200 when an existing session with the same key resumed.

Pfadparameter

  • projectIdstringPflicht

Header

  • X-ProjectFlow-Personastringmax 80 characters

    Agent persona the write is attributed to ("Mira · agent of <you>"): a persona name or id:<personaId> of the token owner (auto-created when unknown unless switched off in "My team"). Only user-bound credentials (OAuth, personal token) and only on writes; a workspace API token gets 400 persona-requires-user-token. Errors persona-invalid-name 400, persona-not-found 404, persona-archived 409, persona-limit 429. When the workspace policy personas is off or the persona is blocked, the write succeeds without persona and the response carries X-ProjectFlow-Persona-Ignored: policy|blocked.

Request-Body application/json

  • sessionIdstring
  • externalKeystring

    Stable key; the same key resumes the same session.

  • titlestring
  • summarystring
  • requeststring
  • statusstring

    Erlaubte Werte: running completed blocked partial

  • repoPathstring
  • branchstring
  • entitystring

    Erlaubte Werte: task initiative

  • taskIdstring
  • initiativeIdstring

Antwort 200

Resumed.

  • sessionCodexSession

    A coding-agent session. The stored document may carry more fields than listed.

    9 Attribute anzeigen
    • idstringPflicht
    • titlestring
    • statusstring

      Erlaubte Werte: running completed blocked partial

    • externalKeystring
    • summarystring
    • repoPathstring
    • branchstring
    • createdAtstring (date-time)
    • updatedAtstring (date-time)
  • operationstring
  • linkedEntityobject | null
  • checkpointobject | null

Fehler

  • 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.
  • 409conflict, e.g. webhook limit reached.
  • 429rate_limited or daily_write_limit.

Alle Fehlercodes

Anfrage
curl -X POST "https://api.getprojectflow.com/v1/projects/PROJECT_ID/codex/sessions/start" \
  -H "Authorization: Bearer pfat_YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "sessionId": "session_1",
  "externalKey": "ticket-4711",
  "title": "Prepare kickoff",
  "summary": "Short summary",
  "request": "request"
}'
const res = await fetch('https://api.getprojectflow.com/v1/projects/PROJECT_ID/codex/sessions/start', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    sessionId: 'session_1',
    externalKey: 'ticket-4711',
    title: 'Prepare kickoff',
    summary: 'Short summary',
    request: 'request'
  }),
});
const data = await res.json();
import os
import requests

res = requests.post(
    "https://api.getprojectflow.com/v1/projects/PROJECT_ID/codex/sessions/start",
    headers={
        "Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
    },
    json={
        "sessionId": "session_1",
        "externalKey": "ticket-4711",
        "title": "Prepare kickoff",
        "summary": "Short summary",
        "request": "request"
    },
)
data = res.json()
var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/projects/PROJECT_ID/codex/sessions/start")!)
request.httpMethod = "POST"
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
let body: [String: Any] = [
    "sessionId": "session_1",
    "externalKey": "ticket-4711",
    "title": "Prepare kickoff",
    "summary": "Short summary",
    "request": "request",
]
request.httpBody = try JSONSerialization.data(withJSONObject: body)

let (data, response) = try await URLSession.shared.data(for: request)
Antwort · 200JSON
{
  "success": true,
  "session": {
    "id": "codexsession_1",
    "title": "Prepare kickoff",
    "status": "running",
    "externalKey": "ticket-4711",
    "summary": "Short summary",
    "repoPath": "repoPath",
    "branch": "branch",
    "createdAt": "2026-11-02T09:00:00.000Z",
    "updatedAt": "2026-11-02T09:00:00.000Z"
  },
  "operation": "operation",
  "linkedEntity": {},
  "checkpoint": {},
  "requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}

Add a checkpoint (session by key)

POST/projects/{projectId}/codex/sessions/checkpoint

Scope tasks:writeBerechtigung tasks:write

Pfadparameter

  • projectIdstringPflicht

Request-Body application/json

  • sessionIdstring
  • externalKeystring

    Stable key; the same key resumes the same session.

  • titlestring
  • summarystring
  • requeststring
  • statusstring

    Erlaubte Werte: running completed blocked partial

  • repoPathstring
  • branchstring
  • entitystring

    Erlaubte Werte: task initiative

  • taskIdstring
  • initiativeIdstring

Antwort 200

Success.

  • sessionCodexSession

    A coding-agent session. The stored document may carry more fields than listed.

    9 Attribute anzeigen
    • idstringPflicht
    • titlestring
    • statusstring

      Erlaubte Werte: running completed blocked partial

    • externalKeystring
    • summarystring
    • repoPathstring
    • branchstring
    • createdAtstring (date-time)
    • updatedAtstring (date-time)
  • operationstring
  • linkedEntityobject | null
  • checkpointobject | null

Fehler

  • 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.
  • 409conflict, e.g. webhook limit reached.
  • 429rate_limited or daily_write_limit.

Alle Fehlercodes

Anfrage
curl -X POST "https://api.getprojectflow.com/v1/projects/PROJECT_ID/codex/sessions/checkpoint" \
  -H "Authorization: Bearer pfat_YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "sessionId": "session_1",
  "externalKey": "ticket-4711",
  "title": "Prepare kickoff",
  "summary": "Short summary",
  "request": "request"
}'
const res = await fetch('https://api.getprojectflow.com/v1/projects/PROJECT_ID/codex/sessions/checkpoint', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    sessionId: 'session_1',
    externalKey: 'ticket-4711',
    title: 'Prepare kickoff',
    summary: 'Short summary',
    request: 'request'
  }),
});
const data = await res.json();
import os
import requests

res = requests.post(
    "https://api.getprojectflow.com/v1/projects/PROJECT_ID/codex/sessions/checkpoint",
    headers={
        "Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
    },
    json={
        "sessionId": "session_1",
        "externalKey": "ticket-4711",
        "title": "Prepare kickoff",
        "summary": "Short summary",
        "request": "request"
    },
)
data = res.json()
var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/projects/PROJECT_ID/codex/sessions/checkpoint")!)
request.httpMethod = "POST"
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
let body: [String: Any] = [
    "sessionId": "session_1",
    "externalKey": "ticket-4711",
    "title": "Prepare kickoff",
    "summary": "Short summary",
    "request": "request",
]
request.httpBody = try JSONSerialization.data(withJSONObject: body)

let (data, response) = try await URLSession.shared.data(for: request)
Antwort · 200JSON
{
  "success": true,
  "session": {
    "id": "codexsession_1",
    "title": "Prepare kickoff",
    "status": "running",
    "externalKey": "ticket-4711",
    "summary": "Short summary",
    "repoPath": "repoPath",
    "branch": "branch",
    "createdAt": "2026-11-02T09:00:00.000Z",
    "updatedAt": "2026-11-02T09:00:00.000Z"
  },
  "operation": "operation",
  "linkedEntity": {},
  "checkpoint": {},
  "requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}

Finish a session (by key)

POST/projects/{projectId}/codex/sessions/finish

Scope tasks:writeBerechtigung tasks:write

Pfadparameter

  • projectIdstringPflicht

Request-Body application/json

  • sessionIdstring
  • externalKeystring

    Stable key; the same key resumes the same session.

  • titlestring
  • summarystring
  • requeststring
  • statusstring

    Erlaubte Werte: running completed blocked partial

  • repoPathstring
  • branchstring
  • entitystring

    Erlaubte Werte: task initiative

  • taskIdstring
  • initiativeIdstring

Antwort 200

Success.

  • sessionCodexSession

    A coding-agent session. The stored document may carry more fields than listed.

    9 Attribute anzeigen
    • idstringPflicht
    • titlestring
    • statusstring

      Erlaubte Werte: running completed blocked partial

    • externalKeystring
    • summarystring
    • repoPathstring
    • branchstring
    • createdAtstring (date-time)
    • updatedAtstring (date-time)
  • operationstring
  • linkedEntityobject | null
  • checkpointobject | null

Fehler

  • 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.
  • 409conflict, e.g. webhook limit reached.
  • 429rate_limited or daily_write_limit.

Alle Fehlercodes

Anfrage
curl -X POST "https://api.getprojectflow.com/v1/projects/PROJECT_ID/codex/sessions/finish" \
  -H "Authorization: Bearer pfat_YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "sessionId": "session_1",
  "externalKey": "ticket-4711",
  "title": "Prepare kickoff",
  "summary": "Short summary",
  "request": "request"
}'
const res = await fetch('https://api.getprojectflow.com/v1/projects/PROJECT_ID/codex/sessions/finish', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    sessionId: 'session_1',
    externalKey: 'ticket-4711',
    title: 'Prepare kickoff',
    summary: 'Short summary',
    request: 'request'
  }),
});
const data = await res.json();
import os
import requests

res = requests.post(
    "https://api.getprojectflow.com/v1/projects/PROJECT_ID/codex/sessions/finish",
    headers={
        "Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
    },
    json={
        "sessionId": "session_1",
        "externalKey": "ticket-4711",
        "title": "Prepare kickoff",
        "summary": "Short summary",
        "request": "request"
    },
)
data = res.json()
var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/projects/PROJECT_ID/codex/sessions/finish")!)
request.httpMethod = "POST"
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
let body: [String: Any] = [
    "sessionId": "session_1",
    "externalKey": "ticket-4711",
    "title": "Prepare kickoff",
    "summary": "Short summary",
    "request": "request",
]
request.httpBody = try JSONSerialization.data(withJSONObject: body)

let (data, response) = try await URLSession.shared.data(for: request)
Antwort · 200JSON
{
  "success": true,
  "session": {
    "id": "codexsession_1",
    "title": "Prepare kickoff",
    "status": "running",
    "externalKey": "ticket-4711",
    "summary": "Short summary",
    "repoPath": "repoPath",
    "branch": "branch",
    "createdAt": "2026-11-02T09:00:00.000Z",
    "updatedAt": "2026-11-02T09:00:00.000Z"
  },
  "operation": "operation",
  "linkedEntity": {},
  "checkpoint": {},
  "requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}

Add a checkpoint to a session

POST/projects/{projectId}/codex/sessions/{sessionId}/checkpoint

Scope tasks:writeBerechtigung tasks:write

Pfadparameter

  • projectIdstringPflicht
  • sessionIdstringPflicht

Request-Body application/json

  • sessionIdstring
  • externalKeystring

    Stable key; the same key resumes the same session.

  • titlestring
  • summarystring
  • requeststring
  • statusstring

    Erlaubte Werte: running completed blocked partial

  • repoPathstring
  • branchstring
  • entitystring

    Erlaubte Werte: task initiative

  • taskIdstring
  • initiativeIdstring

Antwort 200

Success.

  • sessionCodexSession

    A coding-agent session. The stored document may carry more fields than listed.

    9 Attribute anzeigen
    • idstringPflicht
    • titlestring
    • statusstring

      Erlaubte Werte: running completed blocked partial

    • externalKeystring
    • summarystring
    • repoPathstring
    • branchstring
    • createdAtstring (date-time)
    • updatedAtstring (date-time)
  • operationstring
  • linkedEntityobject | null
  • checkpointobject | null

Fehler

  • 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.
  • 409conflict, e.g. webhook limit reached.
  • 429rate_limited or daily_write_limit.

Alle Fehlercodes

Anfrage
curl -X POST "https://api.getprojectflow.com/v1/projects/PROJECT_ID/codex/sessions/SESSION_ID/checkpoint" \
  -H "Authorization: Bearer pfat_YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "sessionId": "session_1",
  "externalKey": "ticket-4711",
  "title": "Prepare kickoff",
  "summary": "Short summary",
  "request": "request"
}'
const res = await fetch('https://api.getprojectflow.com/v1/projects/PROJECT_ID/codex/sessions/SESSION_ID/checkpoint', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    sessionId: 'session_1',
    externalKey: 'ticket-4711',
    title: 'Prepare kickoff',
    summary: 'Short summary',
    request: 'request'
  }),
});
const data = await res.json();
import os
import requests

res = requests.post(
    "https://api.getprojectflow.com/v1/projects/PROJECT_ID/codex/sessions/SESSION_ID/checkpoint",
    headers={
        "Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
    },
    json={
        "sessionId": "session_1",
        "externalKey": "ticket-4711",
        "title": "Prepare kickoff",
        "summary": "Short summary",
        "request": "request"
    },
)
data = res.json()
var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/projects/PROJECT_ID/codex/sessions/SESSION_ID/checkpoint")!)
request.httpMethod = "POST"
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
let body: [String: Any] = [
    "sessionId": "session_1",
    "externalKey": "ticket-4711",
    "title": "Prepare kickoff",
    "summary": "Short summary",
    "request": "request",
]
request.httpBody = try JSONSerialization.data(withJSONObject: body)

let (data, response) = try await URLSession.shared.data(for: request)
Antwort · 200JSON
{
  "success": true,
  "session": {
    "id": "codexsession_1",
    "title": "Prepare kickoff",
    "status": "running",
    "externalKey": "ticket-4711",
    "summary": "Short summary",
    "repoPath": "repoPath",
    "branch": "branch",
    "createdAt": "2026-11-02T09:00:00.000Z",
    "updatedAt": "2026-11-02T09:00:00.000Z"
  },
  "operation": "operation",
  "linkedEntity": {},
  "checkpoint": {},
  "requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}

Finish a session

POST/projects/{projectId}/codex/sessions/{sessionId}/finish

Scope tasks:writeBerechtigung tasks:write

Pfadparameter

  • projectIdstringPflicht
  • sessionIdstringPflicht

Request-Body application/json

  • sessionIdstring
  • externalKeystring

    Stable key; the same key resumes the same session.

  • titlestring
  • summarystring
  • requeststring
  • statusstring

    Erlaubte Werte: running completed blocked partial

  • repoPathstring
  • branchstring
  • entitystring

    Erlaubte Werte: task initiative

  • taskIdstring
  • initiativeIdstring

Antwort 200

Success.

  • sessionCodexSession

    A coding-agent session. The stored document may carry more fields than listed.

    9 Attribute anzeigen
    • idstringPflicht
    • titlestring
    • statusstring

      Erlaubte Werte: running completed blocked partial

    • externalKeystring
    • summarystring
    • repoPathstring
    • branchstring
    • createdAtstring (date-time)
    • updatedAtstring (date-time)
  • operationstring
  • linkedEntityobject | null
  • checkpointobject | null

Fehler

  • 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.
  • 409conflict, e.g. webhook limit reached.
  • 429rate_limited or daily_write_limit.

Alle Fehlercodes

Anfrage
curl -X POST "https://api.getprojectflow.com/v1/projects/PROJECT_ID/codex/sessions/SESSION_ID/finish" \
  -H "Authorization: Bearer pfat_YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "sessionId": "session_1",
  "externalKey": "ticket-4711",
  "title": "Prepare kickoff",
  "summary": "Short summary",
  "request": "request"
}'
const res = await fetch('https://api.getprojectflow.com/v1/projects/PROJECT_ID/codex/sessions/SESSION_ID/finish', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    sessionId: 'session_1',
    externalKey: 'ticket-4711',
    title: 'Prepare kickoff',
    summary: 'Short summary',
    request: 'request'
  }),
});
const data = await res.json();
import os
import requests

res = requests.post(
    "https://api.getprojectflow.com/v1/projects/PROJECT_ID/codex/sessions/SESSION_ID/finish",
    headers={
        "Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
    },
    json={
        "sessionId": "session_1",
        "externalKey": "ticket-4711",
        "title": "Prepare kickoff",
        "summary": "Short summary",
        "request": "request"
    },
)
data = res.json()
var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/projects/PROJECT_ID/codex/sessions/SESSION_ID/finish")!)
request.httpMethod = "POST"
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
let body: [String: Any] = [
    "sessionId": "session_1",
    "externalKey": "ticket-4711",
    "title": "Prepare kickoff",
    "summary": "Short summary",
    "request": "request",
]
request.httpBody = try JSONSerialization.data(withJSONObject: body)

let (data, response) = try await URLSession.shared.data(for: request)
Antwort · 200JSON
{
  "success": true,
  "session": {
    "id": "codexsession_1",
    "title": "Prepare kickoff",
    "status": "running",
    "externalKey": "ticket-4711",
    "summary": "Short summary",
    "repoPath": "repoPath",
    "branch": "branch",
    "createdAt": "2026-11-02T09:00:00.000Z",
    "updatedAt": "2026-11-02T09:00:00.000Z"
  },
  "operation": "operation",
  "linkedEntity": {},
  "checkpoint": {},
  "requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}

List follow-ups

GET/projects/{projectId}/codex/followups

Scope readBerechtigung tasks:read

Pfadparameter

  • projectIdstringPflicht

Query-Parameter

  • limitinteger1 to 200 · Standard: 100

    Page size.

  • cursorstring

    Opaque cursor from the previous response's nextCursor.

Antwort 200

Success.

  • followupsarray of CodexFollowup
    5 Attribute anzeigen
    • idstringPflicht
    • titlestring
    • descriptionstring
    • sessionIdstring
    • createdAtstring (date-time)
  • nextCursorstring | null
  • totalinteger

Fehler

  • 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.

Alle Fehlercodes

Anfrage
curl "https://api.getprojectflow.com/v1/projects/PROJECT_ID/codex/followups?limit=50" \
  -H "Authorization: Bearer pfat_YOUR_TOKEN"
const res = await fetch('https://api.getprojectflow.com/v1/projects/PROJECT_ID/codex/followups?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/projects/PROJECT_ID/codex/followups?limit=50",
    headers={
        "Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
    },
)
data = res.json()
var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/projects/PROJECT_ID/codex/followups?limit=50")!)
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")

let (data, response) = try await URLSession.shared.data(for: request)
Antwort · 200JSON
{
  "success": true,
  "followups": [
    {
      "id": "codexfollowup_1",
      "title": "Prepare kickoff",
      "description": "Short description",
      "sessionId": "session_1",
      "createdAt": "2026-11-02T09:00:00.000Z"
    }
  ],
  "nextCursor": null,
  "total": 1,
  "requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}

Create follow-up tasks in bulk

POST/projects/{projectId}/codex/followups/bulk-create

Scope tasks:writeBerechtigung tasks:write

Pfadparameter

  • projectIdstringPflicht

Request-Body application/json

  • sessionIdstring
  • externalKeystring
  • initiativeIdstring
  • summarystring
  • followUpsarray of objectPflicht
    3 Attribute anzeigen
    • titlestring
    • descriptionstring
    • prioritystring

Antwort 201

Created.

  • followupsarray of CodexFollowup
    5 Attribute anzeigen
    • idstringPflicht
    • titlestring
    • descriptionstring
    • sessionIdstring
    • createdAtstring (date-time)

Fehler

  • 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.
  • 409conflict, e.g. webhook limit reached.
  • 429rate_limited or daily_write_limit.

Alle Fehlercodes

Anfrage
curl -X POST "https://api.getprojectflow.com/v1/projects/PROJECT_ID/codex/followups/bulk-create" \
  -H "Authorization: Bearer pfat_YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "followUps": [
    {
      "title": "Prepare kickoff",
      "description": "Short description",
      "priority": "High"
    }
  ],
  "sessionId": "session_1",
  "externalKey": "ticket-4711",
  "initiativeId": "initiative_1",
  "summary": "Short summary"
}'
const res = await fetch('https://api.getprojectflow.com/v1/projects/PROJECT_ID/codex/followups/bulk-create', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    followUps: [
      {
        title: 'Prepare kickoff',
        description: 'Short description',
        priority: 'High'
      }
    ],
    sessionId: 'session_1',
    externalKey: 'ticket-4711',
    initiativeId: 'initiative_1',
    summary: 'Short summary'
  }),
});
const data = await res.json();
import os
import requests

res = requests.post(
    "https://api.getprojectflow.com/v1/projects/PROJECT_ID/codex/followups/bulk-create",
    headers={
        "Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
    },
    json={
        "followUps": [
            {
                "title": "Prepare kickoff",
                "description": "Short description",
                "priority": "High"
            }
        ],
        "sessionId": "session_1",
        "externalKey": "ticket-4711",
        "initiativeId": "initiative_1",
        "summary": "Short summary"
    },
)
data = res.json()
var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/projects/PROJECT_ID/codex/followups/bulk-create")!)
request.httpMethod = "POST"
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
let body: [String: Any] = [
    "followUps": [
        [
            "title": "Prepare kickoff",
            "description": "Short description",
            "priority": "High",
        ],
    ],
    "sessionId": "session_1",
    "externalKey": "ticket-4711",
    "initiativeId": "initiative_1",
    "summary": "Short summary",
]
request.httpBody = try JSONSerialization.data(withJSONObject: body)

let (data, response) = try await URLSession.shared.data(for: request)
Antwort · 201JSON
{
  "success": true,
  "followups": [
    {
      "id": "codexfollowup_1",
      "title": "Prepare kickoff",
      "description": "Short description",
      "sessionId": "session_1",
      "createdAt": "2026-11-02T09:00:00.000Z"
    }
  ],
  "requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}

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