Preview
curl --request POST \
--url https://api.revenuebase.ai/v2/contact/preview \
--header 'Content-Type: application/json' \
--header 'X-Key: <api-key>' \
--data '
{
"filter": {
"type": "group",
"op": "AND",
"children": [
{
"type": "condition",
"column": "",
"value": "<string>",
"valueList": [
"<string>"
],
"id": "<string>"
}
],
"negate": false,
"id": "<string>"
},
"columns": [
"<string>"
],
"limit": 123,
"includeSql": false,
"includeScores": false
}
'import requests
url = "https://api.revenuebase.ai/v2/contact/preview"
payload = {
"filter": {
"type": "group",
"op": "AND",
"children": [
{
"type": "condition",
"column": "",
"value": "<string>",
"valueList": ["<string>"],
"id": "<string>"
}
],
"negate": False,
"id": "<string>"
},
"columns": ["<string>"],
"limit": 123,
"includeSql": False,
"includeScores": False
}
headers = {
"X-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
filter: {
type: 'group',
op: 'AND',
children: [
{
type: 'condition',
column: '',
value: '<string>',
valueList: ['<string>'],
id: '<string>'
}
],
negate: false,
id: '<string>'
},
columns: ['<string>'],
limit: 123,
includeSql: false,
includeScores: false
})
};
fetch('https://api.revenuebase.ai/v2/contact/preview', 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.revenuebase.ai/v2/contact/preview",
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([
'filter' => [
'type' => 'group',
'op' => 'AND',
'children' => [
[
'type' => 'condition',
'column' => '',
'value' => '<string>',
'valueList' => [
'<string>'
],
'id' => '<string>'
]
],
'negate' => false,
'id' => '<string>'
],
'columns' => [
'<string>'
],
'limit' => 123,
'includeSql' => false,
'includeScores' => false
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.revenuebase.ai/v2/contact/preview"
payload := strings.NewReader("{\n \"filter\": {\n \"type\": \"group\",\n \"op\": \"AND\",\n \"children\": [\n {\n \"type\": \"condition\",\n \"column\": \"\",\n \"value\": \"<string>\",\n \"valueList\": [\n \"<string>\"\n ],\n \"id\": \"<string>\"\n }\n ],\n \"negate\": false,\n \"id\": \"<string>\"\n },\n \"columns\": [\n \"<string>\"\n ],\n \"limit\": 123,\n \"includeSql\": false,\n \"includeScores\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Key", "<api-key>")
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://api.revenuebase.ai/v2/contact/preview")
.header("X-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"filter\": {\n \"type\": \"group\",\n \"op\": \"AND\",\n \"children\": [\n {\n \"type\": \"condition\",\n \"column\": \"\",\n \"value\": \"<string>\",\n \"valueList\": [\n \"<string>\"\n ],\n \"id\": \"<string>\"\n }\n ],\n \"negate\": false,\n \"id\": \"<string>\"\n },\n \"columns\": [\n \"<string>\"\n ],\n \"limit\": 123,\n \"includeSql\": false,\n \"includeScores\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.revenuebase.ai/v2/contact/preview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"filter\": {\n \"type\": \"group\",\n \"op\": \"AND\",\n \"children\": [\n {\n \"type\": \"condition\",\n \"column\": \"\",\n \"value\": \"<string>\",\n \"valueList\": [\n \"<string>\"\n ],\n \"id\": \"<string>\"\n }\n ],\n \"negate\": false,\n \"id\": \"<string>\"\n },\n \"columns\": [\n \"<string>\"\n ],\n \"limit\": 123,\n \"includeSql\": false,\n \"includeScores\": false\n}"
response = http.request(request)
puts response.read_body{}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Contact Endpoints
Preview
Fast inline rows (default 1000, max 50000). Unsorted.
For bigger pulls use the exports endpoint.
POST
/
preview
Preview
curl --request POST \
--url https://api.revenuebase.ai/v2/contact/preview \
--header 'Content-Type: application/json' \
--header 'X-Key: <api-key>' \
--data '
{
"filter": {
"type": "group",
"op": "AND",
"children": [
{
"type": "condition",
"column": "",
"value": "<string>",
"valueList": [
"<string>"
],
"id": "<string>"
}
],
"negate": false,
"id": "<string>"
},
"columns": [
"<string>"
],
"limit": 123,
"includeSql": false,
"includeScores": false
}
'import requests
url = "https://api.revenuebase.ai/v2/contact/preview"
payload = {
"filter": {
"type": "group",
"op": "AND",
"children": [
{
"type": "condition",
"column": "",
"value": "<string>",
"valueList": ["<string>"],
"id": "<string>"
}
],
"negate": False,
"id": "<string>"
},
"columns": ["<string>"],
"limit": 123,
"includeSql": False,
"includeScores": False
}
headers = {
"X-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
filter: {
type: 'group',
op: 'AND',
children: [
{
type: 'condition',
column: '',
value: '<string>',
valueList: ['<string>'],
id: '<string>'
}
],
negate: false,
id: '<string>'
},
columns: ['<string>'],
limit: 123,
includeSql: false,
includeScores: false
})
};
fetch('https://api.revenuebase.ai/v2/contact/preview', 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.revenuebase.ai/v2/contact/preview",
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([
'filter' => [
'type' => 'group',
'op' => 'AND',
'children' => [
[
'type' => 'condition',
'column' => '',
'value' => '<string>',
'valueList' => [
'<string>'
],
'id' => '<string>'
]
],
'negate' => false,
'id' => '<string>'
],
'columns' => [
'<string>'
],
'limit' => 123,
'includeSql' => false,
'includeScores' => false
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.revenuebase.ai/v2/contact/preview"
payload := strings.NewReader("{\n \"filter\": {\n \"type\": \"group\",\n \"op\": \"AND\",\n \"children\": [\n {\n \"type\": \"condition\",\n \"column\": \"\",\n \"value\": \"<string>\",\n \"valueList\": [\n \"<string>\"\n ],\n \"id\": \"<string>\"\n }\n ],\n \"negate\": false,\n \"id\": \"<string>\"\n },\n \"columns\": [\n \"<string>\"\n ],\n \"limit\": 123,\n \"includeSql\": false,\n \"includeScores\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Key", "<api-key>")
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://api.revenuebase.ai/v2/contact/preview")
.header("X-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"filter\": {\n \"type\": \"group\",\n \"op\": \"AND\",\n \"children\": [\n {\n \"type\": \"condition\",\n \"column\": \"\",\n \"value\": \"<string>\",\n \"valueList\": [\n \"<string>\"\n ],\n \"id\": \"<string>\"\n }\n ],\n \"negate\": false,\n \"id\": \"<string>\"\n },\n \"columns\": [\n \"<string>\"\n ],\n \"limit\": 123,\n \"includeSql\": false,\n \"includeScores\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.revenuebase.ai/v2/contact/preview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"filter\": {\n \"type\": \"group\",\n \"op\": \"AND\",\n \"children\": [\n {\n \"type\": \"condition\",\n \"column\": \"\",\n \"value\": \"<string>\",\n \"valueList\": [\n \"<string>\"\n ],\n \"id\": \"<string>\"\n }\n ],\n \"negate\": false,\n \"id\": \"<string>\"\n },\n \"columns\": [\n \"<string>\"\n ],\n \"limit\": 123,\n \"includeSql\": false,\n \"includeScores\": false\n}"
response = http.request(request)
puts response.read_body{}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Body
application/json
Response
Successful Response
The response is of type Response Preview V1 Preview Post · object.
Was this page helpful?
