---
title: "Retrieve a list of suggested values which can be used as search criteria in other endpoints"
method: POST
path: "/services/unified-search/v1/suggestions"
tags: ["Filter Suggestions"]
---

# Retrieve a list of suggested values which can be used as search criteria in other endpoints

`POST /services/unified-search/v1/suggestions`

## Request

- Base URL: `https://na12.api.project44.com`
- URL: `https://na12.api.project44.com/services/unified-search/v1/suggestions`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `/api/v4/oauth2/token`
- TypeScript: <https://skmtc.dev/project44/apis/project44-rest-api/docs/services/unified-search/v1/suggestions/post.ts> (a function with typed inputs; its response is checked against the schema)

A suggestion is defined as a value which has existed at some point in time for the given field type in any shipment visible to the tenant performing the call.

Suggestions are sorted such that the most relevant results will be at the top, and any equally relevant results are sorted alphabetically.

## Request body

- FilterSuggestionRequest
  - `fieldType` 'ATTRIBUTE_KEY' | 'ATTRIBUTE_VALUE' | 'CARRIER_NAME' | 'CARRIER_IATA' | 'CARRIER_ICAO' | 'CARRIER_SCAC' | 'CARRIER_US_DOT_NUMBER' | 'CARRIER_MC_NUMBER' | 'CARRIER_NMC_ID' | 'CARRIER_MASTER_ID' | 'VESSEL_NAME' | 'VESSEL_MMSI' | 'VESSEL_IMO' | 'VESSEL_CALL_SIGN' | 'TRAILER_ID' | 'VEHICLE_ID' | 'LICENSE_PLATE' | 'RAIL_CAR_ID' | 'FLIGHT_NUMBER' | 'DRIVER_MOBILE_PHONE_NUMBER' | 'WAGON_ID' | 'TRAIN_NUMBER' | 'EXPORT_CUSTOMS_BROKER' | 'IMPORT_CUSTOMS_BROKER' | 'POL_QUALITY_CONTROL_PROVIDER' | 'POD_QUALITY_CONTROL_PROVIDER' | 'ORIGIN_LOCATION_NAME' | 'ORIGIN_ADDRESS' | 'ORIGIN_CITY' | 'ORIGIN_STATE' | 'ORIGIN_COUNTRY' | 'ORIGIN_ZIP' | 'ORIGIN_PORT_CODE' | 'ORIGIN_AIRPORT_CODE' | 'DESTINATION_LOCATION_NAME' | 'DESTINATION_ADDRESS' | 'DESTINATION_CITY' | 'DESTINATION_STATE' | 'DESTINATION_COUNTRY' | 'DESTINATION_ZIP' | 'DESTINATION_PORT_CODE' | 'DESTINATION_AIRPORT_CODE' | 'STOP_LOCATION_NAME' | 'STOP_ADDRESS' | 'STOP_CITY' | 'STOP_STATE' | 'STOP_COUNTRY' | 'STOP_ZIP' | 'STOP_PORT_CODE' | 'STOP_AIRPORT_CODE' | 'EVENT_DESCRIPTION' | 'EVENT_LOCATION_NAME' | 'EVENT_ADDRESS' | 'EVENT_CITY' | 'EVENT_STATE' | 'EVENT_COUNTRY' | 'EVENT_ZIP' | 'EVENT_PORT_CODE' | 'EVENT_AIRPORT_CODE' | 'ORDER_IDENTIFIER_CONTRACT' | 'ORDER_IDENTIFIER_LAUNCH_CODE' | 'ORDER_IDENTIFIER_LOAD' | 'ORDER_IDENTIFIER_MANUFACTURER' | 'ORDER_IDENTIFIER_PROMOTION' | 'ORDER_IDENTIFIER_SEASON' | 'ORDER_IDENTIFIER_VENDOR' | 'ORDER_IDENTIFIER_CUSTOMER_ORDER' | 'ORDER_ATTRIBUTE_KEY' | 'ORDER_ATTRIBUTE_VALUE' | 'ORDER_TAG_ANALYST' | 'ORDER_TAG_CARRIER' | 'ORDER_TAG_CATEGORY' | 'ORDER_TAG_COMMODITY' | 'ORDER_TAG_DEPARTMENT' | 'ORDER_TAG_DIRECTOR' | 'ORDER_TAG_FAMILY' | 'ORDER_TAG_GROUP' | 'ORDER_TAG_MANAGER' | 'ORDER_TAG_SECTOR' | 'ORDER_TAG_BATCH' | 'ORDER_ORIGIN_LOCATION_ID' | 'ORDER_ORIGIN_LOCATION_NAME' | 'ORDER_ORIGIN_CITY' | 'ORDER_ORIGIN_STATE' | 'ORDER_ORIGIN_COUNTRY' | 'ORDER_ORIGIN_POSTAL_CODE' | 'ORDER_DESTINATION_LOCATION_ID' | 'ORDER_DESTINATION_LOCATION_NAME' | 'ORDER_DESTINATION_CITY' | 'ORDER_DESTINATION_STATE' | 'ORDER_DESTINATION_COUNTRY' | 'ORDER_DESTINATION_POSTAL_CODE' | 'ORDER_SUPPLIER_LOCATION_ID' | 'ORDER_SUPPLIER_LOCATION_NAME' | 'ORDER_SUPPLIER_CITY' | 'ORDER_SUPPLIER_STATE' | 'ORDER_SUPPLIER_COUNTRY' | 'ORDER_SUPPLIER_POSTAL_CODE' | 'ORDER_BILLING_LOCATION_ID' | 'ORDER_BILLING_LOCATION_NAME' | 'ORDER_BILLING_CITY' | 'ORDER_BILLING_STATE' | 'ORDER_BILLING_COUNTRY' | 'ORDER_BILLING_POSTAL_CODE' | 'LOAD_ITEM_DESCRIPTION' | 'SHARING_RECIPIENT_TENANT_NAME' | 'SHARING_ORIGINATOR_TENANT_NAME' | 'SUMMARIZED_CONNECTION_TYPE' | 'CONNECTION_TRANSMISSION_METHOD' | 'CONNECTION_DATA_FORMAT' | 'CONNECTION_SOURCE_TYPE': The target field for which to retrieve suggestions.
  - `fieldName` string: Optional - intended to further narrow the search scope when dealing with key-value pairs. For example, when searching with fieldType = ATTRIBUTE_VALUE, setting this to "WAREHOUSE" will return suggestions only for attributes where the key/name is "WAREHOUSE".
  - `limit` integer: The maximum number of suggestions to return.
  - `query` string: The input with which to search.

## Response `200`

OK

- FilterSuggestionResponse: A collection of suggestions.
  - `suggestions` string[]

## Other responses

- `400`: Missing or invalid user context headers.

---

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