---
title: "Get Exclusion Rule"
method: GET
path: "/v1/config/ingestion/exclusions/{id}"
tags: ["Exclusions"]
---

# Get Exclusion Rule

`GET /v1/config/ingestion/exclusions/{id}`

## Request

- Base URL: `https://api.mezmo.com/v3`
- URL: `https://api.mezmo.com/v3/v1/config/ingestion/exclusions/{id}`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/mezmo/apis/pipeline-api/docs/v1/config/ingestion/exclusions/:id/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns an exclusion rule with the id specified.

## Path parameters

- `id` string, required

## Response `200`

OK

- StreamExclusionRequest[]
  - `hosts` Hosts[]
  - `apps` Apps[]
  - `title` string, required
  - `active` boolean
  - `indexonly` boolean
  - `query` string: Search query.
  - `id` string

## Other responses

- `400`: Malformed ingestion exclusion rule response payload. The exclusion rule may be stored incorrectly
- `404`: Exclusion rule not found
- `500`: Internal Server Error. Failed to get exclusion rule

---

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