ProjectFlow Pre-launch

Tasks

List, create, update and trash tasks. With an external key you can create them idempotently.

List tasks of a project

GET/projects/{projectId}/tasks

Scope readPermission tasks:read

Path parameters

  • projectIdstringrequired

Query parameters

  • limitinteger1 to 200 · Default: 100

    Page size.

  • cursorstring

    Opaque cursor from the previous response's nextCursor.

Response 200

Success.

  • tasksarray of Task
    Show 20 attributes
    • idstringrequired
    • projectIdstring
    • titlestring
    • descriptionstring
    • statusstring
    • prioritystring
    • startDatestring
    • dueDatestring
    • isCompletedboolean
    • assigneeIdsarray of string
    • categorystring
    • sprintIdstring
    • initiativeIdstring
    • dependenciesarray of string
    • externalKeystring
    • sourcestring
    • createdAtstring (date-time)
    • updatedAtstring (date-time)
    • externalExternalMap

      External references by source. Source keys match ^[a-z][a-z0-9_-]{1,31}$, max 5.

      Show 1 attribute
      • <key>External

        External reference to an object in another system.

        Show 5 attributes
        • customerIdstring
        • refstringmax 200 characters
        • labelstringmax 120 characters
        • urlstring (uri)max 2048 characters

          http or https.

        • metaobject

          Flat object, max 20 keys; values string (max 500), number, boolean or null.

    • recurrenceTaskRecurrence

      Repeat rule of a recurring task (stored on every instance of the series). The next instance is created when this one is completed, and with mode fixed also at local midnight of this instance's day. Instance ids are deterministic (<seriesId>__r<index>), so there is exactly one task per occurrence.

      Show 7 attributes
      • rulestring

        RRULE subset. FREQ=DAILY|WEEKLY|MONTHLY|YEARLY (required); INTERVAL=1..999; BYDAY = weekday list (WEEKLY, e.g. MO,TU,WE,TH,FR for weekdays) or one nth weekday (MONTHLY, 1MO..4MO, -1FR = last Friday); BYMONTHDAY=1..31 or -1 (MONTHLY; days past the month end fall on its last day); COUNT=1..1000 or UNTIL=YYYYMMDD (inclusive). Yearly on 29 Feb falls on 28 Feb in common years.

      • modestring

        fixed follows the calendar; afterCompletion counts INTERVAL from the local completion day.

        Allowed values: fixed afterCompletion

      • timeZonestring

        IANA zone of the series (decides "today" and the completion day). Read-only after creation unless sent.

      • seriesIdstring
      • indexinteger
      • anchorstring
      • occurrencestring

        Scheduled day of this instance (YYYY-MM-DD).

  • 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/projects/PROJECT_ID/tasks?limit=50" \
  -H "Authorization: Bearer pfat_YOUR_TOKEN"
