Goals
Get a goal
GET
Returns a single goal, with its metric values recomputed. Requires the goals:read scope.
bearerAuthheader
AuthorizationBearer <token>API key sent as Authorization: Bearer <API_KEY>.
id*stringUnique identifier of the goal.
OK
application/json- response
_id?stringcompany?stringuser?Owner of the goal.
title?stringdescription?stringperiodType?stringValue in
"weekly""monthly""quarterly""fourMonthly""yearly""custom"origin?stringHow the goal was created.
Value in
"manual""import""auto"active?booleanstart?stringPeriod start.
Format
date-timeend?stringPeriod end.
Format
date-timetimezone?stringprize?stringmetrics?array<>notificationsStatus?createdAt?stringFormat
date-timeupdatedAt?stringFormat
date-timecurl -X GET 'https://api.getventia.com/api/v1.0/goals/6650f1c1ff61ffd5f1e446d2'{ "_id": "6650f1c1ff61ffd5f1e44700", "company": "609b3cff61ffd5f1e446d234", "user": { "_id": "6234da84259c59d9a555c498", "name": "Ana", "lastname": "Pérez", "email": "ana@example.com" }, "title": "Meta mayo", "description": "Meta mensual del equipo comercial", "periodType": "monthly", "origin": "manual", "active": true, "start": "2026-05-01T03:00:00.000Z", "end": "2026-06-01T02:59:59.999Z", "timezone": "America/Montevideo", "prize": "Bono de USD 200", "metrics": [ { "code": "sale", "target": 10, "value": 7, "tiers": [ { "target": 15, "prize": "Bono de USD 400" } ] }, { "code": "tracing", "target": 200, "value": 184 } ], "notificationsStatus": { "reached": false }, "createdAt": "2026-04-28T14:00:00.000Z", "updatedAt": "2026-05-24T18:21:01.000Z"}