curl --request GET \
--url https://api.naturalead.ai/api/integrations \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.naturalead.ai/api/integrations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.naturalead.ai/api/integrations', 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.naturalead.ai/api/integrations",
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.naturalead.ai/api/integrations"
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.naturalead.ai/api/integrations")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.naturalead.ai/api/integrations")
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{
"configured": true,
"webhookUrl": "<string>",
"telegramBotToken": "<string>",
"telegramConfigured": true,
"wabaConnected": true,
"wabaDisplayPhone": "<string>",
"wabaConnectedAt": "2023-11-07T05:31:56Z",
"whatsappTokenStale": true,
"whatsappTokenAgeDays": 123,
"email": {
"fromAddress": "[email protected]",
"fromName": "<string>",
"verified": true,
"records": [
{}
]
}
}{
"error": "<string>"
}Get Integrations
Returns the current account’s integration configuration, including
WhatsApp, Telegram, and Email status. Masked secrets are returned
for configured channels.
Requires integrations:view permission.
curl --request GET \
--url https://api.naturalead.ai/api/integrations \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.naturalead.ai/api/integrations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.naturalead.ai/api/integrations', 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.naturalead.ai/api/integrations",
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.naturalead.ai/api/integrations"
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.naturalead.ai/api/integrations")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.naturalead.ai/api/integrations")
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{
"configured": true,
"webhookUrl": "<string>",
"telegramBotToken": "<string>",
"telegramConfigured": true,
"wabaConnected": true,
"wabaDisplayPhone": "<string>",
"wabaConnectedAt": "2023-11-07T05:31:56Z",
"whatsappTokenStale": true,
"whatsappTokenAgeDays": 123,
"email": {
"fromAddress": "[email protected]",
"fromName": "<string>",
"verified": true,
"records": [
{}
]
}
}{
"error": "<string>"
}Authorizations
Bearer token using an API key (format nl_live_* or nl_test_*)
Response
Integration configuration
Whether at least one channel is fully configured
The Meta WhatsApp webhook URL for this environment
Masked token (shown as dots) if Telegram is configured
Whether a Telegram bot token is set
Whether a WhatsApp Business Account is linked
Display phone number for the connected WABA
When the WABA was last connected or refreshed via Embedded Signup
True when WhatsApp is connected and the Meta access token is 60 days old or older (or last-connect time is unknown). Sending and receiving may fail until the connection is refreshed in Settings.
Whole days since wabaConnectedAt. Null if WhatsApp is not connected or the connect date is unknown.
Email integration details (present only if configured)
Show child attributes
Show child attributes