Goals
List goal rules
The conversions this site defines by URL.
List goal rules
curl --request GET \
--url 'https://truestat.io/api/v1/sites/{siteId}/goal-rules' \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "13a3218b-9f23-4990-89d1-5c98ef078cd6",
"name": "signup",
"created_at": "2026-09-16T19:06:28.945Z",
"match_type": "equals",
"updated_at": "2026-09-16T19:06:28.945Z",
"match_value": "/thank-you"
}
],
"meta": {
"page": {
"limit": 100,
"offset": 0,
"has_more": false
},
"site_id": "6fed8980-a119-4a9c-a4d4-53e448ef9f9e"
}
}See Goal rules for why a rule counts the past, what editing one does to old figures, and when to send an event instead.
Authorizations
AuthorizationstringheaderrequiredAn API key from Settings → API keys. Scopes available: analytics:read, sites:read, sites:write, settings:read, settings:write, goals:read, goals:write, funnels:read, funnels:write, notes:read, notes:write, alerts:read, alerts:write, team:read, team:write, revenue:read, revenue:write.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path parameters
siteIdstring (uuid)pathrequiredThe site's id, from `GET /sites`. A site that is not yours and a site that does not exist both answer 403, so this cannot be used to discover other people's ids.
Query parameters
limitintegerquerydefault: 100Rows per page, 1 to 1000.
offsetintegerquerydefault: 0Rows to skip.
Response
The answer.
dataunknownSee the example.
metaobjecterrorobjecterrorobjecterrorobjecterrorobject