Coding-Sessions
Arbeit von Coding-Agents an einem Projekt nachverfolgen.
- GET
/projects/{projectId}/codex/sessionsList coding-agent sessions - POST
/projects/{projectId}/codex/sessions/startStart (or resume) a session - POST
/projects/{projectId}/codex/sessions/checkpointAdd a checkpoint (session by key) - POST
/projects/{projectId}/codex/sessions/finishFinish a session (by key) - POST
/projects/{projectId}/codex/sessions/{sessionId}/checkpointAdd a checkpoint to a session - POST
/projects/{projectId}/codex/sessions/{sessionId}/finishFinish a session - GET
/projects/{projectId}/codex/followupsList follow-ups - POST
/projects/{projectId}/codex/followups/bulk-createCreate follow-up tasks in bulk
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
-
limitintegerPage size.
-
cursorstringOpaque cursor from the previous response's
nextCursor.
Antwort 200
Success.
-
sessionsarray of CodexSession9 Attribute anzeigen
-
idstringPflicht -
titlestring -
statusstringErlaubte Werte:
runningcompletedblockedpartial -
externalKeystring -
summarystring -
repoPathstring -
branchstring -
createdAtstring (date-time) -
updatedAtstring (date-time)
-
-
nextCursorstring | null -
totalinteger
Fehler
- 400
invalid_request: malformed body, missing field, invalid cursor. - 401
unauthorized: missing, invalid or revoked token. - 403
forbiddenor a plan code (plan-api-read-only,plan-api-disabled,plan-webhooks): missing scope or permission, or the plan does not allow it. - 404
not_found. - 429
rate_limitedordaily_write_limit.
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)
{
"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-PersonastringAgent 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 gets400 persona-requires-user-token. Errorspersona-invalid-name400,persona-not-found404,persona-archived409,persona-limit429. When the workspace policypersonasis off or the persona is blocked, the write succeeds without persona and the response carriesX-ProjectFlow-Persona-Ignored: policy|blocked.
Request-Body application/json
-
sessionIdstring -
externalKeystringStable key; the same key resumes the same session.
-
titlestring -
summarystring -
requeststring -
statusstringErlaubte Werte:
runningcompletedblockedpartial -
repoPathstring -
branchstring -
entitystringErlaubte Werte:
taskinitiative -
taskIdstring -
initiativeIdstring
Antwort 200
Resumed.
-
sessionCodexSessionA coding-agent session. The stored document may carry more fields than listed.
9 Attribute anzeigen
-
idstringPflicht -
titlestring -
statusstringErlaubte Werte:
runningcompletedblockedpartial -
externalKeystring -
summarystring -
repoPathstring -
branchstring -
createdAtstring (date-time) -
updatedAtstring (date-time)
-
-
operationstring -
linkedEntityobject | null -
checkpointobject | null
Fehler
- 400
invalid_request: malformed body, missing field, invalid cursor. - 401
unauthorized: missing, invalid or revoked token. - 403
forbiddenor a plan code (plan-api-read-only,plan-api-disabled,plan-webhooks): missing scope or permission, or the plan does not allow it. - 404
not_found. - 409
conflict, e.g. webhook limit reached. - 429
rate_limitedordaily_write_limit.
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)
{
"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 -
externalKeystringStable key; the same key resumes the same session.
-
titlestring -
summarystring -
requeststring -
statusstringErlaubte Werte:
runningcompletedblockedpartial -
repoPathstring -
branchstring -
entitystringErlaubte Werte:
taskinitiative -
taskIdstring -
initiativeIdstring
Antwort 200
Success.
-
sessionCodexSessionA coding-agent session. The stored document may carry more fields than listed.
9 Attribute anzeigen
-
idstringPflicht -
titlestring -
statusstringErlaubte Werte:
runningcompletedblockedpartial -
externalKeystring -
summarystring -
repoPathstring -
branchstring -
createdAtstring (date-time) -
updatedAtstring (date-time)
-
-
operationstring -
linkedEntityobject | null -
checkpointobject | null
Fehler
- 400
invalid_request: malformed body, missing field, invalid cursor. - 401
unauthorized: missing, invalid or revoked token. - 403
forbiddenor a plan code (plan-api-read-only,plan-api-disabled,plan-webhooks): missing scope or permission, or the plan does not allow it. - 404
not_found. - 409
conflict, e.g. webhook limit reached. - 429
rate_limitedordaily_write_limit.
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)
{
"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 -
externalKeystringStable key; the same key resumes the same session.
-
titlestring -
summarystring -
requeststring -
statusstringErlaubte Werte:
runningcompletedblockedpartial -
repoPathstring -
branchstring -
entitystringErlaubte Werte:
taskinitiative -
taskIdstring -
initiativeIdstring
Antwort 200
Success.
-
sessionCodexSessionA coding-agent session. The stored document may carry more fields than listed.
9 Attribute anzeigen
-
idstringPflicht -
titlestring -
statusstringErlaubte Werte:
runningcompletedblockedpartial -
externalKeystring -
summarystring -
repoPathstring -
branchstring -
createdAtstring (date-time) -
updatedAtstring (date-time)
-
-
operationstring -
linkedEntityobject | null -
checkpointobject | null
Fehler
- 400
invalid_request: malformed body, missing field, invalid cursor. - 401
unauthorized: missing, invalid or revoked token. - 403
forbiddenor a plan code (plan-api-read-only,plan-api-disabled,plan-webhooks): missing scope or permission, or the plan does not allow it. - 404
not_found. - 409
conflict, e.g. webhook limit reached. - 429
rate_limitedordaily_write_limit.
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)
{
"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 -
externalKeystringStable key; the same key resumes the same session.
-
titlestring -
summarystring -
requeststring -
statusstringErlaubte Werte:
runningcompletedblockedpartial -
repoPathstring -
branchstring -
entitystringErlaubte Werte:
taskinitiative -
taskIdstring -
initiativeIdstring
Antwort 200
Success.
-
sessionCodexSessionA coding-agent session. The stored document may carry more fields than listed.
9 Attribute anzeigen
-
idstringPflicht -
titlestring -
statusstringErlaubte Werte:
runningcompletedblockedpartial -
externalKeystring -
summarystring -
repoPathstring -
branchstring -
createdAtstring (date-time) -
updatedAtstring (date-time)
-
-
operationstring -
linkedEntityobject | null -
checkpointobject | null
Fehler
- 400
invalid_request: malformed body, missing field, invalid cursor. - 401
unauthorized: missing, invalid or revoked token. - 403
forbiddenor a plan code (plan-api-read-only,plan-api-disabled,plan-webhooks): missing scope or permission, or the plan does not allow it. - 404
not_found. - 409
conflict, e.g. webhook limit reached. - 429
rate_limitedordaily_write_limit.
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)
{
"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 -
externalKeystringStable key; the same key resumes the same session.
-
titlestring -
summarystring -
requeststring -
statusstringErlaubte Werte:
runningcompletedblockedpartial -
repoPathstring -
branchstring -
entitystringErlaubte Werte:
taskinitiative -
taskIdstring -
initiativeIdstring
Antwort 200
Success.
-
sessionCodexSessionA coding-agent session. The stored document may carry more fields than listed.
9 Attribute anzeigen
-
idstringPflicht -
titlestring -
statusstringErlaubte Werte:
runningcompletedblockedpartial -
externalKeystring -
summarystring -
repoPathstring -
branchstring -
createdAtstring (date-time) -
updatedAtstring (date-time)
-
-
operationstring -
linkedEntityobject | null -
checkpointobject | null
Fehler
- 400
invalid_request: malformed body, missing field, invalid cursor. - 401
unauthorized: missing, invalid or revoked token. - 403
forbiddenor a plan code (plan-api-read-only,plan-api-disabled,plan-webhooks): missing scope or permission, or the plan does not allow it. - 404
not_found. - 409
conflict, e.g. webhook limit reached. - 429
rate_limitedordaily_write_limit.
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)
{
"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
-
limitintegerPage size.
-
cursorstringOpaque cursor from the previous response's
nextCursor.
Antwort 200
Success.
-
followupsarray of CodexFollowup5 Attribute anzeigen
-
idstringPflicht -
titlestring -
descriptionstring -
sessionIdstring -
createdAtstring (date-time)
-
-
nextCursorstring | null -
totalinteger
Fehler
- 400
invalid_request: malformed body, missing field, invalid cursor. - 401
unauthorized: missing, invalid or revoked token. - 403
forbiddenor a plan code (plan-api-read-only,plan-api-disabled,plan-webhooks): missing scope or permission, or the plan does not allow it. - 404
not_found. - 429
rate_limitedordaily_write_limit.
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)
{
"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 objectPflicht3 Attribute anzeigen
-
titlestring -
descriptionstring -
prioritystring
-
Antwort 201
Created.
-
followupsarray of CodexFollowup5 Attribute anzeigen
-
idstringPflicht -
titlestring -
descriptionstring -
sessionIdstring -
createdAtstring (date-time)
-
Fehler
- 400
invalid_request: malformed body, missing field, invalid cursor. - 401
unauthorized: missing, invalid or revoked token. - 403
forbiddenor a plan code (plan-api-read-only,plan-api-disabled,plan-webhooks): missing scope or permission, or the plan does not allow it. - 404
not_found. - 409
conflict, e.g. webhook limit reached. - 429
rate_limitedordaily_write_limit.
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)
{
"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"
}