---
title: "Get visiblity rule by id"
method: GET
path: "/api/v11/visibility/{id}"
tags: ["Visibility"]
---

# Get visiblity rule by id

`GET /api/v11/visibility/{id}`

## Request

- Base URL: `https://indexing-dev.hawksearch.net`
- URL: `https://indexing-dev.hawksearch.net/api/v11/visibility/{id}`
- Auth: none declared. Required headers: `X-HawkSearch-ApiKey`
- TypeScript: <https://skmtc.dev/hawksearch/apis/hawksearch-elasticsearch-indexingapi/docs/api/v11/visibility/:id/get.ts> (a function with typed inputs; its response is checked against the schema)

Gets a single visibility rule by its id

## Path parameters

- `id` integer, required

## Headers

- `X-HawkSearch-ApiKey` string, required

## Response `200`

OK

- Visibility
  - `RuleId` integer
  - `SyncGuid` string, uuid
  - `Name` string, required
  - `IsTrigger` boolean
  - `IsLast` boolean, required
  - `Boost` integer
  - `ConditionXml` string
  - `SortOrder` integer
  - `StartDate` string, date-time
  - `EndDate` string, date-time
  - `LandingPageIds` string
  - `TriggerXml` string
  - `VisibilityXml` string, required
  - `Tags` string
  - `CreateDate` string, date-time
  - `ModifyDate` string, date-time

---

[API](https://skmtc.dev/hawksearch/apis/hawksearch-elasticsearch-indexingapi.md) - [All operations](https://skmtc.dev/hawksearch/apis/hawksearch-elasticsearch-indexingapi/llms.txt) - [OpenAPI document](https://skmtc.dev/hawksearch/apis/hawksearch-elasticsearch-indexingapi/revisions/24cba7bf3468?raw)
