cURL
curl --request GET \
--url https://api.kadoa.com/v4/data-validation/rules \
--header 'x-api-key: <api-key>'import requests
url = "https://api.kadoa.com/v4/data-validation/rules"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.kadoa.com/v4/data-validation/rules', 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.kadoa.com/v4/data-validation/rules",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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.kadoa.com/v4/data-validation/rules"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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.kadoa.com/v4/data-validation/rules")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kadoa.com/v4/data-validation/rules")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"error": false,
"data": [
{
"id": "abc123",
"name": "Email Validation Rule",
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:30:00.000Z",
"description": "<string>",
"ruleType": "custom_sql",
"workflowId": "<string>",
"groupId": "<string>",
"userId": "<string>",
"teamId": "<string>",
"targetColumns": [
"<string>"
],
"parameters": {
"sql": "<string>",
"params": [
null
],
"prompt": "<string>"
},
"disabledReason": "<string>",
"metadata": {},
"deletedAt": "2024-01-15T10:30:00.000Z",
"deletedReason": "<string>"
}
],
"pagination": {
"page": 1,
"pageSize": 50,
"totalItems": 150,
"totalPages": 3
}
}{
"error": true,
"message": "Authentication required"
}{
"error": true,
"message": "Internal server error",
"details": {}
}List validation rules
Retrieve a paginated list of data validation rules with optional filtering by workflow, status, and other criteria
GET
/
v4
/
data-validation
/
rules
cURL
curl --request GET \
--url https://api.kadoa.com/v4/data-validation/rules \
--header 'x-api-key: <api-key>'import requests
url = "https://api.kadoa.com/v4/data-validation/rules"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.kadoa.com/v4/data-validation/rules', 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.kadoa.com/v4/data-validation/rules",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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.kadoa.com/v4/data-validation/rules"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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.kadoa.com/v4/data-validation/rules")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kadoa.com/v4/data-validation/rules")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"error": false,
"data": [
{
"id": "abc123",
"name": "Email Validation Rule",
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:30:00.000Z",
"description": "<string>",
"ruleType": "custom_sql",
"workflowId": "<string>",
"groupId": "<string>",
"userId": "<string>",
"teamId": "<string>",
"targetColumns": [
"<string>"
],
"parameters": {
"sql": "<string>",
"params": [
null
],
"prompt": "<string>"
},
"disabledReason": "<string>",
"metadata": {},
"deletedAt": "2024-01-15T10:30:00.000Z",
"deletedReason": "<string>"
}
],
"pagination": {
"page": 1,
"pageSize": 50,
"totalItems": 150,
"totalPages": 3
}
}{
"error": true,
"message": "Authentication required"
}{
"error": true,
"message": "Internal server error",
"details": {}
}Authorizations
API key for authentication
Query Parameters
Available options:
preview, enabled, disabled Required range:
x >= 1Required range:
1 <= x <= 100⌘I