Lists this organization's lead sources: which sheet, webhook, import or ad
curl --request GET \
--url https://api.erdo.ai/v1/provider-lead-sources \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.erdo.ai/v1/provider-lead-sources"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.erdo.ai/v1/provider-lead-sources', 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.erdo.ai/v1/provider-lead-sources",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.erdo.ai/v1/provider-lead-sources"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.erdo.ai/v1/provider-lead-sources")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.erdo.ai/v1/provider-lead-sources")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"provider_lead_sources": [
{
"account_id": "<string>",
"budget": {
"currency": "<string>",
"options": {},
"question": "<string>"
},
"connection_id": "<string>",
"created_at": "<string>",
"dataset": "<string>",
"enabled": true,
"forms": [
"<string>"
],
"id": "<string>",
"last_delivery_at": "<string>",
"last_error": "<string>",
"last_run_at": "<string>",
"mapping": {
"columns": {},
"consent": {
"method": "<string>",
"text": "<string>"
},
"default_country": "<string>",
"format": "<string>",
"ignore": [
"<string>"
],
"keep_other_fields": true,
"lead_source": "<string>",
"row_id": [
"<string>"
],
"submitted_at": "<string>",
"values": {},
"what_people_did": "<string>"
},
"name": "<string>",
"preview": {
"already_written": 123,
"existing_columns": [
"<string>"
],
"format_columns": {},
"header": [
"<string>"
],
"history": 123,
"missing_fields": [
"<string>"
],
"new": 123,
"not_read": [
"<string>"
],
"read_columns": {},
"rows": 123,
"sample": [
{}
],
"skipped": {},
"suggested_columns": {},
"suggested_values": {},
"test": 123
},
"provider": "<string>",
"read_via": "<string>",
"sheet_url": "<string>",
"synced_through": "<string>",
"updated_at": "<string>",
"webhook_secret": "<string>",
"webhook_url": "<string>"
}
]
}{
"code": "not_found",
"details": {},
"message": "<string>"
}API Reference
Lists this organization's lead sources: which sheet, webhook, import or ad
account’s leads are written into which lead dataset, and how far each has synced. Filter by provider and account_id. Mirrors erdo_list_lead_sources.
GET
/
v1
/
provider-lead-sources
Lists this organization's lead sources: which sheet, webhook, import or ad
curl --request GET \
--url https://api.erdo.ai/v1/provider-lead-sources \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.erdo.ai/v1/provider-lead-sources"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.erdo.ai/v1/provider-lead-sources', 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.erdo.ai/v1/provider-lead-sources",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.erdo.ai/v1/provider-lead-sources"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.erdo.ai/v1/provider-lead-sources")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.erdo.ai/v1/provider-lead-sources")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"provider_lead_sources": [
{
"account_id": "<string>",
"budget": {
"currency": "<string>",
"options": {},
"question": "<string>"
},
"connection_id": "<string>",
"created_at": "<string>",
"dataset": "<string>",
"enabled": true,
"forms": [
"<string>"
],
"id": "<string>",
"last_delivery_at": "<string>",
"last_error": "<string>",
"last_run_at": "<string>",
"mapping": {
"columns": {},
"consent": {
"method": "<string>",
"text": "<string>"
},
"default_country": "<string>",
"format": "<string>",
"ignore": [
"<string>"
],
"keep_other_fields": true,
"lead_source": "<string>",
"row_id": [
"<string>"
],
"submitted_at": "<string>",
"values": {},
"what_people_did": "<string>"
},
"name": "<string>",
"preview": {
"already_written": 123,
"existing_columns": [
"<string>"
],
"format_columns": {},
"header": [
"<string>"
],
"history": 123,
"missing_fields": [
"<string>"
],
"new": 123,
"not_read": [
"<string>"
],
"read_columns": {},
"rows": 123,
"sample": [
{}
],
"skipped": {},
"suggested_columns": {},
"suggested_values": {},
"test": 123
},
"provider": "<string>",
"read_via": "<string>",
"sheet_url": "<string>",
"synced_through": "<string>",
"updated_at": "<string>",
"webhook_secret": "<string>",
"webhook_url": "<string>"
}
]
}{
"code": "not_found",
"details": {},
"message": "<string>"
}
