cURL
pcall GET "/api/v1/partner/enrichments/WF_EN_261121094822026AEDRUB86TQVSML/campaigns/EC_261121095438377TFUX07WN2XT42V"const res = await call("GET", "/api/v1/partner/enrichments/WF_EN_261121094822026AEDRUB86TQVSML/campaigns/EC_261121095438377TFUX07WN2XT42V");
const { data } = await res.json();res = call("GET", "/api/v1/partner/enrichments/WF_EN_261121094822026AEDRUB86TQVSML/campaigns/EC_261121095438377TFUX07WN2XT42V")
data = res.json()["data"]<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-bc.userecord.io/api/v1/partner/enrichments/{enrichment_id}/campaigns/{campaign_id}",
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>",
"x-secret-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-bc.userecord.io/api/v1/partner/enrichments/{enrichment_id}/campaigns/{campaign_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("x-secret-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-bc.userecord.io/api/v1/partner/enrichments/{enrichment_id}/campaigns/{campaign_id}")
.header("x-api-key", "<api-key>")
.header("x-secret-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-bc.userecord.io/api/v1/partner/enrichments/{enrichment_id}/campaigns/{campaign_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
request["x-secret-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"campaign_id": "EC_261121095438377TFUX07WN2XT42V",
"enrichment_id": "WF_EN_261121094822026AEDRUB86TQVSML",
"kpis": {
"uploaded": 3,
"rejected": 1,
"sent": 2,
"sent_by": {
"whatsapp": 2,
"sms": 0,
"call": 1
},
"link_opened": 1,
"completed": 1,
"opted_out": 0,
"failed": 0
},
"drop_off": {
"started": 1,
"questions": [
{
"order": 0,
"question_text": "Are you open to a new job right now?",
"answered": 1
},
{
"order": 1,
"question_text": "Tell us about the work you do and where you want to work.",
"answered": 1
}
]
}
}
}{
"success": false,
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"details": [
{
"path": "<string>",
"message": "<string>"
}
],
"request_id": "<string>"
}
}Campaigns
Get a campaign
Progress of one campaign: the funnel, numbers per channel and where candidates drop off per question.
Scope: enrichment:read or enrichment:write or enrichment:campaigns
GET
/
enrichments
/
{enrichment_id}
/
campaigns
/
{campaign_id}
cURL
pcall GET "/api/v1/partner/enrichments/WF_EN_261121094822026AEDRUB86TQVSML/campaigns/EC_261121095438377TFUX07WN2XT42V"const res = await call("GET", "/api/v1/partner/enrichments/WF_EN_261121094822026AEDRUB86TQVSML/campaigns/EC_261121095438377TFUX07WN2XT42V");
const { data } = await res.json();res = call("GET", "/api/v1/partner/enrichments/WF_EN_261121094822026AEDRUB86TQVSML/campaigns/EC_261121095438377TFUX07WN2XT42V")
data = res.json()["data"]<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-bc.userecord.io/api/v1/partner/enrichments/{enrichment_id}/campaigns/{campaign_id}",
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>",
"x-secret-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-bc.userecord.io/api/v1/partner/enrichments/{enrichment_id}/campaigns/{campaign_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("x-secret-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-bc.userecord.io/api/v1/partner/enrichments/{enrichment_id}/campaigns/{campaign_id}")
.header("x-api-key", "<api-key>")
.header("x-secret-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-bc.userecord.io/api/v1/partner/enrichments/{enrichment_id}/campaigns/{campaign_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
request["x-secret-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"campaign_id": "EC_261121095438377TFUX07WN2XT42V",
"enrichment_id": "WF_EN_261121094822026AEDRUB86TQVSML",
"kpis": {
"uploaded": 3,
"rejected": 1,
"sent": 2,
"sent_by": {
"whatsapp": 2,
"sms": 0,
"call": 1
},
"link_opened": 1,
"completed": 1,
"opted_out": 0,
"failed": 0
},
"drop_off": {
"started": 1,
"questions": [
{
"order": 0,
"question_text": "Are you open to a new job right now?",
"answered": 1
},
{
"order": 1,
"question_text": "Tell us about the work you do and where you want to work.",
"answered": 1
}
]
}
}
}{
"success": false,
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"details": [
{
"path": "<string>",
"message": "<string>"
}
],
"request_id": "<string>"
}
}Authorizations
Your secret, VFN_SK_…. Not a real header, and never sent to the API. It is only a form field for Try it, which uses it to sign your request in your browser. In your own code you sign each request with the secret and send x-api-key, x-timestamp and x-signature (see Authentication).

