Close a lane
curl --request DELETE \
--url https://api.example.com/v1/sessions/{sessionId}/lanes/{laneId}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/sessions/{sessionId}/lanes/{laneId}"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}const options = {method: 'DELETE'};
fetch('https://api.example.com/v1/sessions/{sessionId}/lanes/{laneId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/v1/sessions/{sessionId}/lanes/{laneId}"
response = requests.delete(url)
print(response.text){
"code": "NRY-0002",
"title": "Session not found",
"message": "No session with id 6b9f6d2e-1c3a-4f5b-9d7e-2a8c4e6f0b1d exists on this host."
}{
"code": "NRY-0002",
"title": "Session not found",
"message": "No session with id 6b9f6d2e-1c3a-4f5b-9d7e-2a8c4e6f0b1d exists on this host."
}{
"code": "NRY-0002",
"title": "Session not found",
"message": "No session with id 6b9f6d2e-1c3a-4f5b-9d7e-2a8c4e6f0b1d exists on this host."
}{
"code": "NRY-0002",
"title": "Session not found",
"message": "No session with id 6b9f6d2e-1c3a-4f5b-9d7e-2a8c4e6f0b1d exists on this host."
}Close a lane
Closes a side-conversation or subagent lane. The main conversation is returned to unchanged: nothing discussed in the lane enters the main context unless the user asks for it. The lane’s transcript stays in the durable record. The main lane cannot be closed.
DELETE
/
v1
/
sessions
/
{sessionId}
/
lanes
/
{laneId}
Close a lane
curl --request DELETE \
--url https://api.example.com/v1/sessions/{sessionId}/lanes/{laneId}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/sessions/{sessionId}/lanes/{laneId}"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}const options = {method: 'DELETE'};
fetch('https://api.example.com/v1/sessions/{sessionId}/lanes/{laneId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/v1/sessions/{sessionId}/lanes/{laneId}"
response = requests.delete(url)
print(response.text){
"code": "NRY-0002",
"title": "Session not found",
"message": "No session with id 6b9f6d2e-1c3a-4f5b-9d7e-2a8c4e6f0b1d exists on this host."
}{
"code": "NRY-0002",
"title": "Session not found",
"message": "No session with id 6b9f6d2e-1c3a-4f5b-9d7e-2a8c4e6f0b1d exists on this host."
}{
"code": "NRY-0002",
"title": "Session not found",
"message": "No session with id 6b9f6d2e-1c3a-4f5b-9d7e-2a8c4e6f0b1d exists on this host."
}{
"code": "NRY-0002",
"title": "Session not found",
"message": "No session with id 6b9f6d2e-1c3a-4f5b-9d7e-2a8c4e6f0b1d exists on this host."
}Was this page helpful?

