---
title: "Get a List of Constants"
method: GET
path: "/v1/md/constants"
tags: ["Master Data Constants"]
---

# Get a List of Constants

`GET /v1/md/constants`

Returns a list of codes as key value pairs.

## Query parameters

- `type` 'EDUCATION_DEGREE' | 'EDUCATION_MAJOR' | 'EMPLOYMENT_POSITION' | 'EMPLOYMENT_TYPE' | 'INDUSTRY' | 'LOAN_PURPOSE' | 'SCHOOL' | 'CITIZENSHIP_STATUS'

## Response `200`

- GetConstantsResponse
  - `status` ResponseStatus, required
    - `code` number
    - `desc` string
    - `messages` Message[]
      - `desc` string, required
      - `type` 'ERROR' | 'WARN' | 'INFO'
  - `data` Constants[], required
    - `constantId` string, required — The id of the constant
    - `type` string, required — Type of constants
    - `code` string, required — Code is key in a key value pair
    - `title` string, required
    - `description` string, required — Description of constant

## Other responses

- `400` — Bad request response
- `401` — Unauthorized response
- `404` — Not found response
- `500` — Internal server error response

---

[API](https://skmtc.dev/spinwheel/apis/discover.md) · [All operations](https://skmtc.dev/spinwheel/apis/discover/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/spinwheel/discover/revisions/55b90a2e1dd4/schema)
