---
title: "Get mappings"
method: POST
path: "/api/mapping"
tags: ["Mapping"]
---

# Get mappings

`POST /api/mapping`

Use this API to create and maintain custom facets sort order on search and landing pages.

## Headers

- `X-HawkSearch-ApiKey` string, required

## Request body

- CustomMappingParams — Create custom mapping params
  - `IndexName` string — Index used for operation
  - `Field` string — Optional Field name to filter out the mapping

## Response `200`

OK

- object

---

[API](https://skmtc.net/hawksearch/apis/hawksearch-elasticsearch-indexingapi.md) · [All operations](https://skmtc.net/hawksearch/apis/hawksearch-elasticsearch-indexingapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hawksearch/hawksearch-elasticsearch-indexingapi/versions/24cba7bf3468/schema)
