ApiEndpoints
Execution Endpoints
Manage execution cycles and goals.
Execution family manages time-bound cycles and the goals/milestones associated with them.
List Cycles
Retrieve execution cycles for a specific entity.
GET
/api/v1/execution/:entityId/cyclescurl -H "Authorization: Bearer $TOKEN" https://api.sureshake.com/api/v1/execution/8f2349ef.../cycles
200 OK
{
"data": [
{
"id": "8f2349ef...",
"entityId": "8f2349ef...",
"label": "Q1 2024 Strategy",
"status": "active",
"startDate": "2024-01-01T00:00:00Z",
"endDate": "2024-03-31T23:59:59Z",
"createdAt": "2024-01-10T10:00:00Z"
}
],
"meta": {
"total": 1,
"limit": 100,
"offset": 0,
"hasMore": false
}
}Create Cycle
Create a new time-bound execution cycle.
POST
/api/v1/execution/cyclescurl -X POST \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"entityId": "...", "label": "Q2 Launch", "startDate": "...", "endDate": "..."}' \
https://api.sureshake.com/api/v1/execution/cyclesList Goals
Retrieve goals associated with a specific execution cycle.
GET
/api/v1/execution/cycles/:cycleId/goalscurl -H "Authorization: Bearer $TOKEN" https://api.sureshake.com/api/v1/execution/cycles/8f2349ef.../goals
Create Goal
Add a new goal to an execution cycle.
POST
/api/v1/execution/goalscurl -X POST \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"entityId": "...", "cycleId": "...", "title": "Revenue Target", "category": "revenue", "goalType": "manual"}' \
https://api.sureshake.com/api/v1/execution/goals