List work item type workflows
Return one work item type workflow entry for every work item type active in the project. Each entry names the catalog workflow that applies to the type now, where that answer came from, and the workflows the project may pick instead.
Use it to build a project's workflow settings screen, or to find which types a project can still change before calling Update a work item type workflow. The project can't change an entry whose governance is required or pinned.
The response is a plain JSON array. It isn't paginated and takes no query parameters.
Path parameters
slug:requiredstringThe workspace slug. It appears in your Plane URLs. In https://app.plane.so/my-team/projects/, the slug is my-team.
project_id:requiredstringThe project. Accepts the project UUID or its bare identifier, for example ENG.
Scopes
projects.workflows:read
Errors
| Status | Code | Cause |
|---|---|---|
401 | unauthorized | Missing or invalid credentials. |
403 | forbidden | Your role or token scope can't view this project. |
404 | not_found | No such workspace or project, or it's outside your tenant. |
406 | not_acceptable | The Accept header asks for a representation the API can't produce. |
409 | states_managed_at_project | The workspace doesn't have governance turned on, so the project owns its workflows. |
429 | rate_limited | Throttled. Honor the Retry-After header before retrying. |
curl -X GET \
"https://api.plane.so/api/v2/workspaces/my-team/projects/4af68566-94a4-4eb3-94aa-50dc9427067b/work-item-types/workflows/" \
-H "X-Api-Key: $PLANE_API_KEY"import requests
response = requests.get(
"https://api.plane.so/api/v2/workspaces/my-team/projects/4af68566-94a4-4eb3-94aa-50dc9427067b/work-item-types/workflows/",
headers={"X-Api-Key": "your-api-key"},
)
for entry in response.json():
print(entry["type_id"], entry["governance"], entry["effective_workflow_id"])const response = await fetch(
"https://api.plane.so/api/v2/workspaces/my-team/projects/4af68566-94a4-4eb3-94aa-50dc9427067b/work-item-types/workflows/",
{
headers: {
"X-Api-Key": "your-api-key",
},
},
);
const entries = await response.json();[
{
"type_id": "d1e7a4c9-2b58-4f36-9a0e-7c3b5d81f240",
"governance": "constrained",
"allowlist_count": 2,
"allowlist_total": 3,
"effective_workflow_id": "a1f4c7e2-3b98-4d61-8e25-6c0b9d7f3a14",
"effective_workflow_name": null,
"source": "pick",
"options": [
{
"workflow_id": "a1f4c7e2-3b98-4d61-8e25-6c0b9d7f3a14",
"name": "Standard delivery"
},
{
"workflow_id": "e6b2d9f1-48a7-4c3e-9f50-1d7a8c2b6e93",
"name": "Regulated release"
}
]
},
{
"type_id": "5a9c2e47-1b6d-4f83-a2e0-8d4c7b1f3e95",
"governance": "required",
"allowlist_count": 1,
"allowlist_total": 3,
"effective_workflow_id": "e6b2d9f1-48a7-4c3e-9f50-1d7a8c2b6e93",
"effective_workflow_name": null,
"source": "required",
"options": []
},
{
"type_id": "c3b81f5d-7a29-4e64-9d0b-2f6e8a1c4d73",
"governance": "any",
"allowlist_count": 0,
"allowlist_total": 3,
"effective_workflow_id": "a1f4c7e2-3b98-4d61-8e25-6c0b9d7f3a14",
"effective_workflow_name": null,
"source": "workspace_default",
"options": [
{
"workflow_id": "a1f4c7e2-3b98-4d61-8e25-6c0b9d7f3a14",
"name": "Standard delivery"
},
{
"workflow_id": "e6b2d9f1-48a7-4c3e-9f50-1d7a8c2b6e93",
"name": "Regulated release"
},
{
"workflow_id": "3d8f1b6a-92c4-4e57-b0a3-6f1e9d2c7a85",
"name": "Support intake"
}
]
}
]{
"type": "conflict",
"code": "states_managed_at_project",
"detail": "Work item type governance is managed at the project level in this workspace."
}
