---
title: "Retrieve all spending goals for a user"
method: GET
path: "/spending-goals"
tags: ["spending goals"]
---

# Retrieve all spending goals for a user

`GET /spending-goals`

## Request

- Base URL: `https://api.moneyhub.co.uk/v3`
- URL: `https://api.moneyhub.co.uk/v3/spending-goals`
- Auth: API key in header `Authorization`

Requires **spending_goals:read** scope.

## Query parameters

- `limit` integer
- `offset` integer

## Response `200`

Successful Spending Goals Response

- object
  - `data` SpendingGoal[]
    - `categoryId` string, required
    - `dateCreated` string, date-time, required
    - `periodType` 'monthly' | 'annual', required
    - `periodStart` string, required
    - `id` string, required: The unique id of the spending goal
    - `amount` object, required
      - `value` integer, required: The value of the amount in minor units of the currency, eg. pennies for GBP.
      - `majorUnits` integer: The major units of the value, based on the values currency, eg. pounds for GBP.
      - `minorUnits` integer: The minor units of the value, based on the values currency, eg. pennies for GBP.
      - `currency` string, required: The currency of the amount.
    - `spending` object[], required
      - `date` string, required
      - `spent` integer, required: The spending analysis amount of the specified month expressed in minor units of the currency.
  - `links` Links
    - `next` string, uri: The url to retrieve the next page of results from
    - `prev` string, uri: The url to retrieve the previous page of results from
    - `self` string, uri, required: The url of the current resource(s)
  - `meta` object

---

[API](https://skmtc.dev/moneyhubenterprise/apis/moneyhub-data-api-v3.md) - [All operations](https://skmtc.dev/moneyhubenterprise/apis/moneyhub-data-api-v3/llms.txt) - [OpenAPI document](https://skmtc.dev/moneyhubenterprise/apis/moneyhub-data-api-v3/revisions/2e08b5dbee56?raw)
