Goals
List Goals
List all goals for the current account, optionally filtered by client_id
GET
/
v1
/
goals
List Goals
curl --request GET \
--url https://api.oviond.com/v1/goals \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.oviond.com/v1/goals"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.oviond.com/v1/goals', 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/goals",
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.oviond.com/v1/goals"
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.oviond.com/v1/goals")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.oviond.com/v1/goals")
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{
"success": true,
"data": [
{
"id": "goal_abc123",
"account_id": "<string>",
"name": "Q4 Revenue Target",
"target_value": 250000,
"operator": ">=",
"goal_type": "static",
"client_id": "<string>",
"description": "<string>",
"symbol": "$",
"query": {
"data_view": "<string>",
"metrics": [
{
"value": "<string>",
"label": "<string>",
"data_view": "<string>"
}
],
"dimensions": [
{
"value": "<string>",
"label": "<string>",
"data_view": "<string>"
}
],
"filters": [
{
"id": 123,
"field": "sessionMedium",
"operator": "contains",
"value": "cpc"
}
],
"advanced": {},
"date_range": {
"current_start": "<string>",
"current_end": "<string>",
"previous_start": "<string>",
"previous_end": "<string>"
},
"show_custom_date_range": true
},
"created_at": "<unknown>",
"updated_at": "<unknown>"
}
]
}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.
Query Parameters
⌘I
List Goals
curl --request GET \
--url https://api.oviond.com/v1/goals \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.oviond.com/v1/goals"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.oviond.com/v1/goals', 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/goals",
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.oviond.com/v1/goals"
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.oviond.com/v1/goals")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.oviond.com/v1/goals")
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{
"success": true,
"data": [
{
"id": "goal_abc123",
"account_id": "<string>",
"name": "Q4 Revenue Target",
"target_value": 250000,
"operator": ">=",
"goal_type": "static",
"client_id": "<string>",
"description": "<string>",
"symbol": "$",
"query": {
"data_view": "<string>",
"metrics": [
{
"value": "<string>",
"label": "<string>",
"data_view": "<string>"
}
],
"dimensions": [
{
"value": "<string>",
"label": "<string>",
"data_view": "<string>"
}
],
"filters": [
{
"id": 123,
"field": "sessionMedium",
"operator": "contains",
"value": "cpc"
}
],
"advanced": {},
"date_range": {
"current_start": "<string>",
"current_end": "<string>",
"previous_start": "<string>",
"previous_end": "<string>"
},
"show_custom_date_range": true
},
"created_at": "<unknown>",
"updated_at": "<unknown>"
}
]
}