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 requests with status DISMISSED, for clearing a backlog of old requests. Nothing is approved and the paused agent 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. 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. Dispatch and RMM-script requests are never 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).
Body
Close pending agent 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.
Only requests raised by this agent.
Only requests sent to this approver. Honored for admins and API callers; a non-admin always reaches only their own requests.
Only requests created at or after this ISO-8601 timestamp.
Dismiss pending requests created at or before this ISO-8601 timestamp. Needed when request_ids is not given.
Count the requests this call would dismiss, and change nothing.
Why the requests were dismissed; stored on each one.
The requests to dismiss, in the caller's own tenant. At most 500 ids.
1 - 500 elements