---
title: "Get all custom fields that are viewable/editable on service lines"
method: GET
path: "/public/v2/service-lines/custom-fields/keys"
tags: ["Service Lines"]
---

# Get all custom fields that are viewable/editable on service lines

`GET /public/v2/service-lines/custom-fields/keys`

## Request

- Base URL: `https://starlink.com/api`
- URL: `https://starlink.com/api/public/v2/service-lines/custom-fields/keys`
- Auth: HTTP bearer

Required permission: Custom fields, View.

## Response `200`

Successfully retrieved custom field keys

- CustomFieldResourceResponseV2ServiceResponse
  - `errors` ValidationResult[], nullable
    - `memberNames` string[], nullable
    - `errorMessage` string, nullable
  - `warnings` ValidationResult[], nullable
    - `memberNames` string[], nullable
    - `errorMessage` string, nullable
  - `information` string[], nullable
  - `isValid` boolean
  - `content` CustomFieldResourceResponseV2
    - `viewableKeys` CustomFieldInfoResponseV2[], required: Keys that user has permissions to view.
      - `key` string, required: Key of custom field.
      - `valueType` 'String' | 'Bool' | 'Enum': The type of value a custom field holds
      - `allowedValues` string[], nullable: For enum type custom fields, the values the field is allowed to have.
    - `editableKeys` CustomFieldInfoResponseV2[], required: Keys that user has permissions to edit.
      - `key` string, required: Key of custom field.
      - `valueType` 'String' | 'Bool' | 'Enum': The type of value a custom field holds
      - `allowedValues` string[], nullable: For enum type custom fields, the values the field is allowed to have.

## Other responses

- `401`: Unauthorized
- `403`: Missing required permission for this endpoint or resource
- `422`: Unprocessable Content

## Changes

- **2026-11-02** `dfd7014cfd6d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/starlink/apis/starlink-management-api/changes/public/v2/service-lines/custom-fields/keys/get.md)

---

[API](https://skmtc.dev/starlink/apis/starlink-management-api.md) - [All operations](https://skmtc.dev/starlink/apis/starlink-management-api/llms.txt) - [OpenAPI document](https://skmtc.dev/starlink/apis/starlink-management-api/revisions/dfd7014cfd6d?raw)
