Ventia
Goals

Get a goal

GET
/goals/{id}

Returns a single goal, with its metric values recomputed. Requires the goals:read scope.

Authorization

bearerAuth
headerAuthorizationBearer <token>

API key sent as Authorization: Bearer <API_KEY>.

Path Parameters

id*string

Unique identifier of the goal.

Response Body

OK

application/json
  1. response
_id?string
company?string
user?

Owner of the goal.

title?string
description?string
periodType?string
Value in"weekly""monthly""quarterly""fourMonthly""yearly""custom"
origin?string

How the goal was created.

Value in"manual""import""auto"
active?boolean
start?string

Period start.

Formatdate-time
end?string

Period end.

Formatdate-time
timezone?string
prize?string
metrics?array<>
notificationsStatus?
createdAt?string
Formatdate-time
updatedAt?string
Formatdate-time
curl -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"}