cURL com dados fictícios
curl --request GET \
--url https://api.example.com/dict-hub/v1/entries \
--header 'Authorization: Bearer demo-access-token' \
--header 'X-Account-Id: 019606a1-3b4c-7d8e-9f01-234567890abc'import requests
url = "https://api.example.com/dict-hub/v1/entries"
headers = {
"X-Account-Id": "<x-account-id>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Account-Id': '<x-account-id>', Authorization: 'Bearer <token>'}
};
fetch('https://api.example.com/dict-hub/v1/entries', 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.example.com/dict-hub/v1/entries",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"X-Account-Id: <x-account-id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/dict-hub/v1/entries"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Account-Id", "<x-account-id>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/dict-hub/v1/entries")
.header("X-Account-Id", "<x-account-id>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/dict-hub/v1/entries")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Account-Id"] = '<x-account-id>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"items": [
{
"account": {
"branch": "0001",
"number": "0007654321",
"openingDate": "2010-01-10T03:00:00Z",
"participant": "12345678",
"type": "CACC"
},
"createdAt": "2019-11-18T03:00:00Z",
"holderId": "019606e5-7f80-9102-3d45-678901234ef0",
"id": "019606c3-5d6e-7f80-1b23-456789012cde",
"keyCreationDate": "2019-11-18T03:00:00Z",
"keyOwnershipDate": "2019-11-18T03:00:00Z",
"keyType": "CPF",
"keyValue": "52998224725",
"metadata": {
"field": "field-example"
},
"organizationId": "019606d4-6e7f-8091-2c34-567890123def",
"owner": {
"document": "52998224725",
"name": "João Silva",
"personType": "NATURAL",
"tradeName": "Silva ME"
},
"requestId": "a946d533-7f22-42a5-9a9b-e87cd55c0f4d",
"status": "ACTIVE",
"updatedAt": "2019-11-18T03:00:00Z"
}
],
"limit": 10,
"page": 1,
"total": 1
}{
"code": "ERR-0001",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}Listar registros de chaves Pix de uma conta
Retorna uma lista paginada por páginas de registros Pix pertencentes à conta informada em X-Account-Id. O escopo é limitado à conta para impedir a exposição de PII entre contas; key_type e sort_order não diferenciam maiúsculas de minúsculas.
GET
/
entries
cURL com dados fictícios
curl --request GET \
--url https://api.example.com/dict-hub/v1/entries \
--header 'Authorization: Bearer demo-access-token' \
--header 'X-Account-Id: 019606a1-3b4c-7d8e-9f01-234567890abc'import requests
url = "https://api.example.com/dict-hub/v1/entries"
headers = {
"X-Account-Id": "<x-account-id>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Account-Id': '<x-account-id>', Authorization: 'Bearer <token>'}
};
fetch('https://api.example.com/dict-hub/v1/entries', 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.example.com/dict-hub/v1/entries",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"X-Account-Id: <x-account-id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/dict-hub/v1/entries"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Account-Id", "<x-account-id>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/dict-hub/v1/entries")
.header("X-Account-Id", "<x-account-id>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/dict-hub/v1/entries")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Account-Id"] = '<x-account-id>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"items": [
{
"account": {
"branch": "0001",
"number": "0007654321",
"openingDate": "2010-01-10T03:00:00Z",
"participant": "12345678",
"type": "CACC"
},
"createdAt": "2019-11-18T03:00:00Z",
"holderId": "019606e5-7f80-9102-3d45-678901234ef0",
"id": "019606c3-5d6e-7f80-1b23-456789012cde",
"keyCreationDate": "2019-11-18T03:00:00Z",
"keyOwnershipDate": "2019-11-18T03:00:00Z",
"keyType": "CPF",
"keyValue": "52998224725",
"metadata": {
"field": "field-example"
},
"organizationId": "019606d4-6e7f-8091-2c34-567890123def",
"owner": {
"document": "52998224725",
"name": "João Silva",
"personType": "NATURAL",
"tradeName": "Silva ME"
},
"requestId": "a946d533-7f22-42a5-9a9b-e87cd55c0f4d",
"status": "ACTIVE",
"updatedAt": "2019-11-18T03:00:00Z"
}
],
"limit": 10,
"page": 1,
"total": 1
}{
"code": "ERR-0001",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}Autorizações
JWT bearer token issued by the identity provider.
Cabeçalhos
UUID da conta associada à operação.
Exemplo:
"019606a1-3b4c-7d8e-9f01-234567890abc"
Parâmetros de consulta
Filter by key type (case-insensitive)
Exemplo:
"CPF"
Filter by key value
Exemplo:
"52998224725"
Page number (1-based, default 1)
Exemplo:
"1"
Rows per page (default 10, max 100)
Exemplo:
"10"
Sort direction (default asc, case-insensitive)
Exemplo:
"desc"
Esta página foi útil?

