curl --request POST \
--url https://api.neoagent.io/public-api/til-requests/dismiss \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_id": 123,
"approver": "<string>",
"created_after": "2023-11-07T05:31:56Z",
"created_before": "2023-11-07T05:31:56Z",
"dry_run": false,
"note": "<string>",
"request_ids": [
123
]
}
'import requests
url = "https://api.neoagent.io/public-api/til-requests/dismiss"
payload = {
"agent_id": 123,
"approver": "<string>",
"created_after": "2023-11-07T05:31:56Z",
"created_before": "2023-11-07T05:31:56Z",
"dry_run": False,
"note": "<string>",
"request_ids": [123]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
agent_id: 123,
approver: '<string>',
created_after: '2023-11-07T05:31:56Z',
created_before: '2023-11-07T05:31:56Z',
dry_run: false,
note: '<string>',
request_ids: [123]
})
};
fetch('https://api.neoagent.io/public-api/til-requests/dismiss', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.neoagent.io/public-api/til-requests/dismiss",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'agent_id' => 123,
'approver' => '<string>',
'created_after' => '2023-11-07T05:31:56Z',
'created_before' => '2023-11-07T05:31:56Z',
'dry_run' => false,
'note' => '<string>',
'request_ids' => [
123
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.neoagent.io/public-api/til-requests/dismiss"
payload := strings.NewReader("{\n \"agent_id\": 123,\n \"approver\": \"<string>\",\n \"created_after\": \"2023-11-07T05:31:56Z\",\n \"created_before\": \"2023-11-07T05:31:56Z\",\n \"dry_run\": false,\n \"note\": \"<string>\",\n \"request_ids\": [\n 123\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.neoagent.io/public-api/til-requests/dismiss")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"agent_id\": 123,\n \"approver\": \"<string>\",\n \"created_after\": \"2023-11-07T05:31:56Z\",\n \"created_before\": \"2023-11-07T05:31:56Z\",\n \"dry_run\": false,\n \"note\": \"<string>\",\n \"request_ids\": [\n 123\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.neoagent.io/public-api/til-requests/dismiss")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"agent_id\": 123,\n \"approver\": \"<string>\",\n \"created_after\": \"2023-11-07T05:31:56Z\",\n \"created_before\": \"2023-11-07T05:31:56Z\",\n \"dry_run\": false,\n \"note\": \"<string>\",\n \"request_ids\": [\n 123\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"dismissed_count": 123,
"dry_run": true
},
"meta": {
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"timings_ms": {},
"pagination": {
"has_more": true,
"next_cursor": "<string>"
},
"warnings": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"meta": {
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"meta": {
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"meta": {
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"meta": {
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"meta": {
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"meta": {
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"meta": {
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"meta": {
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}Dismiss pending TIL requests without a decision
Closes pending agent and dispatch requests with status DISMISSED, for clearing a backlog of old requests. Nothing is approved and the paused run is not resumed, so no agent runs and nothing is written to the ticket; a reject resumes one run per request. Teams and Slack cards are left as they are, and a later tap answers that the request is resolved. A dismissed dispatch request leaves its ticket unassigned: if the ticket triggers the dispatch agent again, Neo decides again and asks for a new approval. Give request_ids (at most 500), or created_before to reach every pending request created up to then, narrowed by created_after, agent_id and approver. dry_run: true returns the count and changes nothing. A dispatch request less than an hour old, an RMM-script request and a COMPANY_MATCH request are not dismissed; approve or reject those. Current tenant only. Tenant admins and an API key with no acting person reach every request in the tenant. Anyone else, including the Neo Support agent acting for a technician, reaches only the requests sent to them and those raised in their own chat; any other request answers 404, as a request in another tenant does.
curl --request POST \
--url https://api.neoagent.io/public-api/til-requests/dismiss \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_id": 123,
"approver": "<string>",
"created_after": "2023-11-07T05:31:56Z",
"created_before": "2023-11-07T05:31:56Z",
"dry_run": false,
"note": "<string>",
"request_ids": [
123
]
}
'import requests
url = "https://api.neoagent.io/public-api/til-requests/dismiss"
payload = {
"agent_id": 123,
"approver": "<string>",
"created_after": "2023-11-07T05:31:56Z",
"created_before": "2023-11-07T05:31:56Z",
"dry_run": False,
"note": "<string>",
"request_ids": [123]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
agent_id: 123,
approver: '<string>',
created_after: '2023-11-07T05:31:56Z',
created_before: '2023-11-07T05:31:56Z',
dry_run: false,
note: '<string>',
request_ids: [123]
})
};
fetch('https://api.neoagent.io/public-api/til-requests/dismiss', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.neoagent.io/public-api/til-requests/dismiss",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'agent_id' => 123,
'approver' => '<string>',
'created_after' => '2023-11-07T05:31:56Z',
'created_before' => '2023-11-07T05:31:56Z',
'dry_run' => false,
'note' => '<string>',
'request_ids' => [
123
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.neoagent.io/public-api/til-requests/dismiss"
payload := strings.NewReader("{\n \"agent_id\": 123,\n \"approver\": \"<string>\",\n \"created_after\": \"2023-11-07T05:31:56Z\",\n \"created_before\": \"2023-11-07T05:31:56Z\",\n \"dry_run\": false,\n \"note\": \"<string>\",\n \"request_ids\": [\n 123\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.neoagent.io/public-api/til-requests/dismiss")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"agent_id\": 123,\n \"approver\": \"<string>\",\n \"created_after\": \"2023-11-07T05:31:56Z\",\n \"created_before\": \"2023-11-07T05:31:56Z\",\n \"dry_run\": false,\n \"note\": \"<string>\",\n \"request_ids\": [\n 123\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.neoagent.io/public-api/til-requests/dismiss")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"agent_id\": 123,\n \"approver\": \"<string>\",\n \"created_after\": \"2023-11-07T05:31:56Z\",\n \"created_before\": \"2023-11-07T05:31:56Z\",\n \"dry_run\": false,\n \"note\": \"<string>\",\n \"request_ids\": [\n 123\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"dismissed_count": 123,
"dry_run": true
},
"meta": {
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"timings_ms": {},
"pagination": {
"has_more": true,
"next_cursor": "<string>"
},
"warnings": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"meta": {
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"meta": {
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"meta": {
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"meta": {
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"meta": {
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"meta": {
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"meta": {
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"meta": {
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}Authorizations
Authorization: Bearer <token> where <token> is either a neo_sk_<env>_<secret> API key (service account) or a Microsoft Entra ID access token (dashboard user). A key created with scopes reaches only the permission groups they name, and gets 403 insufficient_scope elsewhere; GET /public-api/scopes lists them.
Body
Close pending agent and dispatch requests without a decision. Name the requests with
request_ids, or reach every pending request created up to created_before, narrowed by the
other filters. A dispatch request less than an hour old is not dismissed.