const res = await fetch('https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks?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/tasks?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/tasks?limit=50")!)
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")

let (data, response) = try await URLSession.shared.data(for: request)
Response · 200 · shortenedJSON
{
  "success": true,
  "tasks": [
    {
      "id": "task_1",
      "projectId": "project_1",
      "title": "Prepare kickoff",
      "description": "Short description",
      "status": "In Progress",
      "priority": "High",
      "startDate": "2026-11-02",
      "dueDate": "2026-11-02",
      "isCompleted": false,
      "assigneeIds": [
        "assignee_1"
      ],
      "category": "Design",
      "sprintId": "sprint_1",
      "initiativeId": "initiative_1",
      "dependencies": [
        "task_2"
      ]
    }
  ],
  "nextCursor": null,
  "total": 1,
  "requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}

Create a task

POST/projects/{projectId}/tasks

Scope tasks:writePermission tasks:write

Requires title.

Path parameters

  • projectIdstringrequired

Headers

  • 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

  • recurrenceTaskRecurrenceInput | null

    Send { rule, mode?, timeZone? } to make a task repeat or change its rule; null stops repeating.

    Show 3 attributes
    • rulestringrequired
    • modestringDefault: "fixed"

      Allowed values: fixed afterCompletion

    • timeZonestring
  • titlestring
  • descriptionstring
  • statusstring
  • prioritystring
  • startDatestring
  • dueDatestring
  • isCompletedboolean
  • assigneestring
  • assigneeIdstring
  • assigneeIdsarray of string
  • assignedGroupIdsarray of string
  • categorystring
  • dependenciesarray of string
  • sprintIdstring
  • initiativeIdstring
  • externalKeystring

    Idempotency handle for upsert-by-external-key.

  • sourcestring
  • externalExternalInput

    Write form of external (scope external:write). Each source is replaced as a whole, other sources stay; null removes a source.

    Show 1 attribute
    • <key>External | object | null

      External reference to an object in another system.

      Show 5 attributes
      • customerIdstring
      • refstringmax 200 characters
      • labelstringmax 120 characters
      • urlstring (uri)max 2048 characters

        http or https.

      • metaobject

        Flat object, max 20 keys; values string (max 500), number, boolean or null.

        Show 1 attribute
        • <key>string | number | boolean | null

Response 201

Created.

  • taskTask

    A task. The stored document may carry more fields than listed.

    Show 20 attributes
    • idstringrequired
    • projectIdstring
    • titlestring
    • descriptionstring
    • statusstring
    • prioritystring
    • startDatestring
    • dueDatestring
    • isCompletedboolean
    • assigneeIdsarray of string
    • categorystring
    • sprintIdstring
    • initiativeIdstring
    • dependenciesarray of string
    • externalKeystring
    • sourcestring
    • createdAtstring (date-time)
    • updatedAtstring (date-time)
    • externalExternalMap

      External references by source. Source keys match ^[a-z][a-z0-9_-]{1,31}$, max 5.

      Show 1 attribute
      • <key>External

        External reference to an object in another system.

        Show 5 attributes
        • customerIdstring
        • refstringmax 200 characters
        • labelstringmax 120 characters
        • urlstring (uri)max 2048 characters

          http or https.

        • metaobject

          Flat object, max 20 keys; values string (max 500), number, boolean or null.

    • recurrenceTaskRecurrence

      Repeat rule of a recurring task (stored on every instance of the series). The next instance is created when this one is completed, and with mode fixed also at local midnight of this instance's day. Instance ids are deterministic (<seriesId>__r<index>), so there is exactly one task per occurrence.

      Show 7 attributes
      • rulestring

        RRULE subset. FREQ=DAILY|WEEKLY|MONTHLY|YEARLY (required); INTERVAL=1..999; BYDAY = weekday list (WEEKLY, e.g. MO,TU,WE,TH,FR for weekdays) or one nth weekday (MONTHLY, 1MO..4MO, -1FR = last Friday); BYMONTHDAY=1..31 or -1 (MONTHLY; days past the month end fall on its last day); COUNT=1..1000 or UNTIL=YYYYMMDD (inclusive). Yearly on 29 Feb falls on 28 Feb in common years.

      • modestring

        fixed follows the calendar; afterCompletion counts INTERVAL from the local completion day.

        Allowed values: fixed afterCompletion

      • timeZonestring

        IANA zone of the series (decides "today" and the completion day). Read-only after creation unless sent.

      • seriesIdstring
      • indexinteger
      • anchorstring
      • occurrencestring

        Scheduled day of this instance (YYYY-MM-DD).

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

All error codes

Request
curl -X POST "https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks" \
  -H "Authorization: Bearer pfat_YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "title": "Prepare kickoff",
  "description": "Short description",
  "status": "In Progress",
  "priority": "High",
  "startDate": "2026-11-02"
}'
const res = await fetch('https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    title: 'Prepare kickoff',
    description: 'Short description',
    status: 'In Progress',
    priority: 'High',
    startDate: '2026-11-02'
  }),
});
const data = await res.json();
import os
import requests

