---
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`

## Request

- Base URL: `https://sandbox-api.spinwheel.io`
- URL: `https://sandbox-api.spinwheel.io/v1/md/constants`
- Auth: API key in header `Authorization`

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/insights.md) - [All operations](https://skmtc.dev/spinwheel/apis/insights/llms.txt) - [OpenAPI document](https://skmtc.dev/spinwheel/apis/insights/revisions/65f258a19682?raw)
