The project ID. Project must be in executing status.
POST
/api/deep-work/projects/{project_id}/pause BearerPause Deep Work Project
Pause a running Deep Work project and stop all currently executing agent tasks. The project can be resumed later with all progress preserved and ready tasks re-dispatched.
Overview
Pauses a running Deep Work project. All currently executing tasks are stopped. The project can be resumed later.
Path Parameters
project_id string Response
success booleanWhether the project was paused.
project objectThe updated project with status: "paused".
curl -X POST http://localhost:8000/api/deep-work/projects/PROJECT_ID/pause \ -H "Authorization: Bearer YOUR_TOKEN"{ "success": true, "project": { "id": "a1b2c3d4...", "status": "paused" }}Was this page helpful?
Request
curl -X POST "http://localhost:8000/api/deep-work/projects/{project_id}/pause" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <token>"const response = await fetch("http://localhost:8000/api/deep-work/projects/{project_id}/pause", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer <token>"
},
});
const data = await response.json();
console.log(data);import requests
response = requests.post(
"http://localhost:8000/api/deep-work/projects/{project_id}/pause",
headers={'Content-Type':'application/json','Authorization':'Bearer <token>'},
)
print(response.json())package main
import (
"fmt"
"net/http"
"io"
)
func main() {
req, _ := http.NewRequest("POST", "http://localhost:8000/api/deep-work/projects/{project_id}/pause", nil)
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer <token>")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}Response
Send a request to see the response
Authorization
Headers
Body
Response