Documentation · API reference
GET
/api/v1/goals/{id}One goal
This page as Markdown, or in an AI chatMore ways to read this page
One goal, with its definition.
# One goal
> tidekeeper's API reference: https://tidekeeper.eu/docs/api/get-goals-id
`GET /api/v1/goals/{id}`
One goal, with its definition.
## The answer
200, `GoalView`
- `created_at` (string, needed)
- `id` (string, needed)
- `name` (string, needed)
- `paused` (boolean, needed)
- `site_id` (string, needed)
- `spec` (object, needed)
- `summary` (string, needed): `event install-copy`, `page /thanks*`.
- `version` (integer, needed): The version in force. Each conversion records the one it was counted under (EV-06).
## Asking
```sh
curl https://tidekeeper.eu/api/v1/goals/{id} \
-H "Authorization: Bearer $TIDEKEEPER_TOKEN"
```
The answer
Status 200
GoalView
- created_at
- stringneeded
- id
- stringneeded
- name
- stringneeded
- paused
- booleanneeded
- site_id
- stringneeded
- spec
- objectneeded
- summary
- stringneeded`event install-copy`, `page /thanks*`.
- version
- integerneededThe version in force. Each conversion records the one it was counted under (EV-06).
Asking
curl https://tidekeeper.eu/api/v1/goals/{id} \ -H "Authorization: Bearer $TIDEKEEPER_TOKEN"
const answer = await fetch("https://tidekeeper.eu/api/v1/goals/{id}", { headers: { Authorization: `Bearer ${process.env.TIDEKEEPER_TOKEN}`, }, }).then((r) => r.json());