Milestones
Dates and stages of a project.
List milestones
GET/projects/{projectId}/milestones
Scope readPermission projects:read
Path parameters
-
projectIdstringrequired
Query parameters
-
limitintegerPage size.
-
cursorstringOpaque cursor from the previous response's
nextCursor.
Response 200
Success.
-
milestonesarray of MilestoneShow 8 attributes
-
idstringrequired -
titlestring -
descriptionstring -
statusstringDefault
Pending. -
dueDatestring -
createdAtstring (date-time) -
updatedAtstring (date-time) -
externalExternalMapExternal references by source. Source keys match
^[a-z][a-z0-9_-]{1,31}$, max 5.Show 1 attribute
-
<key>ExternalExternal reference to an object in another system.
Show 5 attributes
-
customerIdstring -
refstring -
labelstring -
urlstring (uri)http or https.
-
metaobjectFlat object, max 20 keys; values string (max 500), number, boolean or null.
-
-
-
-
nextCursorstring | null -
totalinteger
Errors
- 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/milestones?limit=50" \
-H "Authorization: Bearer pfat_YOUR_TOKEN"const res = await fetch('https://api.getprojectflow.com/v1/projects/PROJECT_ID/milestones?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/milestones?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/milestones?limit=50")!)
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
let (data, response) = try await URLSession.shared.data(for: request)
{
"success": true,
"milestones": [
{
"id": "milestone_1",
"title": "Prepare kickoff",
"description": "Short description",
"status": "In Progress",
"dueDate": "2026-11-02",
"createdAt": "2026-11-02T09:00:00.000Z",
"updatedAt": "2026-11-02T09:00:00.000Z",
"external": {}
}
],
"nextCursor": null,
"total": 1,
"requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}
Create milestone
POST/projects/{projectId}/milestones
Scope projects:writePermission projects:write
Requires title.
Path parameters
-
projectIdstringrequired
Request body application/json
-
titlestringrequired -
descriptionstring -
statusstring -
dueDatestring -
externalExternalInputWrite form of
external(scopeexternal:write). Each source is replaced as a whole, other sources stay;nullremoves a source.Show 1 attribute
-
<key>External | object | nullExternal reference to an object in another system.
Show 5 attributes
-
customerIdstring -
refstring -
labelstring -
urlstring (uri)http or https.
-
metaobjectFlat object, max 20 keys; values string (max 500), number, boolean or null.
Show 1 attribute
-
<key>string | number | boolean | null
-
-
-
Response 201
Created.
-
milestoneMilestoneA milestone. The stored document may carry more fields than listed.
Show 8 attributes
-
idstringrequired -
titlestring -
descriptionstring -
statusstringDefault
Pending. -
dueDatestring -
createdAtstring (date-time) -
updatedAtstring (date-time) -
externalExternalMapExternal references by source. Source keys match
^[a-z][a-z0-9_-]{1,31}$, max 5.Show 1 attribute
-
<key>ExternalExternal reference to an object in another system.
Show 5 attributes
-
customerIdstring -
refstring -
labelstring -
urlstring (uri)http or https.
-
metaobjectFlat object, max 20 keys; values string (max 500), number, boolean or null.
-
-
-
Errors
- 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/milestones" \
-H "Authorization: Bearer pfat_YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"title": "Prepare kickoff",
"description": "Short description",
"status": "In Progress",
"dueDate": "2026-11-02"
}'const res = await fetch('https://api.getprojectflow.com/v1/projects/PROJECT_ID/milestones', {
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',
dueDate: '2026-11-02'
}),
});
const data = await res.json();import os
import requests
res = requests.post(
"https://api.getprojectflow.com/v1/projects/PROJECT_ID/milestones",
headers={
"Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
},
json={
"title": "Prepare kickoff",
"description": "Short description",
"status": "In Progress",
"dueDate": "2026-11-02"
},
)
data = res.json()var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/projects/PROJECT_ID/milestones")!)
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",
"dueDate": "2026-11-02",
]
request.httpBody = try JSONSerialization.data(withJSONObject: body)
let (data, response) = try await URLSession.shared.data(for: request)
{
"success": true,
"milestone": {
"id": "milestone_1",
"title": "Prepare kickoff",
"description": "Short description",
"status": "In Progress",
"dueDate": "2026-11-02",
"createdAt": "2026-11-02T09:00:00.000Z",
"updatedAt": "2026-11-02T09:00:00.000Z",
"external": {}
},
"requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}
Get milestone
GET/projects/{projectId}/milestones/{milestoneId}
Scope readPermission projects:read
Path parameters
-
projectIdstringrequired -
milestoneIdstringrequired
Response 200
Success.
-
milestoneMilestoneA milestone. The stored document may carry more fields than listed.
Show 8 attributes
-
idstringrequired -
titlestring -
descriptionstring -
statusstringDefault
Pending. -
dueDatestring -
createdAtstring (date-time) -
updatedAtstring (date-time) -
externalExternalMapExternal references by source. Source keys match
^[a-z][a-z0-9_-]{1,31}$, max 5.Show 1 attribute
-
<key>ExternalExternal reference to an object in another system.
Show 5 attributes
-
customerIdstring -
refstring -
labelstring -
urlstring (uri)http or https.
-
metaobjectFlat object, max 20 keys; values string (max 500), number, boolean or null.
-
-
-
Errors
- 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/milestones/MILESTONE_ID" \
-H "Authorization: Bearer pfat_YOUR_TOKEN"const res = await fetch('https://api.getprojectflow.com/v1/projects/PROJECT_ID/milestones/MILESTONE_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/milestones/MILESTONE_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/milestones/MILESTONE_ID")!)
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
let (data, response) = try await URLSession.shared.data(for: request)
{
"success": true,
"milestone": {
"id": "milestone_1",
"title": "Prepare kickoff",
"description": "Short description",
"status": "In Progress",
"dueDate": "2026-11-02",
"createdAt": "2026-11-02T09:00:00.000Z",
"updatedAt": "2026-11-02T09:00:00.000Z",
"external": {}
},
"requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}
Update milestone
PATCH/projects/{projectId}/milestones/{milestoneId}
Scope projects:writePermission projects:write
Path parameters
-
projectIdstringrequired -
milestoneIdstringrequired
Request body application/json
-
titlestringrequired -
descriptionstring -
statusstring -
dueDatestring -
externalExternalInputWrite form of
external(scopeexternal:write). Each source is replaced as a whole, other sources stay;nullremoves a source.Show 1 attribute
-
<key>External | object | nullExternal reference to an object in another system.
Show 5 attributes
-
customerIdstring -
refstring -
labelstring -
urlstring (uri)http or https.
-
metaobjectFlat object, max 20 keys; values string (max 500), number, boolean or null.
Show 1 attribute
-
<key>string | number | boolean | null
-
-
-
Response 200
Success.
-
milestoneMilestoneA milestone. The stored document may carry more fields than listed.
Show 8 attributes
-
idstringrequired -
titlestring -
descriptionstring -
statusstringDefault
Pending. -
dueDatestring -
createdAtstring (date-time) -
updatedAtstring (date-time) -
externalExternalMapExternal references by source. Source keys match
^[a-z][a-z0-9_-]{1,31}$, max 5.Show 1 attribute
-
<key>ExternalExternal reference to an object in another system.
Show 5 attributes
-
customerIdstring -
refstring -
labelstring -
urlstring (uri)http or https.
-
metaobjectFlat object, max 20 keys; values string (max 500), number, boolean or null.
-
-
-
Errors
- 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 PATCH "https://api.getprojectflow.com/v1/projects/PROJECT_ID/milestones/MILESTONE_ID" \
-H "Authorization: Bearer pfat_YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"title": "Prepare kickoff",
"description": "Short description",
"status": "In Progress",
"dueDate": "2026-11-02"
}'const res = await fetch('https://api.getprojectflow.com/v1/projects/PROJECT_ID/milestones/MILESTONE_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',
dueDate: '2026-11-02'
}),
});
const data = await res.json();import os
import requests
res = requests.patch(
"https://api.getprojectflow.com/v1/projects/PROJECT_ID/milestones/MILESTONE_ID",
headers={
"Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
},
json={
"title": "Prepare kickoff",
"description": "Short description",
"status": "In Progress",
"dueDate": "2026-11-02"
},
)
data = res.json()var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/projects/PROJECT_ID/milestones/MILESTONE_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",
"dueDate": "2026-11-02",
]
request.httpBody = try JSONSerialization.data(withJSONObject: body)
let (data, response) = try await URLSession.shared.data(for: request)
{
"success": true,
"milestone": {
"id": "milestone_1",
"title": "Prepare kickoff",
"description": "Short description",
"status": "In Progress",
"dueDate": "2026-11-02",
"createdAt": "2026-11-02T09:00:00.000Z",
"updatedAt": "2026-11-02T09:00:00.000Z",
"external": {}
},
"requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}
Delete milestone
DELETE/projects/{projectId}/milestones/{milestoneId}
Scope projects:writePermission projects:delete
Path parameters
-
projectIdstringrequired -
milestoneIdstringrequired
Response 200
Success.
-
deletedMilestoneIdstring
Errors
- 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 DELETE "https://api.getprojectflow.com/v1/projects/PROJECT_ID/milestones/MILESTONE_ID" \
-H "Authorization: Bearer pfat_YOUR_TOKEN"const res = await fetch('https://api.getprojectflow.com/v1/projects/PROJECT_ID/milestones/MILESTONE_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/milestones/MILESTONE_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/milestones/MILESTONE_ID")!)
request.httpMethod = "DELETE"
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
let (data, response) = try await URLSession.shared.data(for: request)
{
"success": true,
"deletedMilestoneId": "deletedmilestone_1",
"requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}