Api reference
List facet fields
Returns all fields in the index that have faceting enabled, with their type and sorting status.
Returns all fields in the index that have faceting enabled, with their type and sorting status.
Authorization
BearerAuth AuthorizationBearer <token>
Search API key (ss_search_*) from the dashboard or keys API. Scopes (search, ingest, admin) are stored on the key; each route requires the matching scope.
In: header
Path Parameters
indexId*string
Search index ID
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://loading/api/v1/indexes/string/facets"{
"fields": [
{
"name": "string",
"type": "string",
"sort": true
}
]
}{
"error": "string",
"message": "string",
"details": null
}{
"error": "string",
"message": "string",
"details": null
}{
"error": "string",
"message": "string",
"details": null
}