res = requests.post(
    "https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks",
    headers={
        "Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
    },
    json={
        "title": "Prepare kickoff",
        "description": "Short description",
        "status": "In Progress",
        "priority": "High",
        "startDate": "2026-11-02"
    },
)
data = res.json()
var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks")!)
request.httpMethod = "POST"
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
let body: [String: Any] = [
    "title": "Prepare kickoff",
    "description": "Short description",
    "status": "In Progress",
    "priority": "High",
    "startDate": "2026-11-02",
]
request.httpBody = try JSONSerialization.data(withJSONObject: body)

let (data, response) = try await URLSession.shared.data(for: request)
Response · 201 · shortenedJSON
{
  "success": true,
  "task": {
    "id": "task_1",
    "projectId": "project_1",
    "title": "Prepare kickoff",
    "description": "Short description",
    "status": "In Progress",
    "priority": "High",
    "startDate": "2026-11-02",
    "dueDate": "2026-11-02",
    "isCompleted": false,
    "assigneeIds": [
      "assignee_1"
    ],
    "category": "Design",
    "sprintId": "sprint_1",
    "initiativeId": "initiative_1",
    "dependencies": [
      "task_2"
    ]
  },
  "requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}

Get a task

GET/projects/{projectId}/tasks/{taskId}

Scope readPermission tasks:read

Path parameters

  • projectIdstringrequired
  • taskIdstringrequired

Response 200

Success.

  • taskTask

    A task. The stored document may carry more fields than listed.

    Show 20 attributes
    • idstringrequired
    • projectIdstring
    • titlestring
    • descriptionstring
    • statusstring
    • prioritystring
    • startDatestring
    • dueDatestring
    • isCompletedboolean
    • assigneeIdsarray of string
    • categorystring
    • sprintIdstring
    • initiativeIdstring
    • dependenciesarray of string
    • externalKeystring
    • sourcestring
    • createdAtstring (date-time)
    • updatedAtstring (date-time)
    • externalExternalMap

      External references by source. Source keys match ^[a-z][a-z0-9_-]{1,31}$, max 5.

      Show 1 attribute
      • <key>External

        External reference to an object in another system.

        Show 5 attributes
        • customerIdstring
        • refstringmax 200 characters
        • labelstringmax 120 characters
        • urlstring (uri)max 2048 characters

          http or https.

        • metaobject

          Flat object, max 20 keys; values string (max 500), number, boolean or null.

    • recurrenceTaskRecurrence

      Repeat rule of a recurring task (stored on every instance of the series). The next instance is created when this one is completed, and with mode fixed also at local midnight of this instance's day. Instance ids are deterministic (<seriesId>__r<index>), so there is exactly one task per occurrence.

      Show 7 attributes
      • rulestring

        RRULE subset. FREQ=DAILY|WEEKLY|MONTHLY|YEARLY (required); INTERVAL=1..999; BYDAY = weekday list (WEEKLY, e.g. MO,TU,WE,TH,FR for weekdays) or one nth weekday (MONTHLY, 1MO..4MO, -1FR = last Friday); BYMONTHDAY=1..31 or -1 (MONTHLY; days past the month end fall on its last day); COUNT=1..1000 or UNTIL=YYYYMMDD (inclusive). Yearly on 29 Feb falls on 28 Feb in common years.

      • modestring

        fixed follows the calendar; afterCompletion counts INTERVAL from the local completion day.

        Allowed values: fixed afterCompletion

      • timeZonestring

        IANA zone of the series (decides "today" and the completion day). Read-only after creation unless sent.

      • seriesIdstring
      • indexinteger
      • anchorstring
      • occurrencestring

        Scheduled day of this instance (YYYY-MM-DD).

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/projects/PROJECT_ID/tasks/TASK_ID" \
  -H "Authorization: Bearer pfat_YOUR_TOKEN"
const res = await fetch('https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/TASK_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/projects/PROJECT_ID/tasks/TASK_ID",
    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/tasks/TASK_ID")!)
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")

let (data, response) = try await URLSession.shared.data(for: request)
Response · 200 · shortenedJSON
{
  "success": true,
  "task": {
    "id": "task_1",
    "projectId": "project_1",
    "title": "Prepare kickoff",
    "description": "Short description",
    "status": "In Progress",
    "priority": "High",
    "startDate": "2026-11-02",
    "dueDate": "2026-11-02",
    "isCompleted": false,
    "assigneeIds": [
      "assignee_1"
    ],
    "category": "Design",
    "sprintId": "sprint_1",
    "initiativeId": "initiative_1",
    "dependencies": [
      "task_2"
    ]
  },
  "requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}

Update a task

PATCH/projects/{projectId}/tasks/{taskId}

Scope tasks:writePermission tasks:write

Path parameters

  • projectIdstringrequired
  • taskIdstringrequired

Headers

  • 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

  • recurrenceTaskRecurrenceInput | null

    Send { rule, mode?, timeZone? } to make a task repeat or change its rule; null stops repeating.

    Show 3 attributes
    • rulestringrequired
    • modestringDefault: "fixed"

      Allowed values: fixed afterCompletion

    • timeZonestring
  • titlestring
  • descriptionstring
  • statusstring
  • prioritystring
  • startDatestring
  • dueDatestring
  • isCompletedboolean
  • assigneestring
  • assigneeIdstring
  • assigneeIdsarray of string
  • assignedGroupIdsarray of string
  • categorystring
  • dependenciesarray of string
  • sprintIdstring
  • initiativeIdstring
  • externalKeystring

    Idempotency handle for upsert-by-external-key.

  • sourcestring
  • externalExternalInput

    Write form of external (scope external:write). Each source is replaced as a whole, other sources stay; null removes a source.

    Show 1 attribute
    • <key>External | object | null

      External reference to an object in another system.

      Show 5 attributes
      • customerIdstring
      • refstringmax 200 characters
      • labelstringmax 120 characters
      • urlstring (uri)max 2048 characters

        http or https.

      • metaobject

        Flat object, max 20 keys; values string (max 500), number, boolean or null.

        Show 1 attribute
        • <key>string | number | boolean | null

Response 200

Success.

  • taskTask

    A task. The stored document may carry more fields than listed.

    Show 20 attributes
    • idstringrequired
    • projectIdstring
    • titlestring
    • descriptionstring
    • statusstring
    • prioritystring
    • startDatestring
    • dueDatestring
    • isCompletedboolean
    • assigneeIdsarray of string
    • categorystring
    • sprintIdstring
    • initiativeIdstring
    • dependenciesarray of string
    • externalKeystring
    • sourcestring
    • createdAtstring (date-time)
    • updatedAtstring (date-time)
    • externalExternalMap

      External references by source. Source keys match ^[a-z][a-z0-9_-]{1,31}$, max 5.

      Show 1 attribute
      • <key>External

        External reference to an object in another system.

        Show 5 attributes
        • customerIdstring
        • refstringmax 200 characters
        • labelstringmax 120 characters
        • urlstring (uri)max 2048 characters

          http or https.

        • metaobject

          Flat object, max 20 keys; values string (max 500), number, boolean or null.

    • recurrenceTaskRecurrence

      Repeat rule of a recurring task (stored on every instance of the series). The next instance is created when this one is completed, and with mode fixed also at local midnight of this instance's day. Instance ids are deterministic (<seriesId>__r<index>), so there is exactly one task per occurrence.

      Show 7 attributes
      • rulestring

        RRULE subset. FREQ=DAILY|WEEKLY|MONTHLY|YEARLY (required); INTERVAL=1..999; BYDAY = weekday list (WEEKLY, e.g. MO,TU,WE,TH,FR for weekdays) or one nth weekday (MONTHLY, 1MO..4MO, -1FR = last Friday); BYMONTHDAY=1..31 or -1 (MONTHLY; days past the month end fall on its last day); COUNT=1..1000 or UNTIL=YYYYMMDD (inclusive). Yearly on 29 Feb falls on 28 Feb in common years.

      • modestring

        fixed follows the calendar; afterCompletion counts INTERVAL from the local completion day.

        Allowed values: fixed afterCompletion

      • timeZonestring

        IANA zone of the series (decides "today" and the completion day). Read-only after creation unless sent.

      • seriesIdstring
      • indexinteger
      • anchorstring
      • occurrencestring

        Scheduled day of this instance (YYYY-MM-DD).

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

All error codes

Request
curl -X PATCH "https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/TASK_ID" \
  -H "Authorization: Bearer pfat_YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "title": "Prepare kickoff",
  "description": "Short description",
  "status": "In Progress",
  "priority": "High",
  "startDate": "2026-11-02"
}'
const res = await fetch('https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/TASK_ID', {
  method: 'PATCH',
  headers: {
    Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    title: 'Prepare kickoff',
    description: 'Short description',
    status: 'In Progress',
    priority: 'High',
    startDate: '2026-11-02'
  }),
});
const data = await res.json();
import os
import requests

res = requests.patch(
    "https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/TASK_ID",
    headers={
        "Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
    },
    json={
        "title": "Prepare kickoff",
        "description": "Short description",
        "status": "In Progress",
        "priority": "High",
        "startDate": "2026-11-02"
    },
)
data = res.json()
var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/TASK_ID")!)
request.httpMethod = "PATCH"
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
let body: [String: Any] = [
    "title": "Prepare kickoff",
    "description": "Short description",
    "status": "In Progress",
    "priority": "High",
    "startDate": "2026-11-02",
]
request.httpBody = try JSONSerialization.data(withJSONObject: body)

let (data, response) = try await URLSession.shared.data(for: request)
Response · 200 · shortenedJSON
{
  "success": true,
  "task": {
    "id": "task_1",
    "projectId": "project_1",
    "title": "Prepare kickoff",
    "description": "Short description",
    "status": "In Progress",
    "priority": "High",
    "startDate": "2026-11-02",
    "dueDate": "2026-11-02",
    "isCompleted": false,
    "assigneeIds": [
      "assignee_1"
    ],
    "category": "Design",
    "sprintId": "sprint_1",
    "initiativeId": "initiative_1",
    "dependencies": [
      "task_2"
    ]
  },
  "requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}

Delete a task

DELETE/projects/{projectId}/tasks/{taskId}

Scope tasks:writePermission tasks:delete

Path parameters

  • projectIdstringrequired
  • taskIdstringrequired

Response 200

Success.

  • deletedTaskIdstring

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

All error codes

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

res = requests.delete(
    "https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/TASK_ID",
    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/tasks/TASK_ID")!)
request.httpMethod = "DELETE"
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")

let (data, response) = try await URLSession.shared.data(for: request)
Response · 200JSON
{
  "success": true,
  "deletedTaskId": "deletedtask_1",
  "requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}

Create or update a task by external key

POST/projects/{projectId}/tasks/upsert-by-external-key

Scope tasks:writePermission tasks:write

Finds the task with externalKey in the project and updates it (200, operation: updated) or creates it (201, operation: created). Idempotent. appendSummary appends text to the description.

Path parameters

  • projectIdstringrequired

Headers

  • 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

  • appendSummarystring

    Text appended to the description on update.

  • recurrenceTaskRecurrenceInput | null

    Send { rule, mode?, timeZone? } to make a task repeat or change its rule; null stops repeating.

    Show 3 attributes
    • rulestringrequired
    • modestringDefault: "fixed"

      Allowed values: fixed afterCompletion

    • timeZonestring
  • titlestring
  • descriptionstring
  • statusstring
  • prioritystring
  • startDatestring
  • dueDatestring
  • isCompletedboolean
  • assigneestring
  • assigneeIdstring
  • assigneeIdsarray of string
  • assignedGroupIdsarray of string
  • categorystring
  • dependenciesarray of string
  • sprintIdstring
  • initiativeIdstring
  • externalKeystringrequired

    Idempotency handle for upsert-by-external-key.

  • sourcestring
  • externalExternalInput

    Write form of external (scope external:write). Each source is replaced as a whole, other sources stay; null removes a source.

    Show 1 attribute
    • <key>External | object | null

      External reference to an object in another system.

      Show 5 attributes
      • customerIdstring
      • refstringmax 200 characters
      • labelstringmax 120 characters
      • urlstring (uri)max 2048 characters

        http or https.

      • metaobject

        Flat object, max 20 keys; values string (max 500), number, boolean or null.

        Show 1 attribute
        • <key>string | number | boolean | null

Response 200

Updated.

  • operationstring

    Allowed values: updated

  • taskTask

    A task. The stored document may carry more fields than listed.

    Show 20 attributes
    • idstringrequired
    • projectIdstring
    • titlestring
    • descriptionstring
    • statusstring
    • prioritystring
    • startDatestring
    • dueDatestring
    • isCompletedboolean
    • assigneeIdsarray of string
    • categorystring
    • sprintIdstring
    • initiativeIdstring
    • dependenciesarray of string
    • externalKeystring
    • sourcestring
    • createdAtstring (date-time)
    • updatedAtstring (date-time)
    • externalExternalMap

      External references by source. Source keys match ^[a-z][a-z0-9_-]{1,31}$, max 5.

      Show 1 attribute
      • <key>External

        External reference to an object in another system.

        Show 5 attributes
        • customerIdstring
        • refstringmax 200 characters
        • labelstringmax 120 characters
        • urlstring (uri)max 2048 characters

          http or https.

        • metaobject

          Flat object, max 20 keys; values string (max 500), number, boolean or null.

    • recurrenceTaskRecurrence

      Repeat rule of a recurring task (stored on every instance of the series). The next instance is created when this one is completed, and with mode fixed also at local midnight of this instance's day. Instance ids are deterministic (<seriesId>__r<index>), so there is exactly one task per occurrence.

      Show 7 attributes
      • rulestring

        RRULE subset. FREQ=DAILY|WEEKLY|MONTHLY|YEARLY (required); INTERVAL=1..999; BYDAY = weekday list (WEEKLY, e.g. MO,TU,WE,TH,FR for weekdays) or one nth weekday (MONTHLY, 1MO..4MO, -1FR = last Friday); BYMONTHDAY=1..31 or -1 (MONTHLY; days past the month end fall on its last day); COUNT=1..1000 or UNTIL=YYYYMMDD (inclusive). Yearly on 29 Feb falls on 28 Feb in common years.

      • modestring

        fixed follows the calendar; afterCompletion counts INTERVAL from the local completion day.

        Allowed values: fixed afterCompletion

      • timeZonestring

        IANA zone of the series (decides "today" and the completion day). Read-only after creation unless sent.

      • seriesIdstring
      • indexinteger
      • anchorstring
      • occurrencestring

        Scheduled day of this instance (YYYY-MM-DD).

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

All error codes

Request
curl -X POST "https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/upsert-by-external-key" \
  -H "Authorization: Bearer pfat_YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "externalKey": "ticket-4711",
  "appendSummary": "appendSummary",
  "title": "Prepare kickoff",
  "description": "Short description",
  "status": "In Progress"
}'
const res = await fetch('https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/upsert-by-external-key', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    externalKey: 'ticket-4711',
    appendSummary: 'appendSummary',
    title: 'Prepare kickoff',
    description: 'Short description',
    status: 'In Progress'
  }),
});
const data = await res.json();
import os
import requests

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

let (data, response) = try await URLSession.shared.data(for: request)
Response · 200 · shortenedJSON
{
  "success": true,
  "operation": "updated",
  "task": {
    "id": "task_1",
    "projectId": "project_1",
    "title": "Prepare kickoff",
    "description": "Short description",
    "status": "In Progress",
    "priority": "High",
    "startDate": "2026-11-02",
    "dueDate": "2026-11-02",
    "isCompleted": false,
    "assigneeIds": [
      "assignee_1"
    ],
    "category": "Design",
    "sprintId": "sprint_1",
    "initiativeId": "initiative_1",
    "dependencies": [
      "task_2"
    ]
  },
  "requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}

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