Datasources
Test Stored Connection
Test whether a stored auth connection is valid
POST
/
v1
/
datasources
/
test
Test Stored Connection
curl --request POST \
--url https://api.oviond.com/v1/datasources/test \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"auth_id": "auth_abc123",
"datasource_id": "ga4"
}
'import requests
url = "https://api.oviond.com/v1/datasources/test"
payload = {
"auth_id": "auth_abc123",
"datasource_id": "ga4"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({auth_id: 'auth_abc123', datasource_id: 'ga4'})
};
fetch('https://api.oviond.com/v1/datasources/test', 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.oviond.com/v1/datasources/test",
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([
'auth_id' => 'auth_abc123',
'datasource_id' => 'ga4'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.oviond.com/v1/datasources/test"
payload := strings.NewReader("{\n \"auth_id\": \"auth_abc123\",\n \"datasource_id\": \"ga4\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.oviond.com/v1/datasources/test")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"auth_id\": \"auth_abc123\",\n \"datasource_id\": \"ga4\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.oviond.com/v1/datasources/test")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"auth_id\": \"auth_abc123\",\n \"datasource_id\": \"ga4\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"connected": true,
"message": "<string>"
}
}{
"error": "<string>"
}Authorizations
ApiKeyAuthBearerAuth
Oviond API key (prefix oviond_) sent as a Bearer token — the credential for REST/programmatic and headless integrations. Manage keys in Settings → API Keys. API keys do NOT authenticate the MCP endpoint (/mcp), which uses OAuth 2.1 + PKCE.
Body
application/json
Minimum string length:
1Example:
"auth_abc123"
Available options:
advanced-web-ranking, ac, adroll, ahrefs, basecamp, brightlocal, call-rail, drip, keywords, sendin-blue, sendgrid, moosend, mailer-lite, pingdom, uptime-robot, piwik-pro, wordpress, pabbly-connect, ment, twilio, switchy, vimeo, pinterest, pinterest-ads, gtres, paypal, gps, gs, CUSTOM_IMPORT, CUSTOM_DATA, CALCULATION, GOALS, str, wistia, ca-mon, convertkit, woocommerce, xero, matomo, go-high-level, wcs, bing-webmaster-tools, pipedrive, salesforce, tiktok, tiktok-ads, twr, twr-ads, spf, ytbe, google-local-services-ads, klaviyo, gsh, ga4, lkdin-ads, lkdin-pg, mlchmp, inst-ads, inst, fb-ads, fb-pg, gmb, serpstat, hubspot, gadw, sem-rush, se-ranking, microsoft-ads, plausible, snapchat-ads, microsoft-clarity, serp-watch, vbout, moz, chatgpt-ads, omnisend, airtable, nozzle, surnex, jira, clickup, make, freshdesk, chart-mogul, amplitude, harvest, zoho-crm, clockify, adtraction, shopify, copper, help-scout-docs, close-crm, simplesat, help-scout-mailbox Example:
"ga4"
⌘I
Test Stored Connection
curl --request POST \
--url https://api.oviond.com/v1/datasources/test \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"auth_id": "auth_abc123",
"datasource_id": "ga4"
}
'import requests
url = "https://api.oviond.com/v1/datasources/test"
payload = {
"auth_id": "auth_abc123",
"datasource_id": "ga4"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({auth_id: 'auth_abc123', datasource_id: 'ga4'})
};
fetch('https://api.oviond.com/v1/datasources/test', 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.oviond.com/v1/datasources/test",
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([
'auth_id' => 'auth_abc123',
'datasource_id' => 'ga4'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.oviond.com/v1/datasources/test"
payload := strings.NewReader("{\n \"auth_id\": \"auth_abc123\",\n \"datasource_id\": \"ga4\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.oviond.com/v1/datasources/test")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"auth_id\": \"auth_abc123\",\n \"datasource_id\": \"ga4\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.oviond.com/v1/datasources/test")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"auth_id\": \"auth_abc123\",\n \"datasource_id\": \"ga4\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"connected": true,
"message": "<string>"
}
}{
"error": "<string>"
}