cURL with fictitious data
curl --request POST \
--url https://api.example.com/dict-hub/v1/keys/check \
--header 'Authorization: Bearer demo-access-token' \
--header 'Content-Type: application/json' \
--data '{
"keys": [
{
"key": "52998224725"
}
]
}'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/dict-hub/v1/keys/check"
payload := strings.NewReader("{\n \"keys\": [\n {\n \"key\": \"52998224725\"\n }\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))
}const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({keys: [{key: '52998224725'}]})
};
fetch('https://api.example.com/dict-hub/v1/keys/check', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/dict-hub/v1/keys/check"
payload = { "keys": [{ "key": "52998224725" }] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"keys": [
{
"hasEntry": true,
"key": "52998224725"
}
]
}{
"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"
}
}Check whether Pix keys exist
Verifies whether the provided Pix keys exist in the DICT system. Supports batch verification of multiple keys in a single request.
POST
/
keys
/
check
cURL with fictitious data
curl --request POST \
--url https://api.example.com/dict-hub/v1/keys/check \
--header 'Authorization: Bearer demo-access-token' \
--header 'Content-Type: application/json' \
--data '{
"keys": [
{
"key": "52998224725"
}
]
}'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/dict-hub/v1/keys/check"
payload := strings.NewReader("{\n \"keys\": [\n {\n \"key\": \"52998224725\"\n }\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))
}const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({keys: [{key: '52998224725'}]})
};
fetch('https://api.example.com/dict-hub/v1/keys/check', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/dict-hub/v1/keys/check"
payload = { "keys": [{ "key": "52998224725" }] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"keys": [
{
"hasEntry": true,
"key": "52998224725"
}
]
}{
"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"
}
}Was this page helpful?

