Buscar comprovantes
curl --request POST \
--url https://{space}.{region}.api.niadra.com/v1/receipts/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"conversation_id": "call-4471",
"kind": "read",
"since": "2026-09-22T00:00:00Z",
"limit": 50
}
'import requests
url = "https://{space}.{region}.api.niadra.com/v1/receipts/search"
payload = {
"conversation_id": "call-4471",
"kind": "read",
"since": "2026-09-22T00:00:00Z",
"limit": 50
}
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({
conversation_id: 'call-4471',
kind: 'read',
since: '2026-09-22T00:00:00Z',
limit: 50
})
};
fetch('https://{space}.{region}.api.niadra.com/v1/receipts/search', 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/receipts/search",
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([
'conversation_id' => 'call-4471',
'kind' => 'read',
'since' => '2026-09-22T00:00:00Z',
'limit' => 50
]),
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/receipts/search"
payload := strings.NewReader("{\n \"conversation_id\": \"call-4471\",\n \"kind\": \"read\",\n \"since\": \"2026-09-22T00:00:00Z\",\n \"limit\": 50\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/receipts/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"conversation_id\": \"call-4471\",\n \"kind\": \"read\",\n \"since\": \"2026-09-22T00:00:00Z\",\n \"limit\": 50\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{space}.{region}.api.niadra.com/v1/receipts/search")
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 \"conversation_id\": \"call-4471\",\n \"kind\": \"read\",\n \"since\": \"2026-09-22T00:00:00Z\",\n \"limit\": 50\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"receipt_id": "0192f7a4-0e21-7f9b-a2d5-4a7f9e0b1c23",
"kind": "history",
"surface": "search",
"audience": "customer_agent",
"day": "2026-09-22",
"read_at": "2026-09-22T17:07:09Z",
"source_id": "0192f79e-11aa-7b20-9f3e-6c1d2e4f5a60",
"profile_id": "0192f7a0-3b2e-7d41-8c5a-2e9f4b7a1c03",
"conversation_id": "call-4471",
"purpose": "customer_service",
"verification": "V1",
"policy_version": "pol-14",
"item_ids": [
"0192f7a3-7c32-7b0c-9e16-5b8a0f1c2d34",
"0192f7a2-5d10-7a8e-b1c4-3f6e8d9a0b12"
],
"withheld": 1,
"slice": 3,
"seq": 88214,
"prev_hash": "sha256:0d9f3a61c2",
"hash": "sha256:7e21c8a4b9"
}
],
"next_cursor": null
}{
"code": "<string>",
"status": 123,
"title": "<string>",
"detail": "<string>",
"request_id": "<string>",
"type": "about:blank"
}Privacidade e auditoria
Buscar comprovantes
Leituras, buscas e ações administrativas, com o encadeamento por hash, filtradas com os filtros no corpo.
POST
/
v1
/
receipts
/
search
Buscar comprovantes
curl --request POST \
--url https://{space}.{region}.api.niadra.com/v1/receipts/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"conversation_id": "call-4471",
"kind": "read",
"since": "2026-09-22T00:00:00Z",
"limit": 50
}
'import requests
url = "https://{space}.{region}.api.niadra.com/v1/receipts/search"
payload = {
"conversation_id": "call-4471",
"kind": "read",
"since": "2026-09-22T00:00:00Z",
"limit": 50
}
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({
conversation_id: 'call-4471',
kind: 'read',
since: '2026-09-22T00:00:00Z',
limit: 50
})
};
fetch('https://{space}.{region}.api.niadra.com/v1/receipts/search', 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/receipts/search",
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([
'conversation_id' => 'call-4471',
'kind' => 'read',
'since' => '2026-09-22T00:00:00Z',
'limit' => 50
]),
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/receipts/search"
payload := strings.NewReader("{\n \"conversation_id\": \"call-4471\",\n \"kind\": \"read\",\n \"since\": \"2026-09-22T00:00:00Z\",\n \"limit\": 50\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/receipts/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"conversation_id\": \"call-4471\",\n \"kind\": \"read\",\n \"since\": \"2026-09-22T00:00:00Z\",\n \"limit\": 50\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{space}.{region}.api.niadra.com/v1/receipts/search")
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 \"conversation_id\": \"call-4471\",\n \"kind\": \"read\",\n \"since\": \"2026-09-22T00:00:00Z\",\n \"limit\": 50\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"receipt_id": "0192f7a4-0e21-7f9b-a2d5-4a7f9e0b1c23",
"kind": "history",
"surface": "search",
"audience": "customer_agent",
"day": "2026-09-22",
"read_at": "2026-09-22T17:07:09Z",
"source_id": "0192f79e-11aa-7b20-9f3e-6c1d2e4f5a60",
"profile_id": "0192f7a0-3b2e-7d41-8c5a-2e9f4b7a1c03",
"conversation_id": "call-4471",
"purpose": "customer_service",
"verification": "V1",
"policy_version": "pol-14",
"item_ids": [
"0192f7a3-7c32-7b0c-9e16-5b8a0f1c2d34",
"0192f7a2-5d10-7a8e-b1c4-3f6e8d9a0b12"
],
"withheld": 1,
"slice": 3,
"seq": 88214,
"prev_hash": "sha256:0d9f3a61c2",
"hash": "sha256:7e21c8a4b9"
}
],
"next_cursor": null
}{
"code": "<string>",
"status": 123,
"title": "<string>",
"detail": "<string>",
"request_id": "<string>",
"type": "about:blank"
}Autorizações
sourceKeypersonToken
nia_sk_...
Corpo
application/json
Os filtros de GET /v1/receipts, no corpo: um id de conversa nunca viaja numa URL.
Required string length:
1 - 512Opções disponíveis:
read, history, analytics, admin, holdout, denied Intervalo obrigatório:
1 <= x <= 200
