Python
niadra.feedback(
"resolve_open_item",
phone("+14155550123"),
open_item_id="oi_01J8ZK",
reason="Visit rescheduled and confirmed by the customer",
)await niadra.feedback({
action: "resolve_open_item",
subject: handles.phone("+14155550123"),
open_item_id: "oi_01J8ZK",
reason: "Visit rescheduled and confirmed by the customer",
});curl --request POST \
--url https://{space}.{region}.api.niadra.com/v1/feedback \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"idempotency_key": "fb-2026-09-22-0001",
"subject": {
"type": "phone_e164",
"value": "+14155550123"
},
"action": "resolve_open_item",
"open_item_id": "oi_01J8ZK",
"reason": "Visit rescheduled and confirmed by the customer"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
idempotency_key: 'fb-2026-09-22-0001',
subject: {type: 'phone_e164', value: '+14155550123'},
action: 'resolve_open_item',
open_item_id: 'oi_01J8ZK',
reason: 'Visit rescheduled and confirmed by the customer'
})
};
fetch('https://{space}.{region}.api.niadra.com/v1/feedback', 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://{space}.{region}.api.niadra.com/v1/feedback",
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([
'idempotency_key' => 'fb-2026-09-22-0001',
'subject' => [
'type' => 'phone_e164',
'value' => '+14155550123'
],
'action' => 'resolve_open_item',
'open_item_id' => 'oi_01J8ZK',
'reason' => 'Visit rescheduled and confirmed by the customer'
]),
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://{space}.{region}.api.niadra.com/v1/feedback"
payload := strings.NewReader("{\n \"idempotency_key\": \"fb-2026-09-22-0001\",\n \"subject\": {\n \"type\": \"phone_e164\",\n \"value\": \"+14155550123\"\n },\n \"action\": \"resolve_open_item\",\n \"open_item_id\": \"oi_01J8ZK\",\n \"reason\": \"Visit rescheduled and confirmed by the customer\"\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://{space}.{region}.api.niadra.com/v1/feedback")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"idempotency_key\": \"fb-2026-09-22-0001\",\n \"subject\": {\n \"type\": \"phone_e164\",\n \"value\": \"+14155550123\"\n },\n \"action\": \"resolve_open_item\",\n \"open_item_id\": \"oi_01J8ZK\",\n \"reason\": \"Visit rescheduled and confirmed by the customer\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{space}.{region}.api.niadra.com/v1/feedback")
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 \"idempotency_key\": \"fb-2026-09-22-0001\",\n \"subject\": {\n \"type\": \"phone_e164\",\n \"value\": \"+14155550123\"\n },\n \"action\": \"resolve_open_item\",\n \"open_item_id\": \"oi_01J8ZK\",\n \"reason\": \"Visit rescheduled and confirmed by the customer\"\n}"
response = http.request(request)
puts response.read_body{
"accepted": 1,
"duplicates": 0,
"errors": []
}{
"code": "<string>",
"status": 123,
"title": "<string>",
"detail": "<string>",
"request_id": "<string>",
"type": "about:blank"
}Escrita
Corrigir a memória
Retirar ou corrigir um fato, resolver uma pendência ou registrar o desfecho de uma conversa.
POST
/
v1
/
feedback
Python
niadra.feedback(
"resolve_open_item",
phone("+14155550123"),
open_item_id="oi_01J8ZK",
reason="Visit rescheduled and confirmed by the customer",
)await niadra.feedback({
action: "resolve_open_item",
subject: handles.phone("+14155550123"),
open_item_id: "oi_01J8ZK",
reason: "Visit rescheduled and confirmed by the customer",
});curl --request POST \
--url https://{space}.{region}.api.niadra.com/v1/feedback \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"idempotency_key": "fb-2026-09-22-0001",
"subject": {
"type": "phone_e164",
"value": "+14155550123"
},
"action": "resolve_open_item",
"open_item_id": "oi_01J8ZK",
"reason": "Visit rescheduled and confirmed by the customer"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
idempotency_key: 'fb-2026-09-22-0001',
subject: {type: 'phone_e164', value: '+14155550123'},
action: 'resolve_open_item',
open_item_id: 'oi_01J8ZK',
reason: 'Visit rescheduled and confirmed by the customer'
})
};
fetch('https://{space}.{region}.api.niadra.com/v1/feedback', 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://{space}.{region}.api.niadra.com/v1/feedback",
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([
'idempotency_key' => 'fb-2026-09-22-0001',
'subject' => [
'type' => 'phone_e164',
'value' => '+14155550123'
],
'action' => 'resolve_open_item',
'open_item_id' => 'oi_01J8ZK',
'reason' => 'Visit rescheduled and confirmed by the customer'
]),
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://{space}.{region}.api.niadra.com/v1/feedback"
payload := strings.NewReader("{\n \"idempotency_key\": \"fb-2026-09-22-0001\",\n \"subject\": {\n \"type\": \"phone_e164\",\n \"value\": \"+14155550123\"\n },\n \"action\": \"resolve_open_item\",\n \"open_item_id\": \"oi_01J8ZK\",\n \"reason\": \"Visit rescheduled and confirmed by the customer\"\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://{space}.{region}.api.niadra.com/v1/feedback")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"idempotency_key\": \"fb-2026-09-22-0001\",\n \"subject\": {\n \"type\": \"phone_e164\",\n \"value\": \"+14155550123\"\n },\n \"action\": \"resolve_open_item\",\n \"open_item_id\": \"oi_01J8ZK\",\n \"reason\": \"Visit rescheduled and confirmed by the customer\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{space}.{region}.api.niadra.com/v1/feedback")
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 \"idempotency_key\": \"fb-2026-09-22-0001\",\n \"subject\": {\n \"type\": \"phone_e164\",\n \"value\": \"+14155550123\"\n },\n \"action\": \"resolve_open_item\",\n \"open_item_id\": \"oi_01J8ZK\",\n \"reason\": \"Visit rescheduled and confirmed by the customer\"\n}"
response = http.request(request)
puts response.read_body{
"accepted": 1,
"duplicates": 0,
"errors": []
}{
"code": "<string>",
"status": 123,
"title": "<string>",
"detail": "<string>",
"request_id": "<string>",
"type": "about:blank"
}Autorizações
nia_sk_...
Corpo
application/json
Correções viram eventos: a memória nunca edita o passado no lugar.
Opções disponíveis:
retract_fact, correct_fact, resolve_open_item, conversation_outcome Required string length:
1 - 512Um identificador de um sujeito num canal ou sistema: um telefone, um e-mail, um id do CRM.
Show child attributes
Show child attributes
Required string length:
1 - 512Maximum string length:
500Maximum string length:
2000
