Check Keys Existence
curl --request POST \
--url https://plugin-pix-indirect.api.lerian.net/v1/dict/keys/check \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"keys": [
{
"key": "+5561999999922"
},
{
"key": "john.doe@example.com"
}
]
}
'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://plugin-pix-indirect.api.lerian.net/v1/dict/keys/check"
payload := strings.NewReader("{\n \"keys\": [\n {\n \"key\": \"+5561999999922\"\n },\n {\n \"key\": \"john.doe@example.com\"\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: '+5561999999922'}, {key: 'john.doe@example.com'}]})
};
fetch('https://plugin-pix-indirect.api.lerian.net/v1/dict/keys/check', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://plugin-pix-indirect.api.lerian.net/v1/dict/keys/check"
payload = { "keys": [{ "key": "+5561999999922" }, { "key": "john.doe@example.com" }] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"keys": [
{
"key": "+5561999999922",
"hasEntry": true
}
]
}Check Keys Existence
Use this endpoint to verify if the provided Pix keys exist in the DICT system. This operation allows batch verification of multiple keys in a single request.
POST
/
v1
/
dict
/
keys
/
check
Check Keys Existence
curl --request POST \
--url https://plugin-pix-indirect.api.lerian.net/v1/dict/keys/check \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"keys": [
{
"key": "+5561999999922"
},
{
"key": "john.doe@example.com"
}
]
}
'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://plugin-pix-indirect.api.lerian.net/v1/dict/keys/check"
payload := strings.NewReader("{\n \"keys\": [\n {\n \"key\": \"+5561999999922\"\n },\n {\n \"key\": \"john.doe@example.com\"\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: '+5561999999922'}, {key: 'john.doe@example.com'}]})
};
fetch('https://plugin-pix-indirect.api.lerian.net/v1/dict/keys/check', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://plugin-pix-indirect.api.lerian.net/v1/dict/keys/check"
payload = { "keys": [{ "key": "+5561999999922" }, { "key": "john.doe@example.com" }] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"keys": [
{
"key": "+5561999999922",
"hasEntry": true
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
List of Pix keys to verify existence.
Required array length:
1 - 200 elementsShow child attributes
Show child attributes
Response
Keys check completed successfully.
Show child attributes
Show child attributes
Was this page helpful?

