---
title: "List all goals"
url: "https://docs.unified.to/performance/goal/List_all_goals"
description: "API reference for List all goals. Launch multiple pre-built Goal integrations today with zero maintenance — all through a single API."
---
# List all goals

 GET/performance/{connection\_id}/goal

## Parameters

**limit**number  default=100

**offset**number  default=0

**updated\_gte**date 

Return only results whose updated date is equal or greater to this value (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

**sort** enum

name

updated\_at

created\_at

**order** enum

asc

desc

**query**string 

Query string to search. eg. email address or name

**user\_id**string 

The user/employee ID to filter by (reference to HrisEmployee)

**cycle\_id**string 

The performance cycle ID to filter by

**parent\_id**string 

The parent ID to filter by

**type** enum

INDIVIDUAL

TEAM

DEPARTMENT

COMPANY

OTHER

**fields**string array 

id

created\_at

updated\_at

name

description

user\_ids

company\_id

parent\_id

cycle\_id

type

status

progress

weight

start\_at

due\_at

completed\_at

milestones

raw

Fields to return

**raw**string 

Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar

**connection\_id**string  required 

ID of the connection

## Returns

[PerformanceGoal](/performance/goal/model)array

**id**string 

**created\_at**date 

(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

**updated\_at**date 

(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

**name**string 

**description**string 

**user\_ids**string array 

HR Employees that own or share this goal; the first element is the primary owner

**company\_id**string 

**parent\_id**string 

id of the parent goal, for goal alignment / OKR trees

**cycle\_id**string 

pointer to the Performance Cycle object (goal cycle or timeframe)

**type** enum

Valid values:

 "INDIVIDUAL" 

 "TEAM" 

 "DEPARTMENT" 

 "COMPANY" 

 "OTHER" 

**status** enum

Valid values:

 "NOT\_STARTED" 

 "IN\_PROGRESS" 

 "COMPLETED" 

 "CLOSED" 

 "OTHER" 

**progress**number 

progress percentage from 0 to 100

**weight**number 

the weight of this goal when the provider weighs goals in reviews

**start\_at**date 

(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

**due\_at**date 

(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

**completed\_at**date 

(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

**milestones** array 

milestones or key results for this goal

**raw**any 

## Code Samples

### Node.js SDK

```
import { UnifiedTo } from '@unified-api/typescript-sdk';

const sdk = new UnifiedTo({
    security: {
        jwt: '<YOUR_API_KEY_HERE>',
    },
});

const connectionId = '5de520f96e439b002043d8dc';

const results = await sdk.performance.listPerformanceGoals({ connectionId, 
    limit: 50,
    offset: 0,
    updated_gte: '2026-08-14T20:36:13.740Z',
    sort: 'updated_at',
    order: 'asc',
    query: '',
    user_id: '',
    cycle_id: '',
    parent_id: '',
    type: '',
    fields: '',
    raw: '',
 });
```

### Node.js (axios)

```
const options = {
  method: 'GET',
  url: 'https://api.unified.to/performance/5de520f96e439b002043d8dc/goal',
  headers: {
    authorization: 'bearer .....'
  },
  params: {
    limit: 50,
    offset: 0,
    updated_gte: '2026-08-14T20:36:13.740Z',
    sort: 'updated_at',
    order: 'asc',
    query: '',
    user_id: '',
    cycle_id: '',
    parent_id: '',
    type: '',
    fields: '',
    raw: '',
  }
};

const results = await axios.request(options);
```

### Java

```
AsyncHttpClient client = new DefaultAsyncHttpClient();

client.prepare("GET", "https://api.unified.to/performance/5de520f96e439b002043d8dc/goal?limit=50&offset=0&updated_gte=2026-08-14T20:36:13.740Z&sort=updated_at&order=asc&query=&user_id=&cycle_id=&parent_id=&type=&fields=&raw=")
  .setHeader("accept", "application/json")
  .setHeader("authorization", ".....")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
```

### Go

```
import (
	"fmt"
	"net/http"
	"io/ioutil"
)

url := `https://api.unified.to/performance/5de520f96e439b002043d8dc/goal?limit=50&offset=0&updated_gte=2026-08-14T20:36:13.740Z&sort=updated_at&order=asc&query=&user_id=&cycle_id=&parent_id=&type=&fields=&raw=

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("accept", "application/json")
req.Header.Add("authorization", ".....")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
```

### Python

```
import requests

url = "https://api.unified.to/performance/5de520f96e439b002043d8dc/goal?limit=50&offset=0&updated_gte=2026-08-14T20:36:13.740Z&sort=updated_at&order=asc&query=&user_id=&cycle_id=&parent_id=&type=&fields=&raw="

headers = {
    "accept": "application/json",
    "authorization": "....."
}

response = requests.get(url, headers=headers)
```

### PHP

```
$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.unified.to/performance/5de520f96e439b002043d8dc/goal?limit=50&offset=0&updated_gte=2026-08-14T20:36:13.740Z&sort=updated_at&order=asc&query=&user_id=&cycle_id=&parent_id=&type=&fields=&raw=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "accept: application/json",
    "authorization: ....."
  ],
]);
```

### Ruby

```
require 'uri'
require 'net/http'
require 'openssl'

url = URI("https://api.unified.to/performance/5de520f96e439b002043d8dc/goal?limit=50&offset=0&updated_gte=2026-08-14T20:36:13.740Z&sort=updated_at&order=asc&query=&user_id=&cycle_id=&parent_id=&type=&fields=&raw=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["accept"] = 'application/json'
request["authorization"] = '....'

response = http.request(request)
puts response.read_body
```

### cURL

```
curl --request GET \
  --url 'https://api.unified.to/performance/5de520f96e439b002043d8dc/goal?limit=50&offset=0&updated_gte=2026-08-14T20:36:13.740Z&sort=updated_at&order=asc&query=&user_id=&cycle_id=&parent_id=&type=&fields=&raw=' \
  --header 'accept: application/json' \
  --header 'authorization: .....'
```
