List all epics for an initiative ​
GET/api/v1/workspaces/{slug}/initiatives/{initiative_id}/epics/
List all epics associated with an initiative
Path Parameters ​
initiative_id:requiredstringInitiative ID
slug:requiredstringWorkspace slug
Query Parameters ​
cursor:optionalstringPagination cursor for getting next set of results
per_page:optionalintegerNumber of results per page (default: 20, max: 100)
Scopes ​
initiatives.epics:read
List all epics for an initiative
bash
curl -X GET \
"https://api.plane.so/api/v1/workspaces/my-workspace/initiatives/550e8400-e29b-41d4-a716-446655440001/epics/?cursor=20:1:0&per_page=20" \
-H "X-API-Key: $PLANE_API_KEY"python
import requests
response = requests.get(
"https://api.plane.so/api/v1/workspaces/my-workspace/initiatives/550e8400-e29b-41d4-a716-446655440001/epics/?cursor=20:1:0&per_page=20",
headers={"X-API-Key": "your-api-key"}
)
print(response.json())javascript
const response = await fetch(
"https://api.plane.so/api/v1/workspaces/my-workspace/initiatives/550e8400-e29b-41d4-a716-446655440001/epics/?cursor=20:1:0&per_page=20",
{
method: "GET",
headers: {
"X-API-Key": "your-api-key",
},
}
);
const data = await response.json();Response200
json
{
"grouped_by": "state",
"sub_grouped_by": "priority",
"total_count": 150,
"next_cursor": "20:1:0",
"prev_cursor": "20:0:0",
"next_page_results": true,
"prev_page_results": false,
"count": 20,
"total_pages": 8,
"total_results": 150,
"extra_stats": null,
"results": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Example Name",
"description": "Example description",
"priority": "high",
"sequence_id": 123,
"state": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Example Name",
"group": "started"
},
"assignees": [],
"labels": [],
"created_at": "2024-01-01T00:00:00Z"
}
]
}
