# Retrieve Filtered Labels

Get record(s) using filters

Endpoint: GET /rest/2.0/LABEL_VERSION
Version: 1.0
Security: JWT

## Query parameters:

  - `queryAnsiSql` (string, required)
    SQL Where part

## Header parameters:

  - `sessionId` (string, required)

## Response 200 fields (application/json):

  - `retrieveResponse` (object)

  - `retrieveResponse.LabelId` (string)
    Label ID

  - `retrieveResponse.Id` (string)
    Label Version ID: LABEL_VERSION_ID

  - `retrieveResponse.LabelKey` (string)
    External Key: When creating a Label directly, you can input any value for External Key.                     When a Label is created automatically by the system, External Key represents its location and cannot be edited.                     You can use External Key in the following ways:                     Add labels to widgets using their External Key when you need translatable text                     Share translations across orgs (such as UAT and production) using the Data Loader                     Manage your translations in a CSV/spreadsheet by exporting a Label report, make your changes, then use the Data Loader to import those change

  - `retrieveResponse.LabelText` (string)
    Label Text

  - `retrieveResponse.SystemFlag` (integer)
    SystemFlag: System Label

  - `retrieveResponse.LanguageCode` (integer)
    LanguageCode

  - `retrieveResponse.Created` (string)
    System controlled field: Date and time the record was created

  - `retrieveResponse.CreatedUserId` (string)
    System controlled field: Id of the user that created the record

  - `retrieveResponse.UpdatedUserId` (string)
    System controlled field: Id of the last user that updated the record

  - `retrieveResponse.Updated` (string)
    System controlled field: Date and time the record was last updated

## Response 400 fields (application/json):

  - `error` (string)
    Bad request

  - `message` (string)
    Bad request

## Response 401 fields (application/json):

  - `error` (string)
    Unauthorized

  - `message` (string)
    Unauthorized

## Response 404 fields (application/json):

  - `error` (string)
    Not found

  - `message` (string)
    Not found

## Response 429 fields (application/json):

  - `error` (string)
    Too many requests

  - `message` (string)
    Too many requests

## Response 500 fields (application/json):

  - `error` (string)
    Internal error

  - `message` (string)
    Internal error


