Skip to main content
GET
/
targets
List targets
curl --request GET \
  --url https://app.azalt.co/api/v1/targets \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "<string>",
    "indicatorId": "<string>",
    "organizationId": "<string>",
    "title": "<string>",
    "baselineYear": 123,
    "baselineMonth": 123,
    "baselineQuarter": 123,
    "metadata": {},
    "targetEntries": [
      {
        "period": "MONTHLY",
        "year": 123,
        "type": "ABSOLUTE",
        "targetValue": 123,
        "siteId": "<string>",
        "month": 123,
        "quarter": 123
      }
    ],
    "createdAt": "<string>",
    "updatedAt": "<string>"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

indicatorId
string
siteId
string
year
number

Response

Successful response

id
string
required
indicatorId
string | null
required
organizationId
string
required
title
string | null
required
baselineYear
number | null
required
baselineMonth
number | null
required
baselineQuarter
number | null
required
metadata
object
required
targetEntries
object[]
required
createdAt
string
required
updatedAt
string
required