Obter detalhes de uma meta
curl --request GET \
--url https://api.olie.ai/api/management/goals/{goal} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.olie.ai/api/management/goals/{goal}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.olie.ai/api/management/goals/{goal}', 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.olie.ai/api/management/goals/{goal}",
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.olie.ai/api/management/goals/{goal}"
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.olie.ai/api/management/goals/{goal}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.olie.ai/api/management/goals/{goal}")
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{
"response": true,
"goal": {
"id": "9b2d1f4a-3c5e-4a7b-8d9f-1e2c3a4b5c6d",
"title": "Projetos criados no mês",
"description": "Total de novos projetos abertos no período.",
"status": "active",
"start_date": "2026-01-01",
"end_date": "2026-12-31",
"periodicity": 30,
"type": "projects_created",
"user_id": null,
"funnel_step_id": null,
"target": 50,
"unit": "count",
"comparison_mode": "target",
"progress": 32,
"children": [],
"progress_change_percentage": 0,
"percentage": 64,
"results_count": 4,
"is_past_calculable": true,
"created_at": "2026-01-06T14:45:51.000000Z",
"updated_at": "2026-01-20T09:12:03.000000Z",
"deleted_at": null
}
}{
"response": false,
"message": "goal_model_not_found",
"error": "No query results for model [App\\Models\\Goal] 9b2d1f4a-3c5e-4a7b-8d9f-1e2c3a4b5c6d"
}goals
Obter detalhes de uma meta
Retorna os dados de uma meta, com as metas filhas e a contagem de resultados já apurados. Enviar o parâmetro refresh recalcula e grava o progresso antes de responder.
GET
/
api
/
management
/
goals
/
{goal}
Obter detalhes de uma meta
curl --request GET \
--url https://api.olie.ai/api/management/goals/{goal} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.olie.ai/api/management/goals/{goal}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.olie.ai/api/management/goals/{goal}', 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.olie.ai/api/management/goals/{goal}",
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.olie.ai/api/management/goals/{goal}"
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.olie.ai/api/management/goals/{goal}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.olie.ai/api/management/goals/{goal}")
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{
"response": true,
"goal": {
"id": "9b2d1f4a-3c5e-4a7b-8d9f-1e2c3a4b5c6d",
"title": "Projetos criados no mês",
"description": "Total de novos projetos abertos no período.",
"status": "active",
"start_date": "2026-01-01",
"end_date": "2026-12-31",
"periodicity": 30,
"type": "projects_created",
"user_id": null,
"funnel_step_id": null,
"target": 50,
"unit": "count",
"comparison_mode": "target",
"progress": 32,
"children": [],
"progress_change_percentage": 0,
"percentage": 64,
"results_count": 4,
"is_past_calculable": true,
"created_at": "2026-01-06T14:45:51.000000Z",
"updated_at": "2026-01-20T09:12:03.000000Z",
"deleted_at": null
}
}{
"response": false,
"message": "goal_model_not_found",
"error": "No query results for model [App\\Models\\Goal] 9b2d1f4a-3c5e-4a7b-8d9f-1e2c3a4b5c6d"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
ID (UUID) da meta.
Query Parameters
Basta estar presente na URL (com ou sem valor) para recalcular e gravar o progresso da meta antes de responder.
Was this page helpful?