> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Pref Value At Level

> Gets the preference value for specific section + key.

Calls the Preference agent service GetPreferenceByName.



## OpenAPI

````yaml /openapi/rest/openapi-v3-Preference.json get /api/v1/Preference/{section}/{key}/{prefLevel}
openapi: 3.0.0
info:
  version: v1-REST
  title: SuperOffice REST API v1
  description: SuperOffice REST API - Preference
  contact:
    name: SuperOffice DevNet
    url: https://docs.superoffice.com/en/api/index.html
    email: sdk@superoffice.com
servers:
  - url: http://localhost:56350
  - url: https://localhost:56350
security: []
tags: []
externalDocs:
  description: >-
    The SuperOffice DevNet Community has more documentation, examples, and
    discussion forums.
  url: https://community.superoffice.com/en/developer/
paths:
  /api/v1/Preference/{section}/{key}/{prefLevel}:
    get:
      tags:
        - Preference
      summary: Get Pref Value At Level
      description: |-
        Gets the preference value for specific section + key.

        Calls the Preference agent service GetPreferenceByName.
      operationId: v1Preference_GetPrefValueAtLevel
      parameters:
        - name: section
          in: path
          description: The name of the preference section.
          required: true
          schema:
            type: string
        - name: key
          in: path
          description: The name of the preference key.
          required: true
          schema:
            type: string
        - name: prefLevel
          in: path
          description: >-
            The level the preference is defined at. 0 or Undefined = the level
            closest to the user.
          required: true
          schema:
            type: string
            enum:
              - Undefined
              - HardDefault
              - SystemWide
              - Database
              - Group
              - Individual
              - PC
        - name: Accept-Language
          in: header
          description: >-
            Convert string references and multi-language values into a specified
            language (iso2) code.
          required: false
          schema:
            type: string
        - name: SO-Language
          in: header
          description: >-
            Convert string references and multi-language values into a specified
            language (iso2) code. Overrides Accept-Language value.
          required: false
          schema:
            type: string
        - name: SO-Culture
          in: header
          description: >-
            Number, date formatting in a specified culture (iso2 language) code.
            Partially overrides SO-Language/Accept-Language value. Ignored if no
            Language set.
          required: false
          schema:
            type: string
        - name: SO-TimeZone
          in: header
          description: >-
            Specify the timezone code that you would like date/time responses
            converted to.
          required: false
          schema:
            type: string
        - name: SO-AppToken
          in: header
          description: >-
            The application token that identifies the partner app. Used when
            calling Online WebAPI from a server.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: string
            text/json:
              schema:
                type: string
            application/xml:
              schema:
                type: string
            text/xml:
              schema:
                type: string
            application/json-patch+json:
              schema:
                type: string
            application/merge-patch+json:
              schema:
                type: string
      security:
        - SuperOffice_Password: []
          SuperId_Authentication: []
components: {}

````

## Related topics

- [Set Pref Value At Level](/en/api/reference/restful/rest/preference/set-pref-value-at-level.md)
- [Set Pref Value At Level_ P O S T](/en/api/reference/restful/rest/preference/set-pref-value-at-level_-p-o-s-t.md)
- [Get Pref Value](/en/api/reference/restful/rest/preference/get-pref-value.md)
- [Enum values for PreferenceLevel](/en/database/tables/enums/preferencelevel.md)
- [Enum PreferenceLevel](/en/automation/crmscript/reference/CRMScript.NetServer.PreferenceLevel.md)
- [UserPreferenceTable](/en/api/archive-providers/reference/userpreferencetable.md)
