### Copenhagen Truck Wash API Help

# List or get department goals

This endpoint documentation is generated directly from `openapi.yaml`.

## Endpoint

GET /goals/department

## Operation

Operation ID: `listDepartmentGoals`

Retrieve a list of department goals or a single goal when `id` is provided. Access control: - A user may only access goals where the goal&#x27;s `departments` set is a subset of the user&#x27;s departments. - Users with the `superuser` permission may access all goals.

## Authentication

Security requirements:

Scheme | Scopes
--- | ---
BearerAuth | -

## Parameters

Name | In | Required | Type | Description
--- | --- | --- | --- | ---
id | query | no | integer | When provided, returns the single goal with this id (if accessible)
|  | no | object |

## Responses

Status | Description | Content Types
--- | --- | ---
200 | Goals retrieved successfully | application/json
400 |  |
401 |  |
403 |  |
404 |  |

Schema for response `200` (`application/json`):

{ "items": { "$ref": "#/components/schemas/DepartmentGoal" }, "type": "array" }
17 March 2026