Sessions
Cancel a queued follow-up or queued agent turn
Removes a turn that is waiting behind a running one, before it
starts. invocationId is the invocationId of the 202
{ queued: true } response of POST /v1/sessions/{id}/continue or
POST /v1/agents/{id}/turns. Idempotent: cancelling an
already-cancelled entry returns alreadyCancelled: true. An unknown
invocationId returns 404.
Workspace scope is resolved from ?workspaceId= or the workspace
bound to the API key.
DELETE
/
v1
/
sessions
/
{id}
/
queue
/
{invocationId}
Cancel a queued follow-up or queued agent turn
curl --request DELETE \
--url https://api.lusor.ai/v1/sessions/{id}/queue/{invocationId} \
--header 'X-Api-Key: <api-key>'const options = {method: 'DELETE', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/sessions/{id}/queue/{invocationId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/sessions/{id}/queue/{invocationId}"
headers = {"X-Api-Key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text){
"ok": true,
"sessionId": "<string>",
"invocationId": "<string>",
"queuedEventId": "<string>",
"alreadyCancelled": true
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Authorizations
ApiKeyBearerAuth
Workspace API key, created in the dashboard under Settings → API Keys.
Query Parameters
Workspace the request is scoped to. Optional for API keys: a key is bound to one workspace when it is created, and naming any other workspace returns an opaque 404.
Was this page helpful?
⌘I
Cancel a queued follow-up or queued agent turn
curl --request DELETE \
--url https://api.lusor.ai/v1/sessions/{id}/queue/{invocationId} \
--header 'X-Api-Key: <api-key>'const options = {method: 'DELETE', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/sessions/{id}/queue/{invocationId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/sessions/{id}/queue/{invocationId}"
headers = {"X-Api-Key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text){
"ok": true,
"sessionId": "<string>",
"invocationId": "<string>",
"queuedEventId": "<string>",
"alreadyCancelled": true
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}